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

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

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

code/trunk/configure revision 41 by nigel, Sat Feb 24 21:39:17 2007 UTC code/tags/pcre-3.5/configure revision 54 by nigel, Sat Feb 24 21:39:44 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    --enable-shared         build PCRE as a shared library (using libtool)"  MFLAGS= MAKEFLAGS=
242    SHELL=${CONFIG_SHELL-/bin/sh}
243    
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 31  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 48  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 66  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 127  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.  
     # 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 204  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 230  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 266  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 276  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 287  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 349  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 451  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        # The list generated by autoconf has been trimmed to remove many
742        # options that are totally irrelevant to PCRE (e.g. relating to X),
743        # or are not supported by its Makefile.
744        # The list generated by autoconf has been trimmed to remove many
745        # options that are totally irrelevant to PCRE (e.g. relating to X),
746        # or are not supported by its Makefile.
747        # The list generated by autoconf has been trimmed to remove many
748        # options that are totally irrelevant to PCRE (e.g. relating to X),
749        # or are not supported by its Makefile.
750      # This message is too long to be a string in the A/UX 3.1 sh.
751      cat <<EOF
752    \`configure' configures this package to adapt to many kinds of systems.
753    
754    Usage: $0 [OPTION]... [VAR=VALUE]...
755    
756    To assign environment variables (e.g., CC, CFLAGS...), specify them as
757    VAR=VALUE.  See below for descriptions of some of the useful variables.
758    
759    Defaults for the options are specified in brackets.
760    
761    Configuration:
762      -h, --help              display this help and exit
763          --help=short        display options specific to this package
764          --help=recursive    display the short help of all the included packages
765      -V, --version           display version information and exit
766      -q, --quiet, --silent   do not print \`checking...' messages
767          --cache-file=FILE   cache test results in FILE [disabled]
768      -C, --config-cache      alias for \`--cache-file=config.cache'
769      -n, --no-create         do not create output files
770          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
771    
772    EOF
773    
774      cat <<EOF
775    Installation directories:
776      --prefix=PREFIX         install architecture-independent files in PREFIX
777                              [$ac_default_prefix]
778      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
779                              [PREFIX]
780    
781    By default, \`make install' will install all the files in
782    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
783    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784    for instance \`--prefix=\$HOME'.
785    
786    For better control, use the options below.
787    
788    Fine tuning of the installation directories:
789      --bindir=DIR           user executables [EPREFIX/bin]
790      --libdir=DIR           object code libraries [EPREFIX/lib]
791      --includedir=DIR       C header files [PREFIX/include]
792      --mandir=DIR           man documentation [PREFIX/man]
793    EOF
794    
795      cat <<\EOF
796    
797    EOF
798    fi
799    
800    if test -n "$ac_init_help"; then
801    
802      cat <<\EOF
803    
804    Optional Features:
805      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
806      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
807      --enable-utf8           enable UTF8 support (incomplete)
808      --enable-newline-is-cr  use CR as the newline character
809      --enable-newline-is-lf  use LF as the newline character
810      --enable-shared       build shared libraries default=yes
811      --enable-static       build static libraries default=yes
812      --enable-fast-install       optimize for fast installation default=yes
813      --disable-libtool-lock  avoid locking (might break parallel builds)
814    
815    Optional Packages:
816      --with-gnu-ld           assume the C compiler uses GNU ld default=no
817      --with-pic              try to use only PIC/non-PIC objects default=use both
818    
819    Some influential environment variables:
820      CC          C compiler command
821      CFLAGS      C compiler flags
822      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
823                  nonstandard directory <lib dir>
824      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
825                  headers in a nonstandard directory <include dir>
826      CPP         C preprocessor
827    
828    Use these variables to override the choices made by `configure' or to help
829    it to find libraries and programs with nonstandard names/locations.
830    
831    EOF
832    fi
833    
834    if test "$ac_init_help" = "recursive"; then
835      # If there are subdirs, report their specific --help.
836      ac_popdir=`pwd`
837      for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
838        cd $ac_subdir
839        # A "../" for each directory in /$ac_subdir.
840        ac_dots=`echo $ac_subdir |
841                 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
842    
843        case $srcdir in
844        .) # No --srcdir option.  We are building in place.
845          ac_sub_srcdir=$srcdir ;;
846        [\\/]* | ?:[\\/]* ) # Absolute path.
847          ac_sub_srcdir=$srcdir/$ac_subdir ;;
848        *) # Relative path.
849          ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
850        esac
851    
852        # Check for guested configure; otherwise get Cygnus style configure.
853        if test -f $ac_sub_srcdir/configure.gnu; then
854          echo
855          $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
856        elif test -f $ac_sub_srcdir/configure; then
857          echo
858          $SHELL $ac_sub_srcdir/configure  --help=recursive
859        elif test -f $ac_sub_srcdir/configure.ac ||
860               test -f $ac_sub_srcdir/configure.in; then
861          echo
862          $ac_configure --help
863        else
864          echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
865        fi
866        cd $ac_popdir
867      done
868    fi
869    
870    test -n "$ac_init_help" && exit 0
871    if $ac_init_version; then
872      cat <<\EOF
873    
874    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
875    Free Software Foundation, Inc.
876    This configure script is free software; the Free Software Foundation
877    gives unlimited permission to copy, distribute and modify it.
878    EOF
879      exit 0
880    fi
881    exec 5>config.log
882    cat >&5 <<EOF
883    This file contains any messages produced by compilers while
884    running configure, to aid debugging if configure makes a mistake.
885    
886    It was created by $as_me, which was
887    generated by GNU Autoconf 2.50.  Invocation command line was
888    
889      $ $0 $@
890    
891    EOF
892    {
893    cat <<_ASUNAME
894    ## ---------- ##
895    ## Platform.  ##
896    ## ---------- ##
897    
898    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
899    uname -m = `(uname -m) 2>/dev/null || echo unknown`
900    uname -r = `(uname -r) 2>/dev/null || echo unknown`
901    uname -s = `(uname -s) 2>/dev/null || echo unknown`
902    uname -v = `(uname -v) 2>/dev/null || echo unknown`
903    
904    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
905    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
906    
907    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
908    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
909    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
910    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
911    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
912    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
913    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
914    
915    PATH = $PATH
916    
917    _ASUNAME
918    } >&5
919    
920    cat >&5 <<EOF
921    ## ------------ ##
922    ## Core tests.  ##
923    ## ------------ ##
924    
925    EOF
926    
927    # Keep a trace of the command line.
928    # Strip out --no-create and --no-recursion so they do not pile up.
929    # Also quote any args containing shell meta-characters.
930    ac_configure_args=
931    ac_sep=
932    for ac_arg
933    do
934      case $ac_arg in
935      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936      | --no-cr | --no-c) ;;
937      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
939      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
940        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
941        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
942        ac_sep=" " ;;
943      *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
944         ac_sep=" " ;;
945      esac
946      # Get rid of the leading space.
947    done
948    
949    # When interrupted or exit'd, cleanup temporary files, and complete
950    # config.log.  We remove comments because anyway the quotes in there
951    # would cause problems or look ugly.
952    trap 'exit_status=$?
953      # Save into config.log some information that might help in debugging.
954      echo >&5
955      echo "## ----------------- ##" >&5
956      echo "## Cache variables.  ##" >&5
957      echo "## ----------------- ##" >&5
958      echo >&5
959      # The following way of writing the cache mishandles newlines in values,
960    {
961      (set) 2>&1 |
962        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
963        *ac_space=\ *)
964          sed -n \
965            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
966              s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
967          ;;
968        *)
969          sed -n \
970            "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
971          ;;
972        esac;
973    } >&5
974      sed "/^$/d" confdefs.h >conftest.log
975      if test -s conftest.log; then
976        echo >&5
977        echo "## ------------ ##" >&5
978        echo "## confdefs.h.  ##" >&5
979        echo "## ------------ ##" >&5
980        echo >&5
981        cat conftest.log >&5
982      fi
983      (echo; echo) >&5
984      test "$ac_signal" != 0 &&
985        echo "$as_me: caught signal $ac_signal" >&5
986      echo "$as_me: exit $exit_status" >&5
987      rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
988        exit $exit_status
989         ' 0
990    for ac_signal in 1 2 13 15; do
991      trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
992    done
993    ac_signal=0
994    
995    # confdefs.h avoids OS command line length limits that DEFS can exceed.
996    rm -rf conftest* confdefs.h
997    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
998    echo >confdefs.h
999    
1000    # Let the site file select an alternate cache file if it wants to.
1001  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1002  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1003    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 468  if test -z "$CONFIG_SITE"; then Line 1008  if test -z "$CONFIG_SITE"; then
1008  fi  fi
1009  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1010    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1011      echo "loading site script $ac_site_file"      { echo "$as_me:1012: loading site script $ac_site_file" >&5
1012    echo "$as_me: loading site script $ac_site_file" >&6;}
1013        cat "$ac_site_file" >&5
1014      . "$ac_site_file"      . "$ac_site_file"
1015    fi    fi
1016  done  done
1017    
1018  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1019    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1020    . $cache_file    # files actually), so we avoid doing that.
1021      if test -f "$cache_file"; then
1022        { echo "$as_me:1023: loading cache $cache_file" >&5
1023    echo "$as_me: loading cache $cache_file" >&6;}
1024        case $cache_file in
1025          [\\/]* | ?:[\\/]* ) . $cache_file;;
1026          *)                      . ./$cache_file;;
1027        esac
1028      fi
1029  else  else
1030    echo "creating cache $cache_file"    { echo "$as_me:1031: creating cache $cache_file" >&5
1031    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1032      >$cache_file
1033    fi
1034    
1035    # Check that the precious variables saved in the cache have kept the same
1036    # value.
1037    ac_suggest_removing_cache=false
1038    for ac_var in `(set) 2>&1 |
1039                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1040      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1041      eval ac_new_set=\$ac_env_${ac_var}_set
1042      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1043      eval ac_new_val="\$ac_env_${ac_var}_value"
1044      case $ac_old_set,$ac_new_set in
1045        set,)
1046          { echo "$as_me:1047: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1047    echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1048          ac_suggest_removing_cache=: ;;
1049        ,set)
1050          { echo "$as_me:1051: WARNING: \`$ac_var' was not set in the previous run" >&5
1051    echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1052          ac_suggest_removing_cache=: ;;
1053        ,);;
1054        *)
1055          if test "x$ac_old_val" != "x$ac_new_val"; then
1056            { echo "$as_me:1057: WARNING: \`$ac_var' has changed since the previous run:" >&5
1057    echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1058            { echo "$as_me:1059: WARNING:   former value:  $ac_old_val" >&5
1059    echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1060            { echo "$as_me:1061: WARNING:   current value: $ac_new_val" >&5
1061    echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1062            ac_suggest_removing_cache=:
1063          fi;;
1064      esac
1065    done
1066    if $ac_suggest_removing_cache; then
1067      { echo "$as_me:1068: WARNING: changes in the environment can compromise the build" >&5
1068    echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1069      { echo "$as_me:1070: WARNING: consider removing $cache_file and starting over" >&5
1070    echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1071  fi  fi
1072    
1073  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1074  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1075  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1076  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'
1077  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1078    
1079    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1080      *c*,-n*) ECHO_N= ECHO_C='
1081    ' ECHO_T='      ' ;;
1082      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1083      *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1084    esac
1085    echo "#! $SHELL" >conftest.sh
1086    echo  "exit 0"   >>conftest.sh
1087    chmod +x conftest.sh
1088    if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1089      (PATH=".;."; conftest.sh) 2>&5
1090      ac_status=$?
1091      echo "$as_me:1092: \$? = $ac_status" >&5
1092      (exit $ac_status); }; then
1093      ac_path_separator=';'
1094    else
1095      ac_path_separator=:
1096    fi
1097    PATH_SEPARATOR="$ac_path_separator"
1098    rm -f conftest.sh
1099    
1100    ac_config_headers="$ac_config_headers config.h:config.in"
1101    
1102    PCRE_MAJOR=3
1103    PCRE_MINOR=5
1104    PCRE_DATE=15-Aug-2001
1105    PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1106    
1107  ac_exeext=  PCRE_LIB_VERSION=0:1:0
1108  ac_objext=o  PCRE_POSIXLIB_VERSION=0:0:0
1109  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
1110    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  ac_ext=c
1111    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  ac_cpp='$CPP $CPPFLAGS'
1112      ac_n= ac_c='  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1113  ' ac_t='        '  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1114    else  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1115      ac_n=-n ac_c= ac_t=  if test -n "$ac_tool_prefix"; then
1116    fi    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1117    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1118    echo "$as_me:1119: checking for $ac_word" >&5
1119    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1120    if test "${ac_cv_prog_CC+set}" = set; then
1121      echo $ECHO_N "(cached) $ECHO_C" >&6
1122    else
1123      if test -n "$CC"; then
1124      ac_cv_prog_CC="$CC" # Let the user override the test.
1125    else
1126      ac_save_IFS=$IFS; IFS=$ac_path_separator
1127    ac_dummy="$PATH"
1128    for ac_dir in $ac_dummy; do
1129      IFS=$ac_save_IFS
1130      test -z "$ac_dir" && ac_dir=.
1131      $as_executable_p "$ac_dir/$ac_word" || continue
1132    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1133    echo "$as_me:1134: found $ac_dir/$ac_word" >&5
1134    break
1135    done
1136    
1137    fi
1138    fi
1139    CC=$ac_cv_prog_CC
1140    if test -n "$CC"; then
1141      echo "$as_me:1142: result: $CC" >&5
1142    echo "${ECHO_T}$CC" >&6
1143  else  else
1144    ac_n= ac_c='\c' ac_t=    echo "$as_me:1145: result: no" >&5
1145    echo "${ECHO_T}no" >&6
1146  fi  fi
1147    
1148    fi
1149    if test -z "$ac_cv_prog_CC"; then
1150      ac_ct_CC=$CC
1151      # Extract the first word of "gcc", so it can be a program name with args.
1152    set dummy gcc; ac_word=$2
1153    echo "$as_me:1154: checking for $ac_word" >&5
1154    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1155    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1156      echo $ECHO_N "(cached) $ECHO_C" >&6
1157    else
1158      if test -n "$ac_ct_CC"; then
1159      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1160    else
1161      ac_save_IFS=$IFS; IFS=$ac_path_separator
1162    ac_dummy="$PATH"
1163    for ac_dir in $ac_dummy; do
1164      IFS=$ac_save_IFS
1165      test -z "$ac_dir" && ac_dir=.
1166      $as_executable_p "$ac_dir/$ac_word" || continue
1167    ac_cv_prog_ac_ct_CC="gcc"
1168    echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1169    break
1170    done
1171    
1172    fi
1173    fi
1174    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1175    if test -n "$ac_ct_CC"; then
1176      echo "$as_me:1177: result: $ac_ct_CC" >&5
1177    echo "${ECHO_T}$ac_ct_CC" >&6
1178    else
1179      echo "$as_me:1180: result: no" >&5
1180    echo "${ECHO_T}no" >&6
1181    fi
1182    
1183      CC=$ac_ct_CC
1184    else
1185      CC="$ac_cv_prog_CC"
1186    fi
1187    
1188  # Extract the first word of "gcc", so it can be a program name with args.  if test -z "$CC"; then
1189  set dummy gcc; ac_word=$2    if test -n "$ac_tool_prefix"; then
1190  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1191  echo "configure:531: checking for $ac_word" >&5  set dummy ${ac_tool_prefix}cc; ac_word=$2
1192  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:1193: checking for $ac_word" >&5
1193    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194    if test "${ac_cv_prog_CC+set}" = set; then
1195      echo $ECHO_N "(cached) $ECHO_C" >&6
1196  else  else
1197    if test -n "$CC"; then    if test -n "$CC"; then
1198    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1199  else  else
1200    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1201    ac_dummy="$PATH"  ac_dummy="$PATH"
1202    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1203      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1204      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1205        ac_cv_prog_CC="gcc"    $as_executable_p "$ac_dir/$ac_word" || continue
1206        break  ac_cv_prog_CC="${ac_tool_prefix}cc"
1207      fi  echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1208    done  break
1209    IFS="$ac_save_ifs"  done
1210    
1211  fi  fi
1212  fi  fi
1213  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1214  if test -n "$CC"; then  if test -n "$CC"; then
1215    echo "$ac_t""$CC" 1>&6    echo "$as_me:1216: result: $CC" >&5
1216    echo "${ECHO_T}$CC" >&6
1217  else  else
1218    echo "$ac_t""no" 1>&6    echo "$as_me:1219: result: no" >&5
1219    echo "${ECHO_T}no" >&6
1220  fi  fi
1221    
1222    fi
1223    if test -z "$ac_cv_prog_CC"; then
1224      ac_ct_CC=$CC
1225      # Extract the first word of "cc", so it can be a program name with args.
1226    set dummy cc; ac_word=$2
1227    echo "$as_me:1228: checking for $ac_word" >&5
1228    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1229    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1230      echo $ECHO_N "(cached) $ECHO_C" >&6
1231    else
1232      if test -n "$ac_ct_CC"; then
1233      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1234    else
1235      ac_save_IFS=$IFS; IFS=$ac_path_separator
1236    ac_dummy="$PATH"
1237    for ac_dir in $ac_dummy; do
1238      IFS=$ac_save_IFS
1239      test -z "$ac_dir" && ac_dir=.
1240      $as_executable_p "$ac_dir/$ac_word" || continue
1241    ac_cv_prog_ac_ct_CC="cc"
1242    echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1243    break
1244    done
1245    
1246    fi
1247    fi
1248    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1249    if test -n "$ac_ct_CC"; then
1250      echo "$as_me:1251: result: $ac_ct_CC" >&5
1251    echo "${ECHO_T}$ac_ct_CC" >&6
1252    else
1253      echo "$as_me:1254: result: no" >&5
1254    echo "${ECHO_T}no" >&6
1255    fi
1256    
1257      CC=$ac_ct_CC
1258    else
1259      CC="$ac_cv_prog_CC"
1260    fi
1261    
1262    fi
1263  if test -z "$CC"; then  if test -z "$CC"; then
1264    # 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.
1265  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1266  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1267: checking for $ac_word" >&5
1267  echo "configure:561: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1269    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1270  else  else
1271    if test -n "$CC"; then    if test -n "$CC"; then
1272    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1273  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1274    ac_prog_rejected=no    ac_prog_rejected=no
1275    ac_dummy="$PATH"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1276    for ac_dir in $ac_dummy; do  ac_dummy="$PATH"
1277      test -z "$ac_dir" && ac_dir=.  for ac_dir in $ac_dummy; do
1278      if test -f $ac_dir/$ac_word; then    IFS=$ac_save_IFS
1279        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$ac_dir" && ac_dir=.
1280          ac_prog_rejected=yes    $as_executable_p "$ac_dir/$ac_word" || continue
1281          continue  if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1282        fi    ac_prog_rejected=yes
1283        ac_cv_prog_CC="cc"    continue
1284        break  fi
1285      fi  ac_cv_prog_CC="cc"
1286    done  echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1287    IFS="$ac_save_ifs"  break
1288    done
1289    
1290  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1291    # 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.
1292    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1293    shift    shift
1294    if test $# -gt 0; then    if test $# != 0; then
1295      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1296      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1297      # 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.
1298      shift      shift
1299      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$ac_dir/$ac_word" ${1+"$@"}
1300      shift      shift
1301      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1302    fi    fi
1303  fi  fi
1304  fi  fi
1305  fi  fi
1306  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1307  if test -n "$CC"; then  if test -n "$CC"; then
1308    echo "$ac_t""$CC" 1>&6    echo "$as_me:1309: result: $CC" >&5
1309    echo "${ECHO_T}$CC" >&6
1310  else  else
1311    echo "$ac_t""no" 1>&6    echo "$as_me:1312: result: no" >&5
1312    echo "${ECHO_T}no" >&6
1313  fi  fi
1314    
1315    if test -z "$CC"; then  fi
1316      case "`uname -s`" in  if test -z "$CC"; then
1317      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1318        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1319  set dummy cl; ac_word=$2    do
1320  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.
1321  echo "configure:612: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1322  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:1323: checking for $ac_word" >&5
1323    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324    if test "${ac_cv_prog_CC+set}" = set; then
1325      echo $ECHO_N "(cached) $ECHO_C" >&6
1326  else  else
1327    if test -n "$CC"; then    if test -n "$CC"; then
1328    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1329  else  else
1330    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1331    ac_dummy="$PATH"  ac_dummy="$PATH"
1332    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1333      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1334      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1335        ac_cv_prog_CC="cl"    $as_executable_p "$ac_dir/$ac_word" || continue
1336        break  ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1337      fi  echo "$as_me:1338: found $ac_dir/$ac_word" >&5
1338    done  break
1339    IFS="$ac_save_ifs"  done
1340  fi  
1341  fi  fi
1342  CC="$ac_cv_prog_CC"  fi
1343    CC=$ac_cv_prog_CC
1344  if test -n "$CC"; then  if test -n "$CC"; then
1345    echo "$ac_t""$CC" 1>&6    echo "$as_me:1346: result: $CC" >&5
1346    echo "${ECHO_T}$CC" >&6
1347  else  else
1348    echo "$ac_t""no" 1>&6    echo "$as_me:1349: result: no" >&5
1349    echo "${ECHO_T}no" >&6
1350  fi  fi
1351   ;;  
1352      esac      test -n "$CC" && break
1353    fi    done
   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  
1354  fi  fi
1355    if test -z "$CC"; then
1356      ac_ct_CC=$CC
1357      for ac_prog in cl
1358    do
1359      # Extract the first word of "$ac_prog", so it can be a program name with args.
1360    set dummy $ac_prog; ac_word=$2
1361    echo "$as_me:1362: checking for $ac_word" >&5
1362    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1364      echo $ECHO_N "(cached) $ECHO_C" >&6
1365    else
1366      if test -n "$ac_ct_CC"; then
1367      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1368    else
1369      ac_save_IFS=$IFS; IFS=$ac_path_separator
1370    ac_dummy="$PATH"
1371    for ac_dir in $ac_dummy; do
1372      IFS=$ac_save_IFS
1373      test -z "$ac_dir" && ac_dir=.
1374      $as_executable_p "$ac_dir/$ac_word" || continue
1375    ac_cv_prog_ac_ct_CC="$ac_prog"
1376    echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1377    break
1378    done
1379    
1380  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  fi
1381  echo "configure:644: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  fi
1382    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1383    if test -n "$ac_ct_CC"; then
1384      echo "$as_me:1385: result: $ac_ct_CC" >&5
1385    echo "${ECHO_T}$ac_ct_CC" >&6
1386    else
1387      echo "$as_me:1388: result: no" >&5
1388    echo "${ECHO_T}no" >&6
1389    fi
1390    
1391  ac_ext=c    test -n "$ac_ct_CC" && break
1392  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  done
1393  ac_cpp='$CPP $CPPFLAGS'  
1394  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'    CC=$ac_ct_CC
1395  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  fi
1396  cross_compiling=$ac_cv_prog_cc_cross  
1397    fi
1398    
1399  cat > conftest.$ac_ext << EOF  test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5
1400    echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1401       { (exit 1); exit 1; }; }
1402    
1403  #line 655 "configure"  cat >conftest.$ac_ext <<_ACEOF
1404    #line 1405 "configure"
1405  #include "confdefs.h"  #include "confdefs.h"
1406    
1407  main(){return(0);}  int
1408  EOF  main ()
1409  if { (eval echo configure:660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
1410    ac_cv_prog_cc_works=yes  
1411    # If we can't run a trivial program, we are probably using a cross compiler.    ;
1412    if (./conftest; exit) 2>/dev/null; then    return 0;
1413      ac_cv_prog_cc_cross=no  }
1414    _ACEOF
1415    ac_clean_files_save=$ac_clean_files
1416    ac_clean_files="$ac_clean_files a.out a.exe"
1417    # Try to create an executable without -o first, disregard a.out.
1418    # It will help us diagnose broken compiler, and finding out an intuition
1419    # of exeext.
1420    echo "$as_me:1421: checking for C compiler default output" >&5
1421    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1422    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1423    if { (eval echo "$as_me:1424: \"$ac_link_default\"") >&5
1424      (eval $ac_link_default) 2>&5
1425      ac_status=$?
1426      echo "$as_me:1427: \$? = $ac_status" >&5
1427      (exit $ac_status); }; then
1428      for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1429      case $ac_file in
1430        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1431        a.out ) # We found the default executable, but exeext='' is most
1432                # certainly right.
1433                break;;
1434        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1435              export ac_cv_exeext
1436              break;;
1437        * ) break;;
1438      esac
1439    done
1440    else
1441      echo "$as_me: failed program was:" >&5
1442    cat conftest.$ac_ext >&5
1443    { { echo "$as_me:1444: error: C compiler cannot create executables" >&5
1444    echo "$as_me: error: C compiler cannot create executables" >&2;}
1445       { (exit 77); exit 77; }; }
1446    fi
1447    
1448    ac_exeext=$ac_cv_exeext
1449    echo "$as_me:1450: result: $ac_file" >&5
1450    echo "${ECHO_T}$ac_file" >&6
1451    
1452    # Check the compiler produces executables we can run.  If not, either
1453    # the compiler is broken, or we cross compile.
1454    echo "$as_me:1455: checking whether the C compiler works" >&5
1455    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1456    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1457    # If not cross compiling, check that we can run a simple program.
1458    if test "$cross_compiling" != yes; then
1459      if { ac_try='./$ac_file'
1460      { (eval echo "$as_me:1461: \"$ac_try\"") >&5
1461      (eval $ac_try) 2>&5
1462      ac_status=$?
1463      echo "$as_me:1464: \$? = $ac_status" >&5
1464      (exit $ac_status); }; }; then
1465        cross_compiling=no
1466    else    else
1467      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
1468            cross_compiling=yes
1469        else
1470            { { echo "$as_me:1471: error: cannot run C compiled programs.
1471    If you meant to cross compile, use \`--host'." >&5
1472    echo "$as_me: error: cannot run C compiled programs.
1473    If you meant to cross compile, use \`--host'." >&2;}
1474       { (exit 1); exit 1; }; }
1475        fi
1476    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; }  
1477  fi  fi
1478  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
1479  echo "configure:686: 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  
1480    
1481  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
1482  echo "configure:691: checking whether we are using GNU C" >&5  ac_clean_files=$ac_clean_files_save
1483  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  # Check the compiler produces executables we can run.  If not, either
1484    echo $ac_n "(cached) $ac_c" 1>&6  # the compiler is broken, or we cross compile.
1485    echo "$as_me:1486: checking whether we are cross compiling" >&5
1486    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1487    echo "$as_me:1488: result: $cross_compiling" >&5
1488    echo "${ECHO_T}$cross_compiling" >&6
1489    
1490    echo "$as_me:1491: checking for executable suffix" >&5
1491    echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1492    if { (eval echo "$as_me:1493: \"$ac_link\"") >&5
1493      (eval $ac_link) 2>&5
1494      ac_status=$?
1495      echo "$as_me:1496: \$? = $ac_status" >&5
1496      (exit $ac_status); }; then
1497      # If both `conftest.exe' and `conftest' are `present' (well, observable)
1498    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1499    # work properly (i.e., refer to `conftest.exe'), while it won't with
1500    # `rm'.
1501    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1502      case $ac_file in
1503        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1504        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1505              export ac_cv_exeext
1506              break;;
1507        * ) break;;
1508      esac
1509    done
1510  else  else
1511    cat > conftest.c <<EOF    { { echo "$as_me:1512: error: cannot compute EXEEXT: cannot compile and link" >&5
1512  #ifdef __GNUC__  echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1513    yes;     { (exit 1); exit 1; }; }
1514  #endif  fi
1515  EOF  
1516  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  rm -f conftest$ac_cv_exeext
1517    ac_cv_prog_gcc=yes  echo "$as_me:1518: result: $ac_cv_exeext" >&5
1518    echo "${ECHO_T}$ac_cv_exeext" >&6
1519    
1520    rm -f conftest.$ac_ext
1521    EXEEXT=$ac_cv_exeext
1522    ac_exeext=$EXEEXT
1523    echo "$as_me:1524: checking for object suffix" >&5
1524    echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1525    if test "${ac_cv_objext+set}" = set; then
1526      echo $ECHO_N "(cached) $ECHO_C" >&6
1527  else  else
1528    ac_cv_prog_gcc=no    cat >conftest.$ac_ext <<_ACEOF
1529  fi  #line 1530 "configure"
1530  fi  #include "confdefs.h"
1531    
1532  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  int
1533    main ()
1534    {
1535    
1536  if test $ac_cv_prog_gcc = yes; then    ;
1537    GCC=yes    return 0;
1538    }
1539    _ACEOF
1540    rm -f conftest.o conftest.obj
1541    if { (eval echo "$as_me:1542: \"$ac_compile\"") >&5
1542      (eval $ac_compile) 2>&5
1543      ac_status=$?
1544      echo "$as_me:1545: \$? = $ac_status" >&5
1545      (exit $ac_status); }; then
1546      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1547      case $ac_file in
1548        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1549        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1550           break;;
1551      esac
1552    done
1553  else  else
1554    GCC=    echo "$as_me: failed program was:" >&5
1555  fi  cat conftest.$ac_ext >&5
1556    { { echo "$as_me:1557: error: cannot compute OBJEXT: cannot compile" >&5
1557    echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1558       { (exit 1); exit 1; }; }
1559    fi
1560    
1561    rm -f conftest.$ac_cv_objext conftest.$ac_ext
1562    fi
1563    echo "$as_me:1564: result: $ac_cv_objext" >&5
1564    echo "${ECHO_T}$ac_cv_objext" >&6
1565    OBJEXT=$ac_cv_objext
1566    ac_objext=$OBJEXT
1567    echo "$as_me:1568: checking whether we are using the GNU C compiler" >&5
1568    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1569    if test "${ac_cv_c_compiler_gnu+set}" = set; then
1570      echo $ECHO_N "(cached) $ECHO_C" >&6
1571    else
1572      cat >conftest.$ac_ext <<_ACEOF
1573    #line 1574 "configure"
1574    #include "confdefs.h"
1575    
1576    int
1577    main ()
1578    {
1579    #ifndef __GNUC__
1580           choke me
1581    #endif
1582    
1583  ac_test_CFLAGS="${CFLAGS+set}"    ;
1584  ac_save_CFLAGS="$CFLAGS"    return 0;
1585  CFLAGS=  }
1586  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
1587  echo "configure:719: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.$ac_objext
1588  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:1589: \"$ac_compile\"") >&5
1589    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
1590      ac_status=$?
1591      echo "$as_me:1592: \$? = $ac_status" >&5
1592      (exit $ac_status); } &&
1593             { ac_try='test -s conftest.$ac_objext'
1594      { (eval echo "$as_me:1595: \"$ac_try\"") >&5
1595      (eval $ac_try) 2>&5
1596      ac_status=$?
1597      echo "$as_me:1598: \$? = $ac_status" >&5
1598      (exit $ac_status); }; }; then
1599      ac_compiler_gnu=yes
1600    else
1601      echo "$as_me: failed program was:" >&5
1602    cat conftest.$ac_ext >&5
1603    ac_compiler_gnu=no
1604    fi
1605    rm -f conftest.$ac_objext conftest.$ac_ext
1606    ac_cv_c_compiler_gnu=$ac_compiler_gnu
1607    
1608    fi
1609    echo "$as_me:1610: result: $ac_cv_c_compiler_gnu" >&5
1610    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1611    GCC=`test $ac_compiler_gnu = yes && echo yes`
1612    ac_test_CFLAGS=${CFLAGS+set}
1613    ac_save_CFLAGS=$CFLAGS
1614    CFLAGS="-g"
1615    echo "$as_me:1616: checking whether $CC accepts -g" >&5
1616    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1617    if test "${ac_cv_prog_cc_g+set}" = set; then
1618      echo $ECHO_N "(cached) $ECHO_C" >&6
1619  else  else
1620    echo 'void f(){}' > conftest.c    cat >conftest.$ac_ext <<_ACEOF
1621  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  #line 1622 "configure"
1622    #include "confdefs.h"
1623    
1624    int
1625    main ()
1626    {
1627    
1628      ;
1629      return 0;
1630    }
1631    _ACEOF
1632    rm -f conftest.$ac_objext
1633    if { (eval echo "$as_me:1634: \"$ac_compile\"") >&5
1634      (eval $ac_compile) 2>&5
1635      ac_status=$?
1636      echo "$as_me:1637: \$? = $ac_status" >&5
1637      (exit $ac_status); } &&
1638             { ac_try='test -s conftest.$ac_objext'
1639      { (eval echo "$as_me:1640: \"$ac_try\"") >&5
1640      (eval $ac_try) 2>&5
1641      ac_status=$?
1642      echo "$as_me:1643: \$? = $ac_status" >&5
1643      (exit $ac_status); }; }; then
1644    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
1645  else  else
1646    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
1647    cat conftest.$ac_ext >&5
1648    ac_cv_prog_cc_g=no
1649  fi  fi
1650  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
1651  fi  fi
1652    echo "$as_me:1653: result: $ac_cv_prog_cc_g" >&5
1653  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1654  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1655    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
1656  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1657    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1658      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 725  else Line 1666  else
1666      CFLAGS=      CFLAGS=
1667    fi    fi
1668  fi  fi
1669    # Some people use a C++ compiler to compile C.  Since we use `exit',
1670    # in C++ we need to declare it.  In case someone uses the same compiler
1671    # for both compiling C and C++ we need to have the C++ compiler decide
1672    # the declaration of exit, since it's the most demanding environment.
1673    cat >conftest.$ac_ext <<_ACEOF
1674    #ifndef __cplusplus
1675      choke me
1676    #endif
1677    _ACEOF
1678    rm -f conftest.$ac_objext
1679    if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1680      (eval $ac_compile) 2>&5
1681      ac_status=$?
1682      echo "$as_me:1683: \$? = $ac_status" >&5
1683      (exit $ac_status); } &&
1684             { ac_try='test -s conftest.$ac_objext'
1685      { (eval echo "$as_me:1686: \"$ac_try\"") >&5
1686      (eval $ac_try) 2>&5
1687      ac_status=$?
1688      echo "$as_me:1689: \$? = $ac_status" >&5
1689      (exit $ac_status); }; }; then
1690      for ac_declaration in \
1691       ''\
1692       '#include <stdlib.h>' \
1693       'extern "C" void std::exit (int) throw (); using std::exit;' \
1694       'extern "C" void std::exit (int); using std::exit;' \
1695       'extern "C" void exit (int) throw ();' \
1696       'extern "C" void exit (int);' \
1697       'void exit (int);'
1698    do
1699      cat >conftest.$ac_ext <<_ACEOF
1700    #line 1701 "configure"
1701    #include "confdefs.h"
1702    #include <stdlib.h>
1703    $ac_declaration
1704    int
1705    main ()
1706    {
1707    exit (42);
1708      ;
1709      return 0;
1710    }
1711    _ACEOF
1712    rm -f conftest.$ac_objext
1713    if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1714      (eval $ac_compile) 2>&5
1715      ac_status=$?
1716      echo "$as_me:1717: \$? = $ac_status" >&5
1717      (exit $ac_status); } &&
1718             { ac_try='test -s conftest.$ac_objext'
1719      { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1720      (eval $ac_try) 2>&5
1721      ac_status=$?
1722      echo "$as_me:1723: \$? = $ac_status" >&5
1723      (exit $ac_status); }; }; then
1724      :
1725    else
1726      echo "$as_me: failed program was:" >&5
1727    cat conftest.$ac_ext >&5
1728    continue
1729    fi
1730    rm -f conftest.$ac_objext conftest.$ac_ext
1731      cat >conftest.$ac_ext <<_ACEOF
1732    #line 1733 "configure"
1733    #include "confdefs.h"
1734    $ac_declaration
1735    int
1736    main ()
1737    {
1738    exit (42);
1739      ;
1740      return 0;
1741    }
1742    _ACEOF
1743    rm -f conftest.$ac_objext
1744    if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1745      (eval $ac_compile) 2>&5
1746      ac_status=$?
1747      echo "$as_me:1748: \$? = $ac_status" >&5
1748      (exit $ac_status); } &&
1749             { ac_try='test -s conftest.$ac_objext'
1750      { (eval echo "$as_me:1751: \"$ac_try\"") >&5
1751      (eval $ac_try) 2>&5
1752      ac_status=$?
1753      echo "$as_me:1754: \$? = $ac_status" >&5
1754      (exit $ac_status); }; }; then
1755      break
1756    else
1757      echo "$as_me: failed program was:" >&5
1758    cat conftest.$ac_ext >&5
1759    fi
1760    rm -f conftest.$ac_objext conftest.$ac_ext
1761    done
1762    echo '#ifdef __cplusplus' >>confdefs.h
1763    echo $ac_declaration      >>confdefs.h
1764    echo '#endif'             >>confdefs.h
1765    
1766    else
1767      echo "$as_me: failed program was:" >&5
1768    cat conftest.$ac_ext >&5
1769    fi
1770    rm -f conftest.$ac_objext conftest.$ac_ext
1771    ac_ext=c
1772    ac_cpp='$CPP $CPPFLAGS'
1773    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776    
1777    ac_aux_dir=
1778    for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1779      if test -f $ac_dir/install-sh; then
1780        ac_aux_dir=$ac_dir
1781        ac_install_sh="$ac_aux_dir/install-sh -c"
1782        break
1783      elif test -f $ac_dir/install.sh; then
1784        ac_aux_dir=$ac_dir
1785        ac_install_sh="$ac_aux_dir/install.sh -c"
1786        break
1787      elif test -f $ac_dir/shtool; then
1788        ac_aux_dir=$ac_dir
1789        ac_install_sh="$ac_aux_dir/shtool install -c"
1790        break
1791      fi
1792    done
1793    if test -z "$ac_aux_dir"; then
1794      { { echo "$as_me:1795: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1795    echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1796       { (exit 1); exit 1; }; }
1797    fi
1798    ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1799    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1800    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1801    
1802    # Find a good install program.  We prefer a C program (faster),
1803    # so one script is as good as another.  But avoid the broken or
1804    # incompatible versions:
1805    # SysV /etc/install, /usr/sbin/install
1806    # SunOS /usr/etc/install
1807    # IRIX /sbin/install
1808    # AIX /bin/install
1809    # AmigaOS /C/install, which installs bootblocks on floppy discs
1810    # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1811    # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1812    # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1813    # ./install, which can be erroneously created by make from ./install.sh.
1814    echo "$as_me:1815: checking for a BSD compatible install" >&5
1815    echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1816    if test -z "$INSTALL"; then
1817    if test "${ac_cv_path_install+set}" = set; then
1818      echo $ECHO_N "(cached) $ECHO_C" >&6
1819    else
1820        ac_save_IFS=$IFS; IFS=$ac_path_separator
1821      for ac_dir in $PATH; do
1822        IFS=$ac_save_IFS
1823        # Account for people who put trailing slashes in PATH elements.
1824        case $ac_dir/ in
1825        / | ./ | .// | /cC/* \
1826        | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1827        | /usr/ucb/* ) ;;
1828        *)
1829          # OSF1 and SCO ODT 3.0 have their own names for install.
1830          # Don't use installbsd from OSF since it installs stuff as root
1831          # by default.
1832          for ac_prog in ginstall scoinst install; do
1833            if $as_executable_p "$ac_dir/$ac_prog"; then
1834              if test $ac_prog = install &&
1835                grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1836                # AIX install.  It has an incompatible calling convention.
1837                :
1838              elif test $ac_prog = install &&
1839                grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1840                # program-specific install script used by HP pwplus--don't use.
1841                :
1842              else
1843                ac_cv_path_install="$ac_dir/$ac_prog -c"
1844                break 2
1845              fi
1846            fi
1847          done
1848          ;;
1849        esac
1850      done
1851    
1852    fi
1853      if test "${ac_cv_path_install+set}" = set; then
1854        INSTALL=$ac_cv_path_install
1855      else
1856        # As a last resort, use the slow shell script.  We don't cache a
1857        # path for INSTALL within a source directory, because that will
1858        # break other packages using the cache if that directory is
1859        # removed, or if the path is relative.
1860        INSTALL=$ac_install_sh
1861      fi
1862    fi
1863    echo "$as_me:1864: result: $INSTALL" >&5
1864    echo "${ECHO_T}$INSTALL" >&6
1865    
1866  # 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}.
1867  set dummy ranlib; ac_word=$2  # It thinks the first close brace ends the variable substitution.
1868  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1869  echo "configure:753: checking for $ac_word" >&5  
1870  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1871    echo $ac_n "(cached) $ac_c" 1>&6  
1872    test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1873    
1874    if test -n "$ac_tool_prefix"; then
1875      # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1876    set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1877    echo "$as_me:1878: checking for $ac_word" >&5
1878    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879    if test "${ac_cv_prog_RANLIB+set}" = set; then
1880      echo $ECHO_N "(cached) $ECHO_C" >&6
1881  else  else
1882    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
1883    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1884  else  else
1885    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1886    ac_dummy="$PATH"  ac_dummy="$PATH"
1887    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1888      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1889      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1890        ac_cv_prog_RANLIB="ranlib"    $as_executable_p "$ac_dir/$ac_word" || continue
1891        break  ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1892      fi  echo "$as_me:1893: found $ac_dir/$ac_word" >&5
1893    done  break
1894    IFS="$ac_save_ifs"  done
1895    test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"  
1896  fi  fi
1897  fi  fi
1898  RANLIB="$ac_cv_prog_RANLIB"  RANLIB=$ac_cv_prog_RANLIB
1899  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
1900    echo "$ac_t""$RANLIB" 1>&6    echo "$as_me:1901: result: $RANLIB" >&5
1901    echo "${ECHO_T}$RANLIB" >&6
1902    else
1903      echo "$as_me:1904: result: no" >&5
1904    echo "${ECHO_T}no" >&6
1905    fi
1906    
1907    fi
1908    if test -z "$ac_cv_prog_RANLIB"; then
1909      ac_ct_RANLIB=$RANLIB
1910      # Extract the first word of "ranlib", so it can be a program name with args.
1911    set dummy ranlib; ac_word=$2
1912    echo "$as_me:1913: checking for $ac_word" >&5
1913    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914    if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1915      echo $ECHO_N "(cached) $ECHO_C" >&6
1916    else
1917      if test -n "$ac_ct_RANLIB"; then
1918      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1919    else
1920      ac_save_IFS=$IFS; IFS=$ac_path_separator
1921    ac_dummy="$PATH"
1922    for ac_dir in $ac_dummy; do
1923      IFS=$ac_save_IFS
1924      test -z "$ac_dir" && ac_dir=.
1925      $as_executable_p "$ac_dir/$ac_word" || continue
1926    ac_cv_prog_ac_ct_RANLIB="ranlib"
1927    echo "$as_me:1928: found $ac_dir/$ac_word" >&5
1928    break
1929    done
1930    
1931      test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1932    fi
1933    fi
1934    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1935    if test -n "$ac_ct_RANLIB"; then
1936      echo "$as_me:1937: result: $ac_ct_RANLIB" >&5
1937    echo "${ECHO_T}$ac_ct_RANLIB" >&6
1938  else  else
1939    echo "$ac_t""no" 1>&6    echo "$as_me:1940: result: no" >&5
1940    echo "${ECHO_T}no" >&6
1941  fi  fi
1942    
1943      RANLIB=$ac_ct_RANLIB
1944    else
1945      RANLIB="$ac_cv_prog_RANLIB"
1946    fi
1947    
1948  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_ext=c
1949  echo "configure:782: checking how to run the C preprocessor" >&5  ac_cpp='$CPP $CPPFLAGS'
1950    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953    echo "$as_me:1954: checking how to run the C preprocessor" >&5
1954    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1955  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1956  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1957    CPP=    CPP=
1958  fi  fi
1959  if test -z "$CPP"; then  if test -z "$CPP"; then
1960  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
1961    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1962  else  else
1963      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
1964    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1965    CPP="${CC-cc} -E"      do
1966          # break 2 since there is a loop in there.
1967          ac_preproc_ok=false
1968    for ac_c_preproc_warn_flag in '' yes
1969    do
1970      # Use a header file that comes with gcc, so configuring glibc
1971      # with a fresh cross-compiler works.
1972    # 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,
1973    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
1974    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
1975  #line 797 "configure"  #line 1976 "configure"
1976  #include "confdefs.h"  #include "confdefs.h"
1977  #include <assert.h>  #include <assert.h>
1978  Syntax Error                       Syntax error
1979  EOF  _ACEOF
1980  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:1981: \"$ac_cpp conftest.$ac_ext\"") >&5
1981  { (eval echo configure:803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1982  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
1983  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
1984      rm -f conftest.er1
1985      cat conftest.err >&5
1986      echo "$as_me:1987: \$? = $ac_status" >&5
1987      (exit $ac_status); } >/dev/null; then
1988      if test -s conftest.err; then
1989        ac_cpp_err=$ac_c_preproc_warn_flag
1990      else
1991        ac_cpp_err=
1992      fi
1993    else
1994      ac_cpp_err=yes
1995    fi
1996    if test -z "$ac_cpp_err"; then
1997    :    :
1998  else  else
1999    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2000    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2001    rm -rf conftest*    # Broken: fails on valid input.
2002    CPP="${CC-cc} -E -traditional-cpp"  continue
2003    cat > conftest.$ac_ext <<EOF  fi
2004  #line 814 "configure"  rm -f conftest.err conftest.$ac_ext
2005    
2006      # OK, works on sane cases.  Now check whether non-existent headers
2007      # can be detected and how.
2008      cat >conftest.$ac_ext <<_ACEOF
2009    #line 2010 "configure"
2010  #include "confdefs.h"  #include "confdefs.h"
2011  #include <assert.h>  #include <ac_nonexistent.h>
2012  Syntax Error  _ACEOF
2013  EOF  if { (eval echo "$as_me:2014: \"$ac_cpp conftest.$ac_ext\"") >&5
2014  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2015  { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    ac_status=$?
2016  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    egrep -v '^ *\+' conftest.er1 >conftest.err
2017  if test -z "$ac_err"; then    rm -f conftest.er1
2018    :    cat conftest.err >&5
2019      echo "$as_me:2020: \$? = $ac_status" >&5
2020      (exit $ac_status); } >/dev/null; then
2021      if test -s conftest.err; then
2022        ac_cpp_err=$ac_c_preproc_warn_flag
2023      else
2024        ac_cpp_err=
2025      fi
2026    else
2027      ac_cpp_err=yes
2028    fi
2029    if test -z "$ac_cpp_err"; then
2030      # Broken: success on invalid input.
2031    continue
2032  else  else
2033    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2034    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2035    rm -rf conftest*    # Passes both tests.
2036    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2037    cat > conftest.$ac_ext <<EOF  break
2038  #line 831 "configure"  fi
2039    rm -f conftest.err conftest.$ac_ext
2040    
2041    done
2042    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2043    rm -f conftest.err conftest.$ac_ext
2044    if $ac_preproc_ok; then
2045      break 2
2046    fi
2047    
2048        done
2049        ac_cv_prog_CPP=$CPP
2050    
2051    fi
2052      CPP=$ac_cv_prog_CPP
2053    else
2054      ac_cv_prog_CPP=$CPP
2055    fi
2056    echo "$as_me:2057: result: $CPP" >&5
2057    echo "${ECHO_T}$CPP" >&6
2058    ac_preproc_ok=false
2059    for ac_c_preproc_warn_flag in '' yes
2060    do
2061      # Use a header file that comes with gcc, so configuring glibc
2062      # with a fresh cross-compiler works.
2063      # On the NeXT, cc -E runs the code through the compiler's parser,
2064      # not just through cpp. "Syntax error" is here to catch this case.
2065      cat >conftest.$ac_ext <<_ACEOF
2066    #line 2067 "configure"
2067  #include "confdefs.h"  #include "confdefs.h"
2068  #include <assert.h>  #include <assert.h>
2069  Syntax Error                       Syntax error
2070  EOF  _ACEOF
2071  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2072: \"$ac_cpp conftest.$ac_ext\"") >&5
2072  { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2073  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2074  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2075      rm -f conftest.er1
2076      cat conftest.err >&5
2077      echo "$as_me:2078: \$? = $ac_status" >&5
2078      (exit $ac_status); } >/dev/null; then
2079      if test -s conftest.err; then
2080        ac_cpp_err=$ac_c_preproc_warn_flag
2081      else
2082        ac_cpp_err=
2083      fi
2084    else
2085      ac_cpp_err=yes
2086    fi
2087    if test -z "$ac_cpp_err"; then
2088    :    :
2089  else  else
2090    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2091    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2092    rm -rf conftest*    # Broken: fails on valid input.
2093    CPP=/lib/cpp  continue
2094  fi  fi
2095  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2096  fi  
2097  rm -f conftest*    # OK, works on sane cases.  Now check whether non-existent headers
2098      # can be detected and how.
2099      cat >conftest.$ac_ext <<_ACEOF
2100    #line 2101 "configure"
2101    #include "confdefs.h"
2102    #include <ac_nonexistent.h>
2103    _ACEOF
2104    if { (eval echo "$as_me:2105: \"$ac_cpp conftest.$ac_ext\"") >&5
2105      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2106      ac_status=$?
2107      egrep -v '^ *\+' conftest.er1 >conftest.err
2108      rm -f conftest.er1
2109      cat conftest.err >&5
2110      echo "$as_me:2111: \$? = $ac_status" >&5
2111      (exit $ac_status); } >/dev/null; then
2112      if test -s conftest.err; then
2113        ac_cpp_err=$ac_c_preproc_warn_flag
2114      else
2115        ac_cpp_err=
2116      fi
2117    else
2118      ac_cpp_err=yes
2119  fi  fi
2120  rm -f conftest*  if test -z "$ac_cpp_err"; then
2121    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2122    continue
2123    else
2124      echo "$as_me: failed program was:" >&5
2125      cat conftest.$ac_ext >&5
2126      # Passes both tests.
2127    ac_preproc_ok=:
2128    break
2129  fi  fi
2130    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2131    
2132    done
2133    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2134    rm -f conftest.err conftest.$ac_ext
2135    if $ac_preproc_ok; then
2136      :
2137  else  else
2138    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:2139: error: C preprocessor \"$CPP\" fails sanity check" >&5
2139    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2140       { (exit 1); exit 1; }; }
2141  fi  fi
 echo "$ac_t""$CPP" 1>&6  
2142    
2143  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  ac_ext=c
2144  echo "configure:862: checking for ANSI C header files" >&5  ac_cpp='$CPP $CPPFLAGS'
2145  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146    echo $ac_n "(cached) $ac_c" 1>&6  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148    
2149    echo "$as_me:2150: checking for ANSI C header files" >&5
2150    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2151    if test "${ac_cv_header_stdc+set}" = set; then
2152      echo $ECHO_N "(cached) $ECHO_C" >&6
2153  else  else
2154    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2155  #line 867 "configure"  #line 2156 "configure"
2156  #include "confdefs.h"  #include "confdefs.h"
2157  #include <stdlib.h>  #include <stdlib.h>
2158  #include <stdarg.h>  #include <stdarg.h>
2159  #include <string.h>  #include <string.h>
2160  #include <float.h>  #include <float.h>
2161  EOF  
2162  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  _ACEOF
2163  { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2164  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2165  if test -z "$ac_err"; then    ac_status=$?
2166    rm -rf conftest*    egrep -v '^ *\+' conftest.er1 >conftest.err
2167      rm -f conftest.er1
2168      cat conftest.err >&5
2169      echo "$as_me:2170: \$? = $ac_status" >&5
2170      (exit $ac_status); } >/dev/null; then
2171      if test -s conftest.err; then
2172        ac_cpp_err=$ac_c_preproc_warn_flag
2173      else
2174        ac_cpp_err=
2175      fi
2176    else
2177      ac_cpp_err=yes
2178    fi
2179    if test -z "$ac_cpp_err"; then
2180    ac_cv_header_stdc=yes    ac_cv_header_stdc=yes
2181  else  else
2182    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2183    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
   rm -rf conftest*  
2184    ac_cv_header_stdc=no    ac_cv_header_stdc=no
2185  fi  fi
2186  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2187    
2188  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2189    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2190  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2191  #line 892 "configure"  #line 2192 "configure"
2192  #include "confdefs.h"  #include "confdefs.h"
2193  #include <string.h>  #include <string.h>
2194  EOF  
2195    _ACEOF
2196  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197    egrep "memchr" >/dev/null 2>&1; then    egrep "memchr" >/dev/null 2>&1; then
2198    :    :
2199  else  else
   rm -rf conftest*  
2200    ac_cv_header_stdc=no    ac_cv_header_stdc=no
2201  fi  fi
2202  rm -f conftest*  rm -f conftest*
# Line 885  fi Line 2205  fi
2205    
2206  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2207    # 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.
2208  cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2209  #line 910 "configure"  #line 2210 "configure"
2210  #include "confdefs.h"  #include "confdefs.h"
2211  #include <stdlib.h>  #include <stdlib.h>
2212  EOF  
2213    _ACEOF
2214  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215    egrep "free" >/dev/null 2>&1; then    egrep "free" >/dev/null 2>&1; then
2216    :    :
2217  else  else
   rm -rf conftest*  
2218    ac_cv_header_stdc=no    ac_cv_header_stdc=no
2219  fi  fi
2220  rm -f conftest*  rm -f conftest*
# Line 903  fi Line 2223  fi
2223    
2224  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2225    # /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.
2226  if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
2227    :    :
2228  else  else
2229    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2230  #line 931 "configure"  #line 2231 "configure"
2231  #include "confdefs.h"  #include "confdefs.h"
2232  #include <ctype.h>  #include <ctype.h>
2233  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #if ((' ' & 0x0FF) == 0x020)
2234  #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2235  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2236  int main () { int i; for (i = 0; i < 256; i++)  #else
2237  if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);  # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2238  exit (0); }                       || ('j' <= (c) && (c) <= 'r') \
2239                         || ('s' <= (c) && (c) <= 'z'))
2240    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2241    #endif
2242    
2243  EOF  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2244  if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  int
2245  then  main ()
2246    {
2247      int i;
2248      for (i = 0; i < 256; i++)
2249        if (XOR (islower (i), ISLOWER (i))
2250            || toupper (i) != TOUPPER (i))
2251          exit(2);
2252      exit (0);
2253    }
2254    _ACEOF
2255    rm -f conftest$ac_exeext
2256    if { (eval echo "$as_me:2257: \"$ac_link\"") >&5
2257      (eval $ac_link) 2>&5
2258      ac_status=$?
2259      echo "$as_me:2260: \$? = $ac_status" >&5
2260      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2261      { (eval echo "$as_me:2262: \"$ac_try\"") >&5
2262      (eval $ac_try) 2>&5
2263      ac_status=$?
2264      echo "$as_me:2265: \$? = $ac_status" >&5
2265      (exit $ac_status); }; }; then
2266    :    :
2267  else  else
2268    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
2269    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
2270    rm -fr conftest*  cat conftest.$ac_ext >&5
2271    ac_cv_header_stdc=no  ac_cv_header_stdc=no
2272  fi  fi
2273  rm -fr conftest*  rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2274  fi  fi
   
2275  fi  fi
2276  fi  fi
2277    echo "$as_me:2278: result: $ac_cv_header_stdc" >&5
2278  echo "$ac_t""$ac_cv_header_stdc" 1>&6  echo "${ECHO_T}$ac_cv_header_stdc" >&6
2279  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2280    cat >> confdefs.h <<\EOF  
2281    cat >>confdefs.h <<\EOF
2282  #define STDC_HEADERS 1  #define STDC_HEADERS 1
2283  EOF  EOF
2284    
2285  fi  fi
2286    
2287  for ac_hdr in limits.h  for ac_header in limits.h
2288  do  do
2289  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2290  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo "$as_me:2291: checking for $ac_header" >&5
2291  echo "configure:969: checking for $ac_hdr" >&5  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2292  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2293    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2294  else  else
2295    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2296  #line 974 "configure"  #line 2297 "configure"
2297  #include "confdefs.h"  #include "confdefs.h"
2298  #include <$ac_hdr>  #include <$ac_header>
2299  EOF  _ACEOF
2300  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2301: \"$ac_cpp conftest.$ac_ext\"") >&5
2301  { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2302  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2303  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2304    rm -rf conftest*    rm -f conftest.er1
2305    eval "ac_cv_header_$ac_safe=yes"    cat conftest.err >&5
2306      echo "$as_me:2307: \$? = $ac_status" >&5
2307      (exit $ac_status); } >/dev/null; then
2308      if test -s conftest.err; then
2309        ac_cpp_err=$ac_c_preproc_warn_flag
2310      else
2311        ac_cpp_err=
2312      fi
2313    else
2314      ac_cpp_err=yes
2315    fi
2316    if test -z "$ac_cpp_err"; then
2317      eval "$ac_ac_Header=yes"
2318  else  else
2319    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2320    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2321    rm -rf conftest*    eval "$ac_ac_Header=no"
   eval "ac_cv_header_$ac_safe=no"  
2322  fi  fi
2323  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2324  fi  fi
2325  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$as_me:2326: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2326    echo "$ac_t""yes" 1>&6  echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2327      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2328    cat >> confdefs.h <<EOF    cat >>confdefs.h <<EOF
2329  #define $ac_tr_hdr 1  #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2330  EOF  EOF
2331    
2332    fi
2333    done
2334    
2335    echo "$as_me:2336: checking for $CC option to accept ANSI C" >&5
2336    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2337    if test "${ac_cv_prog_cc_stdc+set}" = set; then
2338      echo $ECHO_N "(cached) $ECHO_C" >&6
2339    else
2340      ac_cv_prog_cc_stdc=no
2341    ac_save_CC=$CC
2342    cat >conftest.$ac_ext <<_ACEOF
2343    #line 2344 "configure"
2344    #include "confdefs.h"
2345    #include <stdarg.h>
2346    #include <stdio.h>
2347    #include <sys/types.h>
2348    #include <sys/stat.h>
2349    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2350    struct buf { int x; };
2351    FILE * (*rcsopen) (struct buf *, struct stat *, int);
2352    static char *e (p, i)
2353         char **p;
2354         int i;
2355    {
2356      return p[i];
2357    }
2358    static char *f (char * (*g) (char **, int), char **p, ...)
2359    {
2360      char *s;
2361      va_list v;
2362      va_start (v,p);
2363      s = g (p, va_arg (v,int));
2364      va_end (v);
2365      return s;
2366    }
2367    int test (int i, double x);
2368    struct s1 {int (*f) (int a);};
2369    struct s2 {int (*f) (double a);};
2370    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2371    int argc;
2372    char **argv;
2373    int
2374    main ()
2375    {
2376    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2377      ;
2378      return 0;
2379    }
2380    _ACEOF
2381    # Don't try gcc -ansi; that turns off useful extensions and
2382    # breaks some systems' header files.
2383    # AIX                   -qlanglvl=ansi
2384    # Ultrix and OSF/1      -std1
2385    # HP-UX 10.20 and later -Ae
2386    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2387    # SVR4                  -Xc -D__EXTENSIONS__
2388    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2389    do
2390      CC="$ac_save_CC $ac_arg"
2391      rm -f conftest.$ac_objext
2392    if { (eval echo "$as_me:2393: \"$ac_compile\"") >&5
2393      (eval $ac_compile) 2>&5
2394      ac_status=$?
2395      echo "$as_me:2396: \$? = $ac_status" >&5
2396      (exit $ac_status); } &&
2397             { ac_try='test -s conftest.$ac_objext'
2398      { (eval echo "$as_me:2399: \"$ac_try\"") >&5
2399      (eval $ac_try) 2>&5
2400      ac_status=$?
2401      echo "$as_me:2402: \$? = $ac_status" >&5
2402      (exit $ac_status); }; }; then
2403      ac_cv_prog_cc_stdc=$ac_arg
2404    break
2405  else  else
2406    echo "$ac_t""no" 1>&6    echo "$as_me: failed program was:" >&5
2407    cat conftest.$ac_ext >&5
2408  fi  fi
2409    rm -f conftest.$ac_objext
2410  done  done
2411    rm -f conftest.$ac_ext conftest.$ac_objext
2412    CC=$ac_save_CC
2413    
2414    fi
2415    
2416  echo $ac_n "checking for working const""... $ac_c" 1>&6  case "x$ac_cv_prog_cc_stdc" in
2417  echo "configure:1007: checking for working const" >&5    x|xno)
2418  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then      echo "$as_me:2419: result: none needed" >&5
2419    echo $ac_n "(cached) $ac_c" 1>&6  echo "${ECHO_T}none needed" >&6 ;;
2420      *)
2421        echo "$as_me:2422: result: $ac_cv_prog_cc_stdc" >&5
2422    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2423        CC="$CC $ac_cv_prog_cc_stdc" ;;
2424    esac
2425    
2426    echo "$as_me:2427: checking for an ANSI C-conforming const" >&5
2427    echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2428    if test "${ac_cv_c_const+set}" = set; then
2429      echo $ECHO_N "(cached) $ECHO_C" >&6
2430  else  else
2431    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2432  #line 1012 "configure"  #line 2433 "configure"
2433  #include "confdefs.h"  #include "confdefs.h"
2434    
2435  int main() {  int
2436    main ()
2437    {
2438    /* FIXME: Include the comments suggested by Paul. */
2439    #ifndef __cplusplus
2440      /* Ultrix mips cc rejects this.  */
2441      typedef int charset[2];
2442      const charset x;
2443      /* SunOS 4.1.1 cc rejects this.  */
2444      char const *const *ccp;
2445      char **p;
2446      /* NEC SVR4.0.2 mips cc rejects this.  */
2447      struct point {int x, y;};
2448      static struct point const zero = {0,0};
2449      /* AIX XL C 1.02.0.0 rejects this.
2450         It does not let you subtract one const X* pointer from another in
2451         an arm of an if-expression whose if-part is not a constant
2452         expression */
2453      const char *g = "string";
2454      ccp = &g + (g ? g-g : 0);
2455      /* HPUX 7.0 cc rejects these. */
2456      ++ccp;
2457      p = (char**) ccp;
2458      ccp = (char const *const *) p;
2459      { /* SCO 3.2v4 cc rejects this.  */
2460        char *t;
2461        char const *s = 0 ? (char *) 0 : (char const *) 0;
2462    
2463        *t++ = 0;
2464      }
2465      { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2466        int x[] = {25, 17};
2467        const int *foo = &x[0];
2468        ++foo;
2469      }
2470      { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2471        typedef const int *iptr;
2472        iptr p = 0;
2473        ++p;
2474      }
2475      { /* AIX XL C 1.02.0.0 rejects this saying
2476           "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2477        struct s { int j; const int *ap[3]; };
2478        struct s *b; b->j = 5;
2479      }
2480      { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2481        const int foo = 10;
2482      }
2483    #endif
2484    
2485  /* Ultrix mips cc rejects this.  */    ;
2486  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;  
2487  }  }
2488    _ACEOF
2489  ; return 0; }  rm -f conftest.$ac_objext
2490  EOF  if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2491  if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then    (eval $ac_compile) 2>&5
2492    rm -rf conftest*    ac_status=$?
2493      echo "$as_me:2494: \$? = $ac_status" >&5
2494      (exit $ac_status); } &&
2495             { ac_try='test -s conftest.$ac_objext'
2496      { (eval echo "$as_me:2497: \"$ac_try\"") >&5
2497      (eval $ac_try) 2>&5
2498      ac_status=$?
2499      echo "$as_me:2500: \$? = $ac_status" >&5
2500      (exit $ac_status); }; }; then
2501    ac_cv_c_const=yes    ac_cv_c_const=yes
2502  else  else
2503    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
2504    cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
2505    rm -rf conftest*  ac_cv_c_const=no
   ac_cv_c_const=no  
2506  fi  fi
2507  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
2508  fi  fi
2509    echo "$as_me:2510: result: $ac_cv_c_const" >&5
2510  echo "$ac_t""$ac_cv_c_const" 1>&6  echo "${ECHO_T}$ac_cv_c_const" >&6
2511  if test $ac_cv_c_const = no; then  if test $ac_cv_c_const = no; then
2512    cat >> confdefs.h <<\EOF  
2513  #define const  cat >>confdefs.h <<\EOF
2514    #define const
2515  EOF  EOF
2516    
2517  fi  fi
2518    
2519  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
2520  echo "configure:1082: checking for size_t" >&5  do
2521  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2522    echo $ac_n "(cached) $ac_c" 1>&6  echo "$as_me:2523: checking for $ac_header" >&5
2523    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2524    if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2525      echo $ECHO_N "(cached) $ECHO_C" >&6
2526  else  else
2527    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2528  #line 1087 "configure"  #line 2529 "configure"
2529  #include "confdefs.h"  #include "confdefs.h"
2530  #include <sys/types.h>  #include <$ac_header>
2531  #if STDC_HEADERS  _ACEOF
2532  #include <stdlib.h>  if { (eval echo "$as_me:2533: \"$ac_cpp conftest.$ac_ext\"") >&5
2533  #include <stddef.h>    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534  #endif    ac_status=$?
2535  EOF    egrep -v '^ *\+' conftest.er1 >conftest.err
2536  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |    rm -f conftest.er1
2537    egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then    cat conftest.err >&5
2538    rm -rf conftest*    echo "$as_me:2539: \$? = $ac_status" >&5
2539    ac_cv_type_size_t=yes    (exit $ac_status); } >/dev/null; then
2540      if test -s conftest.err; then
2541        ac_cpp_err=$ac_c_preproc_warn_flag
2542      else
2543        ac_cpp_err=
2544      fi
2545  else  else
2546    rm -rf conftest*    ac_cpp_err=yes
   ac_cv_type_size_t=no  
2547  fi  fi
2548  rm -f conftest*  if test -z "$ac_cpp_err"; then
2549      eval "$ac_ac_Header=yes"
2550    else
2551      echo "$as_me: failed program was:" >&5
2552      cat conftest.$ac_ext >&5
2553      eval "$ac_ac_Header=no"
2554    fi
2555    rm -f conftest.err conftest.$ac_ext
2556    fi
2557    echo "$as_me:2558: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2558    echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2559    if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2560      cat >>confdefs.h <<EOF
2561    #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2562    EOF
2563    
2564  fi  fi
2565  echo "$ac_t""$ac_cv_type_size_t" 1>&6  done
2566  if test $ac_cv_type_size_t = no; then  
2567    cat >> confdefs.h <<\EOF  echo "$as_me:2568: checking for size_t" >&5
2568    echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2569    if test "${ac_cv_type_size_t+set}" = set; then
2570      echo $ECHO_N "(cached) $ECHO_C" >&6
2571    else
2572      cat >conftest.$ac_ext <<_ACEOF
2573    #line 2574 "configure"
2574    #include "confdefs.h"
2575    $ac_includes_default
2576    int
2577    main ()
2578    {
2579    if ((size_t *) 0)
2580      return 0;
2581    if (sizeof (size_t))
2582      return 0;
2583      ;
2584      return 0;
2585    }
2586    _ACEOF
2587    rm -f conftest.$ac_objext
2588    if { (eval echo "$as_me:2589: \"$ac_compile\"") >&5
2589      (eval $ac_compile) 2>&5
2590      ac_status=$?
2591      echo "$as_me:2592: \$? = $ac_status" >&5
2592      (exit $ac_status); } &&
2593             { ac_try='test -s conftest.$ac_objext'
2594      { (eval echo "$as_me:2595: \"$ac_try\"") >&5
2595      (eval $ac_try) 2>&5
2596      ac_status=$?
2597      echo "$as_me:2598: \$? = $ac_status" >&5
2598      (exit $ac_status); }; }; then
2599      ac_cv_type_size_t=yes
2600    else
2601      echo "$as_me: failed program was:" >&5
2602    cat conftest.$ac_ext >&5
2603    ac_cv_type_size_t=no
2604    fi
2605    rm -f conftest.$ac_objext conftest.$ac_ext
2606    fi
2607    echo "$as_me:2608: result: $ac_cv_type_size_t" >&5
2608    echo "${ECHO_T}$ac_cv_type_size_t" >&6
2609    if test $ac_cv_type_size_t = yes; then
2610      :
2611    else
2612    
2613    cat >>confdefs.h <<EOF
2614  #define size_t unsigned  #define size_t unsigned
2615  EOF  EOF
2616    
2617  fi  fi
2618    
2619    for ac_func in bcopy memmove strerror
 for ac_func in memmove strerror  
2620  do  do
2621  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2622  echo "configure:1118: checking for $ac_func" >&5  echo "$as_me:2623: checking for $ac_func" >&5
2623  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2624    echo $ac_n "(cached) $ac_c" 1>&6  if eval "test \"\${$ac_ac_var+set}\" = set"; then
2625      echo $ECHO_N "(cached) $ECHO_C" >&6
2626  else  else
2627    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2628  #line 1123 "configure"  #line 2629 "configure"
2629  #include "confdefs.h"  #include "confdefs.h"
2630  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2631      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func (); below.  */
2632  #include <assert.h>  #include <assert.h>
2633  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2634    #ifdef __cplusplus
2635    extern "C"
2636    #endif
2637  /* 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
2638      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
2639  char $ac_func();  char $ac_func ();
2640    char (*f) ();
2641  int main() {  
2642    int
2643    main ()
2644    {
2645  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2646      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2647      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2648  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2649  choke me  choke me
2650  #else  #else
2651  $ac_func();  f = $ac_func;
2652  #endif  #endif
2653    
2654  ; return 0; }    ;
2655      return 0;
2656    }
2657    _ACEOF
2658    rm -f conftest.$ac_objext conftest$ac_exeext
2659    if { (eval echo "$as_me:2660: \"$ac_link\"") >&5
2660      (eval $ac_link) 2>&5
2661      ac_status=$?
2662      echo "$as_me:2663: \$? = $ac_status" >&5
2663      (exit $ac_status); } &&
2664             { ac_try='test -s conftest$ac_exeext'
2665      { (eval echo "$as_me:2666: \"$ac_try\"") >&5
2666      (eval $ac_try) 2>&5
2667      ac_status=$?
2668      echo "$as_me:2669: \$? = $ac_status" >&5
2669      (exit $ac_status); }; }; then
2670      eval "$ac_ac_var=yes"
2671    else
2672      echo "$as_me: failed program was:" >&5
2673    cat conftest.$ac_ext >&5
2674    eval "$ac_ac_var=no"
2675    fi
2676    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2677    fi
2678    echo "$as_me:2679: result: `eval echo '${'$ac_ac_var'}'`" >&5
2679    echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2680    if test `eval echo '${'$ac_ac_var'}'` = yes; then
2681      cat >>confdefs.h <<EOF
2682    #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2683  EOF  EOF
2684  if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
2685    rm -rf conftest*  fi
2686    eval "ac_cv_func_$ac_func=yes"  done
2687    
2688    # Check whether --enable-utf8 or --disable-utf8 was given.
2689    if test "${enable_utf8+set}" = set; then
2690      enableval="$enable_utf8"
2691      if test "$enableval" = "yes"; then
2692      UTF8=-DSUPPORT_UTF8
2693    fi
2694    
2695    fi;
2696    
2697    # Check whether --enable-newline-is-cr or --disable-newline-is-cr was given.
2698    if test "${enable_newline_is_cr+set}" = set; then
2699      enableval="$enable_newline_is_cr"
2700      if test "$enableval" = "yes"; then
2701      NEWLINE=-DNEWLINE=13
2702    fi
2703    
2704    fi;
2705    
2706    # Check whether --enable-newline-is-lf or --disable-newline-is-lf was given.
2707    if test "${enable_newline_is_lf+set}" = set; then
2708      enableval="$enable_newline_is_lf"
2709      if test "$enableval" = "yes"; then
2710      NEWLINE=-DNEWLINE=10
2711    fi
2712    
2713    fi;
2714    
2715    # Check whether --enable-shared or --disable-shared was given.
2716    if test "${enable_shared+set}" = set; then
2717      enableval="$enable_shared"
2718      p=${PACKAGE-default}
2719    case $enableval in
2720    yes) enable_shared=yes ;;
2721    no) enable_shared=no ;;
2722    *)
2723      enable_shared=no
2724      # Look at the argument we got.  We use all the common list separators.
2725      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2726      for pkg in $enableval; do
2727        if test "X$pkg" = "X$p"; then
2728          enable_shared=yes
2729        fi
2730      done
2731      IFS="$ac_save_ifs"
2732      ;;
2733    esac
2734    else
2735      enable_shared=yes
2736    fi;
2737    # Check whether --enable-static or --disable-static was given.
2738    if test "${enable_static+set}" = set; then
2739      enableval="$enable_static"
2740      p=${PACKAGE-default}
2741    case $enableval in
2742    yes) enable_static=yes ;;
2743    no) enable_static=no ;;
2744    *)
2745      enable_static=no
2746      # Look at the argument we got.  We use all the common list separators.
2747      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2748      for pkg in $enableval; do
2749        if test "X$pkg" = "X$p"; then
2750          enable_static=yes
2751        fi
2752      done
2753      IFS="$ac_save_ifs"
2754      ;;
2755    esac
2756    else
2757      enable_static=yes
2758    fi;
2759    # Check whether --enable-fast-install or --disable-fast-install was given.
2760    if test "${enable_fast_install+set}" = set; then
2761      enableval="$enable_fast_install"
2762      p=${PACKAGE-default}
2763    case $enableval in
2764    yes) enable_fast_install=yes ;;
2765    no) enable_fast_install=no ;;
2766    *)
2767      enable_fast_install=no
2768      # Look at the argument we got.  We use all the common list separators.
2769      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2770      for pkg in $enableval; do
2771        if test "X$pkg" = "X$p"; then
2772          enable_fast_install=yes
2773        fi
2774      done
2775      IFS="$ac_save_ifs"
2776      ;;
2777    esac
2778    else
2779      enable_fast_install=yes
2780    fi;
2781    # Make sure we can run config.sub.
2782    $ac_config_sub sun4 >/dev/null 2>&1 ||
2783      { { echo "$as_me:2784: error: cannot run $ac_config_sub" >&5
2784    echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2785       { (exit 1); exit 1; }; }
2786    
2787    echo "$as_me:2788: checking build system type" >&5
2788    echo $ECHO_N "checking build system type... $ECHO_C" >&6
2789    if test "${ac_cv_build+set}" = set; then
2790      echo $ECHO_N "(cached) $ECHO_C" >&6
2791    else
2792      ac_cv_build_alias=$build_alias
2793    test -z "$ac_cv_build_alias" &&
2794      ac_cv_build_alias=`$ac_config_guess`
2795    test -z "$ac_cv_build_alias" &&
2796      { { echo "$as_me:2797: error: cannot guess build type; you must specify one" >&5
2797    echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2798       { (exit 1); exit 1; }; }
2799    ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2800      { { echo "$as_me:2801: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2801    echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2802       { (exit 1); exit 1; }; }
2803    
2804    fi
2805    echo "$as_me:2806: result: $ac_cv_build" >&5
2806    echo "${ECHO_T}$ac_cv_build" >&6
2807    build=$ac_cv_build
2808    build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2809    build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2810    build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2811    
2812    echo "$as_me:2813: checking host system type" >&5
2813    echo $ECHO_N "checking host system type... $ECHO_C" >&6
2814    if test "${ac_cv_host+set}" = set; then
2815      echo $ECHO_N "(cached) $ECHO_C" >&6
2816    else
2817      ac_cv_host_alias=$host_alias
2818    test -z "$ac_cv_host_alias" &&
2819      ac_cv_host_alias=$ac_cv_build_alias
2820    ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2821      { { echo "$as_me:2822: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2822    echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2823       { (exit 1); exit 1; }; }
2824    
2825    fi
2826    echo "$as_me:2827: result: $ac_cv_host" >&5
2827    echo "${ECHO_T}$ac_cv_host" >&6
2828    host=$ac_cv_host
2829    host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2830    host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2831    host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2832    
2833    # Check whether --with-gnu-ld or --without-gnu-ld was given.
2834    if test "${with_gnu_ld+set}" = set; then
2835      withval="$with_gnu_ld"
2836      test "$withval" = no || with_gnu_ld=yes
2837    else
2838      with_gnu_ld=no
2839    fi;
2840    ac_prog=ld
2841    if test "$GCC" = yes; then
2842      # Check if gcc -print-prog-name=ld gives a path.
2843      echo "$as_me:2844: checking for ld used by GCC" >&5
2844    echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2845      case $host in
2846      *-*-mingw*)
2847        # gcc leaves a trailing carriage return which upsets mingw
2848        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2849      *)
2850        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2851      esac
2852      case $ac_prog in
2853        # Accept absolute paths.
2854        [\\/]* | [A-Za-z]:[\\/]*)
2855          re_direlt='/[^/][^/]*/\.\./'
2856          # Canonicalize the path of ld
2857          ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2858          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2859            ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2860          done
2861          test -z "$LD" && LD="$ac_prog"
2862          ;;
2863      "")
2864        # If it fails, then pretend we aren't using GCC.
2865        ac_prog=ld
2866        ;;
2867      *)
2868        # If it is relative, then search for the first ld in PATH.
2869        with_gnu_ld=unknown
2870        ;;
2871      esac
2872    elif test "$with_gnu_ld" = yes; then
2873      echo "$as_me:2874: checking for GNU ld" >&5
2874    echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2875    else
2876      echo "$as_me:2877: checking for non-GNU ld" >&5
2877    echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2878    fi
2879    if test "${lt_cv_path_LD+set}" = set; then
2880      echo $ECHO_N "(cached) $ECHO_C" >&6
2881    else
2882      if test -z "$LD"; then
2883      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2884      for ac_dir in $PATH; do
2885        test -z "$ac_dir" && ac_dir=.
2886        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2887          lt_cv_path_LD="$ac_dir/$ac_prog"
2888          # Check to see if the program is GNU ld.  I'd rather use --version,
2889          # but apparently some GNU ld's only accept -v.
2890          # Break only if it was the GNU/non-GNU ld that we prefer.
2891          if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2892            test "$with_gnu_ld" != no && break
2893          else
2894            test "$with_gnu_ld" != yes && break
2895          fi
2896        fi
2897      done
2898      IFS="$ac_save_ifs"
2899    else
2900      lt_cv_path_LD="$LD" # Let the user override the test with a path.
2901    fi
2902    fi
2903    
2904    LD="$lt_cv_path_LD"
2905    if test -n "$LD"; then
2906      echo "$as_me:2907: result: $LD" >&5
2907    echo "${ECHO_T}$LD" >&6
2908    else
2909      echo "$as_me:2910: result: no" >&5
2910    echo "${ECHO_T}no" >&6
2911    fi
2912    test -z "$LD" && { { echo "$as_me:2913: error: no acceptable ld found in \$PATH" >&5
2913    echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2914       { (exit 1); exit 1; }; }
2915    echo "$as_me:2916: checking if the linker ($LD) is GNU ld" >&5
2916    echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2917    if test "${lt_cv_prog_gnu_ld+set}" = set; then
2918      echo $ECHO_N "(cached) $ECHO_C" >&6
2919    else
2920      # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2921    if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2922      lt_cv_prog_gnu_ld=yes
2923    else
2924      lt_cv_prog_gnu_ld=no
2925    fi
2926    fi
2927    echo "$as_me:2928: result: $lt_cv_prog_gnu_ld" >&5
2928    echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2929    with_gnu_ld=$lt_cv_prog_gnu_ld
2930    
2931    echo "$as_me:2932: checking for $LD option to reload object files" >&5
2932    echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2933    if test "${lt_cv_ld_reload_flag+set}" = set; then
2934      echo $ECHO_N "(cached) $ECHO_C" >&6
2935    else
2936      lt_cv_ld_reload_flag='-r'
2937    fi
2938    echo "$as_me:2939: result: $lt_cv_ld_reload_flag" >&5
2939    echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2940    reload_flag=$lt_cv_ld_reload_flag
2941    test -n "$reload_flag" && reload_flag=" $reload_flag"
2942    
2943    echo "$as_me:2944: checking for BSD-compatible nm" >&5
2944    echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2945    if test "${lt_cv_path_NM+set}" = set; then
2946      echo $ECHO_N "(cached) $ECHO_C" >&6
2947    else
2948      if test -n "$NM"; then
2949      # Let the user override the test.
2950      lt_cv_path_NM="$NM"
2951    else
2952      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2953      for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2954        test -z "$ac_dir" && ac_dir=.
2955        tmp_nm=$ac_dir/${ac_tool_prefix}nm
2956        if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2957          # Check to see if the nm accepts a BSD-compat flag.
2958          # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2959          #   nm: unknown option "B" ignored
2960          # Tru64's nm complains that /dev/null is an invalid object file
2961          if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2962            lt_cv_path_NM="$tmp_nm -B"
2963            break
2964          elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2965            lt_cv_path_NM="$tmp_nm -p"
2966            break
2967          else
2968            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2969            continue # so that we can try to find one that supports BSD flags
2970          fi
2971        fi
2972      done
2973      IFS="$ac_save_ifs"
2974      test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2975    fi
2976    fi
2977    
2978    NM="$lt_cv_path_NM"
2979    echo "$as_me:2980: result: $NM" >&5
2980    echo "${ECHO_T}$NM" >&6
2981    
2982    echo "$as_me:2983: checking whether ln -s works" >&5
2983    echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2984    LN_S=$as_ln_s
2985    if test "$LN_S" = "ln -s"; then
2986      echo "$as_me:2987: result: yes" >&5
2987    echo "${ECHO_T}yes" >&6
2988    else
2989      echo "$as_me:2990: result: no, using $LN_S" >&5
2990    echo "${ECHO_T}no, using $LN_S" >&6
2991    fi
2992    
2993    echo "$as_me:2994: checking how to recognise dependant libraries" >&5
2994    echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2995    if test "${lt_cv_deplibs_check_method+set}" = set; then
2996      echo $ECHO_N "(cached) $ECHO_C" >&6
2997    else
2998      lt_cv_file_magic_cmd='$MAGIC_CMD'
2999    lt_cv_file_magic_test_file=
3000    lt_cv_deplibs_check_method='unknown'
3001    # Need to set the preceding variable on all platforms that support
3002    # interlibrary dependencies.
3003    # 'none' -- dependencies not supported.
3004    # `unknown' -- same as none, but documents that we really don't know.
3005    # 'pass_all' -- all dependencies passed with no checks.
3006    # 'test_compile' -- check by making test program.
3007    # ['file_magic [regex]'] -- check by looking for files in library path
3008    # which responds to the $file_magic_cmd with a given egrep regex.
3009    # If you have `file' or equivalent on your system and you're not sure
3010    # whether `pass_all' will *always* work, you probably want this one.
3011    
3012    case $host_os in
3013    aix4* | aix5*)
3014      lt_cv_deplibs_check_method=pass_all
3015      ;;
3016    
3017    beos*)
3018      lt_cv_deplibs_check_method=pass_all
3019      ;;
3020    
3021    bsdi4*)
3022      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3023      lt_cv_file_magic_cmd='/usr/bin/file -L'
3024      lt_cv_file_magic_test_file=/shlib/libc.so
3025      ;;
3026    
3027    cygwin* | mingw* | pw32*)
3028      lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3029      lt_cv_file_magic_cmd='$OBJDUMP -f'
3030      ;;
3031    
3032    darwin* | rhapsody*)
3033      lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3034      lt_cv_file_magic_cmd='/usr/bin/file -L'
3035      case "$host_os" in
3036      rhapsody* | darwin1.012)
3037        lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3038        ;;
3039      *) # Darwin 1.3 on
3040        lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3041        ;;
3042      esac
3043      ;;
3044    
3045    freebsd*)
3046      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3047        case $host_cpu in
3048        i*86 )
3049          # Not sure whether the presence of OpenBSD here was a mistake.
3050          # Let's accept both of them until this is cleared up.
3051          lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3052          lt_cv_file_magic_cmd=/usr/bin/file
3053          lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3054          ;;
3055        esac
3056      else
3057        lt_cv_deplibs_check_method=pass_all
3058      fi
3059      ;;
3060    
3061    gnu*)
3062      lt_cv_deplibs_check_method=pass_all
3063      ;;
3064    
3065    hpux10.20*|hpux11*)
3066      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3067      lt_cv_file_magic_cmd=/usr/bin/file
3068      lt_cv_file_magic_test_file=/usr/lib/libc.sl
3069      ;;
3070    
3071    irix5* | irix6*)
3072      case $host_os in
3073      irix5*)
3074        # this will be overridden with pass_all, but let us keep it just in case
3075        lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3076        ;;
3077      *)
3078        case $LD in
3079        *-32|*"-32 ") libmagic=32-bit;;
3080        *-n32|*"-n32 ") libmagic=N32;;
3081        *-64|*"-64 ") libmagic=64-bit;;
3082        *) libmagic=never-match;;
3083        esac
3084        # this will be overridden with pass_all, but let us keep it just in case
3085        lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3086        ;;
3087      esac
3088      lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3089      lt_cv_deplibs_check_method=pass_all
3090      ;;
3091    
3092    # This must be Linux ELF.
3093    linux-gnu*)
3094      case $host_cpu in
3095      alpha* | i*86 | powerpc* | sparc* | ia64* )
3096        lt_cv_deplibs_check_method=pass_all ;;
3097      *)
3098        # glibc up to 2.1.1 does not perform some relocations on ARM
3099        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3100      esac
3101      lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3102      ;;
3103    
3104    netbsd*)
3105      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3106        lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3107      else
3108        lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3109      fi
3110      ;;
3111    
3112    newos6*)
3113      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3114      lt_cv_file_magic_cmd=/usr/bin/file
3115      lt_cv_file_magic_test_file=/usr/lib/libnls.so
3116      ;;
3117    
3118    osf3* | osf4* | osf5*)
3119      # this will be overridden with pass_all, but let us keep it just in case
3120      lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3121      lt_cv_file_magic_test_file=/shlib/libc.so
3122      lt_cv_deplibs_check_method=pass_all
3123      ;;
3124    
3125    sco3.2v5*)
3126      lt_cv_deplibs_check_method=pass_all
3127      ;;
3128    
3129    solaris*)
3130      lt_cv_deplibs_check_method=pass_all
3131      lt_cv_file_magic_test_file=/lib/libc.so
3132      ;;
3133    
3134    sysv5uw[78]* | sysv4*uw2*)
3135      lt_cv_deplibs_check_method=pass_all
3136      ;;
3137    
3138    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3139      case $host_vendor in
3140      motorola)
3141        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]'
3142        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3143        ;;
3144      ncr)
3145        lt_cv_deplibs_check_method=pass_all
3146        ;;
3147      sequent)
3148        lt_cv_file_magic_cmd='/bin/file'
3149        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3150        ;;
3151      sni)
3152        lt_cv_file_magic_cmd='/bin/file'
3153        lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3154        lt_cv_file_magic_test_file=/lib/libc.so
3155        ;;
3156      esac
3157      ;;
3158    esac
3159    
3160    fi
3161    echo "$as_me:3162: result: $lt_cv_deplibs_check_method" >&5
3162    echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3163    file_magic_cmd=$lt_cv_file_magic_cmd
3164    deplibs_check_method=$lt_cv_deplibs_check_method
3165    
3166    # Check for command to grab the raw symbol name followed by C symbol from nm.
3167    echo "$as_me:3168: checking command to parse $NM output" >&5
3168    echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3169    if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3170      echo $ECHO_N "(cached) $ECHO_C" >&6
3171    else
3172    
3173    # These are sane defaults that work on at least a few old systems.
3174    # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3175    
3176    # Character class describing NM global symbol codes.
3177    symcode='[BCDEGRST]'
3178    
3179    # Regexp to match symbols that can be accessed directly from C.
3180    sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3181    
3182    # Transform the above into a raw symbol and a C symbol.
3183    symxfrm='\1 \2\3 \3'
3184    
3185    # Transform an extracted symbol line into a proper C declaration
3186    lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3187    
3188    # Define system-specific variables.
3189    case $host_os in
3190    aix*)
3191      symcode='[BCDT]'
3192      ;;
3193    cygwin* | mingw* | pw32*)
3194      symcode='[ABCDGISTW]'
3195      ;;
3196    hpux*) # Its linker distinguishes data from code symbols
3197      lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3198      ;;
3199    irix*)
3200      symcode='[BCDEGRST]'
3201      ;;
3202    solaris* | sysv5*)
3203      symcode='[BDT]'
3204      ;;
3205    sysv4)
3206      symcode='[DFNSTU]'
3207      ;;
3208    esac
3209    
3210    # Handle CRLF in mingw tool chain
3211    opt_cr=
3212    case $host_os in
3213    mingw*)
3214      opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3215      ;;
3216    esac
3217    
3218    # If we're using GNU nm, then use its standard symbol codes.
3219    if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3220      symcode='[ABCDGISTW]'
3221    fi
3222    
3223    # Try without a prefix undercore, then with it.
3224    for ac_symprfx in "" "_"; do
3225    
3226      # Write the raw and C identifiers.
3227    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3228    
3229      # Check to see that the pipe works correctly.
3230      pipe_works=no
3231      rm -f conftest*
3232      cat > conftest.$ac_ext <<EOF
3233    #ifdef __cplusplus
3234    extern "C" {
3235    #endif
3236    char nm_test_var;
3237    void nm_test_func(){}
3238    #ifdef __cplusplus
3239    }
3240    #endif
3241    int main(){nm_test_var='a';nm_test_func();return(0);}
3242    EOF
3243    
3244      if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3245      (eval $ac_compile) 2>&5
3246      ac_status=$?
3247      echo "$as_me:3248: \$? = $ac_status" >&5
3248      (exit $ac_status); }; then
3249        # Now try to grab the symbols.
3250        nlist=conftest.nm
3251        if { (eval echo "$as_me:3252: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3252      (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3253      ac_status=$?
3254      echo "$as_me:3255: \$? = $ac_status" >&5
3255      (exit $ac_status); } && test -s "$nlist"; then
3256          # Try sorting and uniquifying the output.
3257          if sort "$nlist" | uniq > "$nlist"T; then
3258            mv -f "$nlist"T "$nlist"
3259          else
3260            rm -f "$nlist"T
3261          fi
3262    
3263          # Make sure that we snagged all the symbols we need.
3264          if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3265            if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3266              cat <<EOF > conftest.$ac_ext
3267    #ifdef __cplusplus
3268    extern "C" {
3269    #endif
3270    
3271    EOF
3272              # Now generate the symbol file.
3273              eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3274    
3275              cat <<EOF >> conftest.$ac_ext
3276    #if defined (__STDC__) && __STDC__
3277    # define lt_ptr_t void *
3278    #else
3279    # define lt_ptr_t char *
3280    # define const
3281    #endif
3282    
3283    /* The mapping between symbol names and symbols. */
3284    const struct {
3285      const char *name;
3286      lt_ptr_t address;
3287    }
3288    lt_preloaded_symbols[] =
3289    {
3290    EOF
3291              sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3292              cat <<\EOF >> conftest.$ac_ext
3293      {0, (lt_ptr_t) 0}
3294    };
3295    
3296    #ifdef __cplusplus
3297    }
3298    #endif
3299    EOF
3300              # Now try linking the two files.
3301              mv conftest.$ac_objext conftstm.$ac_objext
3302              save_LIBS="$LIBS"
3303              save_CFLAGS="$CFLAGS"
3304              LIBS="conftstm.$ac_objext"
3305              CFLAGS="$CFLAGS$no_builtin_flag"
3306              if { (eval echo "$as_me:3307: \"$ac_link\"") >&5
3307      (eval $ac_link) 2>&5
3308      ac_status=$?
3309      echo "$as_me:3310: \$? = $ac_status" >&5
3310      (exit $ac_status); } && test -s conftest; then
3311                pipe_works=yes
3312              fi
3313              LIBS="$save_LIBS"
3314              CFLAGS="$save_CFLAGS"
3315            else
3316              echo "cannot find nm_test_func in $nlist" >&5
3317            fi
3318          else
3319            echo "cannot find nm_test_var in $nlist" >&5
3320          fi
3321        else
3322          echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3323        fi
3324      else
3325        echo "$progname: failed program was:" >&5
3326        cat conftest.$ac_ext >&5
3327      fi
3328      rm -f conftest* conftst*
3329    
3330      # Do not use the global_symbol_pipe unless it works.
3331      if test "$pipe_works" = yes; then
3332        break
3333      else
3334        lt_cv_sys_global_symbol_pipe=
3335      fi
3336    done
3337    
3338    fi
3339    
3340    global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3341    if test -z "$lt_cv_sys_global_symbol_pipe"; then
3342      global_symbol_to_cdecl=
3343    else
3344      global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3345    fi
3346    if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3347      echo "$as_me:3348: result: failed" >&5
3348    echo "${ECHO_T}failed" >&6
3349    else
3350      echo "$as_me:3351: result: ok" >&5
3351    echo "${ECHO_T}ok" >&6
3352    fi
3353    
3354    for ac_header in dlfcn.h
3355    do
3356    ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3357    echo "$as_me:3358: checking for $ac_header" >&5
3358    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3359    if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3360      echo $ECHO_N "(cached) $ECHO_C" >&6
3361    else
3362      cat >conftest.$ac_ext <<_ACEOF
3363    #line 3364 "configure"
3364    #include "confdefs.h"
3365    #include <$ac_header>
3366    _ACEOF
3367    if { (eval echo "$as_me:3368: \"$ac_cpp conftest.$ac_ext\"") >&5
3368      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369      ac_status=$?
3370      egrep -v '^ *\+' conftest.er1 >conftest.err
3371      rm -f conftest.er1
3372      cat conftest.err >&5
3373      echo "$as_me:3374: \$? = $ac_status" >&5
3374      (exit $ac_status); } >/dev/null; then
3375      if test -s conftest.err; then
3376        ac_cpp_err=$ac_c_preproc_warn_flag
3377      else
3378        ac_cpp_err=
3379      fi
3380    else
3381      ac_cpp_err=yes
3382    fi
3383    if test -z "$ac_cpp_err"; then
3384      eval "$ac_ac_Header=yes"
3385  else  else
3386    echo "configure: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3387    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3388      eval "$ac_ac_Header=no"
3389    fi
3390    rm -f conftest.err conftest.$ac_ext
3391    fi
3392    echo "$as_me:3393: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3393    echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3394    if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3395      cat >>confdefs.h <<EOF
3396    #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3397    EOF
3398    
3399    fi
3400    done
3401    
3402    # Only perform the check for file, if the check method requires it
3403    case $deplibs_check_method in
3404    file_magic*)
3405      if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3406        echo "$as_me:3407: checking for ${ac_tool_pr