95f79e7ef7e301302d6f39f1762940389793a1b4
[ftdi_eeprom] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="configure.in"
108
109 # Initialize some variables set by options.
110 ac_init_help=
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
114 cache_file=/dev/null
115 exec_prefix=NONE
116 no_create=
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 verbose=
126 x_includes=NONE
127 x_libraries=NONE
128
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME=
149 PACKAGE_TARNAME=
150 PACKAGE_VERSION=
151 PACKAGE_STRING=
152 PACKAGE_BUGREPORT=
153
154 ac_prev=
155 for ac_option
156 do
157   # If the previous option needs an argument, assign it.
158   if test -n "$ac_prev"; then
159     eval "$ac_prev=\$ac_option"
160     ac_prev=
161     continue
162   fi
163
164   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165
166   # Accept the important Cygnus configure options, so we can diagnose typos.
167
168   case $ac_option in
169
170   -bindir | --bindir | --bindi | --bind | --bin | --bi)
171     ac_prev=bindir ;;
172   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173     bindir=$ac_optarg ;;
174
175   -build | --build | --buil | --bui | --bu)
176     ac_prev=build_alias ;;
177   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178     build_alias=$ac_optarg ;;
179
180   -cache-file | --cache-file | --cache-fil | --cache-fi \
181   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182     ac_prev=cache_file ;;
183   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185     cache_file=$ac_optarg ;;
186
187   --config-cache | -C)
188     cache_file=config.cache ;;
189
190   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191     ac_prev=datadir ;;
192   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193   | --da=*)
194     datadir=$ac_optarg ;;
195
196   -disable-* | --disable-*)
197     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198     # Reject names that are not valid shell variable names.
199     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201    { (exit 1); exit 1; }; }
202     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203     eval "enable_$ac_feature=no" ;;
204
205   -enable-* | --enable-*)
206     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207     # Reject names that are not valid shell variable names.
208     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210    { (exit 1); exit 1; }; }
211     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212     case $ac_option in
213       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214       *) ac_optarg=yes ;;
215     esac
216     eval "enable_$ac_feature='$ac_optarg'" ;;
217
218   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220   | --exec | --exe | --ex)
221     ac_prev=exec_prefix ;;
222   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224   | --exec=* | --exe=* | --ex=*)
225     exec_prefix=$ac_optarg ;;
226
227   -gas | --gas | --ga | --g)
228     # Obsolete; use --with-gas.
229     with_gas=yes ;;
230
231   -help | --help | --hel | --he | -h)
232     ac_init_help=long ;;
233   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234     ac_init_help=recursive ;;
235   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236     ac_init_help=short ;;
237
238   -host | --host | --hos | --ho)
239     ac_prev=host_alias ;;
240   -host=* | --host=* | --hos=* | --ho=*)
241     host_alias=$ac_optarg ;;
242
243   -includedir | --includedir | --includedi | --included | --include \
244   | --includ | --inclu | --incl | --inc)
245     ac_prev=includedir ;;
246   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247   | --includ=* | --inclu=* | --incl=* | --inc=*)
248     includedir=$ac_optarg ;;
249
250   -infodir | --infodir | --infodi | --infod | --info | --inf)
251     ac_prev=infodir ;;
252   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253     infodir=$ac_optarg ;;
254
255   -libdir | --libdir | --libdi | --libd)
256     ac_prev=libdir ;;
257   -libdir=* | --libdir=* | --libdi=* | --libd=*)
258     libdir=$ac_optarg ;;
259
260   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261   | --libexe | --libex | --libe)
262     ac_prev=libexecdir ;;
263   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264   | --libexe=* | --libex=* | --libe=*)
265     libexecdir=$ac_optarg ;;
266
267   -localstatedir | --localstatedir | --localstatedi | --localstated \
268   | --localstate | --localstat | --localsta | --localst \
269   | --locals | --local | --loca | --loc | --lo)
270     ac_prev=localstatedir ;;
271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274     localstatedir=$ac_optarg ;;
275
276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277     ac_prev=mandir ;;
278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279     mandir=$ac_optarg ;;
280
281   -nfp | --nfp | --nf)
282     # Obsolete; use --without-fp.
283     with_fp=no ;;
284
285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286   | --no-cr | --no-c)
287     no_create=yes ;;
288
289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291     no_recursion=yes ;;
292
293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295   | --oldin | --oldi | --old | --ol | --o)
296     ac_prev=oldincludedir ;;
297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300     oldincludedir=$ac_optarg ;;
301
302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303     ac_prev=prefix ;;
304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305     prefix=$ac_optarg ;;
306
307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
308   | --program-pre | --program-pr | --program-p)
309     ac_prev=program_prefix ;;
310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312     program_prefix=$ac_optarg ;;
313
314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
315   | --program-suf | --program-su | --program-s)
316     ac_prev=program_suffix ;;
317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319     program_suffix=$ac_optarg ;;
320
321   -program-transform-name | --program-transform-name \
322   | --program-transform-nam | --program-transform-na \
323   | --program-transform-n | --program-transform- \
324   | --program-transform | --program-transfor \
325   | --program-transfo | --program-transf \
326   | --program-trans | --program-tran \
327   | --progr-tra | --program-tr | --program-t)
328     ac_prev=program_transform_name ;;
329   -program-transform-name=* | --program-transform-name=* \
330   | --program-transform-nam=* | --program-transform-na=* \
331   | --program-transform-n=* | --program-transform-=* \
332   | --program-transform=* | --program-transfor=* \
333   | --program-transfo=* | --program-transf=* \
334   | --program-trans=* | --program-tran=* \
335   | --progr-tra=* | --program-tr=* | --program-t=*)
336     program_transform_name=$ac_optarg ;;
337
338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339   | -silent | --silent | --silen | --sile | --sil)
340     silent=yes ;;
341
342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343     ac_prev=sbindir ;;
344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345   | --sbi=* | --sb=*)
346     sbindir=$ac_optarg ;;
347
348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350   | --sharedst | --shareds | --shared | --share | --shar \
351   | --sha | --sh)
352     ac_prev=sharedstatedir ;;
353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356   | --sha=* | --sh=*)
357     sharedstatedir=$ac_optarg ;;
358
359   -site | --site | --sit)
360     ac_prev=site ;;
361   -site=* | --site=* | --sit=*)
362     site=$ac_optarg ;;
363
364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365     ac_prev=srcdir ;;
366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367     srcdir=$ac_optarg ;;
368
369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370   | --syscon | --sysco | --sysc | --sys | --sy)
371     ac_prev=sysconfdir ;;
372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374     sysconfdir=$ac_optarg ;;
375
376   -target | --target | --targe | --targ | --tar | --ta | --t)
377     ac_prev=target_alias ;;
378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379     target_alias=$ac_optarg ;;
380
381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
382     verbose=yes ;;
383
384   -version | --version | --versio | --versi | --vers | -V)
385     ac_init_version=: ;;
386
387   -with-* | --with-*)
388     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389     # Reject names that are not valid shell variable names.
390     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391       { echo "$as_me: error: invalid package name: $ac_package" >&2
392    { (exit 1); exit 1; }; }
393     ac_package=`echo $ac_package| sed 's/-/_/g'`
394     case $ac_option in
395       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396       *) ac_optarg=yes ;;
397     esac
398     eval "with_$ac_package='$ac_optarg'" ;;
399
400   -without-* | --without-*)
401     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid package name: $ac_package" >&2
405    { (exit 1); exit 1; }; }
406     ac_package=`echo $ac_package | sed 's/-/_/g'`
407     eval "with_$ac_package=no" ;;
408
409   --x)
410     # Obsolete; use --with-x.
411     with_x=yes ;;
412
413   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414   | --x-incl | --x-inc | --x-in | --x-i)
415     ac_prev=x_includes ;;
416   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418     x_includes=$ac_optarg ;;
419
420   -x-libraries | --x-libraries | --x-librarie | --x-librari \
421   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422     ac_prev=x_libraries ;;
423   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425     x_libraries=$ac_optarg ;;
426
427   -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429    { (exit 1); exit 1; }; }
430     ;;
431
432   *=*)
433     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434     # Reject names that are not valid shell variable names.
435     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437    { (exit 1); exit 1; }; }
438     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439     eval "$ac_envvar='$ac_optarg'"
440     export $ac_envvar ;;
441
442   *)
443     # FIXME: should be removed in autoconf 3.0.
444     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
448     ;;
449
450   esac
451 done
452
453 if test -n "$ac_prev"; then
454   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455   { echo "$as_me: error: missing argument to $ac_option" >&2
456    { (exit 1); exit 1; }; }
457 fi
458
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
461 do
462   eval ac_val=$`echo $ac_var`
463   case $ac_val in
464     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466    { (exit 1); exit 1; }; };;
467   esac
468 done
469
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472               localstatedir libdir includedir oldincludedir infodir mandir
473 do
474   eval ac_val=$`echo $ac_var`
475   case $ac_val in
476     [\\/$]* | ?:[\\/]* ) ;;
477     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478    { (exit 1); exit 1; }; };;
479   esac
480 done
481
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
484 build=$build_alias
485 host=$host_alias
486 target=$target_alias
487
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490   if test "x$build_alias" = x; then
491     cross_compiling=maybe
492     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493     If a cross compiler is detected then cross compile mode will be used." >&2
494   elif test "x$build_alias" != "x$host_alias"; then
495     cross_compiling=yes
496   fi
497 fi
498
499 ac_tool_prefix=
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
501
502 test "$silent" = yes && exec 6>/dev/null
503
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506   ac_srcdir_defaulted=yes
507   # Try the directory containing this script, then its parent.
508   ac_prog=$0
509   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511   srcdir=$ac_confdir
512   if test ! -r $srcdir/$ac_unique_file; then
513     srcdir=..
514   fi
515 else
516   ac_srcdir_defaulted=no
517 fi
518 if test ! -r $srcdir/$ac_unique_file; then
519   if test "$ac_srcdir_defaulted" = yes; then
520     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521    { (exit 1); exit 1; }; }
522   else
523     { echo "$as_me: error: cannot find sources in $srcdir" >&2
524    { (exit 1); exit 1; }; }
525   fi
526 fi
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
541 ac_env_CC_value=$CC
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556
557 #
558 # Report the --help message.
559 #
560 if test "$ac_init_help" = "long"; then
561   # Omit some internal or obsolete options to make the list less imposing.
562   # This message is too long to be a string in the A/UX 3.1 sh.
563   cat <<EOF
564 \`configure' configures this package to adapt to many kinds of systems.
565
566 Usage: $0 [OPTION]... [VAR=VALUE]...
567
568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
569 VAR=VALUE.  See below for descriptions of some of the useful variables.
570
571 Defaults for the options are specified in brackets.
572
573 Configuration:
574   -h, --help              display this help and exit
575       --help=short        display options specific to this package
576       --help=recursive    display the short help of all the included packages
577   -V, --version           display version information and exit
578   -q, --quiet, --silent   do not print \`checking...' messages
579       --cache-file=FILE   cache test results in FILE [disabled]
580   -C, --config-cache      alias for \`--cache-file=config.cache'
581   -n, --no-create         do not create output files
582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
583
584 EOF
585
586   cat <<EOF
587 Installation directories:
588   --prefix=PREFIX         install architecture-independent files in PREFIX
589                           [$ac_default_prefix]
590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
591                           [PREFIX]
592
593 By default, \`make install' will install all the files in
594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
596 for instance \`--prefix=\$HOME'.
597
598 For better control, use the options below.
599
600 Fine tuning of the installation directories:
601   --bindir=DIR           user executables [EPREFIX/bin]
602   --sbindir=DIR          system admin executables [EPREFIX/sbin]
603   --libexecdir=DIR       program executables [EPREFIX/libexec]
604   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
605   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
606   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
607   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
608   --libdir=DIR           object code libraries [EPREFIX/lib]
609   --includedir=DIR       C header files [PREFIX/include]
610   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
611   --infodir=DIR          info documentation [PREFIX/info]
612   --mandir=DIR           man documentation [PREFIX/man]
613 EOF
614
615   cat <<\EOF
616
617 Program names:
618   --program-prefix=PREFIX            prepend PREFIX to installed program names
619   --program-suffix=SUFFIX            append SUFFIX to installed program names
620   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
621 EOF
622 fi
623
624 if test -n "$ac_init_help"; then
625
626   cat <<\EOF
627
628 Some influential environment variables:
629   CC          C compiler command
630   CFLAGS      C compiler flags
631   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
632               nonstandard directory <lib dir>
633   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
634               headers in a nonstandard directory <include dir>
635
636 Use these variables to override the choices made by `configure' or to help
637 it to find libraries and programs with nonstandard names/locations.
638
639 EOF
640 fi
641
642 if test "$ac_init_help" = "recursive"; then
643   # If there are subdirs, report their specific --help.
644   ac_popdir=`pwd`
645   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
646     cd $ac_subdir
647     # A "../" for each directory in /$ac_subdir.
648     ac_dots=`echo $ac_subdir |
649              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
650
651     case $srcdir in
652     .) # No --srcdir option.  We are building in place.
653       ac_sub_srcdir=$srcdir ;;
654     [\\/]* | ?:[\\/]* ) # Absolute path.
655       ac_sub_srcdir=$srcdir/$ac_subdir ;;
656     *) # Relative path.
657       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
658     esac
659
660     # Check for guested configure; otherwise get Cygnus style configure.
661     if test -f $ac_sub_srcdir/configure.gnu; then
662       echo
663       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
664     elif test -f $ac_sub_srcdir/configure; then
665       echo
666       $SHELL $ac_sub_srcdir/configure  --help=recursive
667     elif test -f $ac_sub_srcdir/configure.ac ||
668            test -f $ac_sub_srcdir/configure.in; then
669       echo
670       $ac_configure --help
671     else
672       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
673     fi
674     cd $ac_popdir
675   done
676 fi
677
678 test -n "$ac_init_help" && exit 0
679 if $ac_init_version; then
680   cat <<\EOF
681
682 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
683 Free Software Foundation, Inc.
684 This configure script is free software; the Free Software Foundation
685 gives unlimited permission to copy, distribute and modify it.
686 EOF
687   exit 0
688 fi
689 exec 5>config.log
690 cat >&5 <<EOF
691 This file contains any messages produced by compilers while
692 running configure, to aid debugging if configure makes a mistake.
693
694 It was created by $as_me, which was
695 generated by GNU Autoconf 2.52.  Invocation command line was
696
697   $ $0 $@
698
699 EOF
700 {
701 cat <<_ASUNAME
702 ## ---------- ##
703 ## Platform.  ##
704 ## ---------- ##
705
706 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
707 uname -m = `(uname -m) 2>/dev/null || echo unknown`
708 uname -r = `(uname -r) 2>/dev/null || echo unknown`
709 uname -s = `(uname -s) 2>/dev/null || echo unknown`
710 uname -v = `(uname -v) 2>/dev/null || echo unknown`
711
712 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
713 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
714
715 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
716 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
717 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
718 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
719 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
720 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
721 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
722
723 PATH = $PATH
724
725 _ASUNAME
726 } >&5
727
728 cat >&5 <<EOF
729 ## ------------ ##
730 ## Core tests.  ##
731 ## ------------ ##
732
733 EOF
734
735 # Keep a trace of the command line.
736 # Strip out --no-create and --no-recursion so they do not pile up.
737 # Also quote any args containing shell meta-characters.
738 ac_configure_args=
739 ac_sep=
740 for ac_arg
741 do
742   case $ac_arg in
743   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
744   | --no-cr | --no-c) ;;
745   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
746   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
747   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
748     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
749     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
750     ac_sep=" " ;;
751   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
752      ac_sep=" " ;;
753   esac
754   # Get rid of the leading space.
755 done
756
757 # When interrupted or exit'd, cleanup temporary files, and complete
758 # config.log.  We remove comments because anyway the quotes in there
759 # would cause problems or look ugly.
760 trap 'exit_status=$?
761   # Save into config.log some information that might help in debugging.
762   echo >&5
763   echo "## ----------------- ##" >&5
764   echo "## Cache variables.  ##" >&5
765   echo "## ----------------- ##" >&5
766   echo >&5
767   # The following way of writing the cache mishandles newlines in values,
768 {
769   (set) 2>&1 |
770     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
771     *ac_space=\ *)
772       sed -n \
773         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
774           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
775       ;;
776     *)
777       sed -n \
778         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
779       ;;
780     esac;
781 } >&5
782   sed "/^$/d" confdefs.h >conftest.log
783   if test -s conftest.log; then
784     echo >&5
785     echo "## ------------ ##" >&5
786     echo "## confdefs.h.  ##" >&5
787     echo "## ------------ ##" >&5
788     echo >&5
789     cat conftest.log >&5
790   fi
791   (echo; echo) >&5
792   test "$ac_signal" != 0 &&
793     echo "$as_me: caught signal $ac_signal" >&5
794   echo "$as_me: exit $exit_status" >&5
795   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
796     exit $exit_status
797      ' 0
798 for ac_signal in 1 2 13 15; do
799   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
800 done
801 ac_signal=0
802
803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
804 rm -rf conftest* confdefs.h
805 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
806 echo >confdefs.h
807
808 # Let the site file select an alternate cache file if it wants to.
809 # Prefer explicitly selected file to automatically selected ones.
810 if test -z "$CONFIG_SITE"; then
811   if test "x$prefix" != xNONE; then
812     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
813   else
814     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
815   fi
816 fi
817 for ac_site_file in $CONFIG_SITE; do
818   if test -r "$ac_site_file"; then
819     { echo "$as_me:819: loading site script $ac_site_file" >&5
820 echo "$as_me: loading site script $ac_site_file" >&6;}
821     cat "$ac_site_file" >&5
822     . "$ac_site_file"
823   fi
824 done
825
826 if test -r "$cache_file"; then
827   # Some versions of bash will fail to source /dev/null (special
828   # files actually), so we avoid doing that.
829   if test -f "$cache_file"; then
830     { echo "$as_me:830: loading cache $cache_file" >&5
831 echo "$as_me: loading cache $cache_file" >&6;}
832     case $cache_file in
833       [\\/]* | ?:[\\/]* ) . $cache_file;;
834       *)                      . ./$cache_file;;
835     esac
836   fi
837 else
838   { echo "$as_me:838: creating cache $cache_file" >&5
839 echo "$as_me: creating cache $cache_file" >&6;}
840   >$cache_file
841 fi
842
843 # Check that the precious variables saved in the cache have kept the same
844 # value.
845 ac_cache_corrupted=false
846 for ac_var in `(set) 2>&1 |
847                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
849   eval ac_new_set=\$ac_env_${ac_var}_set
850   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
851   eval ac_new_val="\$ac_env_${ac_var}_value"
852   case $ac_old_set,$ac_new_set in
853     set,)
854       { echo "$as_me:854: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
856       ac_cache_corrupted=: ;;
857     ,set)
858       { echo "$as_me:858: error: \`$ac_var' was not set in the previous run" >&5
859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
860       ac_cache_corrupted=: ;;
861     ,);;
862     *)
863       if test "x$ac_old_val" != "x$ac_new_val"; then
864         { echo "$as_me:864: error: \`$ac_var' has changed since the previous run:" >&5
865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
866         { echo "$as_me:866:   former value:  $ac_old_val" >&5
867 echo "$as_me:   former value:  $ac_old_val" >&2;}
868         { echo "$as_me:868:   current value: $ac_new_val" >&5
869 echo "$as_me:   current value: $ac_new_val" >&2;}
870         ac_cache_corrupted=:
871       fi;;
872   esac
873   # Pass precious variables to config.status.  It doesn't matter if
874   # we pass some twice (in addition to the command line arguments).
875   if test "$ac_new_set" = set; then
876     case $ac_new_val in
877     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
878       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
879       ac_configure_args="$ac_configure_args '$ac_arg'"
880       ;;
881     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
882        ;;
883     esac
884   fi
885 done
886 if $ac_cache_corrupted; then
887   { echo "$as_me:887: error: changes in the environment can compromise the build" >&5
888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
889   { { echo "$as_me:889: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
891    { (exit 1); exit 1; }; }
892 fi
893
894 ac_ext=c
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
899
900 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
901   *c*,-n*) ECHO_N= ECHO_C='
902 ' ECHO_T='      ' ;;
903   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
904   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
905 esac
906 echo "#! $SHELL" >conftest.sh
907 echo  "exit 0"   >>conftest.sh
908 chmod +x conftest.sh
909 if { (echo "$as_me:909: PATH=\".;.\"; conftest.sh") >&5
910   (PATH=".;."; conftest.sh) 2>&5
911   ac_status=$?
912   echo "$as_me:912: \$? = $ac_status" >&5
913   (exit $ac_status); }; then
914   ac_path_separator=';'
915 else
916   ac_path_separator=:
917 fi
918 PATH_SEPARATOR="$ac_path_separator"
919 rm -f conftest.sh
920
921 ac_config_headers="$ac_config_headers config.h"
922
923 ac_config_commands="$ac_config_commands default-1"
924
925 ac_aux_dir=
926 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
927   if test -f $ac_dir/install-sh; then
928     ac_aux_dir=$ac_dir
929     ac_install_sh="$ac_aux_dir/install-sh -c"
930     break
931   elif test -f $ac_dir/install.sh; then
932     ac_aux_dir=$ac_dir
933     ac_install_sh="$ac_aux_dir/install.sh -c"
934     break
935   elif test -f $ac_dir/shtool; then
936     ac_aux_dir=$ac_dir
937     ac_install_sh="$ac_aux_dir/shtool install -c"
938     break
939   fi
940 done
941 if test -z "$ac_aux_dir"; then
942   { { echo "$as_me:942: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
943 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
944    { (exit 1); exit 1; }; }
945 fi
946 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
947 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
948 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
949
950 # Find a good install program.  We prefer a C program (faster),
951 # so one script is as good as another.  But avoid the broken or
952 # incompatible versions:
953 # SysV /etc/install, /usr/sbin/install
954 # SunOS /usr/etc/install
955 # IRIX /sbin/install
956 # AIX /bin/install
957 # AmigaOS /C/install, which installs bootblocks on floppy discs
958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
961 # ./install, which can be erroneously created by make from ./install.sh.
962 echo "$as_me:962: checking for a BSD compatible install" >&5
963 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
964 if test -z "$INSTALL"; then
965 if test "${ac_cv_path_install+set}" = set; then
966   echo $ECHO_N "(cached) $ECHO_C" >&6
967 else
968     ac_save_IFS=$IFS; IFS=$ac_path_separator
969   for ac_dir in $PATH; do
970     IFS=$ac_save_IFS
971     # Account for people who put trailing slashes in PATH elements.
972     case $ac_dir/ in
973     / | ./ | .// | /cC/* \
974     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
975     | /usr/ucb/* ) ;;
976     *)
977       # OSF1 and SCO ODT 3.0 have their own names for install.
978       # Don't use installbsd from OSF since it installs stuff as root
979       # by default.
980       for ac_prog in ginstall scoinst install; do
981         if $as_executable_p "$ac_dir/$ac_prog"; then
982           if test $ac_prog = install &&
983             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
984             # AIX install.  It has an incompatible calling convention.
985             :
986           elif test $ac_prog = install &&
987             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
988             # program-specific install script used by HP pwplus--don't use.
989             :
990           else
991             ac_cv_path_install="$ac_dir/$ac_prog -c"
992             break 2
993           fi
994         fi
995       done
996       ;;
997     esac
998   done
999
1000 fi
1001   if test "${ac_cv_path_install+set}" = set; then
1002     INSTALL=$ac_cv_path_install
1003   else
1004     # As a last resort, use the slow shell script.  We don't cache a
1005     # path for INSTALL within a source directory, because that will
1006     # break other packages using the cache if that directory is
1007     # removed, or if the path is relative.
1008     INSTALL=$ac_install_sh
1009   fi
1010 fi
1011 echo "$as_me:1011: result: $INSTALL" >&5
1012 echo "${ECHO_T}$INSTALL" >&6
1013
1014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015 # It thinks the first close brace ends the variable substitution.
1016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1017
1018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1019
1020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1021
1022 echo "$as_me:1022: checking whether build environment is sane" >&5
1023 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1024 # Just in case
1025 sleep 1
1026 echo timestamp > conftestfile
1027 # Do `set' in a subshell so we don't clobber the current shell's
1028 # arguments.  Must try -L first in case configure is actually a
1029 # symlink; some systems play weird games with the mod time of symlinks
1030 # (eg FreeBSD returns the mod time of the symlink's containing
1031 # directory).
1032 if (
1033    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1034    if test "$*" = "X"; then
1035       # -L didn't work.
1036       set X `ls -t $srcdir/configure conftestfile`
1037    fi
1038    if test "$*" != "X $srcdir/configure conftestfile" \
1039       && test "$*" != "X conftestfile $srcdir/configure"; then
1040
1041       # If neither matched, then we have a broken ls.  This can happen
1042       # if, for instance, CONFIG_SHELL is bash and it inherits a
1043       # broken ls alias from the environment.  This has actually
1044       # happened.  Such a system could not be considered "sane".
1045       { { echo "$as_me:1045: error: ls -t appears to fail.  Make sure there is not a broken
1046 alias in your environment" >&5
1047 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1048 alias in your environment" >&2;}
1049    { (exit 1); exit 1; }; }
1050    fi
1051
1052    test "$2" = conftestfile
1053    )
1054 then
1055    # Ok.
1056    :
1057 else
1058    { { echo "$as_me:1058: error: newly created file is older than distributed files!
1059 Check your system clock" >&5
1060 echo "$as_me: error: newly created file is older than distributed files!
1061 Check your system clock" >&2;}
1062    { (exit 1); exit 1; }; }
1063 fi
1064 rm -f conftest*
1065 echo "$as_me:1065: result: yes" >&5
1066 echo "${ECHO_T}yes" >&6
1067 test "$program_prefix" != NONE &&
1068   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1069 # Use a double $ so make ignores it.
1070 test "$program_suffix" != NONE &&
1071   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1072 # Double any \ or $.  echo might interpret backslashes.
1073 # By default was `s,x,x', remove it if useless.
1074 cat <<\_ACEOF >conftest.sed
1075 s/[\\$]/&&/g;s/;s,x,x,$//
1076 _ACEOF
1077 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1078 rm conftest.sed
1079
1080 echo "$as_me:1080: checking whether ${MAKE-make} sets \${MAKE}" >&5
1081 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1082 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1083 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1084   echo $ECHO_N "(cached) $ECHO_C" >&6
1085 else
1086   cat >conftest.make <<\EOF
1087 all:
1088         @echo 'ac_maketemp="${MAKE}"'
1089 EOF
1090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1091 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1092 if test -n "$ac_maketemp"; then
1093   eval ac_cv_prog_make_${ac_make}_set=yes
1094 else
1095   eval ac_cv_prog_make_${ac_make}_set=no
1096 fi
1097 rm -f conftest.make
1098 fi
1099 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1100   echo "$as_me:1100: result: yes" >&5
1101 echo "${ECHO_T}yes" >&6
1102   SET_MAKE=
1103 else
1104   echo "$as_me:1104: result: no" >&5
1105 echo "${ECHO_T}no" >&6
1106   SET_MAKE="MAKE=${MAKE-make}"
1107 fi
1108
1109 PACKAGE=ftdi_eeprom
1110
1111 VERSION=0.2
1112
1113 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1114   { { echo "$as_me:1114: error: source directory already configured; run \"make distclean\" there first" >&5
1115 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1116    { (exit 1); exit 1; }; }
1117 fi
1118
1119 cat >>confdefs.h <<EOF
1120 #define PACKAGE "$PACKAGE"
1121 EOF
1122
1123 cat >>confdefs.h <<EOF
1124 #define VERSION "$VERSION"
1125 EOF
1126
1127 missing_dir=`cd $ac_aux_dir && pwd`
1128 echo "$as_me:1128: checking for working aclocal" >&5
1129 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1130 # Run test in a subshell; some versions of sh will print an error if
1131 # an executable is not found, even if stderr is redirected.
1132 # Redirect stdin to placate older versions of autoconf.  Sigh.
1133 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1134    ACLOCAL=aclocal
1135    echo "$as_me:1135: result: found" >&5
1136 echo "${ECHO_T}found" >&6
1137 else
1138    ACLOCAL="$missing_dir/missing aclocal"
1139    echo "$as_me:1139: result: missing" >&5
1140 echo "${ECHO_T}missing" >&6
1141 fi
1142
1143 echo "$as_me:1143: checking for working autoconf" >&5
1144 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1145 # Run test in a subshell; some versions of sh will print an error if
1146 # an executable is not found, even if stderr is redirected.
1147 # Redirect stdin to placate older versions of autoconf.  Sigh.
1148 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1149    AUTOCONF=autoconf
1150    echo "$as_me:1150: result: found" >&5
1151 echo "${ECHO_T}found" >&6
1152 else
1153    AUTOCONF="$missing_dir/missing autoconf"
1154    echo "$as_me:1154: result: missing" >&5
1155 echo "${ECHO_T}missing" >&6
1156 fi
1157
1158 echo "$as_me:1158: checking for working automake" >&5
1159 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1160 # Run test in a subshell; some versions of sh will print an error if
1161 # an executable is not found, even if stderr is redirected.
1162 # Redirect stdin to placate older versions of autoconf.  Sigh.
1163 if (automake --version) < /dev/null > /dev/null 2>&1; then
1164    AUTOMAKE=automake
1165    echo "$as_me:1165: result: found" >&5
1166 echo "${ECHO_T}found" >&6
1167 else
1168    AUTOMAKE="$missing_dir/missing automake"
1169    echo "$as_me:1169: result: missing" >&5
1170 echo "${ECHO_T}missing" >&6
1171 fi
1172
1173 echo "$as_me:1173: checking for working autoheader" >&5
1174 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1175 # Run test in a subshell; some versions of sh will print an error if
1176 # an executable is not found, even if stderr is redirected.
1177 # Redirect stdin to placate older versions of autoconf.  Sigh.
1178 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1179    AUTOHEADER=autoheader
1180    echo "$as_me:1180: result: found" >&5
1181 echo "${ECHO_T}found" >&6
1182 else
1183    AUTOHEADER="$missing_dir/missing autoheader"
1184    echo "$as_me:1184: result: missing" >&5
1185 echo "${ECHO_T}missing" >&6
1186 fi
1187
1188 echo "$as_me:1188: checking for working makeinfo" >&5
1189 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1190 # Run test in a subshell; some versions of sh will print an error if
1191 # an executable is not found, even if stderr is redirected.
1192 # Redirect stdin to placate older versions of autoconf.  Sigh.
1193 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1194    MAKEINFO=makeinfo
1195    echo "$as_me:1195: result: found" >&5
1196 echo "${ECHO_T}found" >&6
1197 else
1198    MAKEINFO="$missing_dir/missing makeinfo"
1199    echo "$as_me:1199: result: missing" >&5
1200 echo "${ECHO_T}missing" >&6
1201 fi
1202
1203 ac_ext=c
1204 ac_cpp='$CPP $CPPFLAGS'
1205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1208
1209 ac_ext=c
1210 ac_cpp='$CPP $CPPFLAGS'
1211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214 if test -n "$ac_tool_prefix"; then
1215   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220   echo $ECHO_N "(cached) $ECHO_C" >&6
1221 else
1222   if test -n "$CC"; then
1223   ac_cv_prog_CC="$CC" # Let the user override the test.
1224 else
1225   ac_save_IFS=$IFS; IFS=$ac_path_separator
1226 ac_dummy="$PATH"
1227 for ac_dir in $ac_dummy; do
1228   IFS=$ac_save_IFS
1229   test -z "$ac_dir" && ac_dir=.
1230   $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1233 break
1234 done
1235
1236 fi
1237 fi
1238 CC=$ac_cv_prog_CC
1239 if test -n "$CC"; then
1240   echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1242 else
1243   echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1245 fi
1246
1247 fi
1248 if test -z "$ac_cv_prog_CC"; then
1249   ac_ct_CC=$CC
1250   # Extract the first word of "gcc", so it can be a program name with args.
1251 set dummy gcc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255   echo $ECHO_N "(cached) $ECHO_C" >&6
1256 else
1257   if test -n "$ac_ct_CC"; then
1258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1259 else
1260   ac_save_IFS=$IFS; IFS=$ac_path_separator
1261 ac_dummy="$PATH"
1262 for ac_dir in $ac_dummy; do
1263   IFS=$ac_save_IFS
1264   test -z "$ac_dir" && ac_dir=.
1265   $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="gcc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1268 break
1269 done
1270
1271 fi
1272 fi
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275   echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1277 else
1278   echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1280 fi
1281
1282   CC=$ac_ct_CC
1283 else
1284   CC="$ac_cv_prog_CC"
1285 fi
1286
1287 if test -z "$CC"; then
1288   if test -n "$ac_tool_prefix"; then
1289   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1290 set dummy ${ac_tool_prefix}cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294   echo $ECHO_N "(cached) $ECHO_C" >&6
1295 else
1296   if test -n "$CC"; then
1297   ac_cv_prog_CC="$CC" # Let the user override the test.
1298 else
1299   ac_save_IFS=$IFS; IFS=$ac_path_separator
1300 ac_dummy="$PATH"
1301 for ac_dir in $ac_dummy; do
1302   IFS=$ac_save_IFS
1303   test -z "$ac_dir" && ac_dir=.
1304   $as_executable_p "$ac_dir/$ac_word" || continue
1305 ac_cv_prog_CC="${ac_tool_prefix}cc"
1306 echo "$as_me:1306: found $ac_dir/$ac_word" >&5
1307 break
1308 done
1309
1310 fi
1311 fi
1312 CC=$ac_cv_prog_CC
1313 if test -n "$CC"; then
1314   echo "$as_me:1314: result: $CC" >&5
1315 echo "${ECHO_T}$CC" >&6
1316 else
1317   echo "$as_me:1317: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1319 fi
1320
1321 fi
1322 if test -z "$ac_cv_prog_CC"; then
1323   ac_ct_CC=$CC
1324   # Extract the first word of "cc", so it can be a program name with args.
1325 set dummy cc; ac_word=$2
1326 echo "$as_me:1326: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1329   echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331   if test -n "$ac_ct_CC"; then
1332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1333 else
1334   ac_save_IFS=$IFS; IFS=$ac_path_separator
1335 ac_dummy="$PATH"
1336 for ac_dir in $ac_dummy; do
1337   IFS=$ac_save_IFS
1338   test -z "$ac_dir" && ac_dir=.
1339   $as_executable_p "$ac_dir/$ac_word" || continue
1340 ac_cv_prog_ac_ct_CC="cc"
1341 echo "$as_me:1341: found $ac_dir/$ac_word" >&5
1342 break
1343 done
1344
1345 fi
1346 fi
1347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1348 if test -n "$ac_ct_CC"; then
1349   echo "$as_me:1349: result: $ac_ct_CC" >&5
1350 echo "${ECHO_T}$ac_ct_CC" >&6
1351 else
1352   echo "$as_me:1352: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1354 fi
1355
1356   CC=$ac_ct_CC
1357 else
1358   CC="$ac_cv_prog_CC"
1359 fi
1360
1361 fi
1362 if test -z "$CC"; then
1363   # Extract the first word of "cc", so it can be a program name with args.
1364 set dummy cc; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368   echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370   if test -n "$CC"; then
1371   ac_cv_prog_CC="$CC" # Let the user override the test.
1372 else
1373   ac_prog_rejected=no
1374   ac_save_IFS=$IFS; IFS=$ac_path_separator
1375 ac_dummy="$PATH"
1376 for ac_dir in $ac_dummy; do
1377   IFS=$ac_save_IFS
1378   test -z "$ac_dir" && ac_dir=.
1379   $as_executable_p "$ac_dir/$ac_word" || continue
1380 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1381   ac_prog_rejected=yes
1382   continue
1383 fi
1384 ac_cv_prog_CC="cc"
1385 echo "$as_me:1385: found $ac_dir/$ac_word" >&5
1386 break
1387 done
1388
1389 if test $ac_prog_rejected = yes; then
1390   # We found a bogon in the path, so make sure we never use it.
1391   set dummy $ac_cv_prog_CC
1392   shift
1393   if test $# != 0; then
1394     # We chose a different compiler from the bogus one.
1395     # However, it has the same basename, so the bogon will be chosen
1396     # first if we set CC to just the basename; use the full file name.
1397     shift
1398     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1399     shift
1400     ac_cv_prog_CC="$@"
1401   fi
1402 fi
1403 fi
1404 fi
1405 CC=$ac_cv_prog_CC
1406 if test -n "$CC"; then
1407   echo "$as_me:1407: result: $CC" >&5
1408 echo "${ECHO_T}$CC" >&6
1409 else
1410   echo "$as_me:1410: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 fi
1415 if test -z "$CC"; then
1416   if test -n "$ac_tool_prefix"; then
1417   for ac_prog in cl
1418   do
1419     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1421 echo "$as_me:1421: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_CC+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   if test -n "$CC"; then
1427   ac_cv_prog_CC="$CC" # Let the user override the test.
1428 else
1429   ac_save_IFS=$IFS; IFS=$ac_path_separator
1430 ac_dummy="$PATH"
1431 for ac_dir in $ac_dummy; do
1432   IFS=$ac_save_IFS
1433   test -z "$ac_dir" && ac_dir=.
1434   $as_executable_p "$ac_dir/$ac_word" || continue
1435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1436 echo "$as_me:1436: found $ac_dir/$ac_word" >&5
1437 break
1438 done
1439
1440 fi
1441 fi
1442 CC=$ac_cv_prog_CC
1443 if test -n "$CC"; then
1444   echo "$as_me:1444: result: $CC" >&5
1445 echo "${ECHO_T}$CC" >&6
1446 else
1447   echo "$as_me:1447: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451     test -n "$CC" && break
1452   done
1453 fi
1454 if test -z "$CC"; then
1455   ac_ct_CC=$CC
1456   for ac_prog in cl
1457 do
1458   # Extract the first word of "$ac_prog", so it can be a program name with args.
1459 set dummy $ac_prog; ac_word=$2
1460 echo "$as_me:1460: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   if test -n "$ac_ct_CC"; then
1466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467 else
1468   ac_save_IFS=$IFS; IFS=$ac_path_separator
1469 ac_dummy="$PATH"
1470 for ac_dir in $ac_dummy; do
1471   IFS=$ac_save_IFS
1472   test -z "$ac_dir" && ac_dir=.
1473   $as_executable_p "$ac_dir/$ac_word" || continue
1474 ac_cv_prog_ac_ct_CC="$ac_prog"
1475 echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1476 break
1477 done
1478
1479 fi
1480 fi
1481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482 if test -n "$ac_ct_CC"; then
1483   echo "$as_me:1483: result: $ac_ct_CC" >&5
1484 echo "${ECHO_T}$ac_ct_CC" >&6
1485 else
1486   echo "$as_me:1486: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490   test -n "$ac_ct_CC" && break
1491 done
1492
1493   CC=$ac_ct_CC
1494 fi
1495
1496 fi
1497
1498 test -z "$CC" && { { echo "$as_me:1498: error: no acceptable cc found in \$PATH" >&5
1499 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 # Provide some information about the compiler.
1503 echo "$as_me:1503:" \
1504      "checking for C compiler version" >&5
1505 ac_compiler=`set X $ac_compile; echo $2`
1506 { (eval echo "$as_me:1506: \"$ac_compiler --version </dev/null >&5\"") >&5
1507   (eval $ac_compiler --version </dev/null >&5) 2>&5
1508   ac_status=$?
1509   echo "$as_me:1509: \$? = $ac_status" >&5
1510   (exit $ac_status); }
1511 { (eval echo "$as_me:1511: \"$ac_compiler -v </dev/null >&5\"") >&5
1512   (eval $ac_compiler -v </dev/null >&5) 2>&5
1513   ac_status=$?
1514   echo "$as_me:1514: \$? = $ac_status" >&5
1515   (exit $ac_status); }
1516 { (eval echo "$as_me:1516: \"$ac_compiler -V </dev/null >&5\"") >&5
1517   (eval $ac_compiler -V </dev/null >&5) 2>&5
1518   ac_status=$?
1519   echo "$as_me:1519: \$? = $ac_status" >&5
1520   (exit $ac_status); }
1521
1522 cat >conftest.$ac_ext <<_ACEOF
1523 #line 1523 "configure"
1524 #include "confdefs.h"
1525
1526 int
1527 main ()
1528 {
1529
1530   ;
1531   return 0;
1532 }
1533 _ACEOF
1534 ac_clean_files_save=$ac_clean_files
1535 ac_clean_files="$ac_clean_files a.out a.exe"
1536 # Try to create an executable without -o first, disregard a.out.
1537 # It will help us diagnose broken compilers, and finding out an intuition
1538 # of exeext.
1539 echo "$as_me:1539: checking for C compiler default output" >&5
1540 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1541 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1542 if { (eval echo "$as_me:1542: \"$ac_link_default\"") >&5
1543   (eval $ac_link_default) 2>&5
1544   ac_status=$?
1545   echo "$as_me:1545: \$? = $ac_status" >&5
1546   (exit $ac_status); }; then
1547   # Find the output, starting from the most likely.  This scheme is
1548 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1549 # resort.
1550 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1551                 ls a.out conftest 2>/dev/null;
1552                 ls a.* conftest.* 2>/dev/null`; do
1553   case $ac_file in
1554     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1555     a.out ) # We found the default executable, but exeext='' is most
1556             # certainly right.
1557             break;;
1558     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1559           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1560           export ac_cv_exeext
1561           break;;
1562     * ) break;;
1563   esac
1564 done
1565 else
1566   echo "$as_me: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1568 { { echo "$as_me:1568: error: C compiler cannot create executables" >&5
1569 echo "$as_me: error: C compiler cannot create executables" >&2;}
1570    { (exit 77); exit 77; }; }
1571 fi
1572
1573 ac_exeext=$ac_cv_exeext
1574 echo "$as_me:1574: result: $ac_file" >&5
1575 echo "${ECHO_T}$ac_file" >&6
1576
1577 # Check the compiler produces executables we can run.  If not, either
1578 # the compiler is broken, or we cross compile.
1579 echo "$as_me:1579: checking whether the C compiler works" >&5
1580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1582 # If not cross compiling, check that we can run a simple program.
1583 if test "$cross_compiling" != yes; then
1584   if { ac_try='./$ac_file'
1585   { (eval echo "$as_me:1585: \"$ac_try\"") >&5
1586   (eval $ac_try) 2>&5
1587   ac_status=$?
1588   echo "$as_me:1588: \$? = $ac_status" >&5
1589   (exit $ac_status); }; }; then
1590     cross_compiling=no
1591   else
1592     if test "$cross_compiling" = maybe; then
1593         cross_compiling=yes
1594     else
1595         { { echo "$as_me:1595: error: cannot run C compiled programs.
1596 If you meant to cross compile, use \`--host'." >&5
1597 echo "$as_me: error: cannot run C compiled programs.
1598 If you meant to cross compile, use \`--host'." >&2;}
1599    { (exit 1); exit 1; }; }
1600     fi
1601   fi
1602 fi
1603 echo "$as_me:1603: result: yes" >&5
1604 echo "${ECHO_T}yes" >&6
1605
1606 rm -f a.out a.exe conftest$ac_cv_exeext
1607 ac_clean_files=$ac_clean_files_save
1608 # Check the compiler produces executables we can run.  If not, either
1609 # the compiler is broken, or we cross compile.
1610 echo "$as_me:1610: checking whether we are cross compiling" >&5
1611 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1612 echo "$as_me:1612: result: $cross_compiling" >&5
1613 echo "${ECHO_T}$cross_compiling" >&6
1614
1615 echo "$as_me:1615: checking for executable suffix" >&5
1616 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1617 if { (eval echo "$as_me:1617: \"$ac_link\"") >&5
1618   (eval $ac_link) 2>&5
1619   ac_status=$?
1620   echo "$as_me:1620: \$? = $ac_status" >&5
1621   (exit $ac_status); }; then
1622   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1623 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1624 # work properly (i.e., refer to `conftest.exe'), while it won't with
1625 # `rm'.
1626 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1627   case $ac_file in
1628     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1629     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1630           export ac_cv_exeext
1631           break;;
1632     * ) break;;
1633   esac
1634 done
1635 else
1636   { { echo "$as_me:1636: error: cannot compute EXEEXT: cannot compile and link" >&5
1637 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1638    { (exit 1); exit 1; }; }
1639 fi
1640
1641 rm -f conftest$ac_cv_exeext
1642 echo "$as_me:1642: result: $ac_cv_exeext" >&5
1643 echo "${ECHO_T}$ac_cv_exeext" >&6
1644
1645 rm -f conftest.$ac_ext
1646 EXEEXT=$ac_cv_exeext
1647 ac_exeext=$EXEEXT
1648 echo "$as_me:1648: checking for object suffix" >&5
1649 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1650 if test "${ac_cv_objext+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   cat >conftest.$ac_ext <<_ACEOF
1654 #line 1654 "configure"
1655 #include "confdefs.h"
1656
1657 int
1658 main ()
1659 {
1660
1661   ;
1662   return 0;
1663 }
1664 _ACEOF
1665 rm -f conftest.o conftest.obj
1666 if { (eval echo "$as_me:1666: \"$ac_compile\"") >&5
1667   (eval $ac_compile) 2>&5
1668   ac_status=$?
1669   echo "$as_me:1669: \$? = $ac_status" >&5
1670   (exit $ac_status); }; then
1671   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1672   case $ac_file in
1673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1674     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1675        break;;
1676   esac
1677 done
1678 else
1679   echo "$as_me: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1681 { { echo "$as_me:1681: error: cannot compute OBJEXT: cannot compile" >&5
1682 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1683    { (exit 1); exit 1; }; }
1684 fi
1685
1686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1687 fi
1688 echo "$as_me:1688: result: $ac_cv_objext" >&5
1689 echo "${ECHO_T}$ac_cv_objext" >&6
1690 OBJEXT=$ac_cv_objext
1691 ac_objext=$OBJEXT
1692 echo "$as_me:1692: checking whether we are using the GNU C compiler" >&5
1693 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   cat >conftest.$ac_ext <<_ACEOF
1698 #line 1698 "configure"
1699 #include "confdefs.h"
1700
1701 int
1702 main ()
1703 {
1704 #ifndef __GNUC__
1705        choke me
1706 #endif
1707
1708   ;
1709   return 0;
1710 }
1711 _ACEOF
1712 rm -f conftest.$ac_objext
1713 if { (eval echo "$as_me:1713: \"$ac_compile\"") >&5
1714   (eval $ac_compile) 2>&5
1715   ac_status=$?
1716   echo "$as_me:1716: \$? = $ac_status" >&5
1717   (exit $ac_status); } &&
1718          { ac_try='test -s conftest.$ac_objext'
1719   { (eval echo "$as_me:1719: \"$ac_try\"") >&5
1720   (eval $ac_try) 2>&5
1721   ac_status=$?
1722   echo "$as_me:1722: \$? = $ac_status" >&5
1723   (exit $ac_status); }; }; then
1724   ac_compiler_gnu=yes
1725 else
1726   echo "$as_me: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1728 ac_compiler_gnu=no
1729 fi
1730 rm -f conftest.$ac_objext conftest.$ac_ext
1731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1732
1733 fi
1734 echo "$as_me:1734: result: $ac_cv_c_compiler_gnu" >&5
1735 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1736 GCC=`test $ac_compiler_gnu = yes && echo yes`
1737 ac_test_CFLAGS=${CFLAGS+set}
1738 ac_save_CFLAGS=$CFLAGS
1739 CFLAGS="-g"
1740 echo "$as_me:1740: checking whether $CC accepts -g" >&5
1741 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1742 if test "${ac_cv_prog_cc_g+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   cat >conftest.$ac_ext <<_ACEOF
1746 #line 1746 "configure"
1747 #include "confdefs.h"
1748
1749 int
1750 main ()
1751 {
1752
1753   ;
1754   return 0;
1755 }
1756 _ACEOF
1757 rm -f conftest.$ac_objext
1758 if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759   (eval $ac_compile) 2>&5
1760   ac_status=$?
1761   echo "$as_me:1761: \$? = $ac_status" >&5
1762   (exit $ac_status); } &&
1763          { ac_try='test -s conftest.$ac_objext'
1764   { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1765   (eval $ac_try) 2>&5
1766   ac_status=$?
1767   echo "$as_me:1767: \$? = $ac_status" >&5
1768   (exit $ac_status); }; }; then
1769   ac_cv_prog_cc_g=yes
1770 else
1771   echo "$as_me: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1773 ac_cv_prog_cc_g=no
1774 fi
1775 rm -f conftest.$ac_objext conftest.$ac_ext
1776 fi
1777 echo "$as_me:1777: result: $ac_cv_prog_cc_g" >&5
1778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1779 if test "$ac_test_CFLAGS" = set; then
1780   CFLAGS=$ac_save_CFLAGS
1781 elif test $ac_cv_prog_cc_g = yes; then
1782   if test "$GCC" = yes; then
1783     CFLAGS="-g -O2"
1784   else
1785     CFLAGS="-g"
1786   fi
1787 else
1788   if test "$GCC" = yes; then
1789     CFLAGS="-O2"
1790   else
1791     CFLAGS=
1792   fi
1793 fi
1794 # Some people use a C++ compiler to compile C.  Since we use `exit',
1795 # in C++ we need to declare it.  In case someone uses the same compiler
1796 # for both compiling C and C++ we need to have the C++ compiler decide
1797 # the declaration of exit, since it's the most demanding environment.
1798 cat >conftest.$ac_ext <<_ACEOF
1799 #ifndef __cplusplus
1800   choke me
1801 #endif
1802 _ACEOF
1803 rm -f conftest.$ac_objext
1804 if { (eval echo "$as_me:1804: \"$ac_compile\"") >&5
1805   (eval $ac_compile) 2>&5
1806   ac_status=$?
1807   echo "$as_me:1807: \$? = $ac_status" >&5
1808   (exit $ac_status); } &&
1809          { ac_try='test -s conftest.$ac_objext'
1810   { (eval echo "$as_me:1810: \"$ac_try\"") >&5
1811   (eval $ac_try) 2>&5
1812   ac_status=$?
1813   echo "$as_me:1813: \$? = $ac_status" >&5
1814   (exit $ac_status); }; }; then
1815   for ac_declaration in \
1816    ''\
1817    '#include <stdlib.h>' \
1818    'extern "C" void std::exit (int) throw (); using std::exit;' \
1819    'extern "C" void std::exit (int); using std::exit;' \
1820    'extern "C" void exit (int) throw ();' \
1821    'extern "C" void exit (int);' \
1822    'void exit (int);'
1823 do
1824   cat >conftest.$ac_ext <<_ACEOF
1825 #line 1825 "configure"
1826 #include "confdefs.h"
1827 #include <stdlib.h>
1828 $ac_declaration
1829 int
1830 main ()
1831 {
1832 exit (42);
1833   ;
1834   return 0;
1835 }
1836 _ACEOF
1837 rm -f conftest.$ac_objext
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839   (eval $ac_compile) 2>&5
1840   ac_status=$?
1841   echo "$as_me:1841: \$? = $ac_status" >&5
1842   (exit $ac_status); } &&
1843          { ac_try='test -s conftest.$ac_objext'
1844   { (eval echo "$as_me:1844: \"$ac_try\"") >&5
1845   (eval $ac_try) 2>&5
1846   ac_status=$?
1847   echo "$as_me:1847: \$? = $ac_status" >&5
1848   (exit $ac_status); }; }; then
1849   :
1850 else
1851   echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 continue
1854 fi
1855 rm -f conftest.$ac_objext conftest.$ac_ext
1856   cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1859 $ac_declaration
1860 int
1861 main ()
1862 {
1863 exit (42);
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 rm -f conftest.$ac_objext
1869 if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5
1870   (eval $ac_compile) 2>&5
1871   ac_status=$?
1872   echo "$as_me:1872: \$? = $ac_status" >&5
1873   (exit $ac_status); } &&
1874          { ac_try='test -s conftest.$ac_objext'
1875   { (eval echo "$as_me:1875: \"$ac_try\"") >&5
1876   (eval $ac_try) 2>&5
1877   ac_status=$?
1878   echo "$as_me:1878: \$? = $ac_status" >&5
1879   (exit $ac_status); }; }; then
1880   break
1881 else
1882   echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 fi
1885 rm -f conftest.$ac_objext conftest.$ac_ext
1886 done
1887 rm -f conftest*
1888 if test -n "$ac_declaration"; then
1889   echo '#ifdef __cplusplus' >>confdefs.h
1890   echo $ac_declaration      >>confdefs.h
1891   echo '#endif'             >>confdefs.h
1892 fi
1893
1894 else
1895   echo "$as_me: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 fi
1898 rm -f conftest.$ac_objext conftest.$ac_ext
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905 echo "$as_me:1905: checking for cfg_getstr in -lconfuse" >&5
1906 echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6
1907 if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   ac_check_lib_save_LIBS=$LIBS
1911 LIBS="-lconfuse  $LIBS"
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1915
1916 /* Override any gcc2 internal prototype to avoid an error.  */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 /* We use char because int might match the return type of a gcc2
1921    builtin and then its argument prototype would still apply.  */
1922 char cfg_getstr ();
1923 int
1924 main ()
1925 {
1926 cfg_getstr ();
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { (eval echo "$as_me:1932: \"$ac_link\"") >&5
1933   (eval $ac_link) 2>&5
1934   ac_status=$?
1935   echo "$as_me:1935: \$? = $ac_status" >&5
1936   (exit $ac_status); } &&
1937          { ac_try='test -s conftest$ac_exeext'
1938   { (eval echo "$as_me:1938: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:1941: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943   ac_cv_lib_confuse_cfg_getstr=yes
1944 else
1945   echo "$as_me: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1947 ac_cv_lib_confuse_cfg_getstr=no
1948 fi
1949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1950 LIBS=$ac_check_lib_save_LIBS
1951 fi
1952 echo "$as_me:1952: result: $ac_cv_lib_confuse_cfg_getstr" >&5
1953 echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6
1954 if test $ac_cv_lib_confuse_cfg_getstr = yes; then
1955   cat >>confdefs.h <<EOF
1956 #define HAVE_LIBCONFUSE 1
1957 EOF
1958
1959   LIBS="-lconfuse $LIBS"
1960
1961 else
1962   { { echo "$as_me:1962: error: can't find confuse library" >&5
1963 echo "$as_me: error: can't find confuse library" >&2;}
1964    { (exit 1); exit 1; }; }
1965 fi
1966
1967   succeeded=no
1968
1969   if test -z "$PKG_CONFIG"; then
1970     # Extract the first word of "pkg-config", so it can be a program name with args.
1971 set dummy pkg-config; ac_word=$2
1972 echo "$as_me:1972: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   case $PKG_CONFIG in
1978   [\\/]* | ?:[\\/]*)
1979   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1980   ;;
1981   *)
1982   ac_save_IFS=$IFS; IFS=$ac_path_separator
1983 ac_dummy="$PATH"
1984 for ac_dir in $ac_dummy; do
1985   IFS=$ac_save_IFS
1986   test -z "$ac_dir" && ac_dir=.
1987   if $as_executable_p "$ac_dir/$ac_word"; then
1988    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
1989    echo "$as_me:1989: found $ac_dir/$ac_word" >&5
1990    break
1991 fi
1992 done
1993
1994   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1995   ;;
1996 esac
1997 fi
1998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1999
2000 if test -n "$PKG_CONFIG"; then
2001   echo "$as_me:2001: result: $PKG_CONFIG" >&5
2002 echo "${ECHO_T}$PKG_CONFIG" >&6
2003 else
2004   echo "$as_me:2004: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2006 fi
2007
2008   fi
2009
2010   if test "$PKG_CONFIG" = "no" ; then
2011      echo "*** The pkg-config script could not be found. Make sure it is"
2012      echo "*** in your path, or set the PKG_CONFIG environment variable"
2013      echo "*** to the full path to pkg-config."
2014      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2015   else
2016      PKG_CONFIG_MIN_VERSION=0.9.0
2017      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2018         echo "$as_me:2018: checking for libftdi" >&5
2019 echo $ECHO_N "checking for libftdi... $ECHO_C" >&6
2020
2021         if $PKG_CONFIG --exists "libftdi" ; then
2022             echo "$as_me:2022: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6
2024             succeeded=yes
2025
2026             echo "$as_me:2026: checking LIBFTDI_CFLAGS" >&5
2027 echo $ECHO_N "checking LIBFTDI_CFLAGS... $ECHO_C" >&6
2028             LIBFTDI_CFLAGS=`$PKG_CONFIG --cflags "libftdi"`
2029             echo "$as_me:2029: result: $LIBFTDI_CFLAGS" >&5
2030 echo "${ECHO_T}$LIBFTDI_CFLAGS" >&6
2031
2032             echo "$as_me:2032: checking LIBFTDI_LIBS" >&5
2033 echo $ECHO_N "checking LIBFTDI_LIBS... $ECHO_C" >&6
2034             LIBFTDI_LIBS=`$PKG_CONFIG --libs "libftdi"`
2035             echo "$as_me:2035: result: $LIBFTDI_LIBS" >&5
2036 echo "${ECHO_T}$LIBFTDI_LIBS" >&6
2037         else
2038             LIBFTDI_CFLAGS=""
2039             LIBFTDI_LIBS=""
2040             ## If we have a custom action on failure, don't print errors, but
2041             ## do set a variable so people can do so.
2042             LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libftdi"`
2043             echo $LIBFTDI_PKG_ERRORS
2044         fi
2045
2046      else
2047         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2048         echo "*** See http://www.freedesktop.org/software/pkgconfig"
2049      fi
2050   fi
2051
2052   if test $succeeded = yes; then
2053      :
2054   else
2055      { { echo "$as_me:2055: error: Library requirements (libftdi) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
2056 echo "$as_me: error: Library requirements (libftdi) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
2057    { (exit 1); exit 1; }; }
2058   fi
2059
2060 ac_config_files="$ac_config_files Makefile src/Makefile"
2061 cat >confcache <<\_ACEOF
2062 # This file is a shell script that caches the results of configure
2063 # tests run on this system so they can be shared between configure
2064 # scripts and configure runs, see configure's option --config-cache.
2065 # It is not useful on other systems.  If it contains results you don't
2066 # want to keep, you may remove or edit it.
2067 #
2068 # config.status only pays attention to the cache file if you give it
2069 # the --recheck option to rerun configure.
2070 #
2071 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2072 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2073 # following values.
2074
2075 _ACEOF
2076
2077 # The following way of writing the cache mishandles newlines in values,
2078 # but we know of no workaround that is simple, portable, and efficient.
2079 # So, don't put newlines in cache variables' values.
2080 # Ultrix sh set writes to stderr and can't be redirected directly,
2081 # and sets the high bit in the cache file unless we assign to the vars.
2082 {
2083   (set) 2>&1 |
2084     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2085     *ac_space=\ *)
2086       # `set' does not quote correctly, so add quotes (double-quote
2087       # substitution turns \\\\ into \\, and sed turns \\ into \).
2088       sed -n \
2089         "s/'/'\\\\''/g;
2090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2091       ;;
2092     *)
2093       # `set' quotes correctly as required by POSIX, so do not add quotes.
2094       sed -n \
2095         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2096       ;;
2097     esac;
2098 } |
2099   sed '
2100      t clear
2101      : clear
2102      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2103      t end
2104      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2105      : end' >>confcache
2106 if cmp -s $cache_file confcache; then :; else
2107   if test -w $cache_file; then
2108     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2109     cat confcache >$cache_file
2110   else
2111     echo "not updating unwritable cache $cache_file"
2112   fi
2113 fi
2114 rm -f confcache
2115
2116 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2117 # Let make expand exec_prefix.
2118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2119
2120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2122 # trailing colons and then remove the whole line if VPATH becomes empty
2123 # (actually we leave an empty line to preserve line numbers).
2124 if test "x$srcdir" = x.; then
2125   ac_vpsub='/^[         ]*VPATH[        ]*=/{
2126 s/:*\$(srcdir):*/:/;
2127 s/:*\${srcdir}:*/:/;
2128 s/:*@srcdir@:*/:/;
2129 s/^\([^=]*=[    ]*\):*/\1/;
2130 s/:*$//;
2131 s/^[^=]*=[      ]*$//;
2132 }'
2133 fi
2134
2135 DEFS=-DHAVE_CONFIG_H
2136
2137 : ${CONFIG_STATUS=./config.status}
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2140 { echo "$as_me:2140: creating $CONFIG_STATUS" >&5
2141 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2142 cat >$CONFIG_STATUS <<_ACEOF
2143 #! $SHELL
2144 # Generated automatically by configure.
2145 # Run this file to recreate the current configuration.
2146 # Compiler output produced by configure, useful for debugging
2147 # configure, is in config.log if it exists.
2148
2149 debug=false
2150 SHELL=\${CONFIG_SHELL-$SHELL}
2151 ac_cs_invocation="\$0 \$@"
2152
2153 _ACEOF
2154
2155 cat >>$CONFIG_STATUS <<\_ACEOF
2156 # Be Bourne compatible
2157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2158   emulate sh
2159   NULLCMD=:
2160 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2161   set -o posix
2162 fi
2163
2164 # Name of the executable.
2165 as_me=`echo "$0" |sed 's,.*[\\/],,'`
2166
2167 if expr a : '\(a\)' >/dev/null 2>&1; then
2168   as_expr=expr
2169 else
2170   as_expr=false
2171 fi
2172
2173 rm -f conf$$ conf$$.exe conf$$.file
2174 echo >conf$$.file
2175 if ln -s conf$$.file conf$$ 2>/dev/null; then
2176   # We could just check for DJGPP; but this test a) works b) is more generic
2177   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2178   if test -f conf$$.exe; then
2179     # Don't use ln at all; we don't have any links
2180     as_ln_s='cp -p'
2181   else
2182     as_ln_s='ln -s'
2183   fi
2184 elif ln conf$$.file conf$$ 2>/dev/null; then
2185   as_ln_s=ln
2186 else
2187   as_ln_s='cp -p'
2188 fi
2189 rm -f conf$$ conf$$.exe conf$$.file
2190
2191 as_executable_p="test -f"
2192
2193 # Support unset when possible.
2194 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2195   as_unset=unset
2196 else
2197   as_unset=false
2198 fi
2199
2200 # NLS nuisances.
2201 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2202 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2203 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2204 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2205 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2206 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2207 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2208 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2209
2210 # IFS
2211 # We need space, tab and new line, in precisely that order.
2212 as_nl='
2213 '
2214 IFS="   $as_nl"
2215
2216 # CDPATH.
2217 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2218
2219 exec 6>&1
2220
2221 _ACEOF
2222
2223 # Files that config.status was made for.
2224 if test -n "$ac_config_files"; then
2225   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2226 fi
2227
2228 if test -n "$ac_config_headers"; then
2229   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2230 fi
2231
2232 if test -n "$ac_config_links"; then
2233   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2234 fi
2235
2236 if test -n "$ac_config_commands"; then
2237   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2238 fi
2239
2240 cat >>$CONFIG_STATUS <<\EOF
2241
2242 ac_cs_usage="\
2243 \`$as_me' instantiates files from templates according to the
2244 current configuration.
2245
2246 Usage: $0 [OPTIONS] [FILE]...
2247
2248   -h, --help       print this help, then exit
2249   -V, --version    print version number, then exit
2250   -d, --debug      don't remove temporary files
2251       --recheck    update $as_me by reconfiguring in the same conditions
2252   --file=FILE[:TEMPLATE]
2253                    instantiate the configuration file FILE
2254   --header=FILE[:TEMPLATE]
2255                    instantiate the configuration header FILE
2256
2257 Configuration files:
2258 $config_files
2259
2260 Configuration headers:
2261 $config_headers
2262
2263 Configuration commands:
2264 $config_commands
2265
2266 Report bugs to <bug-autoconf@gnu.org>."
2267 EOF
2268
2269 cat >>$CONFIG_STATUS <<EOF
2270 ac_cs_version="\\
2271 config.status
2272 configured by $0, generated by GNU Autoconf 2.52,
2273   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2274
2275 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2276 Free Software Foundation, Inc.
2277 This config.status script is free software; the Free Software Foundation
2278 gives unlimited permission to copy, distribute and modify it."
2279 srcdir=$srcdir
2280 INSTALL="$INSTALL"
2281 EOF
2282
2283 cat >>$CONFIG_STATUS <<\EOF
2284 # If no file are specified by the user, then we need to provide default
2285 # value.  By we need to know if files were specified by the user.
2286 ac_need_defaults=:
2287 while test $# != 0
2288 do
2289   case $1 in
2290   --*=*)
2291     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2292     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2293     shift
2294     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2295     shift
2296     ;;
2297   -*);;
2298   *) # This is not an option, so the user has probably given explicit
2299      # arguments.
2300      ac_need_defaults=false;;
2301   esac
2302
2303   case $1 in
2304   # Handling of the options.
2305 EOF
2306 cat >>$CONFIG_STATUS <<EOF
2307   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2308     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2309     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2310 EOF
2311 cat >>$CONFIG_STATUS <<\EOF
2312   --version | --vers* | -V )
2313     echo "$ac_cs_version"; exit 0 ;;
2314   --he | --h)
2315     # Conflict between --help and --header
2316     { { echo "$as_me:2316: error: ambiguous option: $1
2317 Try \`$0 --help' for more information." >&5
2318 echo "$as_me: error: ambiguous option: $1
2319 Try \`$0 --help' for more information." >&2;}
2320    { (exit 1); exit 1; }; };;
2321   --help | --hel | -h )
2322     echo "$ac_cs_usage"; exit 0 ;;
2323   --debug | --d* | -d )
2324     debug=: ;;
2325   --file | --fil | --fi | --f )
2326     shift
2327     CONFIG_FILES="$CONFIG_FILES $1"
2328     ac_need_defaults=false;;
2329   --header | --heade | --head | --hea )
2330     shift
2331     CONFIG_HEADERS="$CONFIG_HEADERS $1"
2332     ac_need_defaults=false;;
2333
2334   # This is an error.
2335   -*) { { echo "$as_me:2335: error: unrecognized option: $1
2336 Try \`$0 --help' for more information." >&5
2337 echo "$as_me: error: unrecognized option: $1
2338 Try \`$0 --help' for more information." >&2;}
2339    { (exit 1); exit 1; }; } ;;
2340
2341   *) ac_config_targets="$ac_config_targets $1" ;;
2342
2343   esac
2344   shift
2345 done
2346
2347 exec 5>>config.log
2348 cat >&5 << _ACEOF
2349
2350 ## ----------------------- ##
2351 ## Running config.status.  ##
2352 ## ----------------------- ##
2353
2354 This file was extended by $as_me 2.52, executed with
2355   CONFIG_FILES    = $CONFIG_FILES
2356   CONFIG_HEADERS  = $CONFIG_HEADERS
2357   CONFIG_LINKS    = $CONFIG_LINKS
2358   CONFIG_COMMANDS = $CONFIG_COMMANDS
2359   > $ac_cs_invocation
2360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2361
2362 _ACEOF
2363 EOF
2364
2365 cat >>$CONFIG_STATUS <<EOF
2366 #
2367 # INIT-COMMANDS section.
2368 #
2369
2370 EOF
2371
2372 cat >>$CONFIG_STATUS <<\EOF
2373 for ac_config_target in $ac_config_targets
2374 do
2375   case "$ac_config_target" in
2376   # Handling of arguments.
2377   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2378   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
2379   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
2380   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
2381   *) { { echo "$as_me:2381: error: invalid argument: $ac_config_target" >&5
2382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2383    { (exit 1); exit 1; }; };;
2384   esac
2385 done
2386
2387 # If the user did not use the arguments to specify the items to instantiate,
2388 # then the envvar interface is used.  Set only those that are not.
2389 # We use the long form for the default assignment because of an extremely
2390 # bizarre bug on SunOS 4.1.3.
2391 if $ac_need_defaults; then
2392   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2393   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2394   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2395 fi
2396
2397 # Create a temporary directory, and hook for its removal unless debugging.
2398 $debug ||
2399 {
2400   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2401   trap '{ (exit 1); exit 1; }' 1 2 13 15
2402 }
2403
2404 # Create a (secure) tmp directory for tmp files.
2405 : ${TMPDIR=/tmp}
2406 {
2407   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2408   test -n "$tmp" && test -d "$tmp"
2409 }  ||
2410 {
2411   tmp=$TMPDIR/cs$$-$RANDOM
2412   (umask 077 && mkdir $tmp)
2413 } ||
2414 {
2415    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2416    { (exit 1); exit 1; }
2417 }
2418
2419 EOF
2420
2421 cat >>$CONFIG_STATUS <<EOF
2422
2423 #
2424 # CONFIG_FILES section.
2425 #
2426
2427 # No need to generate the scripts if there are no CONFIG_FILES.
2428 # This happens for instance when ./config.status config.h
2429 if test -n "\$CONFIG_FILES"; then
2430   # Protect against being on the right side of a sed subst in config.status.
2431   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2432    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2433 s,@SHELL@,$SHELL,;t t
2434 s,@exec_prefix@,$exec_prefix,;t t
2435 s,@prefix@,$prefix,;t t
2436 s,@program_transform_name@,$program_transform_name,;t t
2437 s,@bindir@,$bindir,;t t
2438 s,@sbindir@,$sbindir,;t t
2439 s,@libexecdir@,$libexecdir,;t t
2440 s,@datadir@,$datadir,;t t
2441 s,@sysconfdir@,$sysconfdir,;t t
2442 s,@sharedstatedir@,$sharedstatedir,;t t
2443 s,@localstatedir@,$localstatedir,;t t
2444 s,@libdir@,$libdir,;t t
2445 s,@includedir@,$includedir,;t t
2446 s,@oldincludedir@,$oldincludedir,;t t
2447 s,@infodir@,$infodir,;t t
2448 s,@mandir@,$mandir,;t t
2449 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2450 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2451 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2452 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2453 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2454 s,@build_alias@,$build_alias,;t t
2455 s,@host_alias@,$host_alias,;t t
2456 s,@target_alias@,$target_alias,;t t
2457 s,@ECHO_C@,$ECHO_C,;t t
2458 s,@ECHO_N@,$ECHO_N,;t t
2459 s,@ECHO_T@,$ECHO_T,;t t
2460 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2461 s,@DEFS@,$DEFS,;t t
2462 s,@LIBS@,$LIBS,;t t
2463 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2464 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2465 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2466 s,@PACKAGE@,$PACKAGE,;t t
2467 s,@VERSION@,$VERSION,;t t
2468 s,@ACLOCAL@,$ACLOCAL,;t t
2469 s,@AUTOCONF@,$AUTOCONF,;t t
2470 s,@AUTOMAKE@,$AUTOMAKE,;t t
2471 s,@AUTOHEADER@,$AUTOHEADER,;t t
2472 s,@MAKEINFO@,$MAKEINFO,;t t
2473 s,@SET_MAKE@,$SET_MAKE,;t t
2474 s,@CC@,$CC,;t t
2475 s,@CFLAGS@,$CFLAGS,;t t
2476 s,@LDFLAGS@,$LDFLAGS,;t t
2477 s,@CPPFLAGS@,$CPPFLAGS,;t t
2478 s,@ac_ct_CC@,$ac_ct_CC,;t t
2479 s,@EXEEXT@,$EXEEXT,;t t
2480 s,@OBJEXT@,$OBJEXT,;t t
2481 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
2482 s,@LIBFTDI_CFLAGS@,$LIBFTDI_CFLAGS,;t t
2483 s,@LIBFTDI_LIBS@,$LIBFTDI_LIBS,;t t
2484 CEOF
2485
2486 EOF
2487
2488   cat >>$CONFIG_STATUS <<\EOF
2489   # Split the substitutions into bite-sized pieces for seds with
2490   # small command number limits, like on Digital OSF/1 and HP-UX.
2491   ac_max_sed_lines=48
2492   ac_sed_frag=1 # Number of current file.
2493   ac_beg=1 # First line for current file.
2494   ac_end=$ac_max_sed_lines # Line after last line for current file.
2495   ac_more_lines=:
2496   ac_sed_cmds=
2497   while $ac_more_lines; do
2498     if test $ac_beg -gt 1; then
2499       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2500     else
2501       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2502     fi
2503     if test ! -s $tmp/subs.frag; then
2504       ac_more_lines=false
2505     else
2506       # The purpose of the label and of the branching condition is to
2507       # speed up the sed processing (if there are no `@' at all, there
2508       # is no need to browse any of the substitutions).
2509       # These are the two extra sed commands mentioned above.
2510       (echo ':t
2511   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2512       if test -z "$ac_sed_cmds"; then
2513         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2514       else
2515         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2516       fi
2517       ac_sed_frag=`expr $ac_sed_frag + 1`
2518       ac_beg=$ac_end
2519       ac_end=`expr $ac_end + $ac_max_sed_lines`
2520     fi
2521   done
2522   if test -z "$ac_sed_cmds"; then
2523     ac_sed_cmds=cat
2524   fi
2525 fi # test -n "$CONFIG_FILES"
2526
2527 EOF
2528 cat >>$CONFIG_STATUS <<\EOF
2529 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2530   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2531   case $ac_file in
2532   - | *:- | *:-:* ) # input from stdin
2533         cat >$tmp/stdin
2534         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2535         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2536   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2537         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2538   * )   ac_file_in=$ac_file.in ;;
2539   esac
2540
2541   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2542   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2543          X"$ac_file" : 'X\(//\)[^/]' \| \
2544          X"$ac_file" : 'X\(//\)$' \| \
2545          X"$ac_file" : 'X\(/\)' \| \
2546          .     : '\(.\)' 2>/dev/null ||
2547 echo X"$ac_file" |
2548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2549           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2550           /^X\(\/\/\)$/{ s//\1/; q; }
2551           /^X\(\/\).*/{ s//\1/; q; }
2552           s/.*/./; q'`
2553   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2554     { case "$ac_dir" in
2555   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2556   *)                      as_incr_dir=.;;
2557 esac
2558 as_dummy="$ac_dir"
2559 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2560   case $as_mkdir_dir in
2561     # Skip DOS drivespec
2562     ?:) as_incr_dir=$as_mkdir_dir ;;
2563     *)
2564       as_incr_dir=$as_incr_dir/$as_mkdir_dir
2565       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2566     ;;
2567   esac
2568 done; }
2569
2570     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2571     # A "../" for each directory in $ac_dir_suffix.
2572     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2573   else
2574     ac_dir_suffix= ac_dots=
2575   fi
2576
2577   case $srcdir in
2578   .)  ac_srcdir=.
2579       if test -z "$ac_dots"; then
2580          ac_top_srcdir=.
2581       else
2582          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2583       fi ;;
2584   [\\/]* | ?:[\\/]* )
2585       ac_srcdir=$srcdir$ac_dir_suffix;
2586       ac_top_srcdir=$srcdir ;;
2587   *) # Relative path.
2588     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2589     ac_top_srcdir=$ac_dots$srcdir ;;
2590   esac
2591
2592   case $INSTALL in
2593   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2594   *) ac_INSTALL=$ac_dots$INSTALL ;;
2595   esac
2596
2597   if test x"$ac_file" != x-; then
2598     { echo "$as_me:2598: creating $ac_file" >&5
2599 echo "$as_me: creating $ac_file" >&6;}
2600     rm -f "$ac_file"
2601   fi
2602   # Let's still pretend it is `configure' which instantiates (i.e., don't
2603   # use $as_me), people would be surprised to read:
2604   #    /* config.h.  Generated automatically by config.status.  */
2605   configure_input="Generated automatically from `echo $ac_file_in |
2606                                                  sed 's,.*/,,'` by configure."
2607
2608   # First look for the input files in the build tree, otherwise in the
2609   # src tree.
2610   ac_file_inputs=`IFS=:
2611     for f in $ac_file_in; do
2612       case $f in
2613       -) echo $tmp/stdin ;;
2614       [\\/$]*)
2615          # Absolute (can't be DOS-style, as IFS=:)
2616          test -f "$f" || { { echo "$as_me:2616: error: cannot find input file: $f" >&5
2617 echo "$as_me: error: cannot find input file: $f" >&2;}
2618    { (exit 1); exit 1; }; }
2619          echo $f;;
2620       *) # Relative
2621          if test -f "$f"; then
2622            # Build tree
2623            echo $f
2624          elif test -f "$srcdir/$f"; then
2625            # Source tree
2626            echo $srcdir/$f
2627          else
2628            # /dev/null tree
2629            { { echo "$as_me:2629: error: cannot find input file: $f" >&5
2630 echo "$as_me: error: cannot find input file: $f" >&2;}
2631    { (exit 1); exit 1; }; }
2632          fi;;
2633       esac
2634     done` || { (exit 1); exit 1; }
2635 EOF
2636 cat >>$CONFIG_STATUS <<EOF
2637   sed "$ac_vpsub
2638 $extrasub
2639 EOF
2640 cat >>$CONFIG_STATUS <<\EOF
2641 :t
2642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2643 s,@configure_input@,$configure_input,;t t
2644 s,@srcdir@,$ac_srcdir,;t t
2645 s,@top_srcdir@,$ac_top_srcdir,;t t
2646 s,@INSTALL@,$ac_INSTALL,;t t
2647 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2648   rm -f $tmp/stdin
2649   if test x"$ac_file" != x-; then
2650     mv $tmp/out $ac_file
2651   else
2652     cat $tmp/out
2653     rm -f $tmp/out
2654   fi
2655
2656 done
2657 EOF
2658 cat >>$CONFIG_STATUS <<\EOF
2659
2660 #
2661 # CONFIG_HEADER section.
2662 #
2663
2664 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2665 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2666 #
2667 # ac_d sets the value in "#define NAME VALUE" lines.
2668 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2669 ac_dB='[        ].*$,\1#\2'
2670 ac_dC=' '
2671 ac_dD=',;t'
2672 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2673 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2674 ac_uB='$,\1#\2define\3'
2675 ac_uC=' '
2676 ac_uD=',;t'
2677
2678 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2679   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2680   case $ac_file in
2681   - | *:- | *:-:* ) # input from stdin
2682         cat >$tmp/stdin
2683         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2684         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2685   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2686         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2687   * )   ac_file_in=$ac_file.in ;;
2688   esac
2689
2690   test x"$ac_file" != x- && { echo "$as_me:2690: creating $ac_file" >&5
2691 echo "$as_me: creating $ac_file" >&6;}
2692
2693   # First look for the input files in the build tree, otherwise in the
2694   # src tree.
2695   ac_file_inputs=`IFS=:
2696     for f in $ac_file_in; do
2697       case $f in
2698       -) echo $tmp/stdin ;;
2699       [\\/$]*)
2700          # Absolute (can't be DOS-style, as IFS=:)
2701          test -f "$f" || { { echo "$as_me:2701: error: cannot find input file: $f" >&5
2702 echo "$as_me: error: cannot find input file: $f" >&2;}
2703    { (exit 1); exit 1; }; }
2704          echo $f;;
2705       *) # Relative
2706          if test -f "$f"; then
2707            # Build tree
2708            echo $f
2709          elif test -f "$srcdir/$f"; then
2710            # Source tree
2711            echo $srcdir/$f
2712          else
2713            # /dev/null tree
2714            { { echo "$as_me:2714: error: cannot find input file: $f" >&5
2715 echo "$as_me: error: cannot find input file: $f" >&2;}
2716    { (exit 1); exit 1; }; }
2717          fi;;
2718       esac
2719     done` || { (exit 1); exit 1; }
2720   # Remove the trailing spaces.
2721   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
2722
2723 EOF
2724
2725 # Transform confdefs.h into two sed scripts, `conftest.defines' and
2726 # `conftest.undefs', that substitutes the proper values into
2727 # config.h.in to produce config.h.  The first handles `#define'
2728 # templates, and the second `#undef' templates.
2729 # And first: Protect against being on the right side of a sed subst in
2730 # config.status.  Protect against being in an unquoted here document
2731 # in config.status.
2732 rm -f conftest.defines conftest.undefs
2733 # Using a here document instead of a string reduces the quoting nightmare.
2734 # Putting comments in sed scripts is not portable.
2735 #
2736 # `end' is used to avoid that the second main sed command (meant for
2737 # 0-ary CPP macros) applies to n-ary macro definitions.
2738 # See the Autoconf documentation for `clear'.
2739 cat >confdef2sed.sed <<\EOF
2740 s/[\\&,]/\\&/g
2741 s,[\\$`],\\&,g
2742 t clear
2743 : clear
2744 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
2745 t end
2746 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2747 : end
2748 EOF
2749 # If some macros were called several times there might be several times
2750 # the same #defines, which is useless.  Nevertheless, we may not want to
2751 # sort them, since we want the *last* AC-DEFINE to be honored.
2752 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
2753 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
2754 rm -f confdef2sed.sed
2755
2756 # This sed command replaces #undef with comments.  This is necessary, for
2757 # example, in the case of _POSIX_SOURCE, which is predefined and required
2758 # on some systems where configure will not decide to define it.
2759 cat >>conftest.undefs <<\EOF
2760 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
2761 EOF
2762
2763 # Break up conftest.defines because some shells have a limit on the size
2764 # of here documents, and old seds have small limits too (100 cmds).
2765 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
2766 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
2767 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
2768 echo '  :' >>$CONFIG_STATUS
2769 rm -f conftest.tail
2770 while grep . conftest.defines >/dev/null
2771 do
2772   # Write a limited-size here document to $tmp/defines.sed.
2773   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
2774   # Speed up: don't consider the non `#define' lines.
2775   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
2776   # Work around the forget-to-reset-the-flag bug.
2777   echo 't clr' >>$CONFIG_STATUS
2778   echo ': clr' >>$CONFIG_STATUS
2779   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
2780   echo 'CEOF
2781   sed -f $tmp/defines.sed $tmp/in >$tmp/out
2782   rm -f $tmp/in
2783   mv $tmp/out $tmp/in
2784 ' >>$CONFIG_STATUS
2785   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
2786   rm -f conftest.defines
2787   mv conftest.tail conftest.defines
2788 done
2789 rm -f conftest.defines
2790 echo '  fi # egrep' >>$CONFIG_STATUS
2791 echo >>$CONFIG_STATUS
2792
2793 # Break up conftest.undefs because some shells have a limit on the size
2794 # of here documents, and old seds have small limits too (100 cmds).
2795 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
2796 rm -f conftest.tail
2797 while grep . conftest.undefs >/dev/null
2798 do
2799   # Write a limited-size here document to $tmp/undefs.sed.
2800   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
2801   # Speed up: don't consider the non `#undef'
2802   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
2803   # Work around the forget-to-reset-the-flag bug.
2804   echo 't clr' >>$CONFIG_STATUS
2805   echo ': clr' >>$CONFIG_STATUS
2806   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2807   echo 'CEOF
2808   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
2809   rm -f $tmp/in
2810   mv $tmp/out $tmp/in
2811 ' >>$CONFIG_STATUS
2812   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
2813   rm -f conftest.undefs
2814   mv conftest.tail conftest.undefs
2815 done
2816 rm -f conftest.undefs
2817
2818 cat >>$CONFIG_STATUS <<\EOF
2819   # Let's still pretend it is `configure' which instantiates (i.e., don't
2820   # use $as_me), people would be surprised to read:
2821   #    /* config.h.  Generated automatically by config.status.  */
2822   if test x"$ac_file" = x-; then
2823     echo "/* Generated automatically by configure.  */" >$tmp/config.h
2824   else
2825     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
2826   fi
2827   cat $tmp/in >>$tmp/config.h
2828   rm -f $tmp/in
2829   if test x"$ac_file" != x-; then
2830     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
2831       { echo "$as_me:2831: $ac_file is unchanged" >&5
2832 echo "$as_me: $ac_file is unchanged" >&6;}
2833     else
2834       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2835          X"$ac_file" : 'X\(//\)[^/]' \| \
2836          X"$ac_file" : 'X\(//\)$' \| \
2837          X"$ac_file" : 'X\(/\)' \| \
2838          .     : '\(.\)' 2>/dev/null ||
2839 echo X"$ac_file" |
2840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2842           /^X\(\/\/\)$/{ s//\1/; q; }
2843           /^X\(\/\).*/{ s//\1/; q; }
2844           s/.*/./; q'`
2845       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2846         { case "$ac_dir" in
2847   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2848   *)                      as_incr_dir=.;;
2849 esac
2850 as_dummy="$ac_dir"
2851 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2852   case $as_mkdir_dir in
2853     # Skip DOS drivespec
2854     ?:) as_incr_dir=$as_mkdir_dir ;;
2855     *)
2856       as_incr_dir=$as_incr_dir/$as_mkdir_dir
2857       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2858     ;;
2859   esac
2860 done; }
2861
2862       fi
2863       rm -f $ac_file
2864       mv $tmp/config.h $ac_file
2865     fi
2866   else
2867     cat $tmp/config.h
2868     rm -f $tmp/config.h
2869   fi
2870 done
2871 EOF
2872 cat >>$CONFIG_STATUS <<\EOF
2873
2874 #
2875 # CONFIG_COMMANDS section.
2876 #
2877 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
2878   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
2879   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
2880
2881   case $ac_dest in
2882     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
2883   esac
2884 done
2885 EOF
2886
2887 cat >>$CONFIG_STATUS <<\EOF
2888
2889 { (exit 0); exit 0; }
2890 EOF
2891 chmod +x $CONFIG_STATUS
2892 ac_clean_files=$ac_clean_files_save
2893
2894 # configure is writing to config.log, and then calls config.status.
2895 # config.status does its own redirection, appending to config.log.
2896 # Unfortunately, on DOS this fails, as config.log is still kept open
2897 # by configure, so config.status won't be able to write to it; its
2898 # output is simply discarded.  So we exec the FD to /dev/null,
2899 # effectively closing config.log, so it can be properly (re)opened and
2900 # appended to by config.status.  When coming back to configure, we
2901 # need to make the FD available again.
2902 if test "$no_create" != yes; then
2903   ac_cs_success=:
2904   exec 5>/dev/null
2905   $SHELL $CONFIG_STATUS || ac_cs_success=false
2906   exec 5>>config.log
2907   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2908   # would make configure fail if this is the last instruction.
2909   $ac_cs_success || { (exit 1); exit 1; }
2910 fi
2911