]> Shamusworld >> Repos - architektonas/blob - dxflib/configure
Initial import
[architektonas] / dxflib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/dl_dxf.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA FIND MAKEDEPEND X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 X features:
834   --x-includes=DIR    X include files are in DIR
835   --x-libraries=DIR   X library files are in DIR
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844
845   cat <<\_ACEOF
846
847 Optional Packages:
848   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
849   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
850   --with-x                use the X Window System
851
852 Some influential environment variables:
853   CC          C compiler command
854   CFLAGS      C compiler flags
855   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
856               nonstandard directory <lib dir>
857   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
858               headers in a nonstandard directory <include dir>
859   CPP         C preprocessor
860
861 Use these variables to override the choices made by `configure' or to help
862 it to find libraries and programs with nonstandard names/locations.
863
864 _ACEOF
865 fi
866
867 if test "$ac_init_help" = "recursive"; then
868   # If there are subdirs, report their specific --help.
869   ac_popdir=`pwd`
870   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
871     test -d $ac_dir || continue
872     ac_builddir=.
873
874 if test "$ac_dir" != .; then
875   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
876   # A "../" for each directory in $ac_dir_suffix.
877   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
878 else
879   ac_dir_suffix= ac_top_builddir=
880 fi
881
882 case $srcdir in
883   .)  # No --srcdir option.  We are building in place.
884     ac_srcdir=.
885     if test -z "$ac_top_builddir"; then
886        ac_top_srcdir=.
887     else
888        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
889     fi ;;
890   [\\/]* | ?:[\\/]* )  # Absolute path.
891     ac_srcdir=$srcdir$ac_dir_suffix;
892     ac_top_srcdir=$srcdir ;;
893   *) # Relative path.
894     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
895     ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 esac
897 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
898 # absolute.
899 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
900 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
901 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
902 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
903
904     cd $ac_dir
905     # Check for guested configure; otherwise get Cygnus style configure.
906     if test -f $ac_srcdir/configure.gnu; then
907       echo
908       $SHELL $ac_srcdir/configure.gnu  --help=recursive
909     elif test -f $ac_srcdir/configure; then
910       echo
911       $SHELL $ac_srcdir/configure  --help=recursive
912     elif test -f $ac_srcdir/configure.ac ||
913            test -f $ac_srcdir/configure.in; then
914       echo
915       $ac_configure --help
916     else
917       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918     fi
919     cd $ac_popdir
920   done
921 fi
922
923 test -n "$ac_init_help" && exit 0
924 if $ac_init_version; then
925   cat <<\_ACEOF
926
927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
928 Free Software Foundation, Inc.
929 This configure script is free software; the Free Software Foundation
930 gives unlimited permission to copy, distribute and modify it.
931 _ACEOF
932   exit 0
933 fi
934 exec 5>config.log
935 cat >&5 <<_ACEOF
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
938
939 It was created by $as_me, which was
940 generated by GNU Autoconf 2.57.  Invocation command line was
941
942   $ $0 $@
943
944 _ACEOF
945 {
946 cat <<_ASUNAME
947 ## --------- ##
948 ## Platform. ##
949 ## --------- ##
950
951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
956
957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
958 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
959
960 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
961 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
963 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
964 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
965 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
966 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
967
968 _ASUNAME
969
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971 for as_dir in $PATH
972 do
973   IFS=$as_save_IFS
974   test -z "$as_dir" && as_dir=.
975   echo "PATH: $as_dir"
976 done
977
978 } >&5
979
980 cat >&5 <<_ACEOF
981
982
983 ## ----------- ##
984 ## Core tests. ##
985 ## ----------- ##
986
987 _ACEOF
988
989
990 # Keep a trace of the command line.
991 # Strip out --no-create and --no-recursion so they do not pile up.
992 # Strip out --silent because we don't want to record it for future runs.
993 # Also quote any args containing shell meta-characters.
994 # Make two passes to allow for proper duplicate-argument suppression.
995 ac_configure_args=
996 ac_configure_args0=
997 ac_configure_args1=
998 ac_sep=
999 ac_must_keep_next=false
1000 for ac_pass in 1 2
1001 do
1002   for ac_arg
1003   do
1004     case $ac_arg in
1005     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1006     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007     | -silent | --silent | --silen | --sile | --sil)
1008       continue ;;
1009     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1010       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1011     esac
1012     case $ac_pass in
1013     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1014     2)
1015       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1016       if test $ac_must_keep_next = true; then
1017         ac_must_keep_next=false # Got value, back to normal.
1018       else
1019         case $ac_arg in
1020           *=* | --config-cache | -C | -disable-* | --disable-* \
1021           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1022           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1023           | -with-* | --with-* | -without-* | --without-* | --x)
1024             case "$ac_configure_args0 " in
1025               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1026             esac
1027             ;;
1028           -* ) ac_must_keep_next=true ;;
1029         esac
1030       fi
1031       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1032       # Get rid of the leading space.
1033       ac_sep=" "
1034       ;;
1035     esac
1036   done
1037 done
1038 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1039 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1040
1041 # When interrupted or exit'd, cleanup temporary files, and complete
1042 # config.log.  We remove comments because anyway the quotes in there
1043 # would cause problems or look ugly.
1044 # WARNING: Be sure not to use single quotes in there, as some shells,
1045 # such as our DU 5.0 friend, will then `close' the trap.
1046 trap 'exit_status=$?
1047   # Save into config.log some information that might help in debugging.
1048   {
1049     echo
1050
1051     cat <<\_ASBOX
1052 ## ---------------- ##
1053 ## Cache variables. ##
1054 ## ---------------- ##
1055 _ASBOX
1056     echo
1057     # The following way of writing the cache mishandles newlines in values,
1058 {
1059   (set) 2>&1 |
1060     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1061     *ac_space=\ *)
1062       sed -n \
1063         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1064           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1065       ;;
1066     *)
1067       sed -n \
1068         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069       ;;
1070     esac;
1071 }
1072     echo
1073
1074     cat <<\_ASBOX
1075 ## ----------------- ##
1076 ## Output variables. ##
1077 ## ----------------- ##
1078 _ASBOX
1079     echo
1080     for ac_var in $ac_subst_vars
1081     do
1082       eval ac_val=$`echo $ac_var`
1083       echo "$ac_var='"'"'$ac_val'"'"'"
1084     done | sort
1085     echo
1086
1087     if test -n "$ac_subst_files"; then
1088       cat <<\_ASBOX
1089 ## ------------- ##
1090 ## Output files. ##
1091 ## ------------- ##
1092 _ASBOX
1093       echo
1094       for ac_var in $ac_subst_files
1095       do
1096         eval ac_val=$`echo $ac_var`
1097         echo "$ac_var='"'"'$ac_val'"'"'"
1098       done | sort
1099       echo
1100     fi
1101
1102     if test -s confdefs.h; then
1103       cat <<\_ASBOX
1104 ## ----------- ##
1105 ## confdefs.h. ##
1106 ## ----------- ##
1107 _ASBOX
1108       echo
1109       sed "/^$/d" confdefs.h | sort
1110       echo
1111     fi
1112     test "$ac_signal" != 0 &&
1113       echo "$as_me: caught signal $ac_signal"
1114     echo "$as_me: exit $exit_status"
1115   } >&5
1116   rm -f core core.* *.core &&
1117   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1118     exit $exit_status
1119      ' 0
1120 for ac_signal in 1 2 13 15; do
1121   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1122 done
1123 ac_signal=0
1124
1125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1126 rm -rf conftest* confdefs.h
1127 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1128 echo >confdefs.h
1129
1130 # Predefined preprocessor variables.
1131
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_NAME "$PACKAGE_NAME"
1134 _ACEOF
1135
1136
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1139 _ACEOF
1140
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_STRING "$PACKAGE_STRING"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1154 _ACEOF
1155
1156
1157 # Let the site file select an alternate cache file if it wants to.
1158 # Prefer explicitly selected file to automatically selected ones.
1159 if test -z "$CONFIG_SITE"; then
1160   if test "x$prefix" != xNONE; then
1161     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1162   else
1163     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1164   fi
1165 fi
1166 for ac_site_file in $CONFIG_SITE; do
1167   if test -r "$ac_site_file"; then
1168     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1169 echo "$as_me: loading site script $ac_site_file" >&6;}
1170     sed 's/^/| /' "$ac_site_file" >&5
1171     . "$ac_site_file"
1172   fi
1173 done
1174
1175 if test -r "$cache_file"; then
1176   # Some versions of bash will fail to source /dev/null (special
1177   # files actually), so we avoid doing that.
1178   if test -f "$cache_file"; then
1179     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1180 echo "$as_me: loading cache $cache_file" >&6;}
1181     case $cache_file in
1182       [\\/]* | ?:[\\/]* ) . $cache_file;;
1183       *)                      . ./$cache_file;;
1184     esac
1185   fi
1186 else
1187   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1188 echo "$as_me: creating cache $cache_file" >&6;}
1189   >$cache_file
1190 fi
1191
1192 # Check that the precious variables saved in the cache have kept the same
1193 # value.
1194 ac_cache_corrupted=false
1195 for ac_var in `(set) 2>&1 |
1196                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198   eval ac_new_set=\$ac_env_${ac_var}_set
1199   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200   eval ac_new_val="\$ac_env_${ac_var}_value"
1201   case $ac_old_set,$ac_new_set in
1202     set,)
1203       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205       ac_cache_corrupted=: ;;
1206     ,set)
1207       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209       ac_cache_corrupted=: ;;
1210     ,);;
1211     *)
1212       if test "x$ac_old_val" != "x$ac_new_val"; then
1213         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1214 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1216 echo "$as_me:   former value:  $ac_old_val" >&2;}
1217         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1218 echo "$as_me:   current value: $ac_new_val" >&2;}
1219         ac_cache_corrupted=:
1220       fi;;
1221   esac
1222   # Pass precious variables to config.status.
1223   if test "$ac_new_set" = set; then
1224     case $ac_new_val in
1225     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227     *) ac_arg=$ac_var=$ac_new_val ;;
1228     esac
1229     case " $ac_configure_args " in
1230       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1231       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1232     esac
1233   fi
1234 done
1235 if $ac_cache_corrupted; then
1236   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240    { (exit 1); exit 1; }; }
1241 fi
1242
1243 ac_ext=c
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268 PRODUCT=dxflib
1269
1270 #
1271 # check cannonical system name
1272 #
1273 ac_aux_dir=
1274 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1275   if test -f $ac_dir/install-sh; then
1276     ac_aux_dir=$ac_dir
1277     ac_install_sh="$ac_aux_dir/install-sh -c"
1278     break
1279   elif test -f $ac_dir/install.sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install.sh -c"
1282     break
1283   elif test -f $ac_dir/shtool; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/shtool install -c"
1286     break
1287   fi
1288 done
1289 if test -z "$ac_aux_dir"; then
1290   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297
1298 # Make sure we can run config.sub.
1299 $ac_config_sub sun4 >/dev/null 2>&1 ||
1300   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1301 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1302    { (exit 1); exit 1; }; }
1303
1304 echo "$as_me:$LINENO: checking build system type" >&5
1305 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1306 if test "${ac_cv_build+set}" = set; then
1307   echo $ECHO_N "(cached) $ECHO_C" >&6
1308 else
1309   ac_cv_build_alias=$build_alias
1310 test -z "$ac_cv_build_alias" &&
1311   ac_cv_build_alias=`$ac_config_guess`
1312 test -z "$ac_cv_build_alias" &&
1313   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1314 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1315    { (exit 1); exit 1; }; }
1316 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1317   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1318 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1319    { (exit 1); exit 1; }; }
1320
1321 fi
1322 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1323 echo "${ECHO_T}$ac_cv_build" >&6
1324 build=$ac_cv_build
1325 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1326 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1327 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1328
1329
1330 echo "$as_me:$LINENO: checking host system type" >&5
1331 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1332 if test "${ac_cv_host+set}" = set; then
1333   echo $ECHO_N "(cached) $ECHO_C" >&6
1334 else
1335   ac_cv_host_alias=$host_alias
1336 test -z "$ac_cv_host_alias" &&
1337   ac_cv_host_alias=$ac_cv_build_alias
1338 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1339   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1340 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1341    { (exit 1); exit 1; }; }
1342
1343 fi
1344 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1345 echo "${ECHO_T}$ac_cv_host" >&6
1346 host=$ac_cv_host
1347 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1348 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1349 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1350
1351
1352 case "$host" in
1353 *-linux-gnu )  cat >>confdefs.h <<\_ACEOF
1354 #define LINUX 1
1355 _ACEOF
1356  ;;
1357      *-aix* )  cat >>confdefs.h <<\_ACEOF
1358 #define AIX 1
1359 _ACEOF
1360  ;;
1361           * )  cat >>confdefs.h <<\_ACEOF
1362 #define UNIX 1
1363 _ACEOF
1364  ;;
1365 esac
1366
1367 #
1368 # check C compiler, preprocesor, etc.
1369 #
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 if test -n "$ac_tool_prefix"; then
1376   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381   echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383   if test -n "$CC"; then
1384   ac_cv_prog_CC="$CC" # Let the user override the test.
1385 else
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400 fi
1401 fi
1402 CC=$ac_cv_prog_CC
1403 if test -n "$CC"; then
1404   echo "$as_me:$LINENO: result: $CC" >&5
1405 echo "${ECHO_T}$CC" >&6
1406 else
1407   echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1409 fi
1410
1411 fi
1412 if test -z "$ac_cv_prog_CC"; then
1413   ac_ct_CC=$CC
1414   # Extract the first word of "gcc", so it can be a program name with args.
1415 set dummy gcc; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   if test -n "$ac_ct_CC"; then
1422   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423 else
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427   IFS=$as_save_IFS
1428   test -z "$as_dir" && as_dir=.
1429   for ac_exec_ext in '' $ac_executable_extensions; do
1430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431     ac_cv_prog_ac_ct_CC="gcc"
1432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433     break 2
1434   fi
1435 done
1436 done
1437
1438 fi
1439 fi
1440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441 if test -n "$ac_ct_CC"; then
1442   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443 echo "${ECHO_T}$ac_ct_CC" >&6
1444 else
1445   echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1447 fi
1448
1449   CC=$ac_ct_CC
1450 else
1451   CC="$ac_cv_prog_CC"
1452 fi
1453
1454 if test -z "$CC"; then
1455   if test -n "$ac_tool_prefix"; then
1456   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}cc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461   echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463   if test -n "$CC"; then
1464   ac_cv_prog_CC="$CC" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469   IFS=$as_save_IFS
1470   test -z "$as_dir" && as_dir=.
1471   for ac_exec_ext in '' $ac_executable_extensions; do
1472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473     ac_cv_prog_CC="${ac_tool_prefix}cc"
1474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475     break 2
1476   fi
1477 done
1478 done
1479
1480 fi
1481 fi
1482 CC=$ac_cv_prog_CC
1483 if test -n "$CC"; then
1484   echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1486 else
1487   echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491 fi
1492 if test -z "$ac_cv_prog_CC"; then
1493   ac_ct_CC=$CC
1494   # Extract the first word of "cc", so it can be a program name with args.
1495 set dummy cc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$ac_ct_CC"; then
1502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_ac_ct_CC="cc"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529   CC=$ac_ct_CC
1530 else
1531   CC="$ac_cv_prog_CC"
1532 fi
1533
1534 fi
1535 if test -z "$CC"; then
1536   # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$CC"; then
1544   ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546   ac_prog_rejected=no
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   for ac_exec_ext in '' $ac_executable_extensions; do
1553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555        ac_prog_rejected=yes
1556        continue
1557      fi
1558     ac_cv_prog_CC="cc"
1559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560     break 2
1561   fi
1562 done
1563 done
1564
1565 if test $ac_prog_rejected = yes; then
1566   # We found a bogon in the path, so make sure we never use it.
1567   set dummy $ac_cv_prog_CC
1568   shift
1569   if test $# != 0; then
1570     # We chose a different compiler from the bogus one.
1571     # However, it has the same basename, so the bogon will be chosen
1572     # first if we set CC to just the basename; use the full file name.
1573     shift
1574     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1575   fi
1576 fi
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581   echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 fi
1589 if test -z "$CC"; then
1590   if test -n "$ac_tool_prefix"; then
1591   for ac_prog in cl
1592   do
1593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$CC"; then
1601   ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 CC=$ac_cv_prog_CC
1620 if test -n "$CC"; then
1621   echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628     test -n "$CC" && break
1629   done
1630 fi
1631 if test -z "$CC"; then
1632   ac_ct_CC=$CC
1633   for ac_prog in cl
1634 do
1635   # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$ac_ct_CC"; then
1643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_ac_ct_CC="$ac_prog"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670   test -n "$ac_ct_CC" && break
1671 done
1672
1673   CC=$ac_ct_CC
1674 fi
1675
1676 fi
1677
1678
1679 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&5
1681 echo "$as_me: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&2;}
1683    { (exit 1); exit 1; }; }
1684
1685 # Provide some information about the compiler.
1686 echo "$as_me:$LINENO:" \
1687      "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690   (eval $ac_compiler --version </dev/null >&5) 2>&5
1691   ac_status=$?
1692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693   (exit $ac_status); }
1694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695   (eval $ac_compiler -v </dev/null >&5) 2>&5
1696   ac_status=$?
1697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698   (exit $ac_status); }
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700   (eval $ac_compiler -V </dev/null >&5) 2>&5
1701   ac_status=$?
1702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703   (exit $ac_status); }
1704
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #line $LINENO "configure"
1707 /* confdefs.h.  */
1708 _ACEOF
1709 cat confdefs.h >>conftest.$ac_ext
1710 cat >>conftest.$ac_ext <<_ACEOF
1711 /* end confdefs.h.  */
1712
1713 int
1714 main ()
1715 {
1716
1717   ;
1718   return 0;
1719 }
1720 _ACEOF
1721 ac_clean_files_save=$ac_clean_files
1722 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1723 # Try to create an executable without -o first, disregard a.out.
1724 # It will help us diagnose broken compilers, and finding out an intuition
1725 # of exeext.
1726 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1727 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1728 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1729 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1730   (eval $ac_link_default) 2>&5
1731   ac_status=$?
1732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733   (exit $ac_status); }; then
1734   # Find the output, starting from the most likely.  This scheme is
1735 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1736 # resort.
1737
1738 # Be careful to initialize this variable, since it used to be cached.
1739 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1740 ac_cv_exeext=
1741 # b.out is created by i960 compilers.
1742 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1743 do
1744   test -f "$ac_file" || continue
1745   case $ac_file in
1746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1747         ;;
1748     conftest.$ac_ext )
1749         # This is the source file.
1750         ;;
1751     [ab].out )
1752         # We found the default executable, but exeext='' is most
1753         # certainly right.
1754         break;;
1755     *.* )
1756         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757         # FIXME: I believe we export ac_cv_exeext for Libtool,
1758         # but it would be cool to find out if it's true.  Does anybody
1759         # maintain Libtool? --akim.
1760         export ac_cv_exeext
1761         break;;
1762     * )
1763         break;;
1764   esac
1765 done
1766 else
1767   echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&5
1772 echo "$as_me: error: C compiler cannot create executables
1773 See \`config.log' for more details." >&2;}
1774    { (exit 77); exit 77; }; }
1775 fi
1776
1777 ac_exeext=$ac_cv_exeext
1778 echo "$as_me:$LINENO: result: $ac_file" >&5
1779 echo "${ECHO_T}$ac_file" >&6
1780
1781 # Check the compiler produces executables we can run.  If not, either
1782 # the compiler is broken, or we cross compile.
1783 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1786 # If not cross compiling, check that we can run a simple program.
1787 if test "$cross_compiling" != yes; then
1788   if { ac_try='./$ac_file'
1789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1790   (eval $ac_try) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }; }; then
1794     cross_compiling=no
1795   else
1796     if test "$cross_compiling" = maybe; then
1797         cross_compiling=yes
1798     else
1799         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: cannot run C compiled programs.
1803 If you meant to cross compile, use \`--host'.
1804 See \`config.log' for more details." >&2;}
1805    { (exit 1); exit 1; }; }
1806     fi
1807   fi
1808 fi
1809 echo "$as_me:$LINENO: result: yes" >&5
1810 echo "${ECHO_T}yes" >&6
1811
1812 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1813 ac_clean_files=$ac_clean_files_save
1814 # Check the compiler produces executables we can run.  If not, either
1815 # the compiler is broken, or we cross compile.
1816 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1817 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1818 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1819 echo "${ECHO_T}$cross_compiling" >&6
1820
1821 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1822 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1824   (eval $ac_link) 2>&5
1825   ac_status=$?
1826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827   (exit $ac_status); }; then
1828   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1829 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1830 # work properly (i.e., refer to `conftest.exe'), while it won't with
1831 # `rm'.
1832 for ac_file in conftest.exe conftest conftest.*; do
1833   test -f "$ac_file" || continue
1834   case $ac_file in
1835     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1836     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837           export ac_cv_exeext
1838           break;;
1839     * ) break;;
1840   esac
1841 done
1842 else
1843   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1846 See \`config.log' for more details." >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 rm -f conftest$ac_cv_exeext
1851 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1852 echo "${ECHO_T}$ac_cv_exeext" >&6
1853
1854 rm -f conftest.$ac_ext
1855 EXEEXT=$ac_cv_exeext
1856 ac_exeext=$EXEEXT
1857 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1858 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1859 if test "${ac_cv_objext+set}" = set; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   cat >conftest.$ac_ext <<_ACEOF
1863 #line $LINENO "configure"
1864 /* confdefs.h.  */
1865 _ACEOF
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h.  */
1869
1870 int
1871 main ()
1872 {
1873
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 rm -f conftest.o conftest.obj
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880   (eval $ac_compile) 2>&5
1881   ac_status=$?
1882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883   (exit $ac_status); }; then
1884   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1885   case $ac_file in
1886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888        break;;
1889   esac
1890 done
1891 else
1892   echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898 See \`config.log' for more details." >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1901
1902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1903 fi
1904 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905 echo "${ECHO_T}$ac_cv_objext" >&6
1906 OBJEXT=$ac_cv_objext
1907 ac_objext=$OBJEXT
1908 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   cat >conftest.$ac_ext <<_ACEOF
1914 #line $LINENO "configure"
1915 /* confdefs.h.  */
1916 _ACEOF
1917 cat confdefs.h >>conftest.$ac_ext
1918 cat >>conftest.$ac_ext <<_ACEOF
1919 /* end confdefs.h.  */
1920
1921 int
1922 main ()
1923 {
1924 #ifndef __GNUC__
1925        choke me
1926 #endif
1927
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 rm -f conftest.$ac_objext
1933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934   (eval $ac_compile) 2>&5
1935   ac_status=$?
1936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937   (exit $ac_status); } &&
1938          { ac_try='test -s conftest.$ac_objext'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944   ac_compiler_gnu=yes
1945 else
1946   echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_compiler_gnu=no
1950 fi
1951 rm -f conftest.$ac_objext conftest.$ac_ext
1952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1953
1954 fi
1955 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1957 GCC=`test $ac_compiler_gnu = yes && echo yes`
1958 ac_test_CFLAGS=${CFLAGS+set}
1959 ac_save_CFLAGS=$CFLAGS
1960 CFLAGS="-g"
1961 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1962 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1963 if test "${ac_cv_prog_cc_g+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   cat >conftest.$ac_ext <<_ACEOF
1967 #line $LINENO "configure"
1968 /* confdefs.h.  */
1969 _ACEOF
1970 cat confdefs.h >>conftest.$ac_ext
1971 cat >>conftest.$ac_ext <<_ACEOF
1972 /* end confdefs.h.  */
1973
1974 int
1975 main ()
1976 {
1977
1978   ;
1979   return 0;
1980 }
1981 _ACEOF
1982 rm -f conftest.$ac_objext
1983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984   (eval $ac_compile) 2>&5
1985   ac_status=$?
1986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987   (exit $ac_status); } &&
1988          { ac_try='test -s conftest.$ac_objext'
1989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990   (eval $ac_try) 2>&5
1991   ac_status=$?
1992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993   (exit $ac_status); }; }; then
1994   ac_cv_prog_cc_g=yes
1995 else
1996   echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999 ac_cv_prog_cc_g=no
2000 fi
2001 rm -f conftest.$ac_objext conftest.$ac_ext
2002 fi
2003 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2004 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2005 if test "$ac_test_CFLAGS" = set; then
2006   CFLAGS=$ac_save_CFLAGS
2007 elif test $ac_cv_prog_cc_g = yes; then
2008   if test "$GCC" = yes; then
2009     CFLAGS="-g -O2"
2010   else
2011     CFLAGS="-g"
2012   fi
2013 else
2014   if test "$GCC" = yes; then
2015     CFLAGS="-O2"
2016   else
2017     CFLAGS=
2018   fi
2019 fi
2020 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2021 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2022 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   ac_cv_prog_cc_stdc=no
2026 ac_save_CC=$CC
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2029 /* confdefs.h.  */
2030 _ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h.  */
2034 #include <stdarg.h>
2035 #include <stdio.h>
2036 #include <sys/types.h>
2037 #include <sys/stat.h>
2038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2039 struct buf { int x; };
2040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2041 static char *e (p, i)
2042      char **p;
2043      int i;
2044 {
2045   return p[i];
2046 }
2047 static char *f (char * (*g) (char **, int), char **p, ...)
2048 {
2049   char *s;
2050   va_list v;
2051   va_start (v,p);
2052   s = g (p, va_arg (v,int));
2053   va_end (v);
2054   return s;
2055 }
2056 int test (int i, double x);
2057 struct s1 {int (*f) (int a);};
2058 struct s2 {int (*f) (double a);};
2059 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2060 int argc;
2061 char **argv;
2062 int
2063 main ()
2064 {
2065 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 # Don't try gcc -ansi; that turns off useful extensions and
2071 # breaks some systems' header files.
2072 # AIX                   -qlanglvl=ansi
2073 # Ultrix and OSF/1      -std1
2074 # HP-UX 10.20 and later -Ae
2075 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2076 # SVR4                  -Xc -D__EXTENSIONS__
2077 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2078 do
2079   CC="$ac_save_CC $ac_arg"
2080   rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_stdc=$ac_arg
2093 break
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 fi
2099 rm -f conftest.$ac_objext
2100 done
2101 rm -f conftest.$ac_ext conftest.$ac_objext
2102 CC=$ac_save_CC
2103
2104 fi
2105
2106 case "x$ac_cv_prog_cc_stdc" in
2107   x|xno)
2108     echo "$as_me:$LINENO: result: none needed" >&5
2109 echo "${ECHO_T}none needed" >&6 ;;
2110   *)
2111     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2112 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2113     CC="$CC $ac_cv_prog_cc_stdc" ;;
2114 esac
2115
2116 # Some people use a C++ compiler to compile C.  Since we use `exit',
2117 # in C++ we need to declare it.  In case someone uses the same compiler
2118 # for both compiling C and C++ we need to have the C++ compiler decide
2119 # the declaration of exit, since it's the most demanding environment.
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #ifndef __cplusplus
2122   choke me
2123 #endif
2124 _ACEOF
2125 rm -f conftest.$ac_objext
2126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127   (eval $ac_compile) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); } &&
2131          { ac_try='test -s conftest.$ac_objext'
2132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133   (eval $ac_try) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }; }; then
2137   for ac_declaration in \
2138    ''\
2139    '#include <stdlib.h>' \
2140    'extern "C" void std::exit (int) throw (); using std::exit;' \
2141    'extern "C" void std::exit (int); using std::exit;' \
2142    'extern "C" void exit (int) throw ();' \
2143    'extern "C" void exit (int);' \
2144    'void exit (int);'
2145 do
2146   cat >conftest.$ac_ext <<_ACEOF
2147 #line $LINENO "configure"
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153 #include <stdlib.h>
2154 $ac_declaration
2155 int
2156 main ()
2157 {
2158 exit (42);
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165   (eval $ac_compile) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); } &&
2169          { ac_try='test -s conftest.$ac_objext'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; }; then
2175   :
2176 else
2177   echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 continue
2181 fi
2182 rm -f conftest.$ac_objext conftest.$ac_ext
2183   cat >conftest.$ac_ext <<_ACEOF
2184 #line $LINENO "configure"
2185 /* confdefs.h.  */
2186 _ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h.  */
2190 $ac_declaration
2191 int
2192 main ()
2193 {
2194 exit (42);
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201   (eval $ac_compile) 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); } &&
2205          { ac_try='test -s conftest.$ac_objext'
2206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207   (eval $ac_try) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; }; then
2211   break
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 fi
2217 rm -f conftest.$ac_objext conftest.$ac_ext
2218 done
2219 rm -f conftest*
2220 if test -n "$ac_declaration"; then
2221   echo '#ifdef __cplusplus' >>confdefs.h
2222   echo $ac_declaration      >>confdefs.h
2223   echo '#endif'             >>confdefs.h
2224 fi
2225
2226 else
2227   echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 fi
2231 rm -f conftest.$ac_objext conftest.$ac_ext
2232 ac_ext=c
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237
2238 ac_ext=c
2239 ac_cpp='$CPP $CPPFLAGS'
2240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2243 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2245 # On Suns, sometimes $CPP names a directory.
2246 if test -n "$CPP" && test -d "$CPP"; then
2247   CPP=
2248 fi
2249 if test -z "$CPP"; then
2250   if test "${ac_cv_prog_CPP+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253       # Double quotes because CPP needs to be expanded
2254     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2255     do
2256       ac_preproc_ok=false
2257 for ac_c_preproc_warn_flag in '' yes
2258 do
2259   # Use a header file that comes with gcc, so configuring glibc
2260   # with a fresh cross-compiler works.
2261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2262   # <limits.h> exists even on freestanding compilers.
2263   # On the NeXT, cc -E runs the code through the compiler's parser,
2264   # not just through cpp. "Syntax error" is here to catch this case.
2265   cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272 #ifdef __STDC__
2273 # include <limits.h>
2274 #else
2275 # include <assert.h>
2276 #endif
2277                      Syntax error
2278 _ACEOF
2279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281   ac_status=$?
2282   grep -v '^ *+' conftest.er1 >conftest.err
2283   rm -f conftest.er1
2284   cat conftest.err >&5
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } >/dev/null; then
2287   if test -s conftest.err; then
2288     ac_cpp_err=$ac_c_preproc_warn_flag
2289   else
2290     ac_cpp_err=
2291   fi
2292 else
2293   ac_cpp_err=yes
2294 fi
2295 if test -z "$ac_cpp_err"; then
2296   :
2297 else
2298   echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2300
2301   # Broken: fails on valid input.
2302 continue
2303 fi
2304 rm -f conftest.err conftest.$ac_ext
2305
2306   # OK, works on sane cases.  Now check whether non-existent headers
2307   # can be detected and how.
2308   cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 /* confdefs.h.  */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h.  */
2315 #include <ac_nonexistent.h>
2316 _ACEOF
2317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319   ac_status=$?
2320   grep -v '^ *+' conftest.er1 >conftest.err
2321   rm -f conftest.er1
2322   cat conftest.err >&5
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); } >/dev/null; then
2325   if test -s conftest.err; then
2326     ac_cpp_err=$ac_c_preproc_warn_flag
2327   else
2328     ac_cpp_err=
2329   fi
2330 else
2331   ac_cpp_err=yes
2332 fi
2333 if test -z "$ac_cpp_err"; then
2334   # Broken: success on invalid input.
2335 continue
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340   # Passes both tests.
2341 ac_preproc_ok=:
2342 break
2343 fi
2344 rm -f conftest.err conftest.$ac_ext
2345
2346 done
2347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2348 rm -f conftest.err conftest.$ac_ext
2349 if $ac_preproc_ok; then
2350   break
2351 fi
2352
2353     done
2354     ac_cv_prog_CPP=$CPP
2355
2356 fi
2357   CPP=$ac_cv_prog_CPP
2358 else
2359   ac_cv_prog_CPP=$CPP
2360 fi
2361 echo "$as_me:$LINENO: result: $CPP" >&5
2362 echo "${ECHO_T}$CPP" >&6
2363 ac_preproc_ok=false
2364 for ac_c_preproc_warn_flag in '' yes
2365 do
2366   # Use a header file that comes with gcc, so configuring glibc
2367   # with a fresh cross-compiler works.
2368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2369   # <limits.h> exists even on freestanding compilers.
2370   # On the NeXT, cc -E runs the code through the compiler's parser,
2371   # not just through cpp. "Syntax error" is here to catch this case.
2372   cat >conftest.$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379 #ifdef __STDC__
2380 # include <limits.h>
2381 #else
2382 # include <assert.h>
2383 #endif
2384                      Syntax error
2385 _ACEOF
2386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388   ac_status=$?
2389   grep -v '^ *+' conftest.er1 >conftest.err
2390   rm -f conftest.er1
2391   cat conftest.err >&5
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); } >/dev/null; then
2394   if test -s conftest.err; then
2395     ac_cpp_err=$ac_c_preproc_warn_flag
2396   else
2397     ac_cpp_err=
2398   fi
2399 else
2400   ac_cpp_err=yes
2401 fi
2402 if test -z "$ac_cpp_err"; then
2403   :
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408   # Broken: fails on valid input.
2409 continue
2410 fi
2411 rm -f conftest.err conftest.$ac_ext
2412
2413   # OK, works on sane cases.  Now check whether non-existent headers
2414   # can be detected and how.
2415   cat >conftest.$ac_ext <<_ACEOF
2416 #line $LINENO "configure"
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422 #include <ac_nonexistent.h>
2423 _ACEOF
2424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2426   ac_status=$?
2427   grep -v '^ *+' conftest.er1 >conftest.err
2428   rm -f conftest.er1
2429   cat conftest.err >&5
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); } >/dev/null; then
2432   if test -s conftest.err; then
2433     ac_cpp_err=$ac_c_preproc_warn_flag
2434   else
2435     ac_cpp_err=
2436   fi
2437 else
2438   ac_cpp_err=yes
2439 fi
2440 if test -z "$ac_cpp_err"; then
2441   # Broken: success on invalid input.
2442 continue
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447   # Passes both tests.
2448 ac_preproc_ok=:
2449 break
2450 fi
2451 rm -f conftest.err conftest.$ac_ext
2452
2453 done
2454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2455 rm -f conftest.err conftest.$ac_ext
2456 if $ac_preproc_ok; then
2457   :
2458 else
2459   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2460 See \`config.log' for more details." >&5
2461 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2462 See \`config.log' for more details." >&2;}
2463    { (exit 1); exit 1; }; }
2464 fi
2465
2466 ac_ext=c
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472 # Find a good install program.  We prefer a C program (faster),
2473 # so one script is as good as another.  But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # ./install, which can be erroneously created by make from ./install.sh.
2484 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2485 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2486 if test -z "$INSTALL"; then
2487 if test "${ac_cv_path_install+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   # Account for people who put trailing slashes in PATH elements.
2496 case $as_dir/ in
2497   ./ | .// | /cC/* | \
2498   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2499   /usr/ucb/* ) ;;
2500   *)
2501     # OSF1 and SCO ODT 3.0 have their own names for install.
2502     # Don't use installbsd from OSF since it installs stuff as root
2503     # by default.
2504     for ac_prog in ginstall scoinst install; do
2505       for ac_exec_ext in '' $ac_executable_extensions; do
2506         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2507           if test $ac_prog = install &&
2508             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509             # AIX install.  It has an incompatible calling convention.
2510             :
2511           elif test $ac_prog = install &&
2512             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513             # program-specific install script used by HP pwplus--don't use.
2514             :
2515           else
2516             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2517             break 3
2518           fi
2519         fi
2520       done
2521     done
2522     ;;
2523 esac
2524 done
2525
2526
2527 fi
2528   if test "${ac_cv_path_install+set}" = set; then
2529     INSTALL=$ac_cv_path_install
2530   else
2531     # As a last resort, use the slow shell script.  We don't cache a
2532     # path for INSTALL within a source directory, because that will
2533     # break other packages using the cache if that directory is
2534     # removed, or if the path is relative.
2535     INSTALL=$ac_install_sh
2536   fi
2537 fi
2538 echo "$as_me:$LINENO: result: $INSTALL" >&5
2539 echo "${ECHO_T}$INSTALL" >&6
2540
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548
2549 # Extract the first word of "find", so it can be a program name with args.
2550 set dummy find; ac_word=$2
2551 echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_prog_FIND+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$FIND"; then
2557   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566     ac_cv_prog_FIND="find"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572
2573   test -z "$ac_cv_prog_FIND" && ac_cv_prog_FIND=":"
2574 fi
2575 fi
2576 FIND=$ac_cv_prog_FIND
2577 if test -n "$FIND"; then
2578   echo "$as_me:$LINENO: result: $FIND" >&5
2579 echo "${ECHO_T}$FIND" >&6
2580 else
2581   echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2583 fi
2584
2585 # Extract the first word of "makedepend", so it can be a program name with args.
2586 set dummy makedepend; ac_word=$2
2587 echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589 if test "${ac_cv_prog_MAKEDEPEND+set}" = set; then
2590   echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592   if test -n "$MAKEDEPEND"; then
2593   ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600   for ac_exec_ext in '' $ac_executable_extensions; do
2601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602     ac_cv_prog_MAKEDEPEND="makedepend"
2603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607 done
2608
2609   test -z "$ac_cv_prog_MAKEDEPEND" && ac_cv_prog_MAKEDEPEND=":"
2610 fi
2611 fi
2612 MAKEDEPEND=$ac_cv_prog_MAKEDEPEND
2613 if test -n "$MAKEDEPEND"; then
2614   echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2615 echo "${ECHO_T}$MAKEDEPEND" >&6
2616 else
2617   echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620
2621
2622 #
2623 # Try to locate the X Window System include files and libraries
2624 # and add /usr/local to include and lib path and add -lm (for testing)
2625 #
2626
2627
2628 echo "$as_me:$LINENO: checking for X" >&5
2629 echo $ECHO_N "checking for X... $ECHO_C" >&6
2630
2631
2632 # Check whether --with-x or --without-x was given.
2633 if test "${with_x+set}" = set; then
2634   withval="$with_x"
2635
2636 fi;
2637 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2638 if test "x$with_x" = xno; then
2639   # The user explicitly disabled X.
2640   have_x=disabled
2641 else
2642   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2643     # Both variables are already set.
2644     have_x=yes
2645   else
2646     if test "${ac_cv_have_x+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   # One or both of the vars are not set, and there is no cached value.
2650 ac_x_includes=no ac_x_libraries=no
2651 rm -fr conftest.dir
2652 if mkdir conftest.dir; then
2653   cd conftest.dir
2654   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2655   cat >Imakefile <<'_ACEOF'
2656 acfindx:
2657         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2658 _ACEOF
2659   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2660     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2661     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2662     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2663     for ac_extension in a so sl; do
2664       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2665          test -f $ac_im_libdir/libX11.$ac_extension; then
2666         ac_im_usrlibdir=$ac_im_libdir; break
2667       fi
2668     done
2669     # Screen out bogus values from the imake configuration.  They are
2670     # bogus both because they are the default anyway, and because
2671     # using them would break gcc on systems where it needs fixed includes.
2672     case $ac_im_incroot in
2673         /usr/include) ;;
2674         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2675     esac
2676     case $ac_im_usrlibdir in
2677         /usr/lib | /lib) ;;
2678         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2679     esac
2680   fi
2681   cd ..
2682   rm -fr conftest.dir
2683 fi
2684
2685 # Standard set of common directories for X headers.
2686 # Check X11 before X11Rn because it is often a symlink to the current release.
2687 ac_x_header_dirs='
2688 /usr/X11/include
2689 /usr/X11R6/include
2690 /usr/X11R5/include
2691 /usr/X11R4/include
2692
2693 /usr/include/X11
2694 /usr/include/X11R6
2695 /usr/include/X11R5
2696 /usr/include/X11R4
2697
2698 /usr/local/X11/include
2699 /usr/local/X11R6/include
2700 /usr/local/X11R5/include
2701 /usr/local/X11R4/include
2702
2703 /usr/local/include/X11
2704 /usr/local/include/X11R6
2705 /usr/local/include/X11R5
2706 /usr/local/include/X11R4
2707
2708 /usr/X386/include
2709 /usr/x386/include
2710 /usr/XFree86/include/X11
2711
2712 /usr/include
2713 /usr/local/include
2714 /usr/unsupported/include
2715 /usr/athena/include
2716 /usr/local/x11r5/include
2717 /usr/lpp/Xamples/include
2718
2719 /usr/openwin/include
2720 /usr/openwin/share/include'
2721
2722 if test "$ac_x_includes" = no; then
2723   # Guess where to find include files, by looking for Intrinsic.h.
2724   # First, try using that file with no special directory specified.
2725   cat >conftest.$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732 #include <X11/Intrinsic.h>
2733 _ACEOF
2734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } >/dev/null; then
2742   if test -s conftest.err; then
2743     ac_cpp_err=$ac_c_preproc_warn_flag
2744   else
2745     ac_cpp_err=
2746   fi
2747 else
2748   ac_cpp_err=yes
2749 fi
2750 if test -z "$ac_cpp_err"; then
2751   # We can compile using X headers with no special include directory.
2752 ac_x_includes=
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757   for ac_dir in $ac_x_header_dirs; do
2758   if test -r "$ac_dir/X11/Intrinsic.h"; then
2759     ac_x_includes=$ac_dir
2760     break
2761   fi
2762 done
2763 fi
2764 rm -f conftest.err conftest.$ac_ext
2765 fi # $ac_x_includes = no
2766
2767 if test "$ac_x_libraries" = no; then
2768   # Check for the libraries.
2769   # See if we find them without any special options.
2770   # Don't add to $LIBS permanently.
2771   ac_save_LIBS=$LIBS
2772   LIBS="-lXt $LIBS"
2773   cat >conftest.$ac_ext <<_ACEOF
2774 #line $LINENO "configure"
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 #include <X11/Intrinsic.h>
2781 int
2782 main ()
2783 {
2784 XtMalloc (0)
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext conftest$ac_exeext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2791   (eval $ac_link) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); } &&
2795          { ac_try='test -s conftest$ac_exeext'
2796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801   LIBS=$ac_save_LIBS
2802 # We can link X programs with no special library path.
2803 ac_x_libraries=
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 LIBS=$ac_save_LIBS
2809 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2810 do
2811   # Don't even attempt the hair of trying to link an X program!
2812   for ac_extension in a so sl; do
2813     if test -r $ac_dir/libXt.$ac_extension; then
2814       ac_x_libraries=$ac_dir
2815       break 2
2816     fi
2817   done
2818 done
2819 fi
2820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2821 fi # $ac_x_libraries = no
2822
2823 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2824   # Didn't find X anywhere.  Cache the known absence of X.
2825   ac_cv_have_x="have_x=no"
2826 else
2827   # Record where we found X for the cache.
2828   ac_cv_have_x="have_x=yes \
2829                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2830 fi
2831 fi
2832
2833   fi
2834   eval "$ac_cv_have_x"
2835 fi # $with_x != no
2836
2837 if test "$have_x" != yes; then
2838   echo "$as_me:$LINENO: result: $have_x" >&5
2839 echo "${ECHO_T}$have_x" >&6
2840   no_x=yes
2841 else
2842   # If each of the values was on the command line, it overrides each guess.
2843   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2844   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2845   # Update the cache value to reflect the command line values.
2846   ac_cv_have_x="have_x=yes \
2847                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2848   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2849 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2850 fi
2851
2852 if test "$no_x" = yes; then
2853   # Not all programs may use this symbol, but it does not hurt to define it.
2854
2855 cat >>confdefs.h <<\_ACEOF
2856 #define X_DISPLAY_MISSING 1
2857 _ACEOF
2858
2859   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2860 else
2861   if test -n "$x_includes"; then
2862     X_CFLAGS="$X_CFLAGS -I$x_includes"
2863   fi
2864
2865   # It would also be nice to do this for all -L options, not just this one.
2866   if test -n "$x_libraries"; then
2867     X_LIBS="$X_LIBS -L$x_libraries"
2868     # For Solaris; some versions of Sun CC require a space after -R and
2869     # others require no space.  Words are not sufficient . . . .
2870     case `(uname -sr) 2>/dev/null` in
2871     "SunOS 5"*)
2872       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2873 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2874       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2875       cat >conftest.$ac_ext <<_ACEOF
2876 #line $LINENO "configure"
2877 /* confdefs.h.  */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h.  */
2882
2883 int
2884 main ()
2885 {
2886
2887   ;
2888   return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.$ac_objext conftest$ac_exeext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893   (eval $ac_link) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -s conftest$ac_exeext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   ac_R_nospace=yes
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 ac_R_nospace=no
2909 fi
2910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2911       if test $ac_R_nospace = yes; then
2912         echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6
2914         X_LIBS="$X_LIBS -R$x_libraries"
2915       else
2916         LIBS="$ac_xsave_LIBS -R $x_libraries"
2917         cat >conftest.$ac_ext <<_ACEOF
2918 #line $LINENO "configure"
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext conftest$ac_exeext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935   (eval $ac_link) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); } &&
2939          { ac_try='test -s conftest$ac_exeext'
2940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941   (eval $ac_try) 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; }; then
2945   ac_R_space=yes
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 ac_R_space=no
2951 fi
2952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2953         if test $ac_R_space = yes; then
2954           echo "$as_me:$LINENO: result: yes" >&5
2955 echo "${ECHO_T}yes" >&6
2956           X_LIBS="$X_LIBS -R $x_libraries"
2957         else
2958           echo "$as_me:$LINENO: result: neither works" >&5
2959 echo "${ECHO_T}neither works" >&6
2960         fi
2961       fi
2962       LIBS=$ac_xsave_LIBS
2963     esac
2964   fi
2965
2966   # Check for system-dependent libraries X programs must link with.
2967   # Do this before checking for the system-independent R6 libraries
2968   # (-lICE), since we may need -lsocket or whatever for X linking.
2969
2970   if test "$ISC" = yes; then
2971     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2972   else
2973     # Martyn Johnson says this is needed for Ultrix, if the X
2974     # libraries were built with DECnet support.  And Karl Berry says
2975     # the Alpha needs dnet_stub (dnet does not exist).
2976     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2977     cat >conftest.$ac_ext <<_ACEOF
2978 #line $LINENO "configure"
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984
2985 /* Override any gcc2 internal prototype to avoid an error.  */
2986 #ifdef __cplusplus
2987 extern "C"
2988 #endif
2989 /* We use char because int might match the return type of a gcc2
2990    builtin and then its argument prototype would still apply.  */
2991 char XOpenDisplay ();
2992 int
2993 main ()
2994 {
2995 XOpenDisplay ();
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002   (eval $ac_link) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); } &&
3006          { ac_try='test -s conftest$ac_exeext'
3007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008   (eval $ac_try) 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; }; then
3012   :
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3018 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3019 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   ac_check_lib_save_LIBS=$LIBS
3023 LIBS="-ldnet  $LIBS"
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031
3032 /* Override any gcc2 internal prototype to avoid an error.  */
3033 #ifdef __cplusplus
3034 extern "C"
3035 #endif
3036 /* We use char because int might match the return type of a gcc2
3037    builtin and then its argument prototype would still apply.  */
3038 char dnet_ntoa ();
3039 int
3040 main ()
3041 {
3042 dnet_ntoa ();
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 rm -f conftest.$ac_objext conftest$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049   (eval $ac_link) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -s conftest$ac_exeext'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_lib_dnet_dnet_ntoa=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 ac_cv_lib_dnet_dnet_ntoa=no
3065 fi
3066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3067 LIBS=$ac_check_lib_save_LIBS
3068 fi
3069 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3070 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3071 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3072   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3073 fi
3074
3075     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3076       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3077 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3078 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   ac_check_lib_save_LIBS=$LIBS
3082 LIBS="-ldnet_stub  $LIBS"
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 /* Override any gcc2 internal prototype to avoid an error.  */
3092 #ifdef __cplusplus
3093 extern "C"
3094 #endif
3095 /* We use char because int might match the return type of a gcc2
3096    builtin and then its argument prototype would still apply.  */
3097 char dnet_ntoa ();
3098 int
3099 main ()
3100 {
3101 dnet_ntoa ();
3102   ;
3103   return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108   (eval $ac_link) 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -s conftest$ac_exeext'
3113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114   (eval $ac_try) 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; }; then
3118   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 ac_cv_lib_dnet_stub_dnet_ntoa=no
3124 fi
3125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3126 LIBS=$ac_check_lib_save_LIBS
3127 fi
3128 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3129 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3130 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3131   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3132 fi
3133
3134     fi
3135 fi
3136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3137     LIBS="$ac_xsave_LIBS"
3138
3139     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3140     # to get the SysV transport functions.
3141     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3142     # needs -lnsl.
3143     # The nsl library prevents programs from opening the X display
3144     # on Irix 5.2, according to T.E. Dickey.
3145     # The functions gethostbyname, getservbyname, and inet_addr are
3146     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3147     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3148 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3149 if test "${ac_cv_func_gethostbyname+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 /* System header to define __stub macros and hopefully few prototypes,
3160     which can conflict with char gethostbyname (); below.
3161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3162     <limits.h> exists even on freestanding compilers.  */
3163 #ifdef __STDC__
3164 # include <limits.h>
3165 #else
3166 # include <assert.h>
3167 #endif
3168 /* Override any gcc2 internal prototype to avoid an error.  */
3169 #ifdef __cplusplus
3170 extern "C"
3171 {
3172 #endif
3173 /* We use char because int might match the return type of a gcc2
3174    builtin and then its argument prototype would still apply.  */
3175 char gethostbyname ();
3176 /* The GNU C library defines this for functions which it implements
3177     to always fail with ENOSYS.  Some functions are actually named
3178     something starting with __ and the normal name is an alias.  */
3179 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3180 choke me
3181 #else
3182 char (*f) () = gethostbyname;
3183 #endif
3184 #ifdef __cplusplus
3185 }
3186 #endif
3187
3188 int
3189 main ()
3190 {
3191 return f != gethostbyname;
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.$ac_objext conftest$ac_exeext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3198   (eval $ac_link) 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } &&
3202          { ac_try='test -s conftest$ac_exeext'
3203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204   (eval $ac_try) 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_func_gethostbyname=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 ac_cv_func_gethostbyname=no
3214 fi
3215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3216 fi
3217 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3218 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3219
3220     if test $ac_cv_func_gethostbyname = no; then
3221       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3222 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3223 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226   ac_check_lib_save_LIBS=$LIBS
3227 LIBS="-lnsl  $LIBS"
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235
3236 /* Override any gcc2 internal prototype to avoid an error.  */
3237 #ifdef __cplusplus
3238 extern "C"
3239 #endif
3240 /* We use char because int might match the return type of a gcc2
3241    builtin and then its argument prototype would still apply.  */
3242 char gethostbyname ();
3243 int
3244 main ()
3245 {
3246 gethostbyname ();
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253   (eval $ac_link) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } &&
3257          { ac_try='test -s conftest$ac_exeext'
3258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259   (eval $ac_try) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; }; then
3263   ac_cv_lib_nsl_gethostbyname=yes
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ac_cv_lib_nsl_gethostbyname=no
3269 fi
3270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271 LIBS=$ac_check_lib_save_LIBS
3272 fi
3273 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3274 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3275 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3276   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3277 fi
3278
3279       if test $ac_cv_lib_nsl_gethostbyname = no; then
3280         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3281 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3282 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   ac_check_lib_save_LIBS=$LIBS
3286 LIBS="-lbsd  $LIBS"
3287 cat >conftest.$ac_ext <<_ACEOF
3288 #line $LINENO "configure"
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294
3295 /* Override any gcc2 internal prototype to avoid an error.  */
3296 #ifdef __cplusplus
3297 extern "C"
3298 #endif
3299 /* We use char because int might match the return type of a gcc2
3300    builtin and then its argument prototype would still apply.  */
3301 char gethostbyname ();
3302 int
3303 main ()
3304 {
3305 gethostbyname ();
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.$ac_objext conftest$ac_exeext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3312   (eval $ac_link) 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } &&
3316          { ac_try='test -s conftest$ac_exeext'
3317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318   (eval $ac_try) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; }; then
3322   ac_cv_lib_bsd_gethostbyname=yes
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 ac_cv_lib_bsd_gethostbyname=no
3328 fi
3329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3330 LIBS=$ac_check_lib_save_LIBS
3331 fi
3332 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3333 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3334 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3335   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3336 fi
3337
3338       fi
3339     fi
3340
3341     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3342     # socket/setsockopt and other routines are undefined under SCO ODT
3343     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3344     # on later versions), says Simon Leinen: it contains gethostby*
3345     # variants that don't use the name server (or something).  -lsocket
3346     # must be given before -lnsl if both are needed.  We assume that
3347     # if connect needs -lnsl, so does gethostbyname.
3348     echo "$as_me:$LINENO: checking for connect" >&5
3349 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3350 if test "${ac_cv_func_connect+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360 /* System header to define __stub macros and hopefully few prototypes,
3361     which can conflict with char connect (); below.
3362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363     <limits.h> exists even on freestanding compilers.  */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369 /* Override any gcc2 internal prototype to avoid an error.  */
3370 #ifdef __cplusplus
3371 extern "C"
3372 {
3373 #endif
3374 /* We use char because int might match the return type of a gcc2
3375    builtin and then its argument prototype would still apply.  */
3376 char connect ();
3377 /* The GNU C library defines this for functions which it implements
3378     to always fail with ENOSYS.  Some functions are actually named
3379     something starting with __ and the normal name is an alias.  */
3380 #if defined (__stub_connect) || defined (__stub___connect)
3381 choke me
3382 #else
3383 char (*f) () = connect;
3384 #endif
3385 #ifdef __cplusplus
3386 }
3387 #endif
3388
3389 int
3390 main ()
3391 {
3392 return f != connect;
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.$ac_objext conftest$ac_exeext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3399   (eval $ac_link) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } &&
3403          { ac_try='test -s conftest$ac_exeext'
3404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; }; then
3409   ac_cv_func_connect=yes
3410 else
3411   echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 ac_cv_func_connect=no
3415 fi
3416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3417 fi
3418 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3419 echo "${ECHO_T}$ac_cv_func_connect" >&6
3420
3421     if test $ac_cv_func_connect = no; then
3422       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3423 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3424 if test "${ac_cv_lib_socket_connect+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   ac_check_lib_save_LIBS=$LIBS
3428 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3429 cat >conftest.$ac_ext <<_ACEOF
3430 #line $LINENO "configure"
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436
3437 /* Override any gcc2 internal prototype to avoid an error.  */
3438 #ifdef __cplusplus
3439 extern "C"
3440 #endif
3441 /* We use char because int might match the return type of a gcc2
3442    builtin and then its argument prototype would still apply.  */
3443 char connect ();
3444 int
3445 main ()
3446 {
3447 connect ();
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 rm -f conftest.$ac_objext conftest$ac_exeext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454   (eval $ac_link) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } &&
3458          { ac_try='test -s conftest$ac_exeext'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; }; then
3464   ac_cv_lib_socket_connect=yes
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ac_cv_lib_socket_connect=no
3470 fi
3471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3472 LIBS=$ac_check_lib_save_LIBS
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3475 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3476 if test $ac_cv_lib_socket_connect = yes; then
3477   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3478 fi
3479
3480     fi
3481
3482     # Guillermo Gomez says -lposix is necessary on A/UX.
3483     echo "$as_me:$LINENO: checking for remove" >&5
3484 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3485 if test "${ac_cv_func_remove+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   cat >conftest.$ac_ext <<_ACEOF
3489 #line $LINENO "configure"
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495 /* System header to define __stub macros and hopefully few prototypes,
3496     which can conflict with char remove (); below.
3497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498     <limits.h> exists even on freestanding compilers.  */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3504 /* Override any gcc2 internal prototype to avoid an error.  */
3505 #ifdef __cplusplus
3506 extern "C"
3507 {
3508 #endif
3509 /* We use char because int might match the return type of a gcc2
3510    builtin and then its argument prototype would still apply.  */
3511 char remove ();
3512 /* The GNU C library defines this for functions which it implements
3513     to always fail with ENOSYS.  Some functions are actually named
3514     something starting with __ and the normal name is an alias.  */
3515 #if defined (__stub_remove) || defined (__stub___remove)
3516 choke me
3517 #else
3518 char (*f) () = remove;
3519 #endif
3520 #ifdef __cplusplus
3521 }
3522 #endif
3523
3524 int
3525 main ()
3526 {
3527 return f != remove;
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.$ac_objext conftest$ac_exeext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534   (eval $ac_link) 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -s conftest$ac_exeext'
3539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540   (eval $ac_try) 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; }; then
3544   ac_cv_func_remove=yes
3545 else
3546   echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 ac_cv_func_remove=no
3550 fi
3551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3552 fi
3553 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3554 echo "${ECHO_T}$ac_cv_func_remove" >&6
3555
3556     if test $ac_cv_func_remove = no; then
3557       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3558 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3559 if test "${ac_cv_lib_posix_remove+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   ac_check_lib_save_LIBS=$LIBS
3563 LIBS="-lposix  $LIBS"
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 /* confdefs.h.  */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h.  */
3571
3572 /* Override any gcc2 internal prototype to avoid an error.  */
3573 #ifdef __cplusplus
3574 extern "C"
3575 #endif
3576 /* We use char because int might match the return type of a gcc2
3577    builtin and then its argument prototype would still apply.  */
3578 char remove ();
3579 int
3580 main ()
3581 {
3582 remove ();
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 rm -f conftest.$ac_objext conftest$ac_exeext
3588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3589   (eval $ac_link) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } &&
3593          { ac_try='test -s conftest$ac_exeext'
3594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595   (eval $ac_try) 2>&5
3596   ac_status=$?
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); }; }; then
3599   ac_cv_lib_posix_remove=yes
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 ac_cv_lib_posix_remove=no
3605 fi
3606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3607 LIBS=$ac_check_lib_save_LIBS
3608 fi
3609 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3610 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3611 if test $ac_cv_lib_posix_remove = yes; then
3612   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3613 fi
3614
3615     fi
3616
3617     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3618     echo "$as_me:$LINENO: checking for shmat" >&5
3619 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3620 if test "${ac_cv_func_shmat+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   cat >conftest.$ac_ext <<_ACEOF
3624 #line $LINENO "configure"
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630 /* System header to define __stub macros and hopefully few prototypes,
3631     which can conflict with char shmat (); below.
3632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3633     <limits.h> exists even on freestanding compilers.  */
3634 #ifdef __STDC__
3635 # include <limits.h>
3636 #else
3637 # include <assert.h>
3638 #endif
3639 /* Override any gcc2 internal prototype to avoid an error.  */
3640 #ifdef __cplusplus
3641 extern "C"
3642 {
3643 #endif
3644 /* We use char because int might match the return type of a gcc2
3645    builtin and then its argument prototype would still apply.  */
3646 char shmat ();
3647 /* The GNU C library defines this for functions which it implements
3648     to always fail with ENOSYS.  Some functions are actually named
3649     something starting with __ and the normal name is an alias.  */
3650 #if defined (__stub_shmat) || defined (__stub___shmat)
3651 choke me
3652 #else
3653 char (*f) () = shmat;
3654 #endif
3655 #ifdef __cplusplus
3656 }
3657 #endif
3658
3659 int
3660 main ()
3661 {
3662 return f != shmat;
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669   (eval $ac_link) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } &&
3673          { ac_try='test -s conftest$ac_exeext'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; }; then
3679   ac_cv_func_shmat=yes
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_cv_func_shmat=no
3685 fi
3686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3687 fi
3688 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3689 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3690
3691     if test $ac_cv_func_shmat = no; then
3692       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3693 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3694 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   ac_check_lib_save_LIBS=$LIBS
3698 LIBS="-lipc  $LIBS"
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 /* confdefs.h.  */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h.  */
3706
3707 /* Override any gcc2 internal prototype to avoid an error.  */
3708 #ifdef __cplusplus
3709 extern "C"
3710 #endif
3711 /* We use char because int might match the return type of a gcc2
3712    builtin and then its argument prototype would still apply.  */
3713 char shmat ();
3714 int
3715 main ()
3716 {
3717 shmat ();
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724   (eval $ac_link) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -s conftest$ac_exeext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_lib_ipc_shmat=yes
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 ac_cv_lib_ipc_shmat=no
3740 fi
3741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3742 LIBS=$ac_check_lib_save_LIBS
3743 fi
3744 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3745 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3746 if test $ac_cv_lib_ipc_shmat = yes; then
3747   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3748 fi
3749
3750     fi
3751   fi
3752
3753   # Check for libraries that X11R6 Xt/Xaw programs need.
3754   ac_save_LDFLAGS=$LDFLAGS
3755   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3756   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3757   # check for ICE first), but we must link in the order -lSM -lICE or
3758   # we get undefined symbols.  So assume we have SM if we have ICE.
3759   # These have to be linked with before -lX11, unlike the other
3760   # libraries we check for below, so use a different variable.
3761   # John Interrante, Karl Berry
3762   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3763 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3764 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   ac_check_lib_save_LIBS=$LIBS
3768 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776
3777 /* Override any gcc2 internal prototype to avoid an error.  */
3778 #ifdef __cplusplus
3779 extern "C"
3780 #endif
3781 /* We use char because int might match the return type of a gcc2
3782    builtin and then its argument prototype would still apply.  */
3783 char IceConnectionNumber ();
3784 int
3785 main ()
3786 {
3787 IceConnectionNumber ();
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794   (eval $ac_link) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } &&
3798          { ac_try='test -s conftest$ac_exeext'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; }; then
3804   ac_cv_lib_ICE_IceConnectionNumber=yes
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 ac_cv_lib_ICE_IceConnectionNumber=no
3810 fi
3811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3812 LIBS=$ac_check_lib_save_LIBS
3813 fi
3814 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3815 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3816 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3817   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3818 fi
3819
3820   LDFLAGS=$ac_save_LDFLAGS
3821
3822 fi
3823
3824 #CFLAGS="$CFLAGS $X_CFLAGS -I/usr/local/include"
3825 CFLAGS="$CFLAGS $X_CFLAGS"
3826 LDFLAGS="$LDFLAGS $X_LIBS -L/usr/local/lib"
3827
3828
3829 #
3830 # Declare variables which we want substituted in the Makefile.in's
3831 #
3832
3833
3834 echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3836 if test "${ac_cv_prog_egrep+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3840     then ac_cv_prog_egrep='grep -E'
3841     else ac_cv_prog_egrep='egrep'
3842     fi
3843 fi
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3845 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3846  EGREP=$ac_cv_prog_egrep
3847
3848
3849 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3850 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3851 if test "${ac_cv_header_stdc+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   cat >conftest.$ac_ext <<_ACEOF
3855 #line $LINENO "configure"
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861 #include <stdlib.h>
3862 #include <stdarg.h>
3863 #include <string.h>
3864 #include <float.h>
3865
3866 int
3867 main ()
3868 {
3869
3870   ;
3871   return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3876   (eval $ac_compile) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } &&
3880          { ac_try='test -s conftest.$ac_objext'
3881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882   (eval $ac_try) 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; }; then
3886   ac_cv_header_stdc=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 ac_cv_header_stdc=no
3892 fi
3893 rm -f conftest.$ac_objext conftest.$ac_ext
3894
3895 if test $ac_cv_header_stdc = yes; then
3896   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <string.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "memchr" >/dev/null 2>&1; then
3909   :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 #line $LINENO "configure"
3921 /* confdefs.h.  */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h.  */
3926 #include <stdlib.h>
3927
3928 _ACEOF
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930   $EGREP "free" >/dev/null 2>&1; then
3931   :
3932 else
3933   ac_cv_header_stdc=no
3934 fi
3935 rm -f conftest*
3936
3937 fi
3938
3939 if test $ac_cv_header_stdc = yes; then
3940   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941   if test "$cross_compiling" = yes; then
3942   :
3943 else
3944   cat >conftest.$ac_ext <<_ACEOF
3945 #line $LINENO "configure"
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 #include <ctype.h>
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955 #else
3956 # define ISLOWER(c) \
3957                    (('a' <= (c) && (c) <= 'i') \
3958                      || ('j' <= (c) && (c) <= 'r') \
3959                      || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961 #endif
3962
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964 int
3965 main ()
3966 {
3967   int i;
3968   for (i = 0; i < 256; i++)
3969     if (XOR (islower (i), ISLOWER (i))
3970         || toupper (i) != TOUPPER (i))
3971       exit(2);
3972   exit (0);
3973 }
3974 _ACEOF
3975 rm -f conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977   (eval $ac_link) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982   (eval $ac_try) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   :
3987 else
3988   echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ( exit $ac_status )
3993 ac_cv_header_stdc=no
3994 fi
3995 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 fi
3998 fi
3999 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4001 if test $ac_cv_header_stdc = yes; then
4002
4003 cat >>confdefs.h <<\_ACEOF
4004 #define STDC_HEADERS 1
4005 _ACEOF
4006
4007 fi
4008
4009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020                   inttypes.h stdint.h unistd.h
4021 do
4022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023 echo "$as_me:$LINENO: checking for $ac_header" >&5
4024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 $ac_includes_default
4036
4037 #include <$ac_header>
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>&5
4042   ac_status=$?
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -s conftest.$ac_objext'
4046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047   (eval $ac_try) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; }; then
4051   eval "$as_ac_Header=yes"
4052 else
4053   echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 eval "$as_ac_Header=no"
4057 fi
4058 rm -f conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4063   cat >>confdefs.h <<_ACEOF
4064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4065 _ACEOF
4066
4067 fi
4068
4069 done
4070
4071
4072
4073 for ac_header in limits.h
4074 do
4075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4077   echo "$as_me:$LINENO: checking for $ac_header" >&5
4078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 fi
4082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4084 else
4085   # Is the header compilable?
4086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_includes_default
4096 #include <$ac_header>
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100   (eval $ac_compile) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -s conftest.$ac_objext'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; }; then
4110   ac_header_compiler=yes
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 ac_header_compiler=no
4116 fi
4117 rm -f conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4119 echo "${ECHO_T}$ac_header_compiler" >&6
4120
4121 # Is the header present?
4122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 #include <$ac_header>
4132 _ACEOF
4133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4135   ac_status=$?
4136   grep -v '^ *+' conftest.er1 >conftest.err
4137   rm -f conftest.er1
4138   cat conftest.err >&5
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } >/dev/null; then
4141   if test -s conftest.err; then
4142     ac_cpp_err=$ac_c_preproc_warn_flag
4143   else
4144     ac_cpp_err=
4145   fi
4146 else
4147   ac_cpp_err=yes
4148 fi
4149 if test -z "$ac_cpp_err"; then
4150   ac_header_preproc=yes
4151 else
4152   echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155   ac_header_preproc=no
4156 fi
4157 rm -f conftest.err conftest.$ac_ext
4158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4159 echo "${ECHO_T}$ac_header_preproc" >&6
4160
4161 # So?  What about this header?
4162 case $ac_header_compiler:$ac_header_preproc in
4163   yes:no )
4164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4168     (
4169       cat <<\_ASBOX
4170 ## ------------------------------------ ##
4171 ## Report this to bug-autoconf@gnu.org. ##
4172 ## ------------------------------------ ##
4173 _ASBOX
4174     ) |
4175       sed "s/^/$as_me: WARNING:     /" >&2
4176     ;;
4177   no:yes )
4178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4180     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4184     (
4185       cat <<\_ASBOX
4186 ## ------------------------------------ ##
4187 ## Report this to bug-autoconf@gnu.org. ##
4188 ## ------------------------------------ ##
4189 _ASBOX
4190     ) |
4191       sed "s/^/$as_me: WARNING:     /" >&2
4192     ;;
4193 esac
4194 echo "$as_me:$LINENO: checking for $ac_header" >&5
4195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199   eval "$as_ac_Header=$ac_header_preproc"
4200 fi
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203
4204 fi
4205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4206   cat >>confdefs.h <<_ACEOF
4207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4208 _ACEOF
4209
4210 fi
4211
4212 done
4213
4214
4215
4216 #
4217 # finally create makefiles using Makefile.in
4218 #
4219 echo
4220                     ac_config_files="$ac_config_files Makefile test/Makefile"
4221 cat >confcache <<\_ACEOF
4222 # This file is a shell script that caches the results of configure
4223 # tests run on this system so they can be shared between configure
4224 # scripts and configure runs, see configure's option --config-cache.
4225 # It is not useful on other systems.  If it contains results you don't
4226 # want to keep, you may remove or edit it.
4227 #
4228 # config.status only pays attention to the cache file if you give it
4229 # the --recheck option to rerun configure.
4230 #
4231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4233 # following values.
4234
4235 _ACEOF
4236
4237 # The following way of writing the cache mishandles newlines in values,
4238 # but we know of no workaround that is simple, portable, and efficient.
4239 # So, don't put newlines in cache variables' values.
4240 # Ultrix sh set writes to stderr and can't be redirected directly,
4241 # and sets the high bit in the cache file unless we assign to the vars.
4242 {
4243   (set) 2>&1 |
4244     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4245     *ac_space=\ *)
4246       # `set' does not quote correctly, so add quotes (double-quote
4247       # substitution turns \\\\ into \\, and sed turns \\ into \).
4248       sed -n \
4249         "s/'/'\\\\''/g;
4250           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4251       ;;
4252     *)
4253       # `set' quotes correctly as required by POSIX, so do not add quotes.
4254       sed -n \
4255         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4256       ;;
4257     esac;
4258 } |
4259   sed '
4260      t clear
4261      : clear
4262      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4263      t end
4264      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4265      : end' >>confcache
4266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4267   if test -w $cache_file; then
4268     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4269     cat confcache >$cache_file
4270   else
4271     echo "not updating unwritable cache $cache_file"
4272   fi
4273 fi
4274 rm -f confcache
4275
4276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4277 # Let make expand exec_prefix.
4278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4279
4280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4282 # trailing colons and then remove the whole line if VPATH becomes empty
4283 # (actually we leave an empty line to preserve line numbers).
4284 if test "x$srcdir" = x.; then
4285   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4286 s/:*\$(srcdir):*/:/;
4287 s/:*\${srcdir}:*/:/;
4288 s/:*@srcdir@:*/:/;
4289 s/^\([^=]*=[    ]*\):*/\1/;
4290 s/:*$//;
4291 s/^[^=]*=[      ]*$//;
4292 }'
4293 fi
4294
4295 # Transform confdefs.h into DEFS.
4296 # Protect against shell expansion while executing Makefile rules.
4297 # Protect against Makefile macro expansion.
4298 #
4299 # If the first sed substitution is executed (which looks for macros that
4300 # take arguments), then we branch to the quote section.  Otherwise,
4301 # look for a macro that doesn't take arguments.
4302 cat >confdef2opt.sed <<\_ACEOF
4303 t clear
4304 : clear
4305 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4306 t quote
4307 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4308 t quote
4309 d
4310 : quote
4311 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
4312 s,\[,\\&,g
4313 s,\],\\&,g
4314 s,\$,$$,g
4315 p
4316 _ACEOF
4317 # We use echo to avoid assuming a particular line-breaking character.
4318 # The extra dot is to prevent the shell from consuming trailing
4319 # line-breaks from the sub-command output.  A line-break within
4320 # single-quotes doesn't work because, if this script is created in a
4321 # platform that uses two characters for line-breaks (e.g., DOS), tr
4322 # would break.
4323 ac_LF_and_DOT=`echo; echo .`
4324 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4325 rm -f confdef2opt.sed
4326
4327
4328 ac_libobjs=
4329 ac_ltlibobjs=
4330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4331   # 1. Remove the extension, and $U if already installed.
4332   ac_i=`echo "$ac_i" |
4333          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4334   # 2. Add them.
4335   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4336   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4337 done
4338 LIBOBJS=$ac_libobjs
4339
4340 LTLIBOBJS=$ac_ltlibobjs
4341
4342
4343
4344 : ${CONFIG_STATUS=./config.status}
4345 ac_clean_files_save=$ac_clean_files
4346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4347 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4348 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4349 cat >$CONFIG_STATUS <<_ACEOF
4350 #! $SHELL
4351 # Generated by $as_me.
4352 # Run this file to recreate the current configuration.
4353 # Compiler output produced by configure, useful for debugging
4354 # configure, is in config.log if it exists.
4355
4356 debug=false
4357 ac_cs_recheck=false
4358 ac_cs_silent=false
4359 SHELL=\${CONFIG_SHELL-$SHELL}
4360 _ACEOF
4361
4362 cat >>$CONFIG_STATUS <<\_ACEOF
4363 ## --------------------- ##
4364 ## M4sh Initialization.  ##
4365 ## --------------------- ##
4366
4367 # Be Bourne compatible
4368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4369   emulate sh
4370   NULLCMD=:
4371   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4372   # is contrary to our usage.  Disable this feature.
4373   alias -g '${1+"$@"}'='"$@"'
4374 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4375   set -o posix
4376 fi
4377
4378 # Support unset when possible.
4379 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4380   as_unset=unset
4381 else
4382   as_unset=false
4383 fi
4384
4385
4386 # Work around bugs in pre-3.0 UWIN ksh.
4387 $as_unset ENV MAIL MAILPATH
4388 PS1='$ '
4389 PS2='> '
4390 PS4='+ '
4391
4392 # NLS nuisances.
4393 for as_var in \
4394   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4395   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4396   LC_TELEPHONE LC_TIME
4397 do
4398   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4399     eval $as_var=C; export $as_var
4400   else
4401     $as_unset $as_var
4402   fi
4403 done
4404
4405 # Required to use basename.
4406 if expr a : '\(a\)' >/dev/null 2>&1; then
4407   as_expr=expr
4408 else
4409   as_expr=false
4410 fi
4411
4412 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4413   as_basename=basename
4414 else
4415   as_basename=false
4416 fi
4417
4418
4419 # Name of the executable.
4420 as_me=`$as_basename "$0" ||
4421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4422          X"$0" : 'X\(//\)$' \| \
4423          X"$0" : 'X\(/\)$' \| \
4424          .     : '\(.\)' 2>/dev/null ||
4425 echo X/"$0" |
4426     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4427           /^X\/\(\/\/\)$/{ s//\1/; q; }
4428           /^X\/\(\/\).*/{ s//\1/; q; }
4429           s/.*/./; q'`
4430
4431
4432 # PATH needs CR, and LINENO needs CR and PATH.
4433 # Avoid depending upon Character Ranges.
4434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4437 as_cr_digits='0123456789'
4438 as_cr_alnum=$as_cr_Letters$as_cr_digits
4439
4440 # The user is always right.
4441 if test "${PATH_SEPARATOR+set}" != set; then
4442   echo "#! /bin/sh" >conf$$.sh
4443   echo  "exit 0"   >>conf$$.sh
4444   chmod +x conf$$.sh
4445   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4446     PATH_SEPARATOR=';'
4447   else
4448     PATH_SEPARATOR=:
4449   fi
4450   rm -f conf$$.sh
4451 fi
4452
4453
4454   as_lineno_1=$LINENO
4455   as_lineno_2=$LINENO
4456   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4457   test "x$as_lineno_1" != "x$as_lineno_2" &&
4458   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4459   # Find who we are.  Look in the path if we contain no path at all
4460   # relative or not.
4461   case $0 in
4462     *[\\/]* ) as_myself=$0 ;;
4463     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4469 done
4470
4471        ;;
4472   esac
4473   # We did not find ourselves, most probably we were run as `sh COMMAND'
4474   # in which case we are not to be found in the path.
4475   if test "x$as_myself" = x; then
4476     as_myself=$0
4477   fi
4478   if test ! -f "$as_myself"; then
4479     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4480 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4481    { (exit 1); exit 1; }; }
4482   fi
4483   case $CONFIG_SHELL in
4484   '')
4485     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for as_base in sh bash ksh sh5; do
4491          case $as_dir in
4492          /*)
4493            if ("$as_dir/$as_base" -c '
4494   as_lineno_1=$LINENO
4495   as_lineno_2=$LINENO
4496   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4497   test "x$as_lineno_1" != "x$as_lineno_2" &&
4498   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4499              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4500              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4501              CONFIG_SHELL=$as_dir/$as_base
4502              export CONFIG_SHELL
4503              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4504            fi;;
4505          esac
4506        done
4507 done
4508 ;;
4509   esac
4510
4511   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4512   # uniformly replaced by the line number.  The first 'sed' inserts a
4513   # line-number line before each line; the second 'sed' does the real
4514   # work.  The second script uses 'N' to pair each line-number line
4515   # with the numbered line, and appends trailing '-' during
4516   # substitution so that $LINENO is not a special case at line end.
4517   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4518   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4519   sed '=' <$as_myself |
4520     sed '
4521       N
4522       s,$,-,
4523       : loop
4524       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4525       t loop
4526       s,-$,,
4527       s,^['$as_cr_digits']*\n,,
4528     ' >$as_me.lineno &&
4529   chmod +x $as_me.lineno ||
4530     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4531 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4532    { (exit 1); exit 1; }; }
4533
4534   # Don't try to exec as it changes $[0], causing all sort of problems
4535   # (the dirname of $[0] is not the place where we might find the
4536   # original and so on.  Autoconf is especially sensible to this).
4537   . ./$as_me.lineno
4538   # Exit status is that of the last command.
4539   exit
4540 }
4541
4542
4543 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4544   *c*,-n*) ECHO_N= ECHO_C='
4545 ' ECHO_T='      ' ;;
4546   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4547   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4548 esac
4549
4550 if expr a : '\(a\)' >/dev/null 2>&1; then
4551   as_expr=expr
4552 else
4553   as_expr=false
4554 fi
4555
4556 rm -f conf$$ conf$$.exe conf$$.file
4557 echo >conf$$.file
4558 if ln -s conf$$.file conf$$ 2>/dev/null; then
4559   # We could just check for DJGPP; but this test a) works b) is more generic
4560   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4561   if test -f conf$$.exe; then
4562     # Don't use ln at all; we don't have any links
4563     as_ln_s='cp -p'
4564   else
4565     as_ln_s='ln -s'
4566   fi
4567 elif ln conf$$.file conf$$ 2>/dev/null; then
4568   as_ln_s=ln
4569 else
4570   as_ln_s='cp -p'
4571 fi
4572 rm -f conf$$ conf$$.exe conf$$.file
4573
4574 if mkdir -p . 2>/dev/null; then
4575   as_mkdir_p=:
4576 else
4577   as_mkdir_p=false
4578 fi
4579
4580 as_executable_p="test -f"
4581
4582 # Sed expression to map a string onto a valid CPP name.
4583 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4584
4585 # Sed expression to map a string onto a valid variable name.
4586 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4587
4588
4589 # IFS
4590 # We need space, tab and new line, in precisely that order.
4591 as_nl='
4592 '
4593 IFS="   $as_nl"
4594
4595 # CDPATH.
4596 $as_unset CDPATH
4597
4598 exec 6>&1
4599
4600 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4601 # report actual input values of CONFIG_FILES etc. instead of their
4602 # values after options handling.  Logging --version etc. is OK.
4603 exec 5>>config.log
4604 {
4605   echo
4606   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4607 ## Running $as_me. ##
4608 _ASBOX
4609 } >&5
4610 cat >&5 <<_CSEOF
4611
4612 This file was extended by $as_me, which was
4613 generated by GNU Autoconf 2.57.  Invocation command line was
4614
4615   CONFIG_FILES    = $CONFIG_FILES
4616   CONFIG_HEADERS  = $CONFIG_HEADERS
4617   CONFIG_LINKS    = $CONFIG_LINKS
4618   CONFIG_COMMANDS = $CONFIG_COMMANDS
4619   $ $0 $@
4620
4621 _CSEOF
4622 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4623 echo >&5
4624 _ACEOF
4625
4626 # Files that config.status was made for.
4627 if test -n "$ac_config_files"; then
4628   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4629 fi
4630
4631 if test -n "$ac_config_headers"; then
4632   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4633 fi
4634
4635 if test -n "$ac_config_links"; then
4636   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4637 fi
4638
4639 if test -n "$ac_config_commands"; then
4640   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4641 fi
4642
4643 cat >>$CONFIG_STATUS <<\_ACEOF
4644
4645 ac_cs_usage="\
4646 \`$as_me' instantiates files from templates according to the
4647 current configuration.
4648
4649 Usage: $0 [OPTIONS] [FILE]...
4650
4651   -h, --help       print this help, then exit
4652   -V, --version    print version number, then exit
4653   -q, --quiet      do not print progress messages
4654   -d, --debug      don't remove temporary files
4655       --recheck    update $as_me by reconfiguring in the same conditions
4656   --file=FILE[:TEMPLATE]
4657                    instantiate the configuration file FILE
4658
4659 Configuration files:
4660 $config_files
4661
4662 Report bugs to <bug-autoconf@gnu.org>."
4663 _ACEOF
4664
4665 cat >>$CONFIG_STATUS <<_ACEOF
4666 ac_cs_version="\\
4667 config.status
4668 configured by $0, generated by GNU Autoconf 2.57,
4669   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4670
4671 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4672 Free Software Foundation, Inc.
4673 This config.status script is free software; the Free Software Foundation
4674 gives unlimited permission to copy, distribute and modify it."
4675 srcdir=$srcdir
4676 INSTALL="$INSTALL"
4677 _ACEOF
4678
4679 cat >>$CONFIG_STATUS <<\_ACEOF
4680 # If no file are specified by the user, then we need to provide default
4681 # value.  By we need to know if files were specified by the user.
4682 ac_need_defaults=:
4683 while test $# != 0
4684 do
4685   case $1 in
4686   --*=*)
4687     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4688     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4689     ac_shift=:
4690     ;;
4691   -*)
4692     ac_option=$1
4693     ac_optarg=$2
4694     ac_shift=shift
4695     ;;
4696   *) # This is not an option, so the user has probably given explicit
4697      # arguments.
4698      ac_option=$1
4699      ac_need_defaults=false;;
4700   esac
4701
4702   case $ac_option in
4703   # Handling of the options.
4704 _ACEOF
4705 cat >>$CONFIG_STATUS <<\_ACEOF
4706   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4707     ac_cs_recheck=: ;;
4708   --version | --vers* | -V )
4709     echo "$ac_cs_version"; exit 0 ;;
4710   --he | --h)
4711     # Conflict between --help and --header
4712     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4713 Try \`$0 --help' for more information." >&5
4714 echo "$as_me: error: ambiguous option: $1
4715 Try \`$0 --help' for more information." >&2;}
4716    { (exit 1); exit 1; }; };;
4717   --help | --hel | -h )
4718     echo "$ac_cs_usage"; exit 0 ;;
4719   --debug | --d* | -d )
4720     debug=: ;;
4721   --file | --fil | --fi | --f )
4722     $ac_shift
4723     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4724     ac_need_defaults=false;;
4725   --header | --heade | --head | --hea )
4726     $ac_shift
4727     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4728     ac_need_defaults=false;;
4729   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4730   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4731     ac_cs_silent=: ;;
4732
4733   # This is an error.
4734   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4735 Try \`$0 --help' for more information." >&5
4736 echo "$as_me: error: unrecognized option: $1
4737 Try \`$0 --help' for more information." >&2;}
4738    { (exit 1); exit 1; }; } ;;
4739
4740   *) ac_config_targets="$ac_config_targets $1" ;;
4741
4742   esac
4743   shift
4744 done
4745
4746 ac_configure_extra_args=
4747
4748 if $ac_cs_silent; then
4749   exec 6>/dev/null
4750   ac_configure_extra_args="$ac_configure_extra_args --silent"
4751 fi
4752
4753 _ACEOF
4754 cat >>$CONFIG_STATUS <<_ACEOF
4755 if \$ac_cs_recheck; then
4756   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4757   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4758 fi
4759
4760 _ACEOF
4761
4762
4763
4764
4765
4766 cat >>$CONFIG_STATUS <<\_ACEOF
4767 for ac_config_target in $ac_config_targets
4768 do
4769   case "$ac_config_target" in
4770   # Handling of arguments.
4771   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4772   "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4773   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4775    { (exit 1); exit 1; }; };;
4776   esac
4777 done
4778
4779 # If the user did not use the arguments to specify the items to instantiate,
4780 # then the envvar interface is used.  Set only those that are not.
4781 # We use the long form for the default assignment because of an extremely
4782 # bizarre bug on SunOS 4.1.3.
4783 if $ac_need_defaults; then
4784   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4785 fi
4786
4787 # Have a temporary directory for convenience.  Make it in the build tree
4788 # simply because there is no reason to put it here, and in addition,
4789 # creating and moving files from /tmp can sometimes cause problems.
4790 # Create a temporary directory, and hook for its removal unless debugging.
4791 $debug ||
4792 {
4793   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4794   trap '{ (exit 1); exit 1; }' 1 2 13 15
4795 }
4796
4797 # Create a (secure) tmp directory for tmp files.
4798
4799 {
4800   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4801   test -n "$tmp" && test -d "$tmp"
4802 }  ||
4803 {
4804   tmp=./confstat$$-$RANDOM
4805   (umask 077 && mkdir $tmp)
4806 } ||
4807 {
4808    echo "$me: cannot create a temporary directory in ." >&2
4809    { (exit 1); exit 1; }
4810 }
4811
4812 _ACEOF
4813
4814 cat >>$CONFIG_STATUS <<_ACEOF
4815
4816 #
4817 # CONFIG_FILES section.
4818 #
4819
4820 # No need to generate the scripts if there are no CONFIG_FILES.
4821 # This happens for instance when ./config.status config.h
4822 if test -n "\$CONFIG_FILES"; then
4823   # Protect against being on the right side of a sed subst in config.status.
4824   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4825    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4826 s,@SHELL@,$SHELL,;t t
4827 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4828 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4829 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4830 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4831 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4832 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4833 s,@exec_prefix@,$exec_prefix,;t t
4834 s,@prefix@,$prefix,;t t
4835 s,@program_transform_name@,$program_transform_name,;t t
4836 s,@bindir@,$bindir,;t t
4837 s,@sbindir@,$sbindir,;t t
4838 s,@libexecdir@,$libexecdir,;t t
4839 s,@datadir@,$datadir,;t t
4840 s,@sysconfdir@,$sysconfdir,;t t
4841 s,@sharedstatedir@,$sharedstatedir,;t t
4842 s,@localstatedir@,$localstatedir,;t t
4843 s,@libdir@,$libdir,;t t
4844 s,@includedir@,$includedir,;t t
4845 s,@oldincludedir@,$oldincludedir,;t t
4846 s,@infodir@,$infodir,;t t
4847 s,@mandir@,$mandir,;t t
4848 s,@build_alias@,$build_alias,;t t
4849 s,@host_alias@,$host_alias,;t t
4850 s,@target_alias@,$target_alias,;t t
4851 s,@DEFS@,$DEFS,;t t
4852 s,@ECHO_C@,$ECHO_C,;t t
4853 s,@ECHO_N@,$ECHO_N,;t t
4854 s,@ECHO_T@,$ECHO_T,;t t
4855 s,@LIBS@,$LIBS,;t t
4856 s,@build@,$build,;t t
4857 s,@build_cpu@,$build_cpu,;t t
4858 s,@build_vendor@,$build_vendor,;t t
4859 s,@build_os@,$build_os,;t t
4860 s,@host@,$host,;t t
4861 s,@host_cpu@,$host_cpu,;t t
4862 s,@host_vendor@,$host_vendor,;t t
4863 s,@host_os@,$host_os,;t t
4864 s,@CC@,$CC,;t t
4865 s,@CFLAGS@,$CFLAGS,;t t
4866 s,@LDFLAGS@,$LDFLAGS,;t t
4867 s,@CPPFLAGS@,$CPPFLAGS,;t t
4868 s,@ac_ct_CC@,$ac_ct_CC,;t t
4869 s,@EXEEXT@,$EXEEXT,;t t
4870 s,@OBJEXT@,$OBJEXT,;t t
4871 s,@CPP@,$CPP,;t t
4872 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4873 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4874 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4875 s,@FIND@,$FIND,;t t
4876 s,@MAKEDEPEND@,$MAKEDEPEND,;t t
4877 s,@X_CFLAGS@,$X_CFLAGS,;t t
4878 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4879 s,@X_LIBS@,$X_LIBS,;t t
4880 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4881 s,@EGREP@,$EGREP,;t t
4882 s,@LIBOBJS@,$LIBOBJS,;t t
4883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4884 CEOF
4885
4886 _ACEOF
4887
4888   cat >>$CONFIG_STATUS <<\_ACEOF
4889   # Split the substitutions into bite-sized pieces for seds with
4890   # small command number limits, like on Digital OSF/1 and HP-UX.
4891   ac_max_sed_lines=48
4892   ac_sed_frag=1 # Number of current file.
4893   ac_beg=1 # First line for current file.
4894   ac_end=$ac_max_sed_lines # Line after last line for current file.
4895   ac_more_lines=:
4896   ac_sed_cmds=
4897   while $ac_more_lines; do
4898     if test $ac_beg -gt 1; then
4899       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4900     else
4901       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4902     fi
4903     if test ! -s $tmp/subs.frag; then
4904       ac_more_lines=false
4905     else
4906       # The purpose of the label and of the branching condition is to
4907       # speed up the sed processing (if there are no `@' at all, there
4908       # is no need to browse any of the substitutions).
4909       # These are the two extra sed commands mentioned above.
4910       (echo ':t
4911   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4912       if test -z "$ac_sed_cmds"; then
4913         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4914       else
4915         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4916       fi
4917       ac_sed_frag=`expr $ac_sed_frag + 1`
4918       ac_beg=$ac_end
4919       ac_end=`expr $ac_end + $ac_max_sed_lines`
4920     fi
4921   done
4922   if test -z "$ac_sed_cmds"; then
4923     ac_sed_cmds=cat
4924   fi
4925 fi # test -n "$CONFIG_FILES"
4926
4927 _ACEOF
4928 cat >>$CONFIG_STATUS <<\_ACEOF
4929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4931   case $ac_file in
4932   - | *:- | *:-:* ) # input from stdin
4933         cat >$tmp/stdin
4934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4938   * )   ac_file_in=$ac_file.in ;;
4939   esac
4940
4941   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4942   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4944          X"$ac_file" : 'X\(//\)[^/]' \| \
4945          X"$ac_file" : 'X\(//\)$' \| \
4946          X"$ac_file" : 'X\(/\)' \| \
4947          .     : '\(.\)' 2>/dev/null ||
4948 echo X"$ac_file" |
4949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4951           /^X\(\/\/\)$/{ s//\1/; q; }
4952           /^X\(\/\).*/{ s//\1/; q; }
4953           s/.*/./; q'`
4954   { if $as_mkdir_p; then
4955     mkdir -p "$ac_dir"
4956   else
4957     as_dir="$ac_dir"
4958     as_dirs=
4959     while test ! -d "$as_dir"; do
4960       as_dirs="$as_dir $as_dirs"
4961       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4963          X"$as_dir" : 'X\(//\)[^/]' \| \
4964          X"$as_dir" : 'X\(//\)$' \| \
4965          X"$as_dir" : 'X\(/\)' \| \
4966          .     : '\(.\)' 2>/dev/null ||
4967 echo X"$as_dir" |
4968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4970           /^X\(\/\/\)$/{ s//\1/; q; }
4971           /^X\(\/\).*/{ s//\1/; q; }
4972           s/.*/./; q'`
4973     done
4974     test ! -n "$as_dirs" || mkdir $as_dirs
4975   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4977    { (exit 1); exit 1; }; }; }
4978
4979   ac_builddir=.
4980
4981 if test "$ac_dir" != .; then
4982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4983   # A "../" for each directory in $ac_dir_suffix.
4984   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4985 else
4986   ac_dir_suffix= ac_top_builddir=
4987 fi
4988
4989 case $srcdir in
4990   .)  # No --srcdir option.  We are building in place.
4991     ac_srcdir=.
4992     if test -z "$ac_top_builddir"; then
4993        ac_top_srcdir=.
4994     else
4995        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4996     fi ;;
4997   [\\/]* | ?:[\\/]* )  # Absolute path.
4998     ac_srcdir=$srcdir$ac_dir_suffix;
4999     ac_top_srcdir=$srcdir ;;
5000   *) # Relative path.
5001     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5002     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5003 esac
5004 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5005 # absolute.
5006 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5007 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5008 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5009 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5010
5011
5012   case $INSTALL in
5013   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5014   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5015   esac
5016
5017   if test x"$ac_file" != x-; then
5018     { echo "$as_me:$LINENO: creating $ac_file" >&5
5019 echo "$as_me: creating $ac_file" >&6;}
5020     rm -f "$ac_file"
5021   fi
5022   # Let's still pretend it is `configure' which instantiates (i.e., don't
5023   # use $as_me), people would be surprised to read:
5024   #    /* config.h.  Generated by config.status.  */
5025   if test x"$ac_file" = x-; then
5026     configure_input=
5027   else
5028     configure_input="$ac_file.  "
5029   fi
5030   configure_input=$configure_input"Generated from `echo $ac_file_in |
5031                                      sed 's,.*/,,'` by configure."
5032
5033   # First look for the input files in the build tree, otherwise in the
5034   # src tree.
5035   ac_file_inputs=`IFS=:
5036     for f in $ac_file_in; do
5037       case $f in
5038       -) echo $tmp/stdin ;;
5039       [\\/$]*)
5040          # Absolute (can't be DOS-style, as IFS=:)
5041          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5042 echo "$as_me: error: cannot find input file: $f" >&2;}
5043    { (exit 1); exit 1; }; }
5044          echo $f;;
5045       *) # Relative
5046          if test -f "$f"; then
5047            # Build tree
5048            echo $f
5049          elif test -f "$srcdir/$f"; then
5050            # Source tree
5051            echo $srcdir/$f
5052          else
5053            # /dev/null tree
5054            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5055 echo "$as_me: error: cannot find input file: $f" >&2;}
5056    { (exit 1); exit 1; }; }
5057          fi;;
5058       esac
5059     done` || { (exit 1); exit 1; }
5060 _ACEOF
5061 cat >>$CONFIG_STATUS <<_ACEOF
5062   sed "$ac_vpsub
5063 $extrasub
5064 _ACEOF
5065 cat >>$CONFIG_STATUS <<\_ACEOF
5066 :t
5067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5068 s,@configure_input@,$configure_input,;t t
5069 s,@srcdir@,$ac_srcdir,;t t
5070 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5071 s,@top_srcdir@,$ac_top_srcdir,;t t
5072 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5073 s,@builddir@,$ac_builddir,;t t
5074 s,@abs_builddir@,$ac_abs_builddir,;t t
5075 s,@top_builddir@,$ac_top_builddir,;t t
5076 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5077 s,@INSTALL@,$ac_INSTALL,;t t
5078 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5079   rm -f $tmp/stdin
5080   if test x"$ac_file" != x-; then
5081     mv $tmp/out $ac_file
5082   else
5083     cat $tmp/out
5084     rm -f $tmp/out
5085   fi
5086
5087 done
5088 _ACEOF
5089
5090 cat >>$CONFIG_STATUS <<\_ACEOF
5091
5092 { (exit 0); exit 0; }
5093 _ACEOF
5094 chmod +x $CONFIG_STATUS
5095 ac_clean_files=$ac_clean_files_save
5096
5097
5098 # configure is writing to config.log, and then calls config.status.
5099 # config.status does its own redirection, appending to config.log.
5100 # Unfortunately, on DOS this fails, as config.log is still kept open
5101 # by configure, so config.status won't be able to write to it; its
5102 # output is simply discarded.  So we exec the FD to /dev/null,
5103 # effectively closing config.log, so it can be properly (re)opened and
5104 # appended to by config.status.  When coming back to configure, we
5105 # need to make the FD available again.
5106 if test "$no_create" != yes; then
5107   ac_cs_success=:
5108   ac_config_status_args=
5109   test "$silent" = yes &&
5110     ac_config_status_args="$ac_config_status_args --quiet"
5111   exec 5>/dev/null
5112   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5113   exec 5>>config.log
5114   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5115   # would make configure fail if this is the last instruction.
5116   $ac_cs_success || { (exit 1); exit 1; }
5117 fi
5118
5119
5120 echo
5121 echo "Run 'make depend' to create dependencies."
5122 echo