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