1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-shared[=PKGS]  build shared libraries [default=yes]"
16ac_help="$ac_help
17  --enable-static[=PKGS]  build static libraries [default=yes]"
18ac_help="$ac_help
19  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20ac_help="$ac_help
21  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23  --disable-libtool-lock  avoid locking (might break parallel builds)"
24
25# Initialize some variables set by options.
26# The variables have the same names as the options, with
27# dashes changed to underlines.
28build=NONE
29cache_file=./config.cache
30exec_prefix=NONE
31host=NONE
32no_create=
33nonopt=NONE
34no_recursion=
35prefix=NONE
36program_prefix=NONE
37program_suffix=NONE
38program_transform_name=s,x,x,
39silent=
40site=
41srcdir=
42target=NONE
43verbose=
44x_includes=NONE
45x_libraries=NONE
46bindir='${exec_prefix}/bin'
47sbindir='${exec_prefix}/sbin'
48libexecdir='${exec_prefix}/libexec'
49datadir='${prefix}/share'
50sysconfdir='${prefix}/etc'
51sharedstatedir='${prefix}/com'
52localstatedir='${prefix}/var'
53libdir='${exec_prefix}/lib'
54includedir='${prefix}/include'
55oldincludedir='/usr/include'
56infodir='${prefix}/info'
57mandir='${prefix}/man'
58
59# Initialize some other variables.
60subdirs=
61MFLAGS= MAKEFLAGS=
62SHELL=${CONFIG_SHELL-/bin/sh}
63# Maximum number of lines to put in a shell here document.
64ac_max_here_lines=12
65
66ac_prev=
67for ac_option
68do
69
70  # If the previous option needs an argument, assign it.
71  if test -n "$ac_prev"; then
72    eval "$ac_prev=\$ac_option"
73    ac_prev=
74    continue
75  fi
76
77  case "$ac_option" in
78  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79  *) ac_optarg= ;;
80  esac
81
82  # Accept the important Cygnus configure options, so we can diagnose typos.
83
84  case "$ac_option" in
85
86  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87    ac_prev=bindir ;;
88  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89    bindir="$ac_optarg" ;;
90
91  -build | --build | --buil | --bui | --bu)
92    ac_prev=build ;;
93  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94    build="$ac_optarg" ;;
95
96  -cache-file | --cache-file | --cache-fil | --cache-fi \
97  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98    ac_prev=cache_file ;;
99  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101    cache_file="$ac_optarg" ;;
102
103  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104    ac_prev=datadir ;;
105  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106  | --da=*)
107    datadir="$ac_optarg" ;;
108
109  -disable-* | --disable-*)
110    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111    # Reject names that are not valid shell variable names.
112    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114    fi
115    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116    eval "enable_${ac_feature}=no" ;;
117
118  -enable-* | --enable-*)
119    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120    # Reject names that are not valid shell variable names.
121    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123    fi
124    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125    case "$ac_option" in
126      *=*) ;;
127      *) ac_optarg=yes ;;
128    esac
129    eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133  | --exec | --exe | --ex)
134    ac_prev=exec_prefix ;;
135  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137  | --exec=* | --exe=* | --ex=*)
138    exec_prefix="$ac_optarg" ;;
139
140  -gas | --gas | --ga | --g)
141    # Obsolete; use --with-gas.
142    with_gas=yes ;;
143
144  -help | --help | --hel | --he)
145    # Omit some internal or obsolete options to make the list less imposing.
146    # This message is too long to be a string in the A/UX 3.1 sh.
147    cat << EOF
148Usage: configure [options] [host]
149Options: [defaults in brackets after descriptions]
150Configuration:
151  --cache-file=FILE       cache test results in FILE
152  --help                  print this message
153  --no-create             do not create output files
154  --quiet, --silent       do not print \`checking...' messages
155  --version               print the version of autoconf that created configure
156Directory and file names:
157  --prefix=PREFIX         install architecture-independent files in PREFIX
158                          [$ac_default_prefix]
159  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
160                          [same as prefix]
161  --bindir=DIR            user executables in DIR [EPREFIX/bin]
162  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
163  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
164  --datadir=DIR           read-only architecture-independent data in DIR
165                          [PREFIX/share]
166  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
167  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
168                          [PREFIX/com]
169  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
170  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
171  --includedir=DIR        C header files in DIR [PREFIX/include]
172  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
173  --infodir=DIR           info documentation in DIR [PREFIX/info]
174  --mandir=DIR            man documentation in DIR [PREFIX/man]
175  --srcdir=DIR            find the sources in DIR [configure dir or ..]
176  --program-prefix=PREFIX prepend PREFIX to installed program names
177  --program-suffix=SUFFIX append SUFFIX to installed program names
178  --program-transform-name=PROGRAM
179                          run sed PROGRAM on installed program names
180EOF
181    cat << EOF
182Host type:
183  --build=BUILD           configure for building on BUILD [BUILD=HOST]
184  --host=HOST             configure for HOST [guessed]
185  --target=TARGET         configure for TARGET [TARGET=HOST]
186Features and packages:
187  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
188  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
189  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
190  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
191  --x-includes=DIR        X include files are in DIR
192  --x-libraries=DIR       X library files are in DIR
193EOF
194    if test -n "$ac_help"; then
195      echo "--enable and --with options recognized:$ac_help"
196    fi
197    exit 0 ;;
198
199  -host | --host | --hos | --ho)
200    ac_prev=host ;;
201  -host=* | --host=* | --hos=* | --ho=*)
202    host="$ac_optarg" ;;
203
204  -includedir | --includedir | --includedi | --included | --include \
205  | --includ | --inclu | --incl | --inc)
206    ac_prev=includedir ;;
207  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208  | --includ=* | --inclu=* | --incl=* | --inc=*)
209    includedir="$ac_optarg" ;;
210
211  -infodir | --infodir | --infodi | --infod | --info | --inf)
212    ac_prev=infodir ;;
213  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214    infodir="$ac_optarg" ;;
215
216  -libdir | --libdir | --libdi | --libd)
217    ac_prev=libdir ;;
218  -libdir=* | --libdir=* | --libdi=* | --libd=*)
219    libdir="$ac_optarg" ;;
220
221  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222  | --libexe | --libex | --libe)
223    ac_prev=libexecdir ;;
224  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225  | --libexe=* | --libex=* | --libe=*)
226    libexecdir="$ac_optarg" ;;
227
228  -localstatedir | --localstatedir | --localstatedi | --localstated \
229  | --localstate | --localstat | --localsta | --localst \
230  | --locals | --local | --loca | --loc | --lo)
231    ac_prev=localstatedir ;;
232  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235    localstatedir="$ac_optarg" ;;
236
237  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238    ac_prev=mandir ;;
239  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240    mandir="$ac_optarg" ;;
241
242  -nfp | --nfp | --nf)
243    # Obsolete; use --without-fp.
244    with_fp=no ;;
245
246  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247  | --no-cr | --no-c)
248    no_create=yes ;;
249
250  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252    no_recursion=yes ;;
253
254  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256  | --oldin | --oldi | --old | --ol | --o)
257    ac_prev=oldincludedir ;;
258  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261    oldincludedir="$ac_optarg" ;;
262
263  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264    ac_prev=prefix ;;
265  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266    prefix="$ac_optarg" ;;
267
268  -program-prefix | --program-prefix | --program-prefi | --program-pref \
269  | --program-pre | --program-pr | --program-p)
270    ac_prev=program_prefix ;;
271  -program-prefix=* | --program-prefix=* | --program-prefi=* \
272  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273    program_prefix="$ac_optarg" ;;
274
275  -program-suffix | --program-suffix | --program-suffi | --program-suff \
276  | --program-suf | --program-su | --program-s)
277    ac_prev=program_suffix ;;
278  -program-suffix=* | --program-suffix=* | --program-suffi=* \
279  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280    program_suffix="$ac_optarg" ;;
281
282  -program-transform-name | --program-transform-name \
283  | --program-transform-nam | --program-transform-na \
284  | --program-transform-n | --program-transform- \
285  | --program-transform | --program-transfor \
286  | --program-transfo | --program-transf \
287  | --program-trans | --program-tran \
288  | --progr-tra | --program-tr | --program-t)
289    ac_prev=program_transform_name ;;
290  -program-transform-name=* | --program-transform-name=* \
291  | --program-transform-nam=* | --program-transform-na=* \
292  | --program-transform-n=* | --program-transform-=* \
293  | --program-transform=* | --program-transfor=* \
294  | --program-transfo=* | --program-transf=* \
295  | --program-trans=* | --program-tran=* \
296  | --progr-tra=* | --program-tr=* | --program-t=*)
297    program_transform_name="$ac_optarg" ;;
298
299  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300  | -silent | --silent | --silen | --sile | --sil)
301    silent=yes ;;
302
303  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304    ac_prev=sbindir ;;
305  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306  | --sbi=* | --sb=*)
307    sbindir="$ac_optarg" ;;
308
309  -sharedstatedir | --sharedstatedir | --sharedstatedi \
310  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311  | --sharedst | --shareds | --shared | --share | --shar \
312  | --sha | --sh)
313    ac_prev=sharedstatedir ;;
314  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317  | --sha=* | --sh=*)
318    sharedstatedir="$ac_optarg" ;;
319
320  -site | --site | --sit)
321    ac_prev=site ;;
322  -site=* | --site=* | --sit=*)
323    site="$ac_optarg" ;;
324
325  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326    ac_prev=srcdir ;;
327  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328    srcdir="$ac_optarg" ;;
329
330  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331  | --syscon | --sysco | --sysc | --sys | --sy)
332    ac_prev=sysconfdir ;;
333  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335    sysconfdir="$ac_optarg" ;;
336
337  -target | --target | --targe | --targ | --tar | --ta | --t)
338    ac_prev=target ;;
339  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340    target="$ac_optarg" ;;
341
342  -v | -verbose | --verbose | --verbos | --verbo | --verb)
343    verbose=yes ;;
344
345  -version | --version | --versio | --versi | --vers)
346    echo "configure generated by autoconf version 2.13"
347    exit 0 ;;
348
349  -with-* | --with-*)
350    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351    # Reject names that are not valid shell variable names.
352    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354    fi
355    ac_package=`echo $ac_package| sed 's/-/_/g'`
356    case "$ac_option" in
357      *=*) ;;
358      *) ac_optarg=yes ;;
359    esac
360    eval "with_${ac_package}='$ac_optarg'" ;;
361
362  -without-* | --without-*)
363    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364    # Reject names that are not valid shell variable names.
365    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367    fi
368    ac_package=`echo $ac_package| sed 's/-/_/g'`
369    eval "with_${ac_package}=no" ;;
370
371  --x)
372    # Obsolete; use --with-x.
373    with_x=yes ;;
374
375  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376  | --x-incl | --x-inc | --x-in | --x-i)
377    ac_prev=x_includes ;;
378  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380    x_includes="$ac_optarg" ;;
381
382  -x-libraries | --x-libraries | --x-librarie | --x-librari \
383  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384    ac_prev=x_libraries ;;
385  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387    x_libraries="$ac_optarg" ;;
388
389  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390    ;;
391
392  *)
393    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394      echo "configure: warning: $ac_option: invalid host type" 1>&2
395    fi
396    if test "x$nonopt" != xNONE; then
397      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398    fi
399    nonopt="$ac_option"
400    ;;
401
402  esac
403done
404
405if test -n "$ac_prev"; then
406  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407fi
408
409trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411# File descriptor usage:
412# 0 standard input
413# 1 file creation
414# 2 errors and warnings
415# 3 some systems may open it to /dev/tty
416# 4 used on the Kubota Titan
417# 6 checking for... messages and results
418# 5 compiler messages saved in config.log
419if test "$silent" = yes; then
420  exec 6>/dev/null
421else
422  exec 6>&1
423fi
424exec 5>./config.log
425
426echo "\
427This file contains any messages produced by compilers while
428running configure, to aid debugging if configure makes a mistake.
429" 1>&5
430
431# Strip out --no-create and --no-recursion so they do not pile up.
432# Also quote any args containing shell metacharacters.
433ac_configure_args=
434for ac_arg
435do
436  case "$ac_arg" in
437  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438  | --no-cr | --no-c) ;;
439  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444  esac
445done
446
447# NLS nuisances.
448# Only set these to C if already set.  These must not be set unconditionally
449# because not all systems understand e.g. LANG=C (notably SCO).
450# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451# Non-C LC_CTYPE values break the ctype check.
452if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
453if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
456
457# confdefs.h avoids OS command line length limits that DEFS can exceed.
458rm -rf conftest* confdefs.h
459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
460echo > confdefs.h
461
462# A filename unique to this package, relative to the directory that
463# configure is in, which we can look for to find out if srcdir is correct.
464ac_unique_file=proplist.l
465
466# Find the source files, if location was not specified.
467if test -z "$srcdir"; then
468  ac_srcdir_defaulted=yes
469  # Try the directory containing this script, then its parent.
470  ac_prog=$0
471  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473  srcdir=$ac_confdir
474  if test ! -r $srcdir/$ac_unique_file; then
475    srcdir=..
476  fi
477else
478  ac_srcdir_defaulted=no
479fi
480if test ! -r $srcdir/$ac_unique_file; then
481  if test "$ac_srcdir_defaulted" = yes; then
482    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483  else
484    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485  fi
486fi
487srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489# Prefer explicitly selected file to automatically selected ones.
490if test -z "$CONFIG_SITE"; then
491  if test "x$prefix" != xNONE; then
492    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493  else
494    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495  fi
496fi
497for ac_site_file in $CONFIG_SITE; do
498  if test -r "$ac_site_file"; then
499    echo "loading site script $ac_site_file"
500    . "$ac_site_file"
501  fi
502done
503
504if test -r "$cache_file"; then
505  echo "loading cache $cache_file"
506  . $cache_file
507else
508  echo "creating cache $cache_file"
509  > $cache_file
510fi
511
512ac_ext=c
513# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514ac_cpp='$CPP $CPPFLAGS'
515ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517cross_compiling=$ac_cv_prog_cc_cross
518
519ac_exeext=
520ac_objext=o
521if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524    ac_n= ac_c='
525' ac_t='	'
526  else
527    ac_n=-n ac_c= ac_t=
528  fi
529else
530  ac_n= ac_c='\c' ac_t=
531fi
532
533
534
535ac_aux_dir=
536for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537  if test -f $ac_dir/install-sh; then
538    ac_aux_dir=$ac_dir
539    ac_install_sh="$ac_aux_dir/install-sh -c"
540    break
541  elif test -f $ac_dir/install.sh; then
542    ac_aux_dir=$ac_dir
543    ac_install_sh="$ac_aux_dir/install.sh -c"
544    break
545  fi
546done
547if test -z "$ac_aux_dir"; then
548  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
549fi
550ac_config_guess=$ac_aux_dir/config.guess
551ac_config_sub=$ac_aux_dir/config.sub
552ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553
554# Find a good install program.  We prefer a C program (faster),
555# so one script is as good as another.  But avoid the broken or
556# incompatible versions:
557# SysV /etc/install, /usr/sbin/install
558# SunOS /usr/etc/install
559# IRIX /sbin/install
560# AIX /bin/install
561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
562# AFS /usr/afsws/bin/install, which mishandles nonexistent args
563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
564# ./install, which can be erroneously created by make from ./install.sh.
565echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
566echo "configure:567: checking for a BSD compatible install" >&5
567if test -z "$INSTALL"; then
568if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
569  echo $ac_n "(cached) $ac_c" 1>&6
570else
571    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
572  for ac_dir in $PATH; do
573    # Account for people who put trailing slashes in PATH elements.
574    case "$ac_dir/" in
575    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
576    *)
577      # OSF1 and SCO ODT 3.0 have their own names for install.
578      # Don't use installbsd from OSF since it installs stuff as root
579      # by default.
580      for ac_prog in ginstall scoinst install; do
581        if test -f $ac_dir/$ac_prog; then
582	  if test $ac_prog = install &&
583            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
584	    # AIX install.  It has an incompatible calling convention.
585	    :
586	  else
587	    ac_cv_path_install="$ac_dir/$ac_prog -c"
588	    break 2
589	  fi
590	fi
591      done
592      ;;
593    esac
594  done
595  IFS="$ac_save_IFS"
596
597fi
598  if test "${ac_cv_path_install+set}" = set; then
599    INSTALL="$ac_cv_path_install"
600  else
601    # As a last resort, use the slow shell script.  We don't cache a
602    # path for INSTALL within a source directory, because that will
603    # break other packages using the cache if that directory is
604    # removed, or if the path is relative.
605    INSTALL="$ac_install_sh"
606  fi
607fi
608echo "$ac_t""$INSTALL" 1>&6
609
610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611# It thinks the first close brace ends the variable substitution.
612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
613
614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
615
616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
617
618echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
619echo "configure:620: checking whether build environment is sane" >&5
620# Just in case
621sleep 1
622echo timestamp > conftestfile
623# Do `set' in a subshell so we don't clobber the current shell's
624# arguments.  Must try -L first in case configure is actually a
625# symlink; some systems play weird games with the mod time of symlinks
626# (eg FreeBSD returns the mod time of the symlink's containing
627# directory).
628if (
629   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
630   if test "$*" = "X"; then
631      # -L didn't work.
632      set X `ls -t $srcdir/configure conftestfile`
633   fi
634   if test "$*" != "X $srcdir/configure conftestfile" \
635      && test "$*" != "X conftestfile $srcdir/configure"; then
636
637      # If neither matched, then we have a broken ls.  This can happen
638      # if, for instance, CONFIG_SHELL is bash and it inherits a
639      # broken ls alias from the environment.  This has actually
640      # happened.  Such a system could not be considered "sane".
641      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
642alias in your environment" 1>&2; exit 1; }
643   fi
644
645   test "$2" = conftestfile
646   )
647then
648   # Ok.
649   :
650else
651   { echo "configure: error: newly created file is older than distributed files!
652Check your system clock" 1>&2; exit 1; }
653fi
654rm -f conftest*
655echo "$ac_t""yes" 1>&6
656if test "$program_transform_name" = s,x,x,; then
657  program_transform_name=
658else
659  # Double any \ or $.  echo might interpret backslashes.
660  cat <<\EOF_SED > conftestsed
661s,\\,\\\\,g; s,\$,$$,g
662EOF_SED
663  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
664  rm -f conftestsed
665fi
666test "$program_prefix" != NONE &&
667  program_transform_name="s,^,${program_prefix},; $program_transform_name"
668# Use a double $ so make ignores it.
669test "$program_suffix" != NONE &&
670  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
671
672# sed with no file args requires a program.
673test "$program_transform_name" = "" && program_transform_name="s,x,x,"
674
675echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
676echo "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
677set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
678if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
679  echo $ac_n "(cached) $ac_c" 1>&6
680else
681  cat > conftestmake <<\EOF
682all:
683	@echo 'ac_maketemp="${MAKE}"'
684EOF
685# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
686eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
687if test -n "$ac_maketemp"; then
688  eval ac_cv_prog_make_${ac_make}_set=yes
689else
690  eval ac_cv_prog_make_${ac_make}_set=no
691fi
692rm -f conftestmake
693fi
694if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
695  echo "$ac_t""yes" 1>&6
696  SET_MAKE=
697else
698  echo "$ac_t""no" 1>&6
699  SET_MAKE="MAKE=${MAKE-make}"
700fi
701
702
703PACKAGE=libPropList
704
705VERSION=0.10.1
706
707if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
708  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
709fi
710cat >> confdefs.h <<EOF
711#define PACKAGE "$PACKAGE"
712EOF
713
714cat >> confdefs.h <<EOF
715#define VERSION "$VERSION"
716EOF
717
718
719
720missing_dir=`cd $ac_aux_dir && pwd`
721echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
722echo "configure:723: checking for working aclocal" >&5
723# Run test in a subshell; some versions of sh will print an error if
724# an executable is not found, even if stderr is redirected.
725# Redirect stdin to placate older versions of autoconf.  Sigh.
726if (aclocal --version) < /dev/null > /dev/null 2>&1; then
727   ACLOCAL=aclocal
728   echo "$ac_t""found" 1>&6
729else
730   ACLOCAL="$missing_dir/missing aclocal"
731   echo "$ac_t""missing" 1>&6
732fi
733
734echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
735echo "configure:736: checking for working autoconf" >&5
736# Run test in a subshell; some versions of sh will print an error if
737# an executable is not found, even if stderr is redirected.
738# Redirect stdin to placate older versions of autoconf.  Sigh.
739if (autoconf --version) < /dev/null > /dev/null 2>&1; then
740   AUTOCONF=autoconf
741   echo "$ac_t""found" 1>&6
742else
743   AUTOCONF="$missing_dir/missing autoconf"
744   echo "$ac_t""missing" 1>&6
745fi
746
747echo $ac_n "checking for working automake""... $ac_c" 1>&6
748echo "configure:749: checking for working automake" >&5
749# Run test in a subshell; some versions of sh will print an error if
750# an executable is not found, even if stderr is redirected.
751# Redirect stdin to placate older versions of autoconf.  Sigh.
752if (automake --version) < /dev/null > /dev/null 2>&1; then
753   AUTOMAKE=automake
754   echo "$ac_t""found" 1>&6
755else
756   AUTOMAKE="$missing_dir/missing automake"
757   echo "$ac_t""missing" 1>&6
758fi
759
760echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
761echo "configure:762: checking for working autoheader" >&5
762# Run test in a subshell; some versions of sh will print an error if
763# an executable is not found, even if stderr is redirected.
764# Redirect stdin to placate older versions of autoconf.  Sigh.
765if (autoheader --version) < /dev/null > /dev/null 2>&1; then
766   AUTOHEADER=autoheader
767   echo "$ac_t""found" 1>&6
768else
769   AUTOHEADER="$missing_dir/missing autoheader"
770   echo "$ac_t""missing" 1>&6
771fi
772
773echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
774echo "configure:775: checking for working makeinfo" >&5
775# Run test in a subshell; some versions of sh will print an error if
776# an executable is not found, even if stderr is redirected.
777# Redirect stdin to placate older versions of autoconf.  Sigh.
778if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
779   MAKEINFO=makeinfo
780   echo "$ac_t""found" 1>&6
781else
782   MAKEINFO="$missing_dir/missing makeinfo"
783   echo "$ac_t""missing" 1>&6
784fi
785
786
787
788# Check whether --enable-shared or --disable-shared was given.
789if test "${enable_shared+set}" = set; then
790  enableval="$enable_shared"
791  p=${PACKAGE-default}
792case "$enableval" in
793yes) enable_shared=yes ;;
794no) enable_shared=no ;;
795*)
796  enable_shared=no
797  # Look at the argument we got.  We use all the common list separators.
798  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
799  for pkg in $enableval; do
800    if test "X$pkg" = "X$p"; then
801      enable_shared=yes
802    fi
803  done
804  IFS="$ac_save_ifs"
805  ;;
806esac
807else
808  enable_shared=yes
809fi
810
811# Check whether --enable-static or --disable-static was given.
812if test "${enable_static+set}" = set; then
813  enableval="$enable_static"
814  p=${PACKAGE-default}
815case "$enableval" in
816yes) enable_static=yes ;;
817no) enable_static=no ;;
818*)
819  enable_static=no
820  # Look at the argument we got.  We use all the common list separators.
821  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
822  for pkg in $enableval; do
823    if test "X$pkg" = "X$p"; then
824      enable_static=yes
825    fi
826  done
827  IFS="$ac_save_ifs"
828  ;;
829esac
830else
831  enable_static=yes
832fi
833
834# Check whether --enable-fast-install or --disable-fast-install was given.
835if test "${enable_fast_install+set}" = set; then
836  enableval="$enable_fast_install"
837  p=${PACKAGE-default}
838case "$enableval" in
839yes) enable_fast_install=yes ;;
840no) enable_fast_install=no ;;
841*)
842  enable_fast_install=no
843  # Look at the argument we got.  We use all the common list separators.
844  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
845  for pkg in $enableval; do
846    if test "X$pkg" = "X$p"; then
847      enable_fast_install=yes
848    fi
849  done
850  IFS="$ac_save_ifs"
851  ;;
852esac
853else
854  enable_fast_install=yes
855fi
856
857
858# Make sure we can run config.sub.
859if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
860else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
861fi
862
863echo $ac_n "checking host system type""... $ac_c" 1>&6
864echo "configure:865: checking host system type" >&5
865
866host_alias=$host
867case "$host_alias" in
868NONE)
869  case $nonopt in
870  NONE)
871    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
872    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
873    fi ;;
874  *) host_alias=$nonopt ;;
875  esac ;;
876esac
877
878host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
879host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
880host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
881host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
882echo "$ac_t""$host" 1>&6
883
884echo $ac_n "checking build system type""... $ac_c" 1>&6
885echo "configure:886: checking build system type" >&5
886
887build_alias=$build
888case "$build_alias" in
889NONE)
890  case $nonopt in
891  NONE) build_alias=$host_alias ;;
892  *) build_alias=$nonopt ;;
893  esac ;;
894esac
895
896build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
897build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
900echo "$ac_t""$build" 1>&6
901
902# Extract the first word of "ranlib", so it can be a program name with args.
903set dummy ranlib; ac_word=$2
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
905echo "configure:906: checking for $ac_word" >&5
906if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
907  echo $ac_n "(cached) $ac_c" 1>&6
908else
909  if test -n "$RANLIB"; then
910  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
911else
912  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
913  ac_dummy="$PATH"
914  for ac_dir in $ac_dummy; do
915    test -z "$ac_dir" && ac_dir=.
916    if test -f $ac_dir/$ac_word; then
917      ac_cv_prog_RANLIB="ranlib"
918      break
919    fi
920  done
921  IFS="$ac_save_ifs"
922  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
923fi
924fi
925RANLIB="$ac_cv_prog_RANLIB"
926if test -n "$RANLIB"; then
927  echo "$ac_t""$RANLIB" 1>&6
928else
929  echo "$ac_t""no" 1>&6
930fi
931
932# Extract the first word of "gcc", so it can be a program name with args.
933set dummy gcc; ac_word=$2
934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935echo "configure:936: checking for $ac_word" >&5
936if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
937  echo $ac_n "(cached) $ac_c" 1>&6
938else
939  if test -n "$CC"; then
940  ac_cv_prog_CC="$CC" # Let the user override the test.
941else
942  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
943  ac_dummy="$PATH"
944  for ac_dir in $ac_dummy; do
945    test -z "$ac_dir" && ac_dir=.
946    if test -f $ac_dir/$ac_word; then
947      ac_cv_prog_CC="gcc"
948      break
949    fi
950  done
951  IFS="$ac_save_ifs"
952fi
953fi
954CC="$ac_cv_prog_CC"
955if test -n "$CC"; then
956  echo "$ac_t""$CC" 1>&6
957else
958  echo "$ac_t""no" 1>&6
959fi
960
961if test -z "$CC"; then
962  # Extract the first word of "cc", so it can be a program name with args.
963set dummy cc; ac_word=$2
964echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965echo "configure:966: checking for $ac_word" >&5
966if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967  echo $ac_n "(cached) $ac_c" 1>&6
968else
969  if test -n "$CC"; then
970  ac_cv_prog_CC="$CC" # Let the user override the test.
971else
972  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
973  ac_prog_rejected=no
974  ac_dummy="$PATH"
975  for ac_dir in $ac_dummy; do
976    test -z "$ac_dir" && ac_dir=.
977    if test -f $ac_dir/$ac_word; then
978      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
979        ac_prog_rejected=yes
980	continue
981      fi
982      ac_cv_prog_CC="cc"
983      break
984    fi
985  done
986  IFS="$ac_save_ifs"
987if test $ac_prog_rejected = yes; then
988  # We found a bogon in the path, so make sure we never use it.
989  set dummy $ac_cv_prog_CC
990  shift
991  if test $# -gt 0; then
992    # We chose a different compiler from the bogus one.
993    # However, it has the same basename, so the bogon will be chosen
994    # first if we set CC to just the basename; use the full file name.
995    shift
996    set dummy "$ac_dir/$ac_word" "$@"
997    shift
998    ac_cv_prog_CC="$@"
999  fi
1000fi
1001fi
1002fi
1003CC="$ac_cv_prog_CC"
1004if test -n "$CC"; then
1005  echo "$ac_t""$CC" 1>&6
1006else
1007  echo "$ac_t""no" 1>&6
1008fi
1009
1010  if test -z "$CC"; then
1011    case "`uname -s`" in
1012    *win32* | *WIN32*)
1013      # Extract the first word of "cl", so it can be a program name with args.
1014set dummy cl; ac_word=$2
1015echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1016echo "configure:1017: checking for $ac_word" >&5
1017if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1018  echo $ac_n "(cached) $ac_c" 1>&6
1019else
1020  if test -n "$CC"; then
1021  ac_cv_prog_CC="$CC" # Let the user override the test.
1022else
1023  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1024  ac_dummy="$PATH"
1025  for ac_dir in $ac_dummy; do
1026    test -z "$ac_dir" && ac_dir=.
1027    if test -f $ac_dir/$ac_word; then
1028      ac_cv_prog_CC="cl"
1029      break
1030    fi
1031  done
1032  IFS="$ac_save_ifs"
1033fi
1034fi
1035CC="$ac_cv_prog_CC"
1036if test -n "$CC"; then
1037  echo "$ac_t""$CC" 1>&6
1038else
1039  echo "$ac_t""no" 1>&6
1040fi
1041 ;;
1042    esac
1043  fi
1044  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1045fi
1046
1047echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1048echo "configure:1049: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1049
1050ac_ext=c
1051# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1052ac_cpp='$CPP $CPPFLAGS'
1053ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1054ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1055cross_compiling=$ac_cv_prog_cc_cross
1056
1057cat > conftest.$ac_ext << EOF
1058
1059#line 1060 "configure"
1060#include "confdefs.h"
1061
1062main(){return(0);}
1063EOF
1064if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1065  ac_cv_prog_cc_works=yes
1066  # If we can't run a trivial program, we are probably using a cross compiler.
1067  if (./conftest; exit) 2>/dev/null; then
1068    ac_cv_prog_cc_cross=no
1069  else
1070    ac_cv_prog_cc_cross=yes
1071  fi
1072else
1073  echo "configure: failed program was:" >&5
1074  cat conftest.$ac_ext >&5
1075  ac_cv_prog_cc_works=no
1076fi
1077rm -fr conftest*
1078ac_ext=c
1079# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1080ac_cpp='$CPP $CPPFLAGS'
1081ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1082ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1083cross_compiling=$ac_cv_prog_cc_cross
1084
1085echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1086if test $ac_cv_prog_cc_works = no; then
1087  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1088fi
1089echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1090echo "configure:1091: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1091echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1092cross_compiling=$ac_cv_prog_cc_cross
1093
1094echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1095echo "configure:1096: checking whether we are using GNU C" >&5
1096if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1097  echo $ac_n "(cached) $ac_c" 1>&6
1098else
1099  cat > conftest.c <<EOF
1100#ifdef __GNUC__
1101  yes;
1102#endif
1103EOF
1104if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1105  ac_cv_prog_gcc=yes
1106else
1107  ac_cv_prog_gcc=no
1108fi
1109fi
1110
1111echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1112
1113if test $ac_cv_prog_gcc = yes; then
1114  GCC=yes
1115else
1116  GCC=
1117fi
1118
1119ac_test_CFLAGS="${CFLAGS+set}"
1120ac_save_CFLAGS="$CFLAGS"
1121CFLAGS=
1122echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1123echo "configure:1124: checking whether ${CC-cc} accepts -g" >&5
1124if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1125  echo $ac_n "(cached) $ac_c" 1>&6
1126else
1127  echo 'void f(){}' > conftest.c
1128if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1129  ac_cv_prog_cc_g=yes
1130else
1131  ac_cv_prog_cc_g=no
1132fi
1133rm -f conftest*
1134
1135fi
1136
1137echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1138if test "$ac_test_CFLAGS" = set; then
1139  CFLAGS="$ac_save_CFLAGS"
1140elif test $ac_cv_prog_cc_g = yes; then
1141  if test "$GCC" = yes; then
1142    CFLAGS="-g -O2"
1143  else
1144    CFLAGS="-g"
1145  fi
1146else
1147  if test "$GCC" = yes; then
1148    CFLAGS="-O2"
1149  else
1150    CFLAGS=
1151  fi
1152fi
1153
1154# Check whether --with-gnu-ld or --without-gnu-ld was given.
1155if test "${with_gnu_ld+set}" = set; then
1156  withval="$with_gnu_ld"
1157  test "$withval" = no || with_gnu_ld=yes
1158else
1159  with_gnu_ld=no
1160fi
1161
1162ac_prog=ld
1163if test "$ac_cv_prog_gcc" = yes; then
1164  # Check if gcc -print-prog-name=ld gives a path.
1165  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1166echo "configure:1167: checking for ld used by GCC" >&5
1167  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1168  case "$ac_prog" in
1169    # Accept absolute paths.
1170    [\\/]* | [A-Za-z]:[\\/]*)
1171      re_direlt='/[^/][^/]*/\.\./'
1172      # Canonicalize the path of ld
1173      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1174      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1175	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1176      done
1177      test -z "$LD" && LD="$ac_prog"
1178      ;;
1179  "")
1180    # If it fails, then pretend we aren't using GCC.
1181    ac_prog=ld
1182    ;;
1183  *)
1184    # If it is relative, then search for the first ld in PATH.
1185    with_gnu_ld=unknown
1186    ;;
1187  esac
1188elif test "$with_gnu_ld" = yes; then
1189  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1190echo "configure:1191: checking for GNU ld" >&5
1191else
1192  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1193echo "configure:1194: checking for non-GNU ld" >&5
1194fi
1195if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1196  echo $ac_n "(cached) $ac_c" 1>&6
1197else
1198  if test -z "$LD"; then
1199  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1200  for ac_dir in $PATH; do
1201    test -z "$ac_dir" && ac_dir=.
1202    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1203      ac_cv_path_LD="$ac_dir/$ac_prog"
1204      # Check to see if the program is GNU ld.  I'd rather use --version,
1205      # but apparently some GNU ld's only accept -v.
1206      # Break only if it was the GNU/non-GNU ld that we prefer.
1207      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1208	test "$with_gnu_ld" != no && break
1209      else
1210	test "$with_gnu_ld" != yes && break
1211      fi
1212    fi
1213  done
1214  IFS="$ac_save_ifs"
1215else
1216  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1217fi
1218fi
1219
1220LD="$ac_cv_path_LD"
1221if test -n "$LD"; then
1222  echo "$ac_t""$LD" 1>&6
1223else
1224  echo "$ac_t""no" 1>&6
1225fi
1226test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1227echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1228echo "configure:1229: checking if the linker ($LD) is GNU ld" >&5
1229if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1230  echo $ac_n "(cached) $ac_c" 1>&6
1231else
1232  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1233if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1234  ac_cv_prog_gnu_ld=yes
1235else
1236  ac_cv_prog_gnu_ld=no
1237fi
1238fi
1239
1240echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1241
1242
1243echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1244echo "configure:1245: checking for BSD-compatible nm" >&5
1245if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1246  echo $ac_n "(cached) $ac_c" 1>&6
1247else
1248  if test -n "$NM"; then
1249  # Let the user override the test.
1250  ac_cv_path_NM="$NM"
1251else
1252  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1253  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1254    test -z "$ac_dir" && ac_dir=.
1255    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1256      # Check to see if the nm accepts a BSD-compat flag.
1257      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1258      #   nm: unknown option "B" ignored
1259      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1260	ac_cv_path_NM="$ac_dir/nm -B"
1261	break
1262      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1263	ac_cv_path_NM="$ac_dir/nm -p"
1264	break
1265      else
1266	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1267	continue # so that we can try to find one that supports BSD flags
1268      fi
1269    fi
1270  done
1271  IFS="$ac_save_ifs"
1272  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1273fi
1274fi
1275
1276NM="$ac_cv_path_NM"
1277echo "$ac_t""$NM" 1>&6
1278
1279echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1280echo "configure:1281: checking whether ln -s works" >&5
1281if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1282  echo $ac_n "(cached) $ac_c" 1>&6
1283else
1284  rm -f conftestdata
1285if ln -s X conftestdata 2>/dev/null
1286then
1287  rm -f conftestdata
1288  ac_cv_prog_LN_S="ln -s"
1289else
1290  ac_cv_prog_LN_S=ln
1291fi
1292fi
1293LN_S="$ac_cv_prog_LN_S"
1294if test "$ac_cv_prog_LN_S" = "ln -s"; then
1295  echo "$ac_t""yes" 1>&6
1296else
1297  echo "$ac_t""no" 1>&6
1298fi
1299
1300
1301case "$target" in
1302NONE) lt_target="$host" ;;
1303*) lt_target="$target" ;;
1304esac
1305
1306# Check for any special flags to pass to ltconfig.
1307libtool_flags="--cache-file=$cache_file"
1308test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1309test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1310test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1311test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1312test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1313
1314
1315# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1316if test "${enable_libtool_lock+set}" = set; then
1317  enableval="$enable_libtool_lock"
1318  :
1319fi
1320
1321test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1322test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1323
1324# Some flags need to be propagated to the compiler or linker for good
1325# libtool support.
1326case "$lt_target" in
1327*-*-irix6*)
1328  # Find out which ABI we are using.
1329  echo '#line 1330 "configure"' > conftest.$ac_ext
1330  if { (eval echo configure:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1331    case "`/usr/bin/file conftest.o`" in
1332    *32-bit*)
1333      LD="${LD-ld} -32"
1334      ;;
1335    *N32*)
1336      LD="${LD-ld} -n32"
1337      ;;
1338    *64-bit*)
1339      LD="${LD-ld} -64"
1340      ;;
1341    esac
1342  fi
1343  rm -rf conftest*
1344  ;;
1345
1346*-*-sco3.2v5*)
1347  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1348  SAVE_CFLAGS="$CFLAGS"
1349  CFLAGS="$CFLAGS -belf"
1350  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1351echo "configure:1352: checking whether the C compiler needs -belf" >&5
1352if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1353  echo $ac_n "(cached) $ac_c" 1>&6
1354else
1355
1356     ac_ext=c
1357# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1358ac_cpp='$CPP $CPPFLAGS'
1359ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1360ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1361cross_compiling=$ac_cv_prog_cc_cross
1362
1363     cat > conftest.$ac_ext <<EOF
1364#line 1365 "configure"
1365#include "confdefs.h"
1366
1367int main() {
1368
1369; return 0; }
1370EOF
1371if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372  rm -rf conftest*
1373  lt_cv_cc_needs_belf=yes
1374else
1375  echo "configure: failed program was:" >&5
1376  cat conftest.$ac_ext >&5
1377  rm -rf conftest*
1378  lt_cv_cc_needs_belf=no
1379fi
1380rm -f conftest*
1381     ac_ext=c
1382# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1383ac_cpp='$CPP $CPPFLAGS'
1384ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1385ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1386cross_compiling=$ac_cv_prog_cc_cross
1387
1388fi
1389
1390echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1391  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1393    CFLAGS="$SAVE_CFLAGS"
1394  fi
1395  ;;
1396
1397
1398esac
1399
1400
1401# Save cache, so that ltconfig can load it
1402cat > confcache <<\EOF
1403# This file is a shell script that caches the results of configure
1404# tests run on this system so they can be shared between configure
1405# scripts and configure runs.  It is not useful on other systems.
1406# If it contains results you don't want to keep, you may remove or edit it.
1407#
1408# By default, configure uses ./config.cache as the cache file,
1409# creating it if it does not exist already.  You can give configure
1410# the --cache-file=FILE option to use a different cache file; that is
1411# what configure does when it calls configure scripts in
1412# subdirectories, so they share the cache.
1413# Giving --cache-file=/dev/null disables caching, for debugging configure.
1414# config.status only pays attention to the cache file if you give it the
1415# --recheck option to rerun configure.
1416#
1417EOF
1418# The following way of writing the cache mishandles newlines in values,
1419# but we know of no workaround that is simple, portable, and efficient.
1420# So, don't put newlines in cache variables' values.
1421# Ultrix sh set writes to stderr and can't be redirected directly,
1422# and sets the high bit in the cache file unless we assign to the vars.
1423(set) 2>&1 |
1424  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1425  *ac_space=\ *)
1426    # `set' does not quote correctly, so add quotes (double-quote substitution
1427    # turns \\\\ into \\, and sed turns \\ into \).
1428    sed -n \
1429      -e "s/'/'\\\\''/g" \
1430      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1431    ;;
1432  *)
1433    # `set' quotes correctly as required by POSIX, so do not add quotes.
1434    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1435    ;;
1436  esac >> confcache
1437if cmp -s $cache_file confcache; then
1438  :
1439else
1440  if test -w $cache_file; then
1441    echo "updating cache $cache_file"
1442    cat confcache > $cache_file
1443  else
1444    echo "not updating unwritable cache $cache_file"
1445  fi
1446fi
1447rm -f confcache
1448
1449
1450# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1451CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1452LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1453LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1454DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1455${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1456$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1457|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1458
1459# Reload cache, that may have been modified by ltconfig
1460if test -r "$cache_file"; then
1461  echo "loading cache $cache_file"
1462  . $cache_file
1463else
1464  echo "creating cache $cache_file"
1465  > $cache_file
1466fi
1467
1468
1469# This can be used to rebuild libtool when needed
1470LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1471
1472# Always use our own libtool.
1473LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1474
1475# Redirect the config.log output again, so that the ltconfig log is not
1476# clobbered by the next message.
1477exec 5>>./config.log
1478
1479
1480# Extract the first word of "gcc", so it can be a program name with args.
1481set dummy gcc; ac_word=$2
1482echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483echo "configure:1484: checking for $ac_word" >&5
1484if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1485  echo $ac_n "(cached) $ac_c" 1>&6
1486else
1487  if test -n "$CC"; then
1488  ac_cv_prog_CC="$CC" # Let the user override the test.
1489else
1490  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1491  ac_dummy="$PATH"
1492  for ac_dir in $ac_dummy; do
1493    test -z "$ac_dir" && ac_dir=.
1494    if test -f $ac_dir/$ac_word; then
1495      ac_cv_prog_CC="gcc"
1496      break
1497    fi
1498  done
1499  IFS="$ac_save_ifs"
1500fi
1501fi
1502CC="$ac_cv_prog_CC"
1503if test -n "$CC"; then
1504  echo "$ac_t""$CC" 1>&6
1505else
1506  echo "$ac_t""no" 1>&6
1507fi
1508
1509if test -z "$CC"; then
1510  # Extract the first word of "cc", so it can be a program name with args.
1511set dummy cc; ac_word=$2
1512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513echo "configure:1514: checking for $ac_word" >&5
1514if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1515  echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517  if test -n "$CC"; then
1518  ac_cv_prog_CC="$CC" # Let the user override the test.
1519else
1520  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1521  ac_prog_rejected=no
1522  ac_dummy="$PATH"
1523  for ac_dir in $ac_dummy; do
1524    test -z "$ac_dir" && ac_dir=.
1525    if test -f $ac_dir/$ac_word; then
1526      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1527        ac_prog_rejected=yes
1528	continue
1529      fi
1530      ac_cv_prog_CC="cc"
1531      break
1532    fi
1533  done
1534  IFS="$ac_save_ifs"
1535if test $ac_prog_rejected = yes; then
1536  # We found a bogon in the path, so make sure we never use it.
1537  set dummy $ac_cv_prog_CC
1538  shift
1539  if test $# -gt 0; then
1540    # We chose a different compiler from the bogus one.
1541    # However, it has the same basename, so the bogon will be chosen
1542    # first if we set CC to just the basename; use the full file name.
1543    shift
1544    set dummy "$ac_dir/$ac_word" "$@"
1545    shift
1546    ac_cv_prog_CC="$@"
1547  fi
1548fi
1549fi
1550fi
1551CC="$ac_cv_prog_CC"
1552if test -n "$CC"; then
1553  echo "$ac_t""$CC" 1>&6
1554else
1555  echo "$ac_t""no" 1>&6
1556fi
1557
1558  if test -z "$CC"; then
1559    case "`uname -s`" in
1560    *win32* | *WIN32*)
1561      # Extract the first word of "cl", so it can be a program name with args.
1562set dummy cl; ac_word=$2
1563echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1564echo "configure:1565: checking for $ac_word" >&5
1565if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1566  echo $ac_n "(cached) $ac_c" 1>&6
1567else
1568  if test -n "$CC"; then
1569  ac_cv_prog_CC="$CC" # Let the user override the test.
1570else
1571  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1572  ac_dummy="$PATH"
1573  for ac_dir in $ac_dummy; do
1574    test -z "$ac_dir" && ac_dir=.
1575    if test -f $ac_dir/$ac_word; then
1576      ac_cv_prog_CC="cl"
1577      break
1578    fi
1579  done
1580  IFS="$ac_save_ifs"
1581fi
1582fi
1583CC="$ac_cv_prog_CC"
1584if test -n "$CC"; then
1585  echo "$ac_t""$CC" 1>&6
1586else
1587  echo "$ac_t""no" 1>&6
1588fi
1589 ;;
1590    esac
1591  fi
1592  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1593fi
1594
1595echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1596echo "configure:1597: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1597
1598ac_ext=c
1599# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1600ac_cpp='$CPP $CPPFLAGS'
1601ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1602ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1603cross_compiling=$ac_cv_prog_cc_cross
1604
1605cat > conftest.$ac_ext << EOF
1606
1607#line 1608 "configure"
1608#include "confdefs.h"
1609
1610main(){return(0);}
1611EOF
1612if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1613  ac_cv_prog_cc_works=yes
1614  # If we can't run a trivial program, we are probably using a cross compiler.
1615  if (./conftest; exit) 2>/dev/null; then
1616    ac_cv_prog_cc_cross=no
1617  else
1618    ac_cv_prog_cc_cross=yes
1619  fi
1620else
1621  echo "configure: failed program was:" >&5
1622  cat conftest.$ac_ext >&5
1623  ac_cv_prog_cc_works=no
1624fi
1625rm -fr conftest*
1626ac_ext=c
1627# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1628ac_cpp='$CPP $CPPFLAGS'
1629ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1630ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1631cross_compiling=$ac_cv_prog_cc_cross
1632
1633echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1634if test $ac_cv_prog_cc_works = no; then
1635  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1636fi
1637echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1638echo "configure:1639: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1639echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1640cross_compiling=$ac_cv_prog_cc_cross
1641
1642echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1643echo "configure:1644: checking whether we are using GNU C" >&5
1644if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1645  echo $ac_n "(cached) $ac_c" 1>&6
1646else
1647  cat > conftest.c <<EOF
1648#ifdef __GNUC__
1649  yes;
1650#endif
1651EOF
1652if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1653  ac_cv_prog_gcc=yes
1654else
1655  ac_cv_prog_gcc=no
1656fi
1657fi
1658
1659echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1660
1661if test $ac_cv_prog_gcc = yes; then
1662  GCC=yes
1663else
1664  GCC=
1665fi
1666
1667ac_test_CFLAGS="${CFLAGS+set}"
1668ac_save_CFLAGS="$CFLAGS"
1669CFLAGS=
1670echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1671echo "configure:1672: checking whether ${CC-cc} accepts -g" >&5
1672if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1673  echo $ac_n "(cached) $ac_c" 1>&6
1674else
1675  echo 'void f(){}' > conftest.c
1676if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1677  ac_cv_prog_cc_g=yes
1678else
1679  ac_cv_prog_cc_g=no
1680fi
1681rm -f conftest*
1682
1683fi
1684
1685echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1686if test "$ac_test_CFLAGS" = set; then
1687  CFLAGS="$ac_save_CFLAGS"
1688elif test $ac_cv_prog_cc_g = yes; then
1689  if test "$GCC" = yes; then
1690    CFLAGS="-g -O2"
1691  else
1692    CFLAGS="-g"
1693  fi
1694else
1695  if test "$GCC" = yes; then
1696    CFLAGS="-O2"
1697  else
1698    CFLAGS=
1699  fi
1700fi
1701
1702
1703
1704echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1705echo "configure:1706: checking how to run the C preprocessor" >&5
1706# On Suns, sometimes $CPP names a directory.
1707if test -n "$CPP" && test -d "$CPP"; then
1708  CPP=
1709fi
1710if test -z "$CPP"; then
1711if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1712  echo $ac_n "(cached) $ac_c" 1>&6
1713else
1714    # This must be in double quotes, not single quotes, because CPP may get
1715  # substituted into the Makefile and "${CC-cc}" will confuse make.
1716  CPP="${CC-cc} -E"
1717  # On the NeXT, cc -E runs the code through the compiler's parser,
1718  # not just through cpp.
1719  cat > conftest.$ac_ext <<EOF
1720#line 1721 "configure"
1721#include "confdefs.h"
1722#include <assert.h>
1723Syntax Error
1724EOF
1725ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1726{ (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1727ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1728if test -z "$ac_err"; then
1729  :
1730else
1731  echo "$ac_err" >&5
1732  echo "configure: failed program was:" >&5
1733  cat conftest.$ac_ext >&5
1734  rm -rf conftest*
1735  CPP="${CC-cc} -E -traditional-cpp"
1736  cat > conftest.$ac_ext <<EOF
1737#line 1738 "configure"
1738#include "confdefs.h"
1739#include <assert.h>
1740Syntax Error
1741EOF
1742ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1743{ (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1744ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1745if test -z "$ac_err"; then
1746  :
1747else
1748  echo "$ac_err" >&5
1749  echo "configure: failed program was:" >&5
1750  cat conftest.$ac_ext >&5
1751  rm -rf conftest*
1752  CPP="${CC-cc} -nologo -E"
1753  cat > conftest.$ac_ext <<EOF
1754#line 1755 "configure"
1755#include "confdefs.h"
1756#include <assert.h>
1757Syntax Error
1758EOF
1759ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1760{ (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1761ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1762if test -z "$ac_err"; then
1763  :
1764else
1765  echo "$ac_err" >&5
1766  echo "configure: failed program was:" >&5
1767  cat conftest.$ac_ext >&5
1768  rm -rf conftest*
1769  CPP=/lib/cpp
1770fi
1771rm -f conftest*
1772fi
1773rm -f conftest*
1774fi
1775rm -f conftest*
1776  ac_cv_prog_CPP="$CPP"
1777fi
1778  CPP="$ac_cv_prog_CPP"
1779else
1780  ac_cv_prog_CPP="$CPP"
1781fi
1782echo "$ac_t""$CPP" 1>&6
1783
1784missing_dir=`cd $ac_aux_dir && pwd`
1785for ac_prog in flex lex
1786do
1787# Extract the first word of "$ac_prog", so it can be a program name with args.
1788set dummy $ac_prog; ac_word=$2
1789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790echo "configure:1791: checking for $ac_word" >&5
1791if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1792  echo $ac_n "(cached) $ac_c" 1>&6
1793else
1794  if test -n "$LEX"; then
1795  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1796else
1797  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1798  ac_dummy="$PATH"
1799  for ac_dir in $ac_dummy; do
1800    test -z "$ac_dir" && ac_dir=.
1801    if test -f $ac_dir/$ac_word; then
1802      ac_cv_prog_LEX="$ac_prog"
1803      break
1804    fi
1805  done
1806  IFS="$ac_save_ifs"
1807fi
1808fi
1809LEX="$ac_cv_prog_LEX"
1810if test -n "$LEX"; then
1811  echo "$ac_t""$LEX" 1>&6
1812else
1813  echo "$ac_t""no" 1>&6
1814fi
1815
1816test -n "$LEX" && break
1817done
1818test -n "$LEX" || LEX=""$missing_dir/missing flex""
1819
1820# Extract the first word of "flex", so it can be a program name with args.
1821set dummy flex; ac_word=$2
1822echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823echo "configure:1824: checking for $ac_word" >&5
1824if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1825  echo $ac_n "(cached) $ac_c" 1>&6
1826else
1827  if test -n "$LEX"; then
1828  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1829else
1830  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1831  ac_dummy="$PATH"
1832  for ac_dir in $ac_dummy; do
1833    test -z "$ac_dir" && ac_dir=.
1834    if test -f $ac_dir/$ac_word; then
1835      ac_cv_prog_LEX="flex"
1836      break
1837    fi
1838  done
1839  IFS="$ac_save_ifs"
1840  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1841fi
1842fi
1843LEX="$ac_cv_prog_LEX"
1844if test -n "$LEX"; then
1845  echo "$ac_t""$LEX" 1>&6
1846else
1847  echo "$ac_t""no" 1>&6
1848fi
1849
1850if test -z "$LEXLIB"
1851then
1852  case "$LEX" in
1853  flex*) ac_lib=fl ;;
1854  *) ac_lib=l ;;
1855  esac
1856  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1857echo "configure:1858: checking for yywrap in -l$ac_lib" >&5
1858ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1860  echo $ac_n "(cached) $ac_c" 1>&6
1861else
1862  ac_save_LIBS="$LIBS"
1863LIBS="-l$ac_lib  $LIBS"
1864cat > conftest.$ac_ext <<EOF
1865#line 1866 "configure"
1866#include "confdefs.h"
1867/* Override any gcc2 internal prototype to avoid an error.  */
1868/* We use char because int might match the return type of a gcc2
1869    builtin and then its argument prototype would still apply.  */
1870char yywrap();
1871
1872int main() {
1873yywrap()
1874; return 0; }
1875EOF
1876if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1877  rm -rf conftest*
1878  eval "ac_cv_lib_$ac_lib_var=yes"
1879else
1880  echo "configure: failed program was:" >&5
1881  cat conftest.$ac_ext >&5
1882  rm -rf conftest*
1883  eval "ac_cv_lib_$ac_lib_var=no"
1884fi
1885rm -f conftest*
1886LIBS="$ac_save_LIBS"
1887
1888fi
1889if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1890  echo "$ac_t""yes" 1>&6
1891  LEXLIB="-l$ac_lib"
1892else
1893  echo "$ac_t""no" 1>&6
1894fi
1895
1896fi
1897
1898echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1899echo "configure:1900: checking lex output file root" >&5
1900if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1901  echo $ac_n "(cached) $ac_c" 1>&6
1902else
1903  # The minimal lex program is just a single line: %%.  But some broken lexes
1904# (Solaris, I think it was) want two %% lines, so accommodate them.
1905echo '%%
1906%%' | $LEX
1907if test -f lex.yy.c; then
1908  ac_cv_prog_lex_root=lex.yy
1909elif test -f lexyy.c; then
1910  ac_cv_prog_lex_root=lexyy
1911else
1912  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1913fi
1914fi
1915
1916echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1917LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1918
1919echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1920echo "configure:1921: checking whether yytext is a pointer" >&5
1921if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1922  echo $ac_n "(cached) $ac_c" 1>&6
1923else
1924  # POSIX says lex can declare yytext either as a pointer or an array; the
1925# default is implementation-dependent. Figure out which it is, since
1926# not all implementations provide the %pointer and %array declarations.
1927ac_cv_prog_lex_yytext_pointer=no
1928echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1929ac_save_LIBS="$LIBS"
1930LIBS="$LIBS $LEXLIB"
1931cat > conftest.$ac_ext <<EOF
1932#line 1933 "configure"
1933#include "confdefs.h"
1934`cat $LEX_OUTPUT_ROOT.c`
1935int main() {
1936
1937; return 0; }
1938EOF
1939if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1940  rm -rf conftest*
1941  ac_cv_prog_lex_yytext_pointer=yes
1942else
1943  echo "configure: failed program was:" >&5
1944  cat conftest.$ac_ext >&5
1945fi
1946rm -f conftest*
1947LIBS="$ac_save_LIBS"
1948rm -f "${LEX_OUTPUT_ROOT}.c"
1949
1950fi
1951
1952echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1953if test $ac_cv_prog_lex_yytext_pointer = yes; then
1954  cat >> confdefs.h <<\EOF
1955#define YYTEXT_POINTER 1
1956EOF
1957
1958fi
1959
1960for ac_prog in 'bison -y' byacc
1961do
1962# Extract the first word of "$ac_prog", so it can be a program name with args.
1963set dummy $ac_prog; ac_word=$2
1964echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965echo "configure:1966: checking for $ac_word" >&5
1966if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1967  echo $ac_n "(cached) $ac_c" 1>&6
1968else
1969  if test -n "$YACC"; then
1970  ac_cv_prog_YACC="$YACC" # Let the user override the test.
1971else
1972  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1973  ac_dummy="$PATH"
1974  for ac_dir in $ac_dummy; do
1975    test -z "$ac_dir" && ac_dir=.
1976    if test -f $ac_dir/$ac_word; then
1977      ac_cv_prog_YACC="$ac_prog"
1978      break
1979    fi
1980  done
1981  IFS="$ac_save_ifs"
1982fi
1983fi
1984YACC="$ac_cv_prog_YACC"
1985if test -n "$YACC"; then
1986  echo "$ac_t""$YACC" 1>&6
1987else
1988  echo "$ac_t""no" 1>&6
1989fi
1990
1991test -n "$YACC" && break
1992done
1993test -n "$YACC" || YACC="yacc"
1994
1995echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1996echo "configure:1997: checking whether ${MAKE-make} sets \${MAKE}" >&5
1997set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1998if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1999  echo $ac_n "(cached) $ac_c" 1>&6
2000else
2001  cat > conftestmake <<\EOF
2002all:
2003	@echo 'ac_maketemp="${MAKE}"'
2004EOF
2005# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2006eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2007if test -n "$ac_maketemp"; then
2008  eval ac_cv_prog_make_${ac_make}_set=yes
2009else
2010  eval ac_cv_prog_make_${ac_make}_set=no
2011fi
2012rm -f conftestmake
2013fi
2014if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2015  echo "$ac_t""yes" 1>&6
2016  SET_MAKE=
2017else
2018  echo "$ac_t""no" 1>&6
2019  SET_MAKE="MAKE=${MAKE-make}"
2020fi
2021
2022#AC_PROG_RANLIB
2023
2024echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2025echo "configure:2026: checking for ANSI C header files" >&5
2026if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2027  echo $ac_n "(cached) $ac_c" 1>&6
2028else
2029  cat > conftest.$ac_ext <<EOF
2030#line 2031 "configure"
2031#include "confdefs.h"
2032#include <stdlib.h>
2033#include <stdarg.h>
2034#include <string.h>
2035#include <float.h>
2036EOF
2037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2038{ (eval echo configure:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2040if test -z "$ac_err"; then
2041  rm -rf conftest*
2042  ac_cv_header_stdc=yes
2043else
2044  echo "$ac_err" >&5
2045  echo "configure: failed program was:" >&5
2046  cat conftest.$ac_ext >&5
2047  rm -rf conftest*
2048  ac_cv_header_stdc=no
2049fi
2050rm -f conftest*
2051
2052if test $ac_cv_header_stdc = yes; then
2053  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2054cat > conftest.$ac_ext <<EOF
2055#line 2056 "configure"
2056#include "confdefs.h"
2057#include <string.h>
2058EOF
2059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2060  egrep "memchr" >/dev/null 2>&1; then
2061  :
2062else
2063  rm -rf conftest*
2064  ac_cv_header_stdc=no
2065fi
2066rm -f conftest*
2067
2068fi
2069
2070if test $ac_cv_header_stdc = yes; then
2071  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2072cat > conftest.$ac_ext <<EOF
2073#line 2074 "configure"
2074#include "confdefs.h"
2075#include <stdlib.h>
2076EOF
2077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2078  egrep "free" >/dev/null 2>&1; then
2079  :
2080else
2081  rm -rf conftest*
2082  ac_cv_header_stdc=no
2083fi
2084rm -f conftest*
2085
2086fi
2087
2088if test $ac_cv_header_stdc = yes; then
2089  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2090if test "$cross_compiling" = yes; then
2091  :
2092else
2093  cat > conftest.$ac_ext <<EOF
2094#line 2095 "configure"
2095#include "confdefs.h"
2096#include <ctype.h>
2097#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2098#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2100int main () { int i; for (i = 0; i < 256; i++)
2101if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2102exit (0); }
2103
2104EOF
2105if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2106then
2107  :
2108else
2109  echo "configure: failed program was:" >&5
2110  cat conftest.$ac_ext >&5
2111  rm -fr conftest*
2112  ac_cv_header_stdc=no
2113fi
2114rm -fr conftest*
2115fi
2116
2117fi
2118fi
2119
2120echo "$ac_t""$ac_cv_header_stdc" 1>&6
2121if test $ac_cv_header_stdc = yes; then
2122  cat >> confdefs.h <<\EOF
2123#define STDC_HEADERS 1
2124EOF
2125
2126fi
2127
2128for ac_hdr in fcntl.h sys/file.h sys/time.h unistd.h crypt.h
2129do
2130ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2131echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2132echo "configure:2133: checking for $ac_hdr" >&5
2133if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2134  echo $ac_n "(cached) $ac_c" 1>&6
2135else
2136  cat > conftest.$ac_ext <<EOF
2137#line 2138 "configure"
2138#include "confdefs.h"
2139#include <$ac_hdr>
2140EOF
2141ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2142{ (eval echo configure:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2143ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2144if test -z "$ac_err"; then
2145  rm -rf conftest*
2146  eval "ac_cv_header_$ac_safe=yes"
2147else
2148  echo "$ac_err" >&5
2149  echo "configure: failed program was:" >&5
2150  cat conftest.$ac_ext >&5
2151  rm -rf conftest*
2152  eval "ac_cv_header_$ac_safe=no"
2153fi
2154rm -f conftest*
2155fi
2156if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2157  echo "$ac_t""yes" 1>&6
2158    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2159  cat >> confdefs.h <<EOF
2160#define $ac_tr_hdr 1
2161EOF
2162
2163else
2164  echo "$ac_t""no" 1>&6
2165fi
2166done
2167
2168
2169echo $ac_n "checking for working const""... $ac_c" 1>&6
2170echo "configure:2171: checking for working const" >&5
2171if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2172  echo $ac_n "(cached) $ac_c" 1>&6
2173else
2174  cat > conftest.$ac_ext <<EOF
2175#line 2176 "configure"
2176#include "confdefs.h"
2177
2178int main() {
2179
2180/* Ultrix mips cc rejects this.  */
2181typedef int charset[2]; const charset x = {0,0};
2182/* SunOS 4.1.1 cc rejects this.  */
2183char const *const *ccp;
2184char **p;
2185/* NEC SVR4.0.2 mips cc rejects this.  */
2186struct point {int x, y;};
2187static struct point const zero = {0,0};
2188/* AIX XL C 1.02.0.0 rejects this.
2189   It does not let you subtract one const X* pointer from another in an arm
2190   of an if-expression whose if-part is not a constant expression */
2191const char *g = "string";
2192ccp = &g + (g ? g-g : 0);
2193/* HPUX 7.0 cc rejects these. */
2194++ccp;
2195p = (char**) ccp;
2196ccp = (char const *const *) p;
2197{ /* SCO 3.2v4 cc rejects this.  */
2198  char *t;
2199  char const *s = 0 ? (char *) 0 : (char const *) 0;
2200
2201  *t++ = 0;
2202}
2203{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2204  int x[] = {25, 17};
2205  const int *foo = &x[0];
2206  ++foo;
2207}
2208{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2209  typedef const int *iptr;
2210  iptr p = 0;
2211  ++p;
2212}
2213{ /* AIX XL C 1.02.0.0 rejects this saying
2214     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2215  struct s { int j; const int *ap[3]; };
2216  struct s *b; b->j = 5;
2217}
2218{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2219  const int foo = 10;
2220}
2221
2222; return 0; }
2223EOF
2224if { (eval echo configure:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2225  rm -rf conftest*
2226  ac_cv_c_const=yes
2227else
2228  echo "configure: failed program was:" >&5
2229  cat conftest.$ac_ext >&5
2230  rm -rf conftest*
2231  ac_cv_c_const=no
2232fi
2233rm -f conftest*
2234fi
2235
2236echo "$ac_t""$ac_cv_c_const" 1>&6
2237if test $ac_cv_c_const = no; then
2238  cat >> confdefs.h <<\EOF
2239#define const
2240EOF
2241
2242fi
2243
2244echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2245echo "configure:2246: checking for pid_t" >&5
2246if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2247  echo $ac_n "(cached) $ac_c" 1>&6
2248else
2249  cat > conftest.$ac_ext <<EOF
2250#line 2251 "configure"
2251#include "confdefs.h"
2252#include <sys/types.h>
2253#if STDC_HEADERS
2254#include <stdlib.h>
2255#include <stddef.h>
2256#endif
2257EOF
2258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2259  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2260  rm -rf conftest*
2261  ac_cv_type_pid_t=yes
2262else
2263  rm -rf conftest*
2264  ac_cv_type_pid_t=no
2265fi
2266rm -f conftest*
2267
2268fi
2269echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2270if test $ac_cv_type_pid_t = no; then
2271  cat >> confdefs.h <<\EOF
2272#define pid_t int
2273EOF
2274
2275fi
2276
2277echo $ac_n "checking for size_t""... $ac_c" 1>&6
2278echo "configure:2279: checking for size_t" >&5
2279if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2280  echo $ac_n "(cached) $ac_c" 1>&6
2281else
2282  cat > conftest.$ac_ext <<EOF
2283#line 2284 "configure"
2284#include "confdefs.h"
2285#include <sys/types.h>
2286#if STDC_HEADERS
2287#include <stdlib.h>
2288#include <stddef.h>
2289#endif
2290EOF
2291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2292  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2293  rm -rf conftest*
2294  ac_cv_type_size_t=yes
2295else
2296  rm -rf conftest*
2297  ac_cv_type_size_t=no
2298fi
2299rm -f conftest*
2300
2301fi
2302echo "$ac_t""$ac_cv_type_size_t" 1>&6
2303if test $ac_cv_type_size_t = no; then
2304  cat >> confdefs.h <<\EOF
2305#define size_t unsigned
2306EOF
2307
2308fi
2309
2310echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2311echo "configure:2312: checking whether time.h and sys/time.h may both be included" >&5
2312if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2313  echo $ac_n "(cached) $ac_c" 1>&6
2314else
2315  cat > conftest.$ac_ext <<EOF
2316#line 2317 "configure"
2317#include "confdefs.h"
2318#include <sys/types.h>
2319#include <sys/time.h>
2320#include <time.h>
2321int main() {
2322struct tm *tp;
2323; return 0; }
2324EOF
2325if { (eval echo configure:2326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2326  rm -rf conftest*
2327  ac_cv_header_time=yes
2328else
2329  echo "configure: failed program was:" >&5
2330  cat conftest.$ac_ext >&5
2331  rm -rf conftest*
2332  ac_cv_header_time=no
2333fi
2334rm -f conftest*
2335fi
2336
2337echo "$ac_t""$ac_cv_header_time" 1>&6
2338if test $ac_cv_header_time = yes; then
2339  cat >> confdefs.h <<\EOF
2340#define TIME_WITH_SYS_TIME 1
2341EOF
2342
2343fi
2344
2345
2346echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2347echo "configure:2348: checking for 8-bit clean memcmp" >&5
2348if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2349  echo $ac_n "(cached) $ac_c" 1>&6
2350else
2351  if test "$cross_compiling" = yes; then
2352  ac_cv_func_memcmp_clean=no
2353else
2354  cat > conftest.$ac_ext <<EOF
2355#line 2356 "configure"
2356#include "confdefs.h"
2357
2358main()
2359{
2360  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2361  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2362}
2363
2364EOF
2365if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2366then
2367  ac_cv_func_memcmp_clean=yes
2368else
2369  echo "configure: failed program was:" >&5
2370  cat conftest.$ac_ext >&5
2371  rm -fr conftest*
2372  ac_cv_func_memcmp_clean=no
2373fi
2374rm -fr conftest*
2375fi
2376
2377fi
2378
2379echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2380test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2381
2382echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2383echo "configure:2384: checking return type of signal handlers" >&5
2384if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2385  echo $ac_n "(cached) $ac_c" 1>&6
2386else
2387  cat > conftest.$ac_ext <<EOF
2388#line 2389 "configure"
2389#include "confdefs.h"
2390#include <sys/types.h>
2391#include <signal.h>
2392#ifdef signal
2393#undef signal
2394#endif
2395#ifdef __cplusplus
2396extern "C" void (*signal (int, void (*)(int)))(int);
2397#else
2398void (*signal ()) ();
2399#endif
2400
2401int main() {
2402int i;
2403; return 0; }
2404EOF
2405if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2406  rm -rf conftest*
2407  ac_cv_type_signal=void
2408else
2409  echo "configure: failed program was:" >&5
2410  cat conftest.$ac_ext >&5
2411  rm -rf conftest*
2412  ac_cv_type_signal=int
2413fi
2414rm -f conftest*
2415fi
2416
2417echo "$ac_t""$ac_cv_type_signal" 1>&6
2418cat >> confdefs.h <<EOF
2419#define RETSIGTYPE $ac_cv_type_signal
2420EOF
2421
2422
2423
2424for ac_func in gethostname gettimeofday mkdir mkstemp rmdir select strstr
2425do
2426echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2427echo "configure:2428: checking for $ac_func" >&5
2428if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2429  echo $ac_n "(cached) $ac_c" 1>&6
2430else
2431  cat > conftest.$ac_ext <<EOF
2432#line 2433 "configure"
2433#include "confdefs.h"
2434/* System header to define __stub macros and hopefully few prototypes,
2435    which can conflict with char $ac_func(); below.  */
2436#include <assert.h>
2437/* Override any gcc2 internal prototype to avoid an error.  */
2438/* We use char because int might match the return type of a gcc2
2439    builtin and then its argument prototype would still apply.  */
2440char $ac_func();
2441
2442int main() {
2443
2444/* The GNU C library defines this for functions which it implements
2445    to always fail with ENOSYS.  Some functions are actually named
2446    something starting with __ and the normal name is an alias.  */
2447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2448choke me
2449#else
2450$ac_func();
2451#endif
2452
2453; return 0; }
2454EOF
2455if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2456  rm -rf conftest*
2457  eval "ac_cv_func_$ac_func=yes"
2458else
2459  echo "configure: failed program was:" >&5
2460  cat conftest.$ac_ext >&5
2461  rm -rf conftest*
2462  eval "ac_cv_func_$ac_func=no"
2463fi
2464rm -f conftest*
2465fi
2466
2467if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2468  echo "$ac_t""yes" 1>&6
2469    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2470  cat >> confdefs.h <<EOF
2471#define $ac_tr_func 1
2472EOF
2473
2474else
2475  echo "$ac_t""no" 1>&6
2476fi
2477done
2478
2479
2480echo $ac_n "checking for socket""... $ac_c" 1>&6
2481echo "configure:2482: checking for socket" >&5
2482if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2483  echo $ac_n "(cached) $ac_c" 1>&6
2484else
2485  cat > conftest.$ac_ext <<EOF
2486#line 2487 "configure"
2487#include "confdefs.h"
2488/* System header to define __stub macros and hopefully few prototypes,
2489    which can conflict with char socket(); below.  */
2490#include <assert.h>
2491/* Override any gcc2 internal prototype to avoid an error.  */
2492/* We use char because int might match the return type of a gcc2
2493    builtin and then its argument prototype would still apply.  */
2494char socket();
2495
2496int main() {
2497
2498/* The GNU C library defines this for functions which it implements
2499    to always fail with ENOSYS.  Some functions are actually named
2500    something starting with __ and the normal name is an alias.  */
2501#if defined (__stub_socket) || defined (__stub___socket)
2502choke me
2503#else
2504socket();
2505#endif
2506
2507; return 0; }
2508EOF
2509if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2510  rm -rf conftest*
2511  eval "ac_cv_func_socket=yes"
2512else
2513  echo "configure: failed program was:" >&5
2514  cat conftest.$ac_ext >&5
2515  rm -rf conftest*
2516  eval "ac_cv_func_socket=no"
2517fi
2518rm -f conftest*
2519fi
2520
2521if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2522  echo "$ac_t""yes" 1>&6
2523  :
2524else
2525  echo "$ac_t""no" 1>&6
2526echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2527echo "configure:2528: checking for socket in -lsocket" >&5
2528ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530  echo $ac_n "(cached) $ac_c" 1>&6
2531else
2532  ac_save_LIBS="$LIBS"
2533LIBS="-lsocket  $LIBS"
2534cat > conftest.$ac_ext <<EOF
2535#line 2536 "configure"
2536#include "confdefs.h"
2537/* Override any gcc2 internal prototype to avoid an error.  */
2538/* We use char because int might match the return type of a gcc2
2539    builtin and then its argument prototype would still apply.  */
2540char socket();
2541
2542int main() {
2543socket()
2544; return 0; }
2545EOF
2546if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547  rm -rf conftest*
2548  eval "ac_cv_lib_$ac_lib_var=yes"
2549else
2550  echo "configure: failed program was:" >&5
2551  cat conftest.$ac_ext >&5
2552  rm -rf conftest*
2553  eval "ac_cv_lib_$ac_lib_var=no"
2554fi
2555rm -f conftest*
2556LIBS="$ac_save_LIBS"
2557
2558fi
2559if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560  echo "$ac_t""yes" 1>&6
2561  XTRALIBS="$XTRALIBS -lsocket"
2562else
2563  echo "$ac_t""no" 1>&6
2564fi
2565
2566fi
2567
2568
2569echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2570echo "configure:2571: checking for gethostbyname" >&5
2571if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2572  echo $ac_n "(cached) $ac_c" 1>&6
2573else
2574  cat > conftest.$ac_ext <<EOF
2575#line 2576 "configure"
2576#include "confdefs.h"
2577/* System header to define __stub macros and hopefully few prototypes,
2578    which can conflict with char gethostbyname(); below.  */
2579#include <assert.h>
2580/* Override any gcc2 internal prototype to avoid an error.  */
2581/* We use char because int might match the return type of a gcc2
2582    builtin and then its argument prototype would still apply.  */
2583char gethostbyname();
2584
2585int main() {
2586
2587/* The GNU C library defines this for functions which it implements
2588    to always fail with ENOSYS.  Some functions are actually named
2589    something starting with __ and the normal name is an alias.  */
2590#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2591choke me
2592#else
2593gethostbyname();
2594#endif
2595
2596; return 0; }
2597EOF
2598if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599  rm -rf conftest*
2600  eval "ac_cv_func_gethostbyname=yes"
2601else
2602  echo "configure: failed program was:" >&5
2603  cat conftest.$ac_ext >&5
2604  rm -rf conftest*
2605  eval "ac_cv_func_gethostbyname=no"
2606fi
2607rm -f conftest*
2608fi
2609
2610if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2611  echo "$ac_t""yes" 1>&6
2612  :
2613else
2614  echo "$ac_t""no" 1>&6
2615echo $ac_n "checking for nsl in -lgethostbyname""... $ac_c" 1>&6
2616echo "configure:2617: checking for nsl in -lgethostbyname" >&5
2617ac_lib_var=`echo gethostbyname'_'nsl | sed 'y%./+-%__p_%'`
2618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2619  echo $ac_n "(cached) $ac_c" 1>&6
2620else
2621  ac_save_LIBS="$LIBS"
2622LIBS="-lgethostbyname  $LIBS"
2623cat > conftest.$ac_ext <<EOF
2624#line 2625 "configure"
2625#include "confdefs.h"
2626/* Override any gcc2 internal prototype to avoid an error.  */
2627/* We use char because int might match the return type of a gcc2
2628    builtin and then its argument prototype would still apply.  */
2629char nsl();
2630
2631int main() {
2632nsl()
2633; return 0; }
2634EOF
2635if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2636  rm -rf conftest*
2637  eval "ac_cv_lib_$ac_lib_var=yes"
2638else
2639  echo "configure: failed program was:" >&5
2640  cat conftest.$ac_ext >&5
2641  rm -rf conftest*
2642  eval "ac_cv_lib_$ac_lib_var=no"
2643fi
2644rm -f conftest*
2645LIBS="$ac_save_LIBS"
2646
2647fi
2648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2649  echo "$ac_t""yes" 1>&6
2650  XTRALIBS="$XTRALIBS -lnsl"
2651else
2652  echo "$ac_t""no" 1>&6
2653fi
2654
2655fi
2656
2657
2658echo $ac_n "checking for crypt""... $ac_c" 1>&6
2659echo "configure:2660: checking for crypt" >&5
2660if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2661  echo $ac_n "(cached) $ac_c" 1>&6
2662else
2663  cat > conftest.$ac_ext <<EOF
2664#line 2665 "configure"
2665#include "confdefs.h"
2666/* System header to define __stub macros and hopefully few prototypes,
2667    which can conflict with char crypt(); below.  */
2668#include <assert.h>
2669/* Override any gcc2 internal prototype to avoid an error.  */
2670/* We use char because int might match the return type of a gcc2
2671    builtin and then its argument prototype would still apply.  */
2672char crypt();
2673
2674int main() {
2675
2676/* The GNU C library defines this for functions which it implements
2677    to always fail with ENOSYS.  Some functions are actually named
2678    something starting with __ and the normal name is an alias.  */
2679#if defined (__stub_crypt) || defined (__stub___crypt)
2680choke me
2681#else
2682crypt();
2683#endif
2684
2685; return 0; }
2686EOF
2687if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688  rm -rf conftest*
2689  eval "ac_cv_func_crypt=yes"
2690else
2691  echo "configure: failed program was:" >&5
2692  cat conftest.$ac_ext >&5
2693  rm -rf conftest*
2694  eval "ac_cv_func_crypt=no"
2695fi
2696rm -f conftest*
2697fi
2698
2699if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2700  echo "$ac_t""yes" 1>&6
2701  :
2702else
2703  echo "$ac_t""no" 1>&6
2704echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2705echo "configure:2706: checking for crypt in -lcrypt" >&5
2706ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2708  echo $ac_n "(cached) $ac_c" 1>&6
2709else
2710  ac_save_LIBS="$LIBS"
2711LIBS="-lcrypt  $LIBS"
2712cat > conftest.$ac_ext <<EOF
2713#line 2714 "configure"
2714#include "confdefs.h"
2715/* Override any gcc2 internal prototype to avoid an error.  */
2716/* We use char because int might match the return type of a gcc2
2717    builtin and then its argument prototype would still apply.  */
2718char crypt();
2719
2720int main() {
2721crypt()
2722; return 0; }
2723EOF
2724if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2725  rm -rf conftest*
2726  eval "ac_cv_lib_$ac_lib_var=yes"
2727else
2728  echo "configure: failed program was:" >&5
2729  cat conftest.$ac_ext >&5
2730  rm -rf conftest*
2731  eval "ac_cv_lib_$ac_lib_var=no"
2732fi
2733rm -f conftest*
2734LIBS="$ac_save_LIBS"
2735
2736fi
2737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2738  echo "$ac_t""yes" 1>&6
2739  LIBCRYPT="-lcrypt"
2740else
2741  echo "$ac_t""no" 1>&6
2742LIBCRYPT=""
2743fi
2744
2745fi
2746
2747
2748
2749
2750
2751
2752
2753trap '' 1 2 15
2754cat > confcache <<\EOF
2755# This file is a shell script that caches the results of configure
2756# tests run on this system so they can be shared between configure
2757# scripts and configure runs.  It is not useful on other systems.
2758# If it contains results you don't want to keep, you may remove or edit it.
2759#
2760# By default, configure uses ./config.cache as the cache file,
2761# creating it if it does not exist already.  You can give configure
2762# the --cache-file=FILE option to use a different cache file; that is
2763# what configure does when it calls configure scripts in
2764# subdirectories, so they share the cache.
2765# Giving --cache-file=/dev/null disables caching, for debugging configure.
2766# config.status only pays attention to the cache file if you give it the
2767# --recheck option to rerun configure.
2768#
2769EOF
2770# The following way of writing the cache mishandles newlines in values,
2771# but we know of no workaround that is simple, portable, and efficient.
2772# So, don't put newlines in cache variables' values.
2773# Ultrix sh set writes to stderr and can't be redirected directly,
2774# and sets the high bit in the cache file unless we assign to the vars.
2775(set) 2>&1 |
2776  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2777  *ac_space=\ *)
2778    # `set' does not quote correctly, so add quotes (double-quote substitution
2779    # turns \\\\ into \\, and sed turns \\ into \).
2780    sed -n \
2781      -e "s/'/'\\\\''/g" \
2782      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2783    ;;
2784  *)
2785    # `set' quotes correctly as required by POSIX, so do not add quotes.
2786    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2787    ;;
2788  esac >> confcache
2789if cmp -s $cache_file confcache; then
2790  :
2791else
2792  if test -w $cache_file; then
2793    echo "updating cache $cache_file"
2794    cat confcache > $cache_file
2795  else
2796    echo "not updating unwritable cache $cache_file"
2797  fi
2798fi
2799rm -f confcache
2800
2801trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2802
2803test "x$prefix" = xNONE && prefix=$ac_default_prefix
2804# Let make expand exec_prefix.
2805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2806
2807# Any assignment to VPATH causes Sun make to only execute
2808# the first set of double-colon rules, so remove it if not needed.
2809# If there is a colon in the path, we need to keep it.
2810if test "x$srcdir" = x.; then
2811  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2812fi
2813
2814trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2815
2816# Transform confdefs.h into DEFS.
2817# Protect against shell expansion while executing Makefile rules.
2818# Protect against Makefile macro expansion.
2819cat > conftest.defs <<\EOF
2820s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2821s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
2822s%\[%\\&%g
2823s%\]%\\&%g
2824s%\$%$$%g
2825EOF
2826DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2827rm -f conftest.defs
2828
2829
2830# Without the "./", some shells look in PATH for config.status.
2831: ${CONFIG_STATUS=./config.status}
2832
2833echo creating $CONFIG_STATUS
2834rm -f $CONFIG_STATUS
2835cat > $CONFIG_STATUS <<EOF
2836#! /bin/sh
2837# Generated automatically by configure.
2838# Run this file to recreate the current configuration.
2839# This directory was configured as follows,
2840# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2841#
2842# $0 $ac_configure_args
2843#
2844# Compiler output produced by configure, useful for debugging
2845# configure, is in ./config.log if it exists.
2846
2847ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2848for ac_option
2849do
2850  case "\$ac_option" in
2851  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2852    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2853    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2854  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2855    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2856    exit 0 ;;
2857  -help | --help | --hel | --he | --h)
2858    echo "\$ac_cs_usage"; exit 0 ;;
2859  *) echo "\$ac_cs_usage"; exit 1 ;;
2860  esac
2861done
2862
2863ac_given_srcdir=$srcdir
2864ac_given_INSTALL="$INSTALL"
2865
2866trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2867EOF
2868cat >> $CONFIG_STATUS <<EOF
2869
2870# Protect against being on the right side of a sed subst in config.status.
2871sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2872 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2873$ac_vpsub
2874$extrasub
2875s%@SHELL@%$SHELL%g
2876s%@CFLAGS@%$CFLAGS%g
2877s%@CPPFLAGS@%$CPPFLAGS%g
2878s%@CXXFLAGS@%$CXXFLAGS%g
2879s%@FFLAGS@%$FFLAGS%g
2880s%@DEFS@%$DEFS%g
2881s%@LDFLAGS@%$LDFLAGS%g
2882s%@LIBS@%$LIBS%g
2883s%@exec_prefix@%$exec_prefix%g
2884s%@prefix@%$prefix%g
2885s%@program_transform_name@%$program_transform_name%g
2886s%@bindir@%$bindir%g
2887s%@sbindir@%$sbindir%g
2888s%@libexecdir@%$libexecdir%g
2889s%@datadir@%$datadir%g
2890s%@sysconfdir@%$sysconfdir%g
2891s%@sharedstatedir@%$sharedstatedir%g
2892s%@localstatedir@%$localstatedir%g
2893s%@libdir@%$libdir%g
2894s%@includedir@%$includedir%g
2895s%@oldincludedir@%$oldincludedir%g
2896s%@infodir@%$infodir%g
2897s%@mandir@%$mandir%g
2898s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2899s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2900s%@INSTALL_DATA@%$INSTALL_DATA%g
2901s%@PACKAGE@%$PACKAGE%g
2902s%@VERSION@%$VERSION%g
2903s%@ACLOCAL@%$ACLOCAL%g
2904s%@AUTOCONF@%$AUTOCONF%g
2905s%@AUTOMAKE@%$AUTOMAKE%g
2906s%@AUTOHEADER@%$AUTOHEADER%g
2907s%@MAKEINFO@%$MAKEINFO%g
2908s%@SET_MAKE@%$SET_MAKE%g
2909s%@host@%$host%g
2910s%@host_alias@%$host_alias%g
2911s%@host_cpu@%$host_cpu%g
2912s%@host_vendor@%$host_vendor%g
2913s%@host_os@%$host_os%g
2914s%@build@%$build%g
2915s%@build_alias@%$build_alias%g
2916s%@build_cpu@%$build_cpu%g
2917s%@build_vendor@%$build_vendor%g
2918s%@build_os@%$build_os%g
2919s%@RANLIB@%$RANLIB%g
2920s%@CC@%$CC%g
2921s%@LN_S@%$LN_S%g
2922s%@LIBTOOL@%$LIBTOOL%g
2923s%@LEX@%$LEX%g
2924s%@LEXLIB@%$LEXLIB%g
2925s%@CPP@%$CPP%g
2926s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2927s%@YACC@%$YACC%g
2928s%@LIBOBJS@%$LIBOBJS%g
2929s%@LIBCRYPT@%$LIBCRYPT%g
2930s%@XTRALIBS@%$XTRALIBS%g
2931
2932CEOF
2933EOF
2934
2935cat >> $CONFIG_STATUS <<\EOF
2936
2937# Split the substitutions into bite-sized pieces for seds with
2938# small command number limits, like on Digital OSF/1 and HP-UX.
2939ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2940ac_file=1 # Number of current file.
2941ac_beg=1 # First line for current file.
2942ac_end=$ac_max_sed_cmds # Line after last line for current file.
2943ac_more_lines=:
2944ac_sed_cmds=""
2945while $ac_more_lines; do
2946  if test $ac_beg -gt 1; then
2947    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2948  else
2949    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2950  fi
2951  if test ! -s conftest.s$ac_file; then
2952    ac_more_lines=false
2953    rm -f conftest.s$ac_file
2954  else
2955    if test -z "$ac_sed_cmds"; then
2956      ac_sed_cmds="sed -f conftest.s$ac_file"
2957    else
2958      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2959    fi
2960    ac_file=`expr $ac_file + 1`
2961    ac_beg=$ac_end
2962    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2963  fi
2964done
2965if test -z "$ac_sed_cmds"; then
2966  ac_sed_cmds=cat
2967fi
2968EOF
2969
2970cat >> $CONFIG_STATUS <<EOF
2971
2972CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2973EOF
2974cat >> $CONFIG_STATUS <<\EOF
2975for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2976  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2977  case "$ac_file" in
2978  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2979       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2980  *) ac_file_in="${ac_file}.in" ;;
2981  esac
2982
2983  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2984
2985  # Remove last slash and all that follows it.  Not all systems have dirname.
2986  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2987  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2988    # The file is in a subdirectory.
2989    test ! -d "$ac_dir" && mkdir "$ac_dir"
2990    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2991    # A "../" for each directory in $ac_dir_suffix.
2992    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2993  else
2994    ac_dir_suffix= ac_dots=
2995  fi
2996
2997  case "$ac_given_srcdir" in
2998  .)  srcdir=.
2999      if test -z "$ac_dots"; then top_srcdir=.
3000      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3001  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3002  *) # Relative path.
3003    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3004    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3005  esac
3006
3007  case "$ac_given_INSTALL" in
3008  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3009  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3010  esac
3011
3012  echo creating "$ac_file"
3013  rm -f "$ac_file"
3014  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3015  case "$ac_file" in
3016  *Makefile*) ac_comsub="1i\\
3017# $configure_input" ;;
3018  *) ac_comsub= ;;
3019  esac
3020
3021  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3022  sed -e "$ac_comsub
3023s%@configure_input@%$configure_input%g
3024s%@srcdir@%$srcdir%g
3025s%@top_srcdir@%$top_srcdir%g
3026s%@INSTALL@%$INSTALL%g
3027" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3028fi; done
3029rm -f conftest.s*
3030
3031EOF
3032cat >> $CONFIG_STATUS <<EOF
3033
3034EOF
3035cat >> $CONFIG_STATUS <<\EOF
3036
3037exit 0
3038EOF
3039chmod +x $CONFIG_STATUS
3040rm -fr confdefs* $ac_clean_files
3041test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3042
3043