OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-maintainer-mode enable make rules and dependencies not useful
16                           (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18   --enable-shared[=PKGS]  build shared libraries [default=yes]"
19 ac_help="$ac_help
20   --enable-static[=PKGS]  build static libraries [default=yes]"
21 ac_help="$ac_help
22   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
23 ac_help="$ac_help
24   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26   --disable-libtool-lock  avoid locking (might break parallel builds)"
27 ac_help="$ac_help
28   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
29 ac_help="$ac_help
30   --enable-targets=LIST   support given additional targets, or all"
31
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 sitefile=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
66
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
73
74 ac_prev=
75 for ac_option
76 do
77
78   # If the previous option needs an argument, assign it.
79   if test -n "$ac_prev"; then
80     eval "$ac_prev=\$ac_option"
81     ac_prev=
82     continue
83   fi
84
85   case "$ac_option" in
86   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87   *) ac_optarg= ;;
88   esac
89
90   # Accept the important Cygnus configure options, so we can diagnose typos.
91
92   case "$ac_option" in
93
94   -bindir | --bindir | --bindi | --bind | --bin | --bi)
95     ac_prev=bindir ;;
96   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97     bindir="$ac_optarg" ;;
98
99   -build | --build | --buil | --bui | --bu)
100     ac_prev=build ;;
101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102     build="$ac_optarg" ;;
103
104   -cache-file | --cache-file | --cache-fil | --cache-fi \
105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106     ac_prev=cache_file ;;
107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109     cache_file="$ac_optarg" ;;
110
111   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112     ac_prev=datadir ;;
113   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114   | --da=*)
115     datadir="$ac_optarg" ;;
116
117   -disable-* | --disable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     eval "enable_${ac_feature}=no" ;;
125
126   -enable-* | --enable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     case "$ac_option" in
134       *=*) ;;
135       *) ac_optarg=yes ;;
136     esac
137     eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141   | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145   | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
147
148   -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
151
152   -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159   --cache-file=FILE       cache test results in FILE
160   --help                  print this message
161   --no-create             do not create output files
162   --quiet, --silent       do not print \`checking...' messages
163   --site-file=FILE        use FILE as the site file
164   --version               print the version of autoconf that created configure
165 Directory and file names:
166   --prefix=PREFIX         install architecture-independent files in PREFIX
167                           [$ac_default_prefix]
168   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
169                           [same as prefix]
170   --bindir=DIR            user executables in DIR [EPREFIX/bin]
171   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
172   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
173   --datadir=DIR           read-only architecture-independent data in DIR
174                           [PREFIX/share]
175   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
176   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
177                           [PREFIX/com]
178   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
179   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
180   --includedir=DIR        C header files in DIR [PREFIX/include]
181   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
182   --infodir=DIR           info documentation in DIR [PREFIX/info]
183   --mandir=DIR            man documentation in DIR [PREFIX/man]
184   --srcdir=DIR            find the sources in DIR [configure dir or ..]
185   --program-prefix=PREFIX prepend PREFIX to installed program names
186   --program-suffix=SUFFIX append SUFFIX to installed program names
187   --program-transform-name=PROGRAM
188                           run sed PROGRAM on installed program names
189 EOF
190     cat << EOF
191 Host type:
192   --build=BUILD           configure for building on BUILD [BUILD=HOST]
193   --host=HOST             configure for HOST [guessed]
194   --target=TARGET         configure for TARGET [TARGET=HOST]
195 Features and packages:
196   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
197   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
198   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
199   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
200   --x-includes=DIR        X include files are in DIR
201   --x-libraries=DIR       X library files are in DIR
202 EOF
203     if test -n "$ac_help"; then
204       echo "--enable and --with options recognized:$ac_help"
205     fi
206     exit 0 ;;
207
208   -host | --host | --hos | --ho)
209     ac_prev=host ;;
210   -host=* | --host=* | --hos=* | --ho=*)
211     host="$ac_optarg" ;;
212
213   -includedir | --includedir | --includedi | --included | --include \
214   | --includ | --inclu | --incl | --inc)
215     ac_prev=includedir ;;
216   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217   | --includ=* | --inclu=* | --incl=* | --inc=*)
218     includedir="$ac_optarg" ;;
219
220   -infodir | --infodir | --infodi | --infod | --info | --inf)
221     ac_prev=infodir ;;
222   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223     infodir="$ac_optarg" ;;
224
225   -libdir | --libdir | --libdi | --libd)
226     ac_prev=libdir ;;
227   -libdir=* | --libdir=* | --libdi=* | --libd=*)
228     libdir="$ac_optarg" ;;
229
230   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231   | --libexe | --libex | --libe)
232     ac_prev=libexecdir ;;
233   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234   | --libexe=* | --libex=* | --libe=*)
235     libexecdir="$ac_optarg" ;;
236
237   -localstatedir | --localstatedir | --localstatedi | --localstated \
238   | --localstate | --localstat | --localsta | --localst \
239   | --locals | --local | --loca | --loc | --lo)
240     ac_prev=localstatedir ;;
241   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244     localstatedir="$ac_optarg" ;;
245
246   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247     ac_prev=mandir ;;
248   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249     mandir="$ac_optarg" ;;
250
251   -nfp | --nfp | --nf)
252     # Obsolete; use --without-fp.
253     with_fp=no ;;
254
255   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256   | --no-cr | --no-c)
257     no_create=yes ;;
258
259   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261     no_recursion=yes ;;
262
263   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265   | --oldin | --oldi | --old | --ol | --o)
266     ac_prev=oldincludedir ;;
267   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270     oldincludedir="$ac_optarg" ;;
271
272   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273     ac_prev=prefix ;;
274   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275     prefix="$ac_optarg" ;;
276
277   -program-prefix | --program-prefix | --program-prefi | --program-pref \
278   | --program-pre | --program-pr | --program-p)
279     ac_prev=program_prefix ;;
280   -program-prefix=* | --program-prefix=* | --program-prefi=* \
281   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282     program_prefix="$ac_optarg" ;;
283
284   -program-suffix | --program-suffix | --program-suffi | --program-suff \
285   | --program-suf | --program-su | --program-s)
286     ac_prev=program_suffix ;;
287   -program-suffix=* | --program-suffix=* | --program-suffi=* \
288   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289     program_suffix="$ac_optarg" ;;
290
291   -program-transform-name | --program-transform-name \
292   | --program-transform-nam | --program-transform-na \
293   | --program-transform-n | --program-transform- \
294   | --program-transform | --program-transfor \
295   | --program-transfo | --program-transf \
296   | --program-trans | --program-tran \
297   | --progr-tra | --program-tr | --program-t)
298     ac_prev=program_transform_name ;;
299   -program-transform-name=* | --program-transform-name=* \
300   | --program-transform-nam=* | --program-transform-na=* \
301   | --program-transform-n=* | --program-transform-=* \
302   | --program-transform=* | --program-transfor=* \
303   | --program-transfo=* | --program-transf=* \
304   | --program-trans=* | --program-tran=* \
305   | --progr-tra=* | --program-tr=* | --program-t=*)
306     program_transform_name="$ac_optarg" ;;
307
308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309   | -silent | --silent | --silen | --sile | --sil)
310     silent=yes ;;
311
312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313     ac_prev=sbindir ;;
314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315   | --sbi=* | --sb=*)
316     sbindir="$ac_optarg" ;;
317
318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320   | --sharedst | --shareds | --shared | --share | --shar \
321   | --sha | --sh)
322     ac_prev=sharedstatedir ;;
323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326   | --sha=* | --sh=*)
327     sharedstatedir="$ac_optarg" ;;
328
329   -site | --site | --sit)
330     ac_prev=site ;;
331   -site=* | --site=* | --sit=*)
332     site="$ac_optarg" ;;
333
334   -site-file | --site-file | --site-fil | --site-fi | --site-f)
335     ac_prev=sitefile ;;
336   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
337     sitefile="$ac_optarg" ;;
338
339   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340     ac_prev=srcdir ;;
341   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342     srcdir="$ac_optarg" ;;
343
344   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345   | --syscon | --sysco | --sysc | --sys | --sy)
346     ac_prev=sysconfdir ;;
347   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349     sysconfdir="$ac_optarg" ;;
350
351   -target | --target | --targe | --targ | --tar | --ta | --t)
352     ac_prev=target ;;
353   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354     target="$ac_optarg" ;;
355
356   -v | -verbose | --verbose | --verbos | --verbo | --verb)
357     verbose=yes ;;
358
359   -version | --version | --versio | --versi | --vers)
360     echo "configure generated by autoconf version 2.13"
361     exit 0 ;;
362
363   -with-* | --with-*)
364     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365     # Reject names that are not valid shell variable names.
366     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368     fi
369     ac_package=`echo $ac_package| sed 's/-/_/g'`
370     case "$ac_option" in
371       *=*) ;;
372       *) ac_optarg=yes ;;
373     esac
374     eval "with_${ac_package}='$ac_optarg'" ;;
375
376   -without-* | --without-*)
377     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378     # Reject names that are not valid shell variable names.
379     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381     fi
382     ac_package=`echo $ac_package| sed 's/-/_/g'`
383     eval "with_${ac_package}=no" ;;
384
385   --x)
386     # Obsolete; use --with-x.
387     with_x=yes ;;
388
389   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390   | --x-incl | --x-inc | --x-in | --x-i)
391     ac_prev=x_includes ;;
392   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394     x_includes="$ac_optarg" ;;
395
396   -x-libraries | --x-libraries | --x-librarie | --x-librari \
397   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398     ac_prev=x_libraries ;;
399   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401     x_libraries="$ac_optarg" ;;
402
403   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404     ;;
405
406   *)
407     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408       echo "configure: warning: $ac_option: invalid host type" 1>&2
409     fi
410     if test "x$nonopt" != xNONE; then
411       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412     fi
413     nonopt="$ac_option"
414     ;;
415
416   esac
417 done
418
419 if test -n "$ac_prev"; then
420   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 fi
422
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424
425 # File descriptor usage:
426 # 0 standard input
427 # 1 file creation
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
434   exec 6>/dev/null
435 else
436   exec 6>&1
437 fi
438 exec 5>./config.log
439
440 echo "\
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
443 " 1>&5
444
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
447 ac_configure_args=
448 for ac_arg
449 do
450   case "$ac_arg" in
451   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452   | --no-cr | --no-c) ;;
453   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458   esac
459 done
460
461 # NLS nuisances.
462 # Only set these to C if already set.  These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
470
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 echo > confdefs.h
475
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=Makefile.in
479
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482   ac_srcdir_defaulted=yes
483   # Try the directory containing this script, then its parent.
484   ac_prog=$0
485   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487   srcdir=$ac_confdir
488   if test ! -r $srcdir/$ac_unique_file; then
489     srcdir=..
490   fi
491 else
492   ac_srcdir_defaulted=no
493 fi
494 if test ! -r $srcdir/$ac_unique_file; then
495   if test "$ac_srcdir_defaulted" = yes; then
496     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497   else
498     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499   fi
500 fi
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$sitefile"; then
505   if test -z "$CONFIG_SITE"; then
506     if test "x$prefix" != xNONE; then
507       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508     else
509       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510     fi
511   fi
512 else
513   CONFIG_SITE="$sitefile"
514 fi
515 for ac_site_file in $CONFIG_SITE; do
516   if test -r "$ac_site_file"; then
517     echo "loading site script $ac_site_file"
518     . "$ac_site_file"
519   fi
520 done
521
522 if test -r "$cache_file"; then
523   echo "loading cache $cache_file"
524   . $cache_file
525 else
526   echo "creating cache $cache_file"
527   > $cache_file
528 fi
529
530 ac_ext=c
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
536
537 ac_exeext=
538 ac_objext=o
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542     ac_n= ac_c='
543 ' ac_t='        '
544   else
545     ac_n=-n ac_c= ac_t=
546   fi
547 else
548   ac_n= ac_c='\c' ac_t=
549 fi
550
551
552 ac_aux_dir=
553 for ac_dir in ../config $srcdir/../config; do
554   if test -f $ac_dir/install-sh; then
555     ac_aux_dir=$ac_dir
556     ac_install_sh="$ac_aux_dir/install-sh -c"
557     break
558   elif test -f $ac_dir/install.sh; then
559     ac_aux_dir=$ac_dir
560     ac_install_sh="$ac_aux_dir/install.sh -c"
561     break
562   fi
563 done
564 if test -z "$ac_aux_dir"; then
565   { echo "configure: error: can not find install-sh or install.sh in ../config $srcdir/../config" 1>&2; exit 1; }
566 fi
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
570
571 # Find a good install program.  We prefer a C program (faster),
572 # so one script is as good as another.  But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
576 # IRIX /sbin/install
577 # AIX /bin/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586   echo $ac_n "(cached) $ac_c" 1>&6
587 else
588     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
589   for ac_dir in $PATH; do
590     # Account for people who put trailing slashes in PATH elements.
591     case "$ac_dir/" in
592     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
593     *)
594       # OSF1 and SCO ODT 3.0 have their own names for install.
595       # Don't use installbsd from OSF since it installs stuff as root
596       # by default.
597       for ac_prog in ginstall scoinst install; do
598         if test -f $ac_dir/$ac_prog; then
599           if test $ac_prog = install &&
600             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601             # AIX install.  It has an incompatible calling convention.
602             :
603           else
604             ac_cv_path_install="$ac_dir/$ac_prog -c"
605             break 2
606           fi
607         fi
608       done
609       ;;
610     esac
611   done
612   IFS="$ac_save_IFS"
613
614 fi
615   if test "${ac_cv_path_install+set}" = set; then
616     INSTALL="$ac_cv_path_install"
617   else
618     # As a last resort, use the slow shell script.  We don't cache a
619     # path for INSTALL within a source directory, because that will
620     # break other packages using the cache if that directory is
621     # removed, or if the path is relative.
622     INSTALL="$ac_install_sh"
623   fi
624 fi
625 echo "$ac_t""$INSTALL" 1>&6
626
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
630
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
632
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
634
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
637 # Just in case
638 sleep 1
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments.  Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
644 # directory).
645 if (
646    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647    if test "$*" = "X"; then
648       # -L didn't work.
649       set X `ls -t $srcdir/configure conftestfile`
650    fi
651    if test "$*" != "X $srcdir/configure conftestfile" \
652       && test "$*" != "X conftestfile $srcdir/configure"; then
653
654       # If neither matched, then we have a broken ls.  This can happen
655       # if, for instance, CONFIG_SHELL is bash and it inherits a
656       # broken ls alias from the environment.  This has actually
657       # happened.  Such a system could not be considered "sane".
658       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
660    fi
661
662    test "$2" = conftestfile
663    )
664 then
665    # Ok.
666    :
667 else
668    { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
670 fi
671 rm -f conftest*
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674   program_transform_name=
675 else
676   # Double any \ or $.  echo might interpret backslashes.
677   cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
679 EOF_SED
680   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681   rm -f conftestsed
682 fi
683 test "$program_prefix" != NONE &&
684   program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
688
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
691
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696   echo $ac_n "(cached) $ac_c" 1>&6
697 else
698   cat > conftestmake <<\EOF
699 all:
700         @echo 'ac_maketemp="${MAKE}"'
701 EOF
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705   eval ac_cv_prog_make_${ac_make}_set=yes
706 else
707   eval ac_cv_prog_make_${ac_make}_set=no
708 fi
709 rm -f conftestmake
710 fi
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712   echo "$ac_t""yes" 1>&6
713   SET_MAKE=
714 else
715   echo "$ac_t""no" 1>&6
716   SET_MAKE="MAKE=${MAKE-make}"
717 fi
718
719
720 PACKAGE=sidcomp
721
722 VERSION=0.1
723
724 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
725   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
726 fi
727 cat >> confdefs.h <<EOF
728 #define PACKAGE "$PACKAGE"
729 EOF
730
731 cat >> confdefs.h <<EOF
732 #define VERSION "$VERSION"
733 EOF
734
735
736
737 missing_dir=`cd $ac_aux_dir && pwd`
738 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
739 echo "configure:740: checking for working aclocal" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf.  Sigh.
743 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
744    ACLOCAL=aclocal
745    echo "$ac_t""found" 1>&6
746 else
747    ACLOCAL="$missing_dir/missing aclocal"
748    echo "$ac_t""missing" 1>&6
749 fi
750
751 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoconf" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf.  Sigh.
756 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
757    AUTOCONF=autoconf
758    echo "$ac_t""found" 1>&6
759 else
760    AUTOCONF="$missing_dir/missing autoconf"
761    echo "$ac_t""missing" 1>&6
762 fi
763
764 echo $ac_n "checking for working automake""... $ac_c" 1>&6
765 echo "configure:766: checking for working automake" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf.  Sigh.
769 if (automake --version) < /dev/null > /dev/null 2>&1; then
770    AUTOMAKE=automake
771    echo "$ac_t""found" 1>&6
772 else
773    AUTOMAKE="$missing_dir/missing automake"
774    echo "$ac_t""missing" 1>&6
775 fi
776
777 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
778 echo "configure:779: checking for working autoheader" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf.  Sigh.
782 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
783    AUTOHEADER=autoheader
784    echo "$ac_t""found" 1>&6
785 else
786    AUTOHEADER="$missing_dir/missing autoheader"
787    echo "$ac_t""missing" 1>&6
788 fi
789
790 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
791 echo "configure:792: checking for working makeinfo" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf.  Sigh.
795 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
796    MAKEINFO=makeinfo
797    echo "$ac_t""found" 1>&6
798 else
799    MAKEINFO="$missing_dir/missing makeinfo"
800    echo "$ac_t""missing" 1>&6
801 fi
802
803
804
805
806
807
808 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
809 echo "configure:810: checking whether to enable maintainer-specific portions of Makefiles" >&5
810     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
811 if test "${enable_maintainer_mode+set}" = set; then
812   enableval="$enable_maintainer_mode"
813   USE_MAINTAINER_MODE=$enableval
814 else
815   USE_MAINTAINER_MODE=no
816 fi
817
818   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
819   
820
821 if test $USE_MAINTAINER_MODE = yes; then
822   MAINTAINER_MODE_TRUE=
823   MAINTAINER_MODE_FALSE='#'
824 else
825   MAINTAINER_MODE_TRUE='#'
826   MAINTAINER_MODE_FALSE=
827 fi
828   MAINT=$MAINTAINER_MODE_TRUE
829   
830
831
832 # Check whether --enable-shared or --disable-shared was given.
833 if test "${enable_shared+set}" = set; then
834   enableval="$enable_shared"
835   p=${PACKAGE-default}
836 case "$enableval" in
837 yes) enable_shared=yes ;;
838 no) enable_shared=no ;;
839 *)
840   enable_shared=no
841   # Look at the argument we got.  We use all the common list separators.
842   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
843   for pkg in $enableval; do
844     if test "X$pkg" = "X$p"; then
845       enable_shared=yes
846     fi
847   done
848   IFS="$ac_save_ifs"
849   ;;
850 esac
851 else
852   enable_shared=yes
853 fi
854
855 # Check whether --enable-static or --disable-static was given.
856 if test "${enable_static+set}" = set; then
857   enableval="$enable_static"
858   p=${PACKAGE-default}
859 case "$enableval" in
860 yes) enable_static=yes ;;
861 no) enable_static=no ;;
862 *)
863   enable_static=no
864   # Look at the argument we got.  We use all the common list separators.
865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
866   for pkg in $enableval; do
867     if test "X$pkg" = "X$p"; then
868       enable_static=yes
869     fi
870   done
871   IFS="$ac_save_ifs"
872   ;;
873 esac
874 else
875   enable_static=yes
876 fi
877
878 # Check whether --enable-fast-install or --disable-fast-install was given.
879 if test "${enable_fast_install+set}" = set; then
880   enableval="$enable_fast_install"
881   p=${PACKAGE-default}
882 case "$enableval" in
883 yes) enable_fast_install=yes ;;
884 no) enable_fast_install=no ;;
885 *)
886   enable_fast_install=no
887   # Look at the argument we got.  We use all the common list separators.
888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
889   for pkg in $enableval; do
890     if test "X$pkg" = "X$p"; then
891       enable_fast_install=yes
892     fi
893   done
894   IFS="$ac_save_ifs"
895   ;;
896 esac
897 else
898   enable_fast_install=yes
899 fi
900
901
902 # Make sure we can run config.sub.
903 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
904 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
905 fi
906
907 echo $ac_n "checking host system type""... $ac_c" 1>&6
908 echo "configure:909: checking host system type" >&5
909
910 host_alias=$host
911 case "$host_alias" in
912 NONE)
913   case $nonopt in
914   NONE)
915     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
916     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
917     fi ;;
918   *) host_alias=$nonopt ;;
919   esac ;;
920 esac
921
922 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
923 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
924 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
925 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
926 echo "$ac_t""$host" 1>&6
927
928 echo $ac_n "checking build system type""... $ac_c" 1>&6
929 echo "configure:930: checking build system type" >&5
930
931 build_alias=$build
932 case "$build_alias" in
933 NONE)
934   case $nonopt in
935   NONE) build_alias=$host_alias ;;
936   *) build_alias=$nonopt ;;
937   esac ;;
938 esac
939
940 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
941 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
944 echo "$ac_t""$build" 1>&6
945
946 # Extract the first word of "gcc", so it can be a program name with args.
947 set dummy gcc; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
951   echo $ac_n "(cached) $ac_c" 1>&6
952 else
953   if test -n "$CC"; then
954   ac_cv_prog_CC="$CC" # Let the user override the test.
955 else
956   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
957   ac_dummy="$PATH"
958   for ac_dir in $ac_dummy; do
959     test -z "$ac_dir" && ac_dir=.
960     if test -f $ac_dir/$ac_word; then
961       ac_cv_prog_CC="gcc"
962       break
963     fi
964   done
965   IFS="$ac_save_ifs"
966 fi
967 fi
968 CC="$ac_cv_prog_CC"
969 if test -n "$CC"; then
970   echo "$ac_t""$CC" 1>&6
971 else
972   echo "$ac_t""no" 1>&6
973 fi
974
975 if test -z "$CC"; then
976   # Extract the first word of "cc", so it can be a program name with args.
977 set dummy cc; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
981   echo $ac_n "(cached) $ac_c" 1>&6
982 else
983   if test -n "$CC"; then
984   ac_cv_prog_CC="$CC" # Let the user override the test.
985 else
986   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
987   ac_prog_rejected=no
988   ac_dummy="$PATH"
989   for ac_dir in $ac_dummy; do
990     test -z "$ac_dir" && ac_dir=.
991     if test -f $ac_dir/$ac_word; then
992       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
993         ac_prog_rejected=yes
994         continue
995       fi
996       ac_cv_prog_CC="cc"
997       break
998     fi
999   done
1000   IFS="$ac_save_ifs"
1001 if test $ac_prog_rejected = yes; then
1002   # We found a bogon in the path, so make sure we never use it.
1003   set dummy $ac_cv_prog_CC
1004   shift
1005   if test $# -gt 0; then
1006     # We chose a different compiler from the bogus one.
1007     # However, it has the same basename, so the bogon will be chosen
1008     # first if we set CC to just the basename; use the full file name.
1009     shift
1010     set dummy "$ac_dir/$ac_word" "$@"
1011     shift
1012     ac_cv_prog_CC="$@"
1013   fi
1014 fi
1015 fi
1016 fi
1017 CC="$ac_cv_prog_CC"
1018 if test -n "$CC"; then
1019   echo "$ac_t""$CC" 1>&6
1020 else
1021   echo "$ac_t""no" 1>&6
1022 fi
1023
1024   if test -z "$CC"; then
1025     case "`uname -s`" in
1026     *win32* | *WIN32*)
1027       # Extract the first word of "cl", so it can be a program name with args.
1028 set dummy cl; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032   echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034   if test -n "$CC"; then
1035   ac_cv_prog_CC="$CC" # Let the user override the test.
1036 else
1037   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1038   ac_dummy="$PATH"
1039   for ac_dir in $ac_dummy; do
1040     test -z "$ac_dir" && ac_dir=.
1041     if test -f $ac_dir/$ac_word; then
1042       ac_cv_prog_CC="cl"
1043       break
1044     fi
1045   done
1046   IFS="$ac_save_ifs"
1047 fi
1048 fi
1049 CC="$ac_cv_prog_CC"
1050 if test -n "$CC"; then
1051   echo "$ac_t""$CC" 1>&6
1052 else
1053   echo "$ac_t""no" 1>&6
1054 fi
1055  ;;
1056     esac
1057   fi
1058   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1059 fi
1060
1061 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1063
1064 ac_ext=c
1065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp='$CPP $CPPFLAGS'
1067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling=$ac_cv_prog_cc_cross
1070
1071 cat > conftest.$ac_ext << EOF
1072
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1075
1076 main(){return(0);}
1077 EOF
1078 if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1079   ac_cv_prog_cc_works=yes
1080   # If we can't run a trivial program, we are probably using a cross compiler.
1081   if (./conftest; exit) 2>/dev/null; then
1082     ac_cv_prog_cc_cross=no
1083   else
1084     ac_cv_prog_cc_cross=yes
1085   fi
1086 else
1087   echo "configure: failed program was:" >&5
1088   cat conftest.$ac_ext >&5
1089   ac_cv_prog_cc_works=no
1090 fi
1091 rm -fr conftest*
1092 ac_ext=c
1093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1094 ac_cpp='$CPP $CPPFLAGS'
1095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1097 cross_compiling=$ac_cv_prog_cc_cross
1098
1099 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1100 if test $ac_cv_prog_cc_works = no; then
1101   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1102 fi
1103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1105 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1106 cross_compiling=$ac_cv_prog_cc_cross
1107
1108 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether we are using GNU C" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1111   echo $ac_n "(cached) $ac_c" 1>&6
1112 else
1113   cat > conftest.c <<EOF
1114 #ifdef __GNUC__
1115   yes;
1116 #endif
1117 EOF
1118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1119   ac_cv_prog_gcc=yes
1120 else
1121   ac_cv_prog_gcc=no
1122 fi
1123 fi
1124
1125 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1126
1127 if test $ac_cv_prog_gcc = yes; then
1128   GCC=yes
1129 else
1130   GCC=
1131 fi
1132
1133 ac_test_CFLAGS="${CFLAGS+set}"
1134 ac_save_CFLAGS="$CFLAGS"
1135 CFLAGS=
1136 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether ${CC-cc} accepts -g" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1139   echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141   echo 'void f(){}' > conftest.c
1142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1143   ac_cv_prog_cc_g=yes
1144 else
1145   ac_cv_prog_cc_g=no
1146 fi
1147 rm -f conftest*
1148
1149 fi
1150
1151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1152 if test "$ac_test_CFLAGS" = set; then
1153   CFLAGS="$ac_save_CFLAGS"
1154 elif test $ac_cv_prog_cc_g = yes; then
1155   if test "$GCC" = yes; then
1156     CFLAGS="-g -O2"
1157   else
1158     CFLAGS="-g"
1159   fi
1160 else
1161   if test "$GCC" = yes; then
1162     CFLAGS="-O2"
1163   else
1164     CFLAGS=
1165   fi
1166 fi
1167
1168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1169 if test "${with_gnu_ld+set}" = set; then
1170   withval="$with_gnu_ld"
1171   test "$withval" = no || with_gnu_ld=yes
1172 else
1173   with_gnu_ld=no
1174 fi
1175
1176 ac_prog=ld
1177 if test "$ac_cv_prog_gcc" = yes; then
1178   # Check if gcc -print-prog-name=ld gives a path.
1179   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1180 echo "configure:1181: checking for ld used by GCC" >&5
1181   case $host in
1182   *-*-mingw*)
1183     # gcc leaves a trailing carriage return which upsets mingw
1184     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1185   *)
1186     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1187   esac
1188   case "$ac_prog" in
1189     # Accept absolute paths.
1190     [\\/]* | [A-Za-z]:[\\/]*)
1191       re_direlt='/[^/][^/]*/\.\./'
1192       # Canonicalize the path of ld
1193       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1194       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1195         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1196       done
1197       test -z "$LD" && LD="$ac_prog"
1198       ;;
1199   "")
1200     # If it fails, then pretend we aren't using GCC.
1201     ac_prog=ld
1202     ;;
1203   *)
1204     # If it is relative, then search for the first ld in PATH.
1205     with_gnu_ld=unknown
1206     ;;
1207   esac
1208 elif test "$with_gnu_ld" = yes; then
1209   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1210 echo "configure:1211: checking for GNU ld" >&5
1211 else
1212   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1213 echo "configure:1214: checking for non-GNU ld" >&5
1214 fi
1215 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1216   echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218   if test -z "$LD"; then
1219   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1220   for ac_dir in $PATH; do
1221     test -z "$ac_dir" && ac_dir=.
1222     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1223       ac_cv_path_LD="$ac_dir/$ac_prog"
1224       # Check to see if the program is GNU ld.  I'd rather use --version,
1225       # but apparently some GNU ld's only accept -v.
1226       # Break only if it was the GNU/non-GNU ld that we prefer.
1227       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1228         test "$with_gnu_ld" != no && break
1229       else
1230         test "$with_gnu_ld" != yes && break
1231       fi
1232     fi
1233   done
1234   IFS="$ac_save_ifs"
1235 else
1236   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1237 fi
1238 fi
1239
1240 LD="$ac_cv_path_LD"
1241 if test -n "$LD"; then
1242   echo "$ac_t""$LD" 1>&6
1243 else
1244   echo "$ac_t""no" 1>&6
1245 fi
1246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1247
1248 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking if the linker ($LD) is GNU ld" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1251   echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1254 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1255   ac_cv_prog_gnu_ld=yes
1256 else
1257   ac_cv_prog_gnu_ld=no
1258 fi
1259 fi
1260
1261 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1262
1263
1264 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1265 echo "configure:1266: checking for BSD-compatible nm" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1267   echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269   if test -n "$NM"; then
1270   # Let the user override the test.
1271   ac_cv_path_NM="$NM"
1272 else
1273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1274   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1275     test -z "$ac_dir" && ac_dir=.
1276     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1277       # Check to see if the nm accepts a BSD-compat flag.
1278       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1279       #   nm: unknown option "B" ignored
1280       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1281         ac_cv_path_NM="$ac_dir/nm -B"
1282         break
1283       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1284         ac_cv_path_NM="$ac_dir/nm -p"
1285         break
1286       else
1287         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1288         continue # so that we can try to find one that supports BSD flags
1289       fi
1290     fi
1291   done
1292   IFS="$ac_save_ifs"
1293   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1294 fi
1295 fi
1296
1297 NM="$ac_cv_path_NM"
1298 echo "$ac_t""$NM" 1>&6
1299
1300
1301 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether ln -s works" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1304   echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306   rm -f conftestdata
1307 if ln -s X conftestdata 2>/dev/null
1308 then
1309   rm -f conftestdata
1310   ac_cv_prog_LN_S="ln -s"
1311 else
1312   ac_cv_prog_LN_S=ln
1313 fi
1314 fi
1315 LN_S="$ac_cv_prog_LN_S"
1316 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1317   echo "$ac_t""yes" 1>&6
1318 else
1319   echo "$ac_t""no" 1>&6
1320 fi
1321
1322 if test $host != $build; then
1323   ac_tool_prefix=${host_alias}-
1324 else
1325   ac_tool_prefix=
1326 fi
1327
1328
1329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}ar; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1334   echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336   if test -n "$AR"; then
1337   ac_cv_prog_AR="$AR" # Let the user override the test.
1338 else
1339   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1340   ac_dummy="$PATH"
1341   for ac_dir in $ac_dummy; do
1342     test -z "$ac_dir" && ac_dir=.
1343     if test -f $ac_dir/$ac_word; then
1344       ac_cv_prog_AR="${ac_tool_prefix}ar"
1345       break
1346     fi
1347   done
1348   IFS="$ac_save_ifs"
1349   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1350 fi
1351 fi
1352 AR="$ac_cv_prog_AR"
1353 if test -n "$AR"; then
1354   echo "$ac_t""$AR" 1>&6
1355 else
1356   echo "$ac_t""no" 1>&6
1357 fi
1358
1359
1360
1361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1366   echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368   if test -n "$RANLIB"; then
1369   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1370 else
1371   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1372   ac_dummy="$PATH"
1373   for ac_dir in $ac_dummy; do
1374     test -z "$ac_dir" && ac_dir=.
1375     if test -f $ac_dir/$ac_word; then
1376       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1377       break
1378     fi
1379   done
1380   IFS="$ac_save_ifs"
1381 fi
1382 fi
1383 RANLIB="$ac_cv_prog_RANLIB"
1384 if test -n "$RANLIB"; then
1385   echo "$ac_t""$RANLIB" 1>&6
1386 else
1387   echo "$ac_t""no" 1>&6
1388 fi
1389
1390
1391 if test -z "$ac_cv_prog_RANLIB"; then
1392 if test -n "$ac_tool_prefix"; then
1393   # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1398   echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400   if test -n "$RANLIB"; then
1401   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1402 else
1403   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1404   ac_dummy="$PATH"
1405   for ac_dir in $ac_dummy; do
1406     test -z "$ac_dir" && ac_dir=.
1407     if test -f $ac_dir/$ac_word; then
1408       ac_cv_prog_RANLIB="ranlib"
1409       break
1410     fi
1411   done
1412   IFS="$ac_save_ifs"
1413   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1414 fi
1415 fi
1416 RANLIB="$ac_cv_prog_RANLIB"
1417 if test -n "$RANLIB"; then
1418   echo "$ac_t""$RANLIB" 1>&6
1419 else
1420   echo "$ac_t""no" 1>&6
1421 fi
1422
1423 else
1424   RANLIB=":"
1425 fi
1426 fi
1427
1428
1429 # Check for any special flags to pass to ltconfig.
1430 libtool_flags="--cache-file=$cache_file"
1431 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1432 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1433 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1434 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1435 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1436
1437 libtool_flags="$libtool_flags --enable-win32-dll"
1438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1439 if test "${enable_libtool_lock+set}" = set; then
1440   enableval="$enable_libtool_lock"
1441   :
1442 fi
1443
1444 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1445 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1446
1447 # Check whether --with-pic or --without-pic was given.
1448 if test "${with_pic+set}" = set; then
1449   withval="$with_pic"
1450   pic_mode="$withval"
1451 else
1452   pic_mode=default
1453 fi
1454
1455 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1456 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1457
1458 # Some flags need to be propagated to the compiler or linker for good
1459 # libtool support.
1460 case "$host" in
1461 *-*-irix6*)
1462   # Find out which ABI we are using.
1463   echo '#line 1464 "configure"' > conftest.$ac_ext
1464   if { (eval echo configure:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1465     case "`/usr/bin/file conftest.o`" in
1466     *32-bit*)
1467       LD="${LD-ld} -32"
1468       ;;
1469     *N32*)
1470       LD="${LD-ld} -n32"
1471       ;;
1472     *64-bit*)
1473       LD="${LD-ld} -64"
1474       ;;
1475     esac
1476   fi
1477   rm -rf conftest*
1478   ;;
1479
1480 *-*-sco3.2v5*)
1481   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1482   SAVE_CFLAGS="$CFLAGS"
1483   CFLAGS="$CFLAGS -belf"
1484   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether the C compiler needs -belf" >&5
1486 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1487   echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1489   cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492
1493 int main() {
1494
1495 ; return 0; }
1496 EOF
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1498   rm -rf conftest*
1499   lt_cv_cc_needs_belf=yes
1500 else
1501   echo "configure: failed program was:" >&5
1502   cat conftest.$ac_ext >&5
1503   rm -rf conftest*
1504   lt_cv_cc_needs_belf=no
1505 fi
1506 rm -f conftest*
1507 fi
1508
1509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1510   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1511     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1512     CFLAGS="$SAVE_CFLAGS"
1513   fi
1514   ;;
1515
1516 *-*-cygwin* | *-*-mingw*)
1517   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1522   echo $ac_n "(cached) $ac_c" 1>&6
1523 else
1524   if test -n "$DLLTOOL"; then
1525   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1526 else
1527   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1528   ac_dummy="$PATH"
1529   for ac_dir in $ac_dummy; do
1530     test -z "$ac_dir" && ac_dir=.
1531     if test -f $ac_dir/$ac_word; then
1532       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1533       break
1534     fi
1535   done
1536   IFS="$ac_save_ifs"
1537 fi
1538 fi
1539 DLLTOOL="$ac_cv_prog_DLLTOOL"
1540 if test -n "$DLLTOOL"; then
1541   echo "$ac_t""$DLLTOOL" 1>&6
1542 else
1543   echo "$ac_t""no" 1>&6
1544 fi
1545
1546
1547 if test -z "$ac_cv_prog_DLLTOOL"; then
1548 if test -n "$ac_tool_prefix"; then
1549   # Extract the first word of "dlltool", so it can be a program name with args.
1550 set dummy dlltool; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   if test -n "$DLLTOOL"; then
1557   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1558 else
1559   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1560   ac_dummy="$PATH"
1561   for ac_dir in $ac_dummy; do
1562     test -z "$ac_dir" && ac_dir=.
1563     if test -f $ac_dir/$ac_word; then
1564       ac_cv_prog_DLLTOOL="dlltool"
1565       break
1566     fi
1567   done
1568   IFS="$ac_save_ifs"
1569   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1570 fi
1571 fi
1572 DLLTOOL="$ac_cv_prog_DLLTOOL"
1573 if test -n "$DLLTOOL"; then
1574   echo "$ac_t""$DLLTOOL" 1>&6
1575 else
1576   echo "$ac_t""no" 1>&6
1577 fi
1578
1579 else
1580   DLLTOOL="false"
1581 fi
1582 fi
1583
1584   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}as; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1589   echo $ac_n "(cached) $ac_c" 1>&6
1590 else
1591   if test -n "$AS"; then
1592   ac_cv_prog_AS="$AS" # Let the user override the test.
1593 else
1594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1595   ac_dummy="$PATH"
1596   for ac_dir in $ac_dummy; do
1597     test -z "$ac_dir" && ac_dir=.
1598     if test -f $ac_dir/$ac_word; then
1599       ac_cv_prog_AS="${ac_tool_prefix}as"
1600       break
1601     fi
1602   done
1603   IFS="$ac_save_ifs"
1604 fi
1605 fi
1606 AS="$ac_cv_prog_AS"
1607 if test -n "$AS"; then
1608   echo "$ac_t""$AS" 1>&6
1609 else
1610   echo "$ac_t""no" 1>&6
1611 fi
1612
1613
1614 if test -z "$ac_cv_prog_AS"; then
1615 if test -n "$ac_tool_prefix"; then
1616   # Extract the first word of "as", so it can be a program name with args.
1617 set dummy as; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1621   echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623   if test -n "$AS"; then
1624   ac_cv_prog_AS="$AS" # Let the user override the test.
1625 else
1626   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1627   ac_dummy="$PATH"
1628   for ac_dir in $ac_dummy; do
1629     test -z "$ac_dir" && ac_dir=.
1630     if test -f $ac_dir/$ac_word; then
1631       ac_cv_prog_AS="as"
1632       break
1633     fi
1634   done
1635   IFS="$ac_save_ifs"
1636   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1637 fi
1638 fi
1639 AS="$ac_cv_prog_AS"
1640 if test -n "$AS"; then
1641   echo "$ac_t""$AS" 1>&6
1642 else
1643   echo "$ac_t""no" 1>&6
1644 fi
1645
1646 else
1647   AS="false"
1648 fi
1649 fi
1650
1651   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}objdump; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1656   echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658   if test -n "$OBJDUMP"; then
1659   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1660 else
1661   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1662   ac_dummy="$PATH"
1663   for ac_dir in $ac_dummy; do
1664     test -z "$ac_dir" && ac_dir=.
1665     if test -f $ac_dir/$ac_word; then
1666       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1667       break
1668     fi
1669   done
1670   IFS="$ac_save_ifs"
1671 fi
1672 fi
1673 OBJDUMP="$ac_cv_prog_OBJDUMP"
1674 if test -n "$OBJDUMP"; then
1675   echo "$ac_t""$OBJDUMP" 1>&6
1676 else
1677   echo "$ac_t""no" 1>&6
1678 fi
1679
1680
1681 if test -z "$ac_cv_prog_OBJDUMP"; then
1682 if test -n "$ac_tool_prefix"; then
1683   # Extract the first word of "objdump", so it can be a program name with args.
1684 set dummy objdump; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1688   echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690   if test -n "$OBJDUMP"; then
1691   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1692 else
1693   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1694   ac_dummy="$PATH"
1695   for ac_dir in $ac_dummy; do
1696     test -z "$ac_dir" && ac_dir=.
1697     if test -f $ac_dir/$ac_word; then
1698       ac_cv_prog_OBJDUMP="objdump"
1699       break
1700     fi
1701   done
1702   IFS="$ac_save_ifs"
1703   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
1704 fi
1705 fi
1706 OBJDUMP="$ac_cv_prog_OBJDUMP"
1707 if test -n "$OBJDUMP"; then
1708   echo "$ac_t""$OBJDUMP" 1>&6
1709 else
1710   echo "$ac_t""no" 1>&6
1711 fi
1712
1713 else
1714   OBJDUMP="false"
1715 fi
1716 fi
1717
1718
1719   # recent cygwin and mingw systems supply a stub DllMain which the user
1720   # can override, but on older systems we have to supply one
1721   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
1722 echo "configure:1723: checking if libtool should supply DllMain function" >&5
1723 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
1724   echo $ac_n "(cached) $ac_c" 1>&6
1725 else
1726   cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 DllMain (0, 0, 0);
1730 int main() {
1731 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1732 ; return 0; }
1733 EOF
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735   rm -rf conftest*
1736   lt_cv_need_dllmain=yes
1737 else
1738   echo "configure: failed program was:" >&5
1739   cat conftest.$ac_ext >&5
1740   rm -rf conftest*
1741   lt_cv_need_dllmain=no
1742 fi
1743 rm -f conftest*
1744 fi
1745
1746 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
1747
1748   case $host in
1749   *-*-cygwin*)
1750     # cygwin systems need to pass --dll to the linker, and not link
1751     # crt.o which will require a WinMain@16 definition.
1752     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1753   *-*-mingw*)
1754     # old mingw systems require "-dll" to link a DLL, while more recent ones
1755     # require "-mdll"
1756     SAVE_CFLAGS="$CFLAGS"
1757     CFLAGS="$CFLAGS -mdll"
1758     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
1759 echo "configure:1760: checking how to link DLLs" >&5
1760 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
1761   echo $ac_n "(cached) $ac_c" 1>&6
1762 else
1763   cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766
1767 int main() {
1768
1769 ; return 0; }
1770 EOF
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1772   rm -rf conftest*
1773   lt_cv_cc_dll_switch=-mdll
1774 else
1775   echo "configure: failed program was:" >&5
1776   cat conftest.$ac_ext >&5
1777   rm -rf conftest*
1778   lt_cv_cc_dll_switch=-dll
1779 fi
1780 rm -f conftest*
1781 fi
1782
1783 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
1784     CFLAGS="$SAVE_CFLAGS" ;;
1785   esac
1786   ;;
1787   
1788 esac
1789
1790
1791 # Save cache, so that ltconfig can load it
1792 cat > confcache <<\EOF
1793 # This file is a shell script that caches the results of configure
1794 # tests run on this system so they can be shared between configure
1795 # scripts and configure runs.  It is not useful on other systems.
1796 # If it contains results you don't want to keep, you may remove or edit it.
1797 #
1798 # By default, configure uses ./config.cache as the cache file,
1799 # creating it if it does not exist already.  You can give configure
1800 # the --cache-file=FILE option to use a different cache file; that is
1801 # what configure does when it calls configure scripts in
1802 # subdirectories, so they share the cache.
1803 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1804 # config.status only pays attention to the cache file if you give it the
1805 # --recheck option to rerun configure.
1806 #
1807 EOF
1808 # The following way of writing the cache mishandles newlines in values,
1809 # but we know of no workaround that is simple, portable, and efficient.
1810 # So, don't put newlines in cache variables' values.
1811 # Ultrix sh set writes to stderr and can't be redirected directly,
1812 # and sets the high bit in the cache file unless we assign to the vars.
1813 (set) 2>&1 |
1814   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1815   *ac_space=\ *)
1816     # `set' does not quote correctly, so add quotes (double-quote substitution
1817     # turns \\\\ into \\, and sed turns \\ into \).
1818     sed -n \
1819       -e "s/'/'\\\\''/g" \
1820       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1821     ;;
1822   *)
1823     # `set' quotes correctly as required by POSIX, so do not add quotes.
1824     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1825     ;;
1826   esac >> confcache
1827 if cmp -s $cache_file confcache; then
1828   :
1829 else
1830   if test -w $cache_file; then
1831     echo "updating cache $cache_file"
1832     cat confcache > $cache_file
1833   else
1834     echo "not updating unwritable cache $cache_file"
1835   fi
1836 fi
1837 rm -f confcache
1838
1839
1840 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1841 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1842 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1843 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1844 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1845 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1846 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1847 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1848
1849 # Reload cache, that may have been modified by ltconfig
1850 if test -r "$cache_file"; then
1851   echo "loading cache $cache_file"
1852   . $cache_file
1853 else
1854   echo "creating cache $cache_file"
1855   > $cache_file
1856 fi
1857
1858
1859 # This can be used to rebuild libtool when needed
1860 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1861
1862 # Always use our own libtool.
1863 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1864
1865 # Redirect the config.log output again, so that the ltconfig log is not
1866 # clobbered by the next message.
1867 exec 5>>./config.log
1868
1869
1870 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1871 echo "configure:1872: checking for Cygwin environment" >&5
1872 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1873   echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875   cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1878
1879 int main() {
1880
1881 #ifndef __CYGWIN__
1882 #define __CYGWIN__ __CYGWIN32__
1883 #endif
1884 return __CYGWIN__;
1885 ; return 0; }
1886 EOF
1887 if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888   rm -rf conftest*
1889   ac_cv_cygwin=yes
1890 else
1891   echo "configure: failed program was:" >&5
1892   cat conftest.$ac_ext >&5
1893   rm -rf conftest*
1894   ac_cv_cygwin=no
1895 fi
1896 rm -f conftest*
1897 rm -f conftest*
1898 fi
1899
1900 echo "$ac_t""$ac_cv_cygwin" 1>&6
1901 CYGWIN=
1902 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1903 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1904 echo "configure:1905: checking for mingw32 environment" >&5
1905 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1906   echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908   cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911
1912 int main() {
1913 return __MINGW32__;
1914 ; return 0; }
1915 EOF
1916 if { (eval echo configure:1917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1917   rm -rf conftest*
1918   ac_cv_mingw32=yes
1919 else
1920   echo "configure: failed program was:" >&5
1921   cat conftest.$ac_ext >&5
1922   rm -rf conftest*
1923   ac_cv_mingw32=no
1924 fi
1925 rm -f conftest*
1926 rm -f conftest*
1927 fi
1928
1929 echo "$ac_t""$ac_cv_mingw32" 1>&6
1930 MINGW32=
1931 test "$ac_cv_mingw32" = yes && MINGW32=yes
1932
1933
1934 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1935 echo "configure:1936: checking for executable suffix" >&5
1936 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1937   echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1940   ac_cv_exeext=.exe
1941 else
1942   rm -f conftest*
1943   echo 'int main () { return 0; }' > conftest.$ac_ext
1944   ac_cv_exeext=
1945   if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1946     for file in conftest.*; do
1947       case $file in
1948       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1949       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1950       esac
1951     done
1952   else
1953     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1954   fi
1955   rm -f conftest*
1956   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1957 fi
1958 fi
1959
1960 EXEEXT=""
1961 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1962 echo "$ac_t""${ac_cv_exeext}" 1>&6
1963 ac_exeext=$EXEEXT
1964
1965 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1966 do
1967 # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1970 echo "configure:1971: checking for $ac_word" >&5
1971 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1972   echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974   if test -n "$CXX"; then
1975   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1976 else
1977   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1978   ac_dummy="$PATH"
1979   for ac_dir in $ac_dummy; do
1980     test -z "$ac_dir" && ac_dir=.
1981     if test -f $ac_dir/$ac_word; then
1982       ac_cv_prog_CXX="$ac_prog"
1983       break
1984     fi
1985   done
1986   IFS="$ac_save_ifs"
1987 fi
1988 fi
1989 CXX="$ac_cv_prog_CXX"
1990 if test -n "$CXX"; then
1991   echo "$ac_t""$CXX" 1>&6
1992 else
1993   echo "$ac_t""no" 1>&6
1994 fi
1995
1996 test -n "$CXX" && break
1997 done
1998 test -n "$CXX" || CXX="gcc"
1999
2000
2001 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2002 echo "configure:2003: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2003
2004 ac_ext=C
2005 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2006 ac_cpp='$CXXCPP $CPPFLAGS'
2007 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2008 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2009 cross_compiling=$ac_cv_prog_cxx_cross
2010
2011 cat > conftest.$ac_ext << EOF
2012
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2015
2016 int main(){return(0);}
2017 EOF
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019   ac_cv_prog_cxx_works=yes
2020   # If we can't run a trivial program, we are probably using a cross compiler.
2021   if (./conftest; exit) 2>/dev/null; then
2022     ac_cv_prog_cxx_cross=no
2023   else
2024     ac_cv_prog_cxx_cross=yes
2025   fi
2026 else
2027   echo "configure: failed program was:" >&5
2028   cat conftest.$ac_ext >&5
2029   ac_cv_prog_cxx_works=no
2030 fi
2031 rm -fr conftest*
2032 ac_ext=c
2033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2037 cross_compiling=$ac_cv_prog_cc_cross
2038
2039 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2040 if test $ac_cv_prog_cxx_works = no; then
2041   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2042 fi
2043 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2044 echo "configure:2045: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2045 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2046 cross_compiling=$ac_cv_prog_cxx_cross
2047
2048 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether we are using GNU C++" >&5
2050 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2051   echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053   cat > conftest.C <<EOF
2054 #ifdef __GNUC__
2055   yes;
2056 #endif
2057 EOF
2058 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2059   ac_cv_prog_gxx=yes
2060 else
2061   ac_cv_prog_gxx=no
2062 fi
2063 fi
2064
2065 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2066
2067 if test $ac_cv_prog_gxx = yes; then
2068   GXX=yes
2069 else
2070   GXX=
2071 fi
2072
2073 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2074 ac_save_CXXFLAGS="$CXXFLAGS"
2075 CXXFLAGS=
2076 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2077 echo "configure:2078: checking whether ${CXX-g++} accepts -g" >&5
2078 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2079   echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081   echo 'void f(){}' > conftest.cc
2082 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2083   ac_cv_prog_cxx_g=yes
2084 else
2085   ac_cv_prog_cxx_g=no
2086 fi
2087 rm -f conftest*
2088
2089 fi
2090
2091 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2092 if test "$ac_test_CXXFLAGS" = set; then
2093   CXXFLAGS="$ac_save_CXXFLAGS"
2094 elif test $ac_cv_prog_cxx_g = yes; then
2095   if test "$GXX" = yes; then
2096     CXXFLAGS="-g -O2"
2097   else
2098     CXXFLAGS="-g"
2099   fi
2100 else
2101   if test "$GXX" = yes; then
2102     CXXFLAGS="-O2"
2103   else
2104     CXXFLAGS=
2105   fi
2106 fi
2107
2108 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2109 echo "configure:2110: checking how to run the C++ preprocessor" >&5
2110 if test -z "$CXXCPP"; then
2111 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2112   echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114   ac_ext=C
2115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2116 ac_cpp='$CXXCPP $CPPFLAGS'
2117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2119 cross_compiling=$ac_cv_prog_cxx_cross
2120   CXXCPP="${CXX-g++} -E"
2121   cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <stdlib.h>
2125 EOF
2126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2127 { (eval echo configure:2128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2129 if test -z "$ac_err"; then
2130   :
2131 else
2132   echo "$ac_err" >&5
2133   echo "configure: failed program was:" >&5
2134   cat conftest.$ac_ext >&5
2135   rm -rf conftest*
2136   CXXCPP=/lib/cpp
2137 fi
2138 rm -f conftest*
2139   ac_cv_prog_CXXCPP="$CXXCPP"
2140 ac_ext=c
2141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2145 cross_compiling=$ac_cv_prog_cc_cross
2146 fi
2147 fi
2148 CXXCPP="$ac_cv_prog_CXXCPP"
2149 echo "$ac_t""$CXXCPP" 1>&6
2150
2151 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2152 echo "configure:2153: checking whether ${MAKE-make} sets \${MAKE}" >&5
2153 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2154 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2155   echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157   cat > conftestmake <<\EOF
2158 all:
2159         @echo 'ac_maketemp="${MAKE}"'
2160 EOF
2161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2162 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2163 if test -n "$ac_maketemp"; then
2164   eval ac_cv_prog_make_${ac_make}_set=yes
2165 else
2166   eval ac_cv_prog_make_${ac_make}_set=no
2167 fi
2168 rm -f conftestmake
2169 fi
2170 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2171   echo "$ac_t""yes" 1>&6
2172   SET_MAKE=
2173 else
2174   echo "$ac_t""no" 1>&6
2175   SET_MAKE="MAKE=${MAKE-make}"
2176 fi
2177
2178 if test "$program_transform_name" = s,x,x,; then
2179   program_transform_name=
2180 else
2181   # Double any \ or $.  echo might interpret backslashes.
2182   cat <<\EOF_SED > conftestsed
2183 s,\\,\\\\,g; s,\$,$$,g
2184 EOF_SED
2185   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2186   rm -f conftestsed
2187 fi
2188 test "$program_prefix" != NONE &&
2189   program_transform_name="s,^,${program_prefix},; $program_transform_name"
2190 # Use a double $ so make ignores it.
2191 test "$program_suffix" != NONE &&
2192   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2193
2194 # sed with no file args requires a program.
2195 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2196
2197 ac_ext=C
2198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2199 ac_cpp='$CXXCPP $CPPFLAGS'
2200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2202 cross_compiling=$ac_cv_prog_cxx_cross
2203
2204 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2205 echo "configure:2206: checking for ANSI C header files" >&5
2206 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2207   echo $ac_n "(cached) $ac_c" 1>&6
2208 else
2209   cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <stdlib.h>
2213 #include <stdarg.h>
2214 #include <string.h>
2215 #include <float.h>
2216 EOF
2217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2218 { (eval echo configure:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2220 if test -z "$ac_err"; then
2221   rm -rf conftest*
2222   ac_cv_header_stdc=yes
2223 else
2224   echo "$ac_err" >&5
2225   echo "configure: failed program was:" >&5
2226   cat conftest.$ac_ext >&5
2227   rm -rf conftest*
2228   ac_cv_header_stdc=no
2229 fi
2230 rm -f conftest*
2231
2232 if test $ac_cv_header_stdc = yes; then
2233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 #include <string.h>
2238 EOF
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240   egrep "memchr" >/dev/null 2>&1; then
2241   :
2242 else
2243   rm -rf conftest*
2244   ac_cv_header_stdc=no
2245 fi
2246 rm -f conftest*
2247
2248 fi
2249
2250 if test $ac_cv_header_stdc = yes; then
2251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 #include <stdlib.h>
2256 EOF
2257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2258   egrep "free" >/dev/null 2>&1; then
2259   :
2260 else
2261   rm -rf conftest*
2262   ac_cv_header_stdc=no
2263 fi
2264 rm -f conftest*
2265
2266 fi
2267
2268 if test $ac_cv_header_stdc = yes; then
2269   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2270 if test "$cross_compiling" = yes; then
2271   :
2272 else
2273   cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 #ifdef __cplusplus
2277 extern "C" void exit(int);
2278 #endif
2279 #include <ctype.h>
2280 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2281 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2283 int main () { int i; for (i = 0; i < 256; i++)
2284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2285 exit (0); }
2286
2287 EOF
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2289 then
2290   :
2291 else
2292   echo "configure: failed program was:" >&5
2293   cat conftest.$ac_ext >&5
2294   rm -fr conftest*
2295   ac_cv_header_stdc=no
2296 fi
2297 rm -fr conftest*
2298 fi
2299
2300 fi
2301 fi
2302
2303 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2304 if test $ac_cv_header_stdc = yes; then
2305   cat >> confdefs.h <<\EOF
2306 #define STDC_HEADERS 1
2307 EOF
2308
2309 fi
2310
2311 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2312 echo "configure:2313: checking whether time.h and sys/time.h may both be included" >&5
2313 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2314   echo $ac_n "(cached) $ac_c" 1>&6
2315 else
2316   cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <sys/types.h>
2320 #include <sys/time.h>
2321 #include <time.h>
2322 int main() {
2323 struct tm *tp;
2324 ; return 0; }
2325 EOF
2326 if { (eval echo configure:2327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2327   rm -rf conftest*
2328   ac_cv_header_time=yes
2329 else
2330   echo "configure: failed program was:" >&5
2331   cat conftest.$ac_ext >&5
2332   rm -rf conftest*
2333   ac_cv_header_time=no
2334 fi
2335 rm -f conftest*
2336 fi
2337
2338 echo "$ac_t""$ac_cv_header_time" 1>&6
2339 if test $ac_cv_header_time = yes; then
2340   cat >> confdefs.h <<\EOF
2341 #define TIME_WITH_SYS_TIME 1
2342 EOF
2343
2344 fi
2345
2346
2347 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
2348 echo "configure:2349: checking for main in -lstdc++" >&5
2349 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   ac_save_LIBS="$LIBS"
2354 LIBS="-lstdc++  $LIBS"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358
2359 int main() {
2360 main()
2361 ; return 0; }
2362 EOF
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2364   rm -rf conftest*
2365   eval "ac_cv_lib_$ac_lib_var=yes"
2366 else
2367   echo "configure: failed program was:" >&5
2368   cat conftest.$ac_ext >&5
2369   rm -rf conftest*
2370   eval "ac_cv_lib_$ac_lib_var=no"
2371 fi
2372 rm -f conftest*
2373 LIBS="$ac_save_LIBS"
2374
2375 fi
2376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2377   echo "$ac_t""yes" 1>&6
2378     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2379     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2380   cat >> confdefs.h <<EOF
2381 #define $ac_tr_lib 1
2382 EOF
2383
2384   LIBS="-lstdc++ $LIBS"
2385
2386 else
2387   echo "$ac_t""no" 1>&6
2388 fi
2389
2390 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2391 echo "configure:2392: checking for main in -lm" >&5
2392 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394   echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396   ac_save_LIBS="$LIBS"
2397 LIBS="-lm  $LIBS"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401
2402 int main() {
2403 main()
2404 ; return 0; }
2405 EOF
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2407   rm -rf conftest*
2408   eval "ac_cv_lib_$ac_lib_var=yes"
2409 else
2410   echo "configure: failed program was:" >&5
2411   cat conftest.$ac_ext >&5
2412   rm -rf conftest*
2413   eval "ac_cv_lib_$ac_lib_var=no"
2414 fi
2415 rm -f conftest*
2416 LIBS="$ac_save_LIBS"
2417
2418 fi
2419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2420   echo "$ac_t""yes" 1>&6
2421     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2422     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2423   cat >> confdefs.h <<EOF
2424 #define $ac_tr_lib 1
2425 EOF
2426
2427   LIBS="-lm $LIBS"
2428
2429 else
2430   echo "$ac_t""no" 1>&6
2431 fi
2432
2433
2434 lcd_libs=
2435 echo $ac_n "checking for refresh in -lcurses""... $ac_c" 1>&6
2436 echo "configure:2437: checking for refresh in -lcurses" >&5
2437 ac_lib_var=`echo curses'_'refresh | sed 'y%./+-%__p_%'`
2438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2439   echo $ac_n "(cached) $ac_c" 1>&6
2440 else
2441   ac_save_LIBS="$LIBS"
2442 LIBS="-lcurses  $LIBS"
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* Override any gcc2 internal prototype to avoid an error.  */
2447 #ifdef __cplusplus
2448 extern "C"
2449 #endif
2450 /* We use char because int might match the return type of a gcc2
2451     builtin and then its argument prototype would still apply.  */
2452 char refresh();
2453
2454 int main() {
2455 refresh()
2456 ; return 0; }
2457 EOF
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459   rm -rf conftest*
2460   eval "ac_cv_lib_$ac_lib_var=yes"
2461 else
2462   echo "configure: failed program was:" >&5
2463   cat conftest.$ac_ext >&5
2464   rm -rf conftest*
2465   eval "ac_cv_lib_$ac_lib_var=no"
2466 fi
2467 rm -f conftest*
2468 LIBS="$ac_save_LIBS"
2469
2470 fi
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472   echo "$ac_t""yes" 1>&6
2473   lcd_libs="-lcurses $lcd_libs"
2474 else
2475   echo "$ac_t""no" 1>&6
2476 echo $ac_n "checking for refresh in -lcurses""... $ac_c" 1>&6
2477 echo "configure:2478: checking for refresh in -lcurses" >&5
2478 ac_lib_var=`echo curses'_'refresh | sed 'y%./+-%__p_%'`
2479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2480   echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482   ac_save_LIBS="$LIBS"
2483 LIBS="-lcurses -ltermcap $LIBS"
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 /* Override any gcc2 internal prototype to avoid an error.  */
2488 #ifdef __cplusplus
2489 extern "C"
2490 #endif
2491 /* We use char because int might match the return type of a gcc2
2492     builtin and then its argument prototype would still apply.  */
2493 char refresh();
2494
2495 int main() {
2496 refresh()
2497 ; return 0; }
2498 EOF
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2500   rm -rf conftest*
2501   eval "ac_cv_lib_$ac_lib_var=yes"
2502 else
2503   echo "configure: failed program was:" >&5
2504   cat conftest.$ac_ext >&5
2505   rm -rf conftest*
2506   eval "ac_cv_lib_$ac_lib_var=no"
2507 fi
2508 rm -f conftest*
2509 LIBS="$ac_save_LIBS"
2510
2511 fi
2512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2513   echo "$ac_t""yes" 1>&6
2514   lcd_libs="-lcurses -ltermcap"
2515 else
2516   echo "$ac_t""no" 1>&6
2517 fi
2518
2519 fi
2520  
2521
2522
2523 socket_libs=
2524 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2525 echo "configure:2526: checking for connect in -lsocket" >&5
2526 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528   echo $ac_n "(cached) $ac_c" 1>&6
2529 else
2530   ac_save_LIBS="$LIBS"
2531 LIBS="-lsocket  $LIBS"
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* Override any gcc2 internal prototype to avoid an error.  */
2536 #ifdef __cplusplus
2537 extern "C"
2538 #endif
2539 /* We use char because int might match the return type of a gcc2
2540     builtin and then its argument prototype would still apply.  */
2541 char connect();
2542
2543 int main() {
2544 connect()
2545 ; return 0; }
2546 EOF
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2548   rm -rf conftest*
2549   eval "ac_cv_lib_$ac_lib_var=yes"
2550 else
2551   echo "configure: failed program was:" >&5
2552   cat conftest.$ac_ext >&5
2553   rm -rf conftest*
2554   eval "ac_cv_lib_$ac_lib_var=no"
2555 fi
2556 rm -f conftest*
2557 LIBS="$ac_save_LIBS"
2558
2559 fi
2560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561   echo "$ac_t""yes" 1>&6
2562   socket_libs="-lsocket $socket_libs"
2563 else
2564   echo "$ac_t""no" 1>&6
2565 fi
2566
2567 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2568 echo "configure:2569: checking for gethostbyname in -lnsl" >&5
2569 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571   echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573   ac_save_LIBS="$LIBS"
2574 LIBS="-lnsl  $LIBS"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 /* Override any gcc2 internal prototype to avoid an error.  */
2579 #ifdef __cplusplus
2580 extern "C"
2581 #endif
2582 /* We use char because int might match the return type of a gcc2
2583     builtin and then its argument prototype would still apply.  */
2584 char gethostbyname();
2585
2586 int main() {
2587 gethostbyname()
2588 ; return 0; }
2589 EOF
2590 if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2591   rm -rf conftest*
2592   eval "ac_cv_lib_$ac_lib_var=yes"
2593 else
2594   echo "configure: failed program was:" >&5
2595   cat conftest.$ac_ext >&5
2596   rm -rf conftest*
2597   eval "ac_cv_lib_$ac_lib_var=no"
2598 fi
2599 rm -f conftest*
2600 LIBS="$ac_save_LIBS"
2601
2602 fi
2603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2604   echo "$ac_t""yes" 1>&6
2605   socket_libs="$socket_libs -lnsl"
2606 else
2607   echo "$ac_t""no" 1>&6
2608 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2609 echo "configure:2610: checking for gethostbyname in -lresolv" >&5
2610 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2612   echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614   ac_save_LIBS="$LIBS"
2615 LIBS="-lresolv  $LIBS"
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* Override any gcc2 internal prototype to avoid an error.  */
2620 #ifdef __cplusplus
2621 extern "C"
2622 #endif
2623 /* We use char because int might match the return type of a gcc2
2624     builtin and then its argument prototype would still apply.  */
2625 char gethostbyname();
2626
2627 int main() {
2628 gethostbyname()
2629 ; return 0; }
2630 EOF
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2632   rm -rf conftest*
2633   eval "ac_cv_lib_$ac_lib_var=yes"
2634 else
2635   echo "configure: failed program was:" >&5
2636   cat conftest.$ac_ext >&5
2637   rm -rf conftest*
2638   eval "ac_cv_lib_$ac_lib_var=no"
2639 fi
2640 rm -f conftest*
2641 LIBS="$ac_save_LIBS"
2642
2643 fi
2644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2645   echo "$ac_t""yes" 1>&6
2646   socket_libs="$socket_libs -lresolv"
2647 else
2648   echo "$ac_t""no" 1>&6
2649 fi
2650
2651 fi
2652
2653
2654
2655 for ac_func in ftime gettimeofday usleep strtoul strtoull select
2656 do
2657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_func" >&5
2659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2660   echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662   cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* System header to define __stub macros and hopefully few prototypes,
2666     which can conflict with char $ac_func(); below.  */
2667 #include <assert.h>
2668 /* Override any gcc2 internal prototype to avoid an error.  */
2669 #ifdef __cplusplus
2670 extern "C"
2671 #endif
2672 /* We use char because int might match the return type of a gcc2
2673     builtin and then its argument prototype would still apply.  */
2674 char $ac_func();
2675
2676 int main() {
2677
2678 /* The GNU C library defines this for functions which it implements
2679     to always fail with ENOSYS.  Some functions are actually named
2680     something starting with __ and the normal name is an alias.  */
2681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2682 choke me
2683 #else
2684 $ac_func();
2685 #endif
2686
2687 ; return 0; }
2688 EOF
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690   rm -rf conftest*
2691   eval "ac_cv_func_$ac_func=yes"
2692 else
2693   echo "configure: failed program was:" >&5
2694   cat conftest.$ac_ext >&5
2695   rm -rf conftest*
2696   eval "ac_cv_func_$ac_func=no"
2697 fi
2698 rm -f conftest*
2699 fi
2700
2701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2702   echo "$ac_t""yes" 1>&6
2703     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2704   cat >> confdefs.h <<EOF
2705 #define $ac_tr_func 1
2706 EOF
2707  
2708 else
2709   echo "$ac_t""no" 1>&6
2710 fi
2711 done
2712
2713
2714 old_libs="$LIBS"
2715 LIBS="$LIBS $socket_libs"
2716 for ac_func in inet_aton inet_addr
2717 do
2718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_func" >&5
2720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2721   echo $ac_n "(cached) $ac_c" 1>&6
2722 else
2723   cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 /* System header to define __stub macros and hopefully few prototypes,
2727     which can conflict with char $ac_func(); below.  */
2728 #include <assert.h>
2729 /* Override any gcc2 internal prototype to avoid an error.  */
2730 #ifdef __cplusplus
2731 extern "C"
2732 #endif
2733 /* We use char because int might match the return type of a gcc2
2734     builtin and then its argument prototype would still apply.  */
2735 char $ac_func();
2736
2737 int main() {
2738
2739 /* The GNU C library defines this for functions which it implements
2740     to always fail with ENOSYS.  Some functions are actually named
2741     something starting with __ and the normal name is an alias.  */
2742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2743 choke me
2744 #else
2745 $ac_func();
2746 #endif
2747
2748 ; return 0; }
2749 EOF
2750 if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2751   rm -rf conftest*
2752   eval "ac_cv_func_$ac_func=yes"
2753 else
2754   echo "configure: failed program was:" >&5
2755   cat conftest.$ac_ext >&5
2756   rm -rf conftest*
2757   eval "ac_cv_func_$ac_func=no"
2758 fi
2759 rm -f conftest*
2760 fi
2761
2762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2763   echo "$ac_t""yes" 1>&6
2764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2765   cat >> confdefs.h <<EOF
2766 #define $ac_tr_func 1
2767 EOF
2768  
2769 else
2770   echo "$ac_t""no" 1>&6
2771 fi
2772 done
2773
2774 LIBS="$old_libs"
2775
2776 for ac_hdr in curses.h time.h unistd.h
2777 do
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_hdr" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782   echo $ac_n "(cached) $ac_c" 1>&6
2783 else
2784   cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <$ac_hdr>
2788 EOF
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2793   rm -rf conftest*
2794   eval "ac_cv_header_$ac_safe=yes"
2795 else
2796   echo "$ac_err" >&5
2797   echo "configure: failed program was:" >&5
2798   cat conftest.$ac_ext >&5
2799   rm -rf conftest*
2800   eval "ac_cv_header_$ac_safe=no"
2801 fi
2802 rm -f conftest*
2803 fi
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805   echo "$ac_t""yes" 1>&6
2806     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2807   cat >> confdefs.h <<EOF
2808 #define $ac_tr_hdr 1
2809 EOF
2810  
2811 else
2812   echo "$ac_t""no" 1>&6
2813 fi
2814 done
2815
2816 for ac_hdr in sys/time.h sys/timeb.h sys/types.h 
2817 do
2818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_hdr" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822   echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824   cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <$ac_hdr>
2828 EOF
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2833   rm -rf conftest*
2834   eval "ac_cv_header_$ac_safe=yes"
2835 else
2836   echo "$ac_err" >&5
2837   echo "configure: failed program was:" >&5
2838   cat conftest.$ac_ext >&5
2839   rm -rf conftest*
2840   eval "ac_cv_header_$ac_safe=no"
2841 fi
2842 rm -f conftest*
2843 fi
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845   echo "$ac_t""yes" 1>&6
2846     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2847   cat >> confdefs.h <<EOF
2848 #define $ac_tr_hdr 1
2849 EOF
2850  
2851 else
2852   echo "$ac_t""no" 1>&6
2853 fi
2854 done
2855
2856 for ac_hdr in sys/socket.h netinet/in.h netinet/tcp.h arpa/inet.h
2857 do
2858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_hdr" >&5
2861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2862   echo $ac_n "(cached) $ac_c" 1>&6
2863 else
2864   cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <$ac_hdr>
2868 EOF
2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2872 if test -z "$ac_err"; then
2873   rm -rf conftest*
2874   eval "ac_cv_header_$ac_safe=yes"
2875 else
2876   echo "$ac_err" >&5
2877   echo "configure: failed program was:" >&5
2878   cat conftest.$ac_ext >&5
2879   rm -rf conftest*
2880   eval "ac_cv_header_$ac_safe=no"
2881 fi
2882 rm -f conftest*
2883 fi
2884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2885   echo "$ac_t""yes" 1>&6
2886     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2887   cat >> confdefs.h <<EOF
2888 #define $ac_tr_hdr 1
2889 EOF
2890  
2891 else
2892   echo "$ac_t""no" 1>&6
2893 fi
2894 done
2895
2896
2897 for ac_hdr in ../ucbinclude/sys/ioctl.h
2898 do
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903   echo $ac_n "(cached) $ac_c" 1>&6
2904 else
2905   cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <$ac_hdr>
2909 EOF
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2914   rm -rf conftest*
2915   eval "ac_cv_header_$ac_safe=yes"
2916 else
2917   echo "$ac_err" >&5
2918   echo "configure: failed program was:" >&5
2919   cat conftest.$ac_ext >&5
2920   rm -rf conftest*
2921   eval "ac_cv_header_$ac_safe=no"
2922 fi
2923 rm -f conftest*
2924 fi
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926   echo "$ac_t""yes" 1>&6
2927     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928   cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2930 EOF
2931  
2932 else
2933   echo "$ac_t""no" 1>&6
2934 fi
2935 done
2936
2937
2938 echo $ac_n "checking whether ftime is declared""... $ac_c" 1>&6
2939 echo "configure:2940: checking whether ftime is declared" >&5
2940 if eval "test \"`echo '$''{'ac_cv_decl_ftime'+set}'`\" = set"; then
2941   echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943   
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <sys/timeb.h>
2948 EOF
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950   egrep "ftime" >/dev/null 2>&1; then
2951   rm -rf conftest*
2952   ac_cv_decl_ftime=yes
2953 else
2954   rm -rf conftest*
2955   ac_cv_decl_ftime=no
2956
2957 fi
2958 rm -f conftest*
2959
2960 fi
2961
2962 echo "$ac_t""$ac_cv_decl_ftime" 1>&6
2963 if test x$ac_cv_decl_ftime = xyes; then
2964   cat >> confdefs.h <<\EOF
2965 #define HAVE_FTIME_DECL 1
2966 EOF
2967
2968 fi
2969 echo $ac_n "checking whether usleep is declared""... $ac_c" 1>&6
2970 echo "configure:2971: checking whether usleep is declared" >&5
2971 if eval "test \"`echo '$''{'ac_cv_decl_usleep'+set}'`\" = set"; then
2972   echo $ac_n "(cached) $ac_c" 1>&6
2973 else
2974   
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <unistd.h>
2979 EOF
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981   egrep "usleep" >/dev/null 2>&1; then
2982   rm -rf conftest*
2983   ac_cv_decl_usleep=yes
2984 else
2985   rm -rf conftest*
2986   ac_cv_decl_usleep=no
2987
2988 fi
2989 rm -f conftest*
2990
2991 fi
2992
2993 echo "$ac_t""$ac_cv_decl_usleep" 1>&6
2994 if test x$ac_cv_decl_usleep = xyes; then
2995   cat >> confdefs.h <<\EOF
2996 #define HAVE_USLEEP_DECL 1
2997 EOF
2998
2999 fi
3000
3001 echo $ac_n "checking whether socklen_t is declared""... $ac_c" 1>&6
3002 echo "configure:3003: checking whether socklen_t is declared" >&5
3003 if eval "test \"`echo '$''{'ac_cv_decl_socklen_t'+set}'`\" = set"; then
3004   echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006   
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/socket.h>
3011 EOF
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013   egrep "socklen_t" >/dev/null 2>&1; then
3014   rm -rf conftest*
3015   ac_cv_decl_socklen_t=yes
3016 else
3017   rm -rf conftest*
3018   ac_cv_decl_socklen_t=no
3019
3020 fi
3021 rm -f conftest*
3022
3023 fi
3024
3025 echo "$ac_t""$ac_cv_decl_socklen_t" 1>&6
3026 if test x$ac_cv_decl_socklen_t = xyes; then
3027   cat >> confdefs.h <<\EOF
3028 #define HAVE_SOCKLEN_T 1
3029 EOF
3030
3031 fi
3032
3033
3034
3035
3036
3037
3038
3039 sid_host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host`
3040 sid_target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target`
3041
3042 if test "$sid_host" = "$sid_target" -o "$target" = "NONE"
3043 then
3044     echo "configure: warning: Assuming --enable-targets=all" 1>&2
3045     all_targets=""
3046     sidtarget_default=1
3047 else
3048     all_targets="$target"
3049     sidtarget_default=0
3050 fi
3051
3052
3053 # Check whether --enable-targets or --disable-targets was given.
3054 if test "${enable_targets+set}" = set; then
3055   enableval="$enable_targets"
3056   
3057   case "${enable_targets}" in
3058     all)  sidtarget_default=1 ;;
3059     no)   sidtarget_default=0 ;;
3060     *)    all_targets="${all_targets} `echo ${enable_targets} | sed -e 's-,- -g'`" ;;
3061   esac
3062
3063 fi
3064
3065
3066 sidtarget_arm=$sidtarget_default
3067 sidtarget_mips=$sidtarget_default
3068 sidtarget_m32r=$sidtarget_default
3069 sidtarget_m68k=$sidtarget_default
3070 sidtarget_ppc=$sidtarget_default
3071
3072 for targ in $all_targets
3073 do
3074    case "$targ" in
3075       arm*)   sidtarget_arm=1 ;;
3076       thumb*) sidtarget_arm=1 ;;
3077       mips*)  sidtarget_mips=1 ;;
3078       m32r*)  sidtarget_m32r=1 ;;
3079       m68k*)  sidtarget_m68k=1 ;;
3080       powerpc*) sidtarget_ppc=1 ;;
3081       ppc*)   sidtarget_ppc=1 ;;
3082       *)      echo "configure: warning: "Unknown target $targ"" 1>&2 ;;
3083    esac
3084 done
3085
3086 case 1 in
3087   ${sidtarget_arm}) ;;
3088   ${sidtarget_mips}) ;;
3089   ${sidtarget_m32r}) ;;
3090   ${sidtarget_m68k}) ;;
3091   ${sidtarget_ppc}) ;;
3092   *) echo "configure: warning: No selected sid targets: use --enable-targets or --target" 1>&2
3093         ;;
3094 esac
3095
3096
3097 echo $ac_n "checking ARM family support""... $ac_c" 1>&6
3098 echo "configure:3129: checking ARM family support" >&5
3099
3100
3101
3102 if test "x$sidtarget_arm" = x1; then
3103   SIDTARGET_ARM_TRUE=
3104   SIDTARGET_ARM_FALSE='#'
3105 else
3106   SIDTARGET_ARM_TRUE='#'
3107   SIDTARGET_ARM_FALSE=
3108 fi
3109 echo "$ac_t""$sidtarget_arm" 1>&6
3110
3111
3112 echo $ac_n "checking MIPS family support""... $ac_c" 1>&6
3113 echo "configure:3159: checking MIPS family support" >&5
3114
3115
3116
3117 if test "x$sidtarget_mips" = x1; then
3118   SIDTARGET_MIPS_TRUE=
3119   SIDTARGET_MIPS_FALSE='#'
3120 else
3121   SIDTARGET_MIPS_TRUE='#'
3122   SIDTARGET_MIPS_FALSE=
3123 fi
3124 echo "$ac_t""$sidtarget_mips" 1>&6
3125
3126 echo $ac_n "checking M32R family support""... $ac_c" 1>&6
3127 echo "configure:3173: checking M32R family support" >&5
3128
3129
3130
3131 if test "x$sidtarget_m32r" = x1; then
3132   SIDTARGET_M32R_TRUE=
3133   SIDTARGET_M32R_FALSE='#'
3134 else
3135   SIDTARGET_M32R_TRUE='#'
3136   SIDTARGET_M32R_FALSE=
3137 fi
3138 echo "$ac_t""$sidtarget_m32r" 1>&6
3139
3140 echo $ac_n "checking M68K family support""... $ac_c" 1>&6
3141 echo "configure:3187: checking M68K family support" >&5
3142
3143
3144
3145 if test "x$sidtarget_m68k" = x1; then
3146   SIDTARGET_M68K_TRUE=
3147   SIDTARGET_M68K_FALSE='#'
3148 else
3149   SIDTARGET_M68K_TRUE='#'
3150   SIDTARGET_M68K_FALSE=
3151 fi
3152 echo "$ac_t""$sidtarget_m68k" 1>&6
3153
3154 echo $ac_n "checking PPC family support""... $ac_c" 1>&6
3155 echo "configure:3201: checking PPC family support" >&5
3156
3157
3158
3159 if test "x$sidtarget_ppc" = x1; then
3160   SIDTARGET_PPC_TRUE=
3161   SIDTARGET_PPC_FALSE='#'
3162 else
3163   SIDTARGET_PPC_TRUE='#'
3164   SIDTARGET_PPC_FALSE=
3165 fi
3166 echo "$ac_t""$sidtarget_ppc" 1>&6
3167
3168
3169
3170
3171
3172 subdirs="cfgroot tcl audio cgen-cpu timers"
3173
3174
3175
3176
3177 make_subdirs="consoles gdb gloss glue ide interrupt lcd loader mapper memory mmu parport profiling rtc sched uart testsuite"
3178
3179
3180 trap '' 1 2 15
3181 cat > confcache <<\EOF
3182 # This file is a shell script that caches the results of configure
3183 # tests run on this system so they can be shared between configure
3184 # scripts and configure runs.  It is not useful on other systems.
3185 # If it contains results you don't want to keep, you may remove or edit it.
3186 #
3187 # By default, configure uses ./config.cache as the cache file,
3188 # creating it if it does not exist already.  You can give configure
3189 # the --cache-file=FILE option to use a different cache file; that is
3190 # what configure does when it calls configure scripts in
3191 # subdirectories, so they share the cache.
3192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3193 # config.status only pays attention to the cache file if you give it the
3194 # --recheck option to rerun configure.
3195 #
3196 EOF
3197 # The following way of writing the cache mishandles newlines in values,
3198 # but we know of no workaround that is simple, portable, and efficient.
3199 # So, don't put newlines in cache variables' values.
3200 # Ultrix sh set writes to stderr and can't be redirected directly,
3201 # and sets the high bit in the cache file unless we assign to the vars.
3202 (set) 2>&1 |
3203   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3204   *ac_space=\ *)
3205     # `set' does not quote correctly, so add quotes (double-quote substitution
3206     # turns \\\\ into \\, and sed turns \\ into \).
3207     sed -n \
3208       -e "s/'/'\\\\''/g" \
3209       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3210     ;;
3211   *)
3212     # `set' quotes correctly as required by POSIX, so do not add quotes.
3213     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3214     ;;
3215   esac >> confcache
3216 if cmp -s $cache_file confcache; then
3217   :
3218 else
3219   if test -w $cache_file; then
3220     echo "updating cache $cache_file"
3221     cat confcache > $cache_file
3222   else
3223     echo "not updating unwritable cache $cache_file"
3224   fi
3225 fi
3226 rm -f confcache
3227
3228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3229
3230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3231 # Let make expand exec_prefix.
3232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3233
3234 # Any assignment to VPATH causes Sun make to only execute
3235 # the first set of double-colon rules, so remove it if not needed.
3236 # If there is a colon in the path, we need to keep it.
3237 if test "x$srcdir" = x.; then
3238   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3239 fi
3240
3241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3242
3243 DEFS=-DHAVE_CONFIG_H
3244
3245 # Without the "./", some shells look in PATH for config.status.
3246 : ${CONFIG_STATUS=./config.status}
3247
3248 echo creating $CONFIG_STATUS
3249 rm -f $CONFIG_STATUS
3250 cat > $CONFIG_STATUS <<EOF
3251 #! /bin/sh
3252 # Generated automatically by configure.
3253 # Run this file to recreate the current configuration.
3254 # This directory was configured as follows,
3255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3256 #
3257 # $0 $ac_configure_args
3258 #
3259 # Compiler output produced by configure, useful for debugging
3260 # configure, is in ./config.log if it exists.
3261
3262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3263 for ac_option
3264 do
3265   case "\$ac_option" in
3266   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3267     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3268     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3269   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3270     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3271     exit 0 ;;
3272   -help | --help | --hel | --he | --h)
3273     echo "\$ac_cs_usage"; exit 0 ;;
3274   *) echo "\$ac_cs_usage"; exit 1 ;;
3275   esac
3276 done
3277
3278 ac_given_srcdir=$srcdir
3279 ac_given_INSTALL="$INSTALL"
3280
3281 trap 'rm -fr `echo "Makefile testsuite/Makefile tconfig.h:tconfig.in siddoc
3282         consoles/Makefile
3283         gdb/Makefile
3284         gloss/Makefile
3285         glue/Makefile
3286         ide/Makefile
3287         interrupt/Makefile
3288         lcd/Makefile lcd/testsuite/Makefile
3289         loader/Makefile
3290         mapper/Makefile mapper/testsuite/Makefile
3291         memory/Makefile
3292         mmu/Makefile
3293         parport/Makefile
3294         profiling/Makefile
3295         rtc/Makefile
3296         sched/Makefile
3297         uart/Makefile uart/testsuite/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3298 EOF
3299 cat >> $CONFIG_STATUS <<EOF
3300
3301 # Protect against being on the right side of a sed subst in config.status.
3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3303  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3304 $ac_vpsub
3305 $extrasub
3306 s%@SHELL@%$SHELL%g
3307 s%@CFLAGS@%$CFLAGS%g
3308 s%@CPPFLAGS@%$CPPFLAGS%g
3309 s%@CXXFLAGS@%$CXXFLAGS%g
3310 s%@FFLAGS@%$FFLAGS%g
3311 s%@DEFS@%$DEFS%g
3312 s%@LDFLAGS@%$LDFLAGS%g
3313 s%@LIBS@%$LIBS%g
3314 s%@exec_prefix@%$exec_prefix%g
3315 s%@prefix@%$prefix%g
3316 s%@program_transform_name@%$program_transform_name%g
3317 s%@bindir@%$bindir%g
3318 s%@sbindir@%$sbindir%g
3319 s%@libexecdir@%$libexecdir%g
3320 s%@datadir@%$datadir%g
3321 s%@sysconfdir@%$sysconfdir%g
3322 s%@sharedstatedir@%$sharedstatedir%g
3323 s%@localstatedir@%$localstatedir%g
3324 s%@libdir@%$libdir%g
3325 s%@includedir@%$includedir%g
3326 s%@oldincludedir@%$oldincludedir%g
3327 s%@infodir@%$infodir%g
3328 s%@mandir@%$mandir%g
3329 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3330 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3331 s%@INSTALL_DATA@%$INSTALL_DATA%g
3332 s%@PACKAGE@%$PACKAGE%g
3333 s%@VERSION@%$VERSION%g
3334 s%@ACLOCAL@%$ACLOCAL%g
3335 s%@AUTOCONF@%$AUTOCONF%g
3336 s%@AUTOMAKE@%$AUTOMAKE%g
3337 s%@AUTOHEADER@%$AUTOHEADER%g
3338 s%@MAKEINFO@%$MAKEINFO%g
3339 s%@SET_MAKE@%$SET_MAKE%g
3340 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3341 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3342 s%@MAINT@%$MAINT%g
3343 s%@host@%$host%g
3344 s%@host_alias@%$host_alias%g
3345 s%@host_cpu@%$host_cpu%g
3346 s%@host_vendor@%$host_vendor%g
3347 s%@host_os@%$host_os%g
3348 s%@build@%$build%g
3349 s%@build_alias@%$build_alias%g
3350 s%@build_cpu@%$build_cpu%g
3351 s%@build_vendor@%$build_vendor%g
3352 s%@build_os@%$build_os%g
3353 s%@CC@%$CC%g
3354 s%@LD@%$LD%g
3355 s%@NM@%$NM%g
3356 s%@LN_S@%$LN_S%g
3357 s%@AR@%$AR%g
3358 s%@RANLIB@%$RANLIB%g
3359 s%@DLLTOOL@%$DLLTOOL%g
3360 s%@AS@%$AS%g
3361 s%@OBJDUMP@%$OBJDUMP%g
3362 s%@LIBTOOL@%$LIBTOOL%g
3363 s%@EXEEXT@%$EXEEXT%g
3364 s%@CXX@%$CXX%g
3365 s%@CXXCPP@%$CXXCPP%g
3366 s%@lcd_libs@%$lcd_libs%g
3367 s%@socket_libs@%$socket_libs%g
3368 s%@CYGWIN@%$CYGWIN%g
3369 s%@sidtarget_arm@%$sidtarget_arm%g
3370 s%@SIDTARGET_ARM_TRUE@%$SIDTARGET_ARM_TRUE%g
3371 s%@SIDTARGET_ARM_FALSE@%$SIDTARGET_ARM_FALSE%g
3372 s%@sidtarget_mips@%$sidtarget_mips%g
3373 s%@SIDTARGET_MIPS_TRUE@%$SIDTARGET_MIPS_TRUE%g
3374 s%@SIDTARGET_MIPS_FALSE@%$SIDTARGET_MIPS_FALSE%g
3375 s%@sidtarget_m32r@%$sidtarget_m32r%g
3376 s%@SIDTARGET_M32R_TRUE@%$SIDTARGET_M32R_TRUE%g
3377 s%@SIDTARGET_M32R_FALSE@%$SIDTARGET_M32R_FALSE%g
3378 s%@sidtarget_m68k@%$sidtarget_m68k%g
3379 s%@SIDTARGET_M68K_TRUE@%$SIDTARGET_M68K_TRUE%g
3380 s%@SIDTARGET_M68K_FALSE@%$SIDTARGET_M68K_FALSE%g
3381 s%@sidtarget_ppc@%$sidtarget_ppc%g
3382 s%@SIDTARGET_PPC_TRUE@%$SIDTARGET_PPC_TRUE%g
3383 s%@SIDTARGET_PPC_FALSE@%$SIDTARGET_PPC_FALSE%g
3384 s%@subdirs@%$subdirs%g
3385 s%@make_subdirs@%$make_subdirs%g
3386
3387 CEOF
3388 EOF
3389
3390 cat >> $CONFIG_STATUS <<\EOF
3391
3392 # Split the substitutions into bite-sized pieces for seds with
3393 # small command number limits, like on Digital OSF/1 and HP-UX.
3394 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3395 ac_file=1 # Number of current file.
3396 ac_beg=1 # First line for current file.
3397 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3398 ac_more_lines=:
3399 ac_sed_cmds=""
3400 while $ac_more_lines; do
3401   if test $ac_beg -gt 1; then
3402     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3403   else
3404     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3405   fi
3406   if test ! -s conftest.s$ac_file; then
3407     ac_more_lines=false
3408     rm -f conftest.s$ac_file
3409   else
3410     if test -z "$ac_sed_cmds"; then
3411       ac_sed_cmds="sed -f conftest.s$ac_file"
3412     else
3413       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3414     fi
3415     ac_file=`expr $ac_file + 1`
3416     ac_beg=$ac_end
3417     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3418   fi
3419 done
3420 if test -z "$ac_sed_cmds"; then
3421   ac_sed_cmds=cat
3422 fi
3423 EOF
3424
3425 cat >> $CONFIG_STATUS <<EOF
3426
3427 CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile tconfig.h:tconfig.in siddoc
3428         consoles/Makefile
3429         gdb/Makefile
3430         gloss/Makefile
3431         glue/Makefile
3432         ide/Makefile
3433         interrupt/Makefile
3434         lcd/Makefile lcd/testsuite/Makefile
3435         loader/Makefile
3436         mapper/Makefile mapper/testsuite/Makefile
3437         memory/Makefile
3438         mmu/Makefile
3439         parport/Makefile
3440         profiling/Makefile
3441         rtc/Makefile
3442         sched/Makefile
3443         uart/Makefile uart/testsuite/Makefile"}
3444 EOF
3445 cat >> $CONFIG_STATUS <<\EOF
3446 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3447   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3448   case "$ac_file" in
3449   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3450        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3451   *) ac_file_in="${ac_file}.in" ;;
3452   esac
3453
3454   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3455
3456   # Remove last slash and all that follows it.  Not all systems have dirname.
3457   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3458   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3459     # The file is in a subdirectory.
3460     test ! -d "$ac_dir" && mkdir "$ac_dir"
3461     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3462     # A "../" for each directory in $ac_dir_suffix.
3463     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3464   else
3465     ac_dir_suffix= ac_dots=
3466   fi
3467
3468   case "$ac_given_srcdir" in
3469   .)  srcdir=.
3470       if test -z "$ac_dots"; then top_srcdir=.
3471       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3472   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3473   *) # Relative path.
3474     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3475     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3476   esac
3477
3478   case "$ac_given_INSTALL" in
3479   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3480   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3481   esac
3482
3483   echo creating "$ac_file"
3484   rm -f "$ac_file"
3485   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3486   case "$ac_file" in
3487   *Makefile*) ac_comsub="1i\\
3488 # $configure_input" ;;
3489   *) ac_comsub= ;;
3490   esac
3491
3492   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3493   sed -e "$ac_comsub
3494 s%@configure_input@%$configure_input%g
3495 s%@srcdir@%$srcdir%g
3496 s%@top_srcdir@%$top_srcdir%g
3497 s%@INSTALL@%$INSTALL%g
3498 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3499 fi; done
3500 rm -f conftest.s*
3501
3502 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3503 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3504 #
3505 # ac_d sets the value in "#define NAME VALUE" lines.
3506 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3507 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3508 ac_dC='\3'
3509 ac_dD='%g'
3510 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3511 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3512 ac_uB='\([      ]\)%\1#\2define\3'
3513 ac_uC=' '
3514 ac_uD='\4%g'
3515 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3516 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3517 ac_eB='$%\1#\2define\3'
3518 ac_eC=' '
3519 ac_eD='%g'
3520
3521 if test "${CONFIG_HEADERS+set}" != set; then
3522 EOF
3523 cat >> $CONFIG_STATUS <<EOF
3524   CONFIG_HEADERS="config.h:config.in"
3525 EOF
3526 cat >> $CONFIG_STATUS <<\EOF
3527 fi
3528 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3529   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3530   case "$ac_file" in
3531   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3532        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3533   *) ac_file_in="${ac_file}.in" ;;
3534   esac
3535
3536   echo creating $ac_file
3537
3538   rm -f conftest.frag conftest.in conftest.out
3539   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3540   cat $ac_file_inputs > conftest.in
3541
3542 EOF
3543
3544 # Transform confdefs.h into a sed script conftest.vals that substitutes
3545 # the proper values into config.h.in to produce config.h.  And first:
3546 # Protect against being on the right side of a sed subst in config.status.
3547 # Protect against being in an unquoted here document in config.status.
3548 rm -f conftest.vals
3549 cat > conftest.hdr <<\EOF
3550 s/[\\&%]/\\&/g
3551 s%[\\$`]%\\&%g
3552 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3553 s%ac_d%ac_u%gp
3554 s%ac_u%ac_e%gp
3555 EOF
3556 sed -n -f conftest.hdr confdefs.h > conftest.vals
3557 rm -f conftest.hdr
3558
3559 # This sed command replaces #undef with comments.  This is necessary, for
3560 # example, in the case of _POSIX_SOURCE, which is predefined and required
3561 # on some systems where configure will not decide to define it.
3562 cat >> conftest.vals <<\EOF
3563 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3564 EOF
3565
3566 # Break up conftest.vals because some shells have a limit on
3567 # the size of here documents, and old seds have small limits too.
3568
3569 rm -f conftest.tail
3570 while :
3571 do
3572   ac_lines=`grep -c . conftest.vals`
3573   # grep -c gives empty output for an empty file on some AIX systems.
3574   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3575   # Write a limited-size here document to conftest.frag.
3576   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3577   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3578   echo 'CEOF
3579   sed -f conftest.frag conftest.in > conftest.out
3580   rm -f conftest.in
3581   mv conftest.out conftest.in
3582 ' >> $CONFIG_STATUS
3583   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3584   rm -f conftest.vals
3585   mv conftest.tail conftest.vals
3586 done
3587 rm -f conftest.vals
3588
3589 cat >> $CONFIG_STATUS <<\EOF
3590   rm -f conftest.frag conftest.h
3591   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3592   cat conftest.in >> conftest.h
3593   rm -f conftest.in
3594   if cmp -s $ac_file conftest.h 2>/dev/null; then
3595     echo "$ac_file is unchanged"
3596     rm -f conftest.h
3597   else
3598     # Remove last slash and all that follows it.  Not all systems have dirname.
3599       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3600       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3601       # The file is in a subdirectory.
3602       test ! -d "$ac_dir" && mkdir "$ac_dir"
3603     fi
3604     rm -f $ac_file
3605     mv conftest.h $ac_file
3606   fi
3607 fi; done
3608
3609 EOF
3610 cat >> $CONFIG_STATUS <<EOF
3611
3612
3613 EOF
3614 cat >> $CONFIG_STATUS <<\EOF
3615 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3616
3617 exit 0
3618 EOF
3619 chmod +x $CONFIG_STATUS
3620 rm -fr confdefs* $ac_clean_files
3621 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3622
3623 if test "$no_recursion" != yes; then
3624
3625   # Remove --cache-file and --srcdir arguments so they do not pile up.
3626   ac_sub_configure_args=
3627   ac_prev=
3628   for ac_arg in $ac_configure_args; do
3629     if test -n "$ac_prev"; then
3630       ac_prev=
3631       continue
3632     fi
3633     case "$ac_arg" in
3634     -cache-file | --cache-file | --cache-fil | --cache-fi \
3635     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3636       ac_prev=cache_file ;;
3637     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3638     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3639       ;;
3640     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3641       ac_prev=srcdir ;;
3642     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3643       ;;
3644     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3645     esac
3646   done
3647
3648   for ac_config_dir in cfgroot tcl audio cgen-cpu timers; do
3649
3650     # Do not complain, so a configure script can configure whichever
3651     # parts of a large source tree are present.
3652     if test ! -d $srcdir/$ac_config_dir; then
3653       continue
3654     fi
3655
3656     echo configuring in $ac_config_dir
3657
3658     case "$srcdir" in
3659     .) ;;
3660     *)
3661       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3662       else
3663         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3664       fi
3665       ;;
3666     esac
3667
3668     ac_popdir=`pwd`
3669     cd $ac_config_dir
3670
3671       # A "../" for each directory in /$ac_config_dir.
3672       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3673
3674     case "$srcdir" in
3675     .) # No --srcdir option.  We are building in place.
3676       ac_sub_srcdir=$srcdir ;;
3677     /*) # Absolute path.
3678       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3679     *) # Relative path.
3680       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3681     esac
3682
3683     # Check for guested configure; otherwise get Cygnus style configure.
3684     if test -f $ac_sub_srcdir/configure; then
3685       ac_sub_configure=$ac_sub_srcdir/configure
3686     elif test -f $ac_sub_srcdir/configure.in; then
3687       ac_sub_configure=$ac_configure
3688     else
3689       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3690       ac_sub_configure=
3691     fi
3692
3693     # The recursion is here.
3694     if test -n "$ac_sub_configure"; then
3695
3696       # Make the cache file name correct relative to the subdirectory.
3697       case "$cache_file" in
3698       /*) ac_sub_cache_file=$cache_file ;;
3699       *) # Relative path.
3700         ac_sub_cache_file="$ac_dots$cache_file" ;;
3701       esac
3702   case "$ac_given_INSTALL" in
3703         [/$]*) INSTALL="$ac_given_INSTALL" ;;
3704         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3705         esac
3706
3707       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3708       # The eval makes quoting arguments work.
3709       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3710       then :
3711       else
3712         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3713       fi
3714     fi
3715
3716     cd $ac_popdir
3717   done
3718 fi
3719