OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / timers / 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 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1870 do
1871 # Extract the first word of "$ac_prog", so it can be a program name with args.
1872 set dummy $ac_prog; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1876   echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878   if test -n "$CXX"; then
1879   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880 else
1881   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1882   ac_dummy="$PATH"
1883   for ac_dir in $ac_dummy; do
1884     test -z "$ac_dir" && ac_dir=.
1885     if test -f $ac_dir/$ac_word; then
1886       ac_cv_prog_CXX="$ac_prog"
1887       break
1888     fi
1889   done
1890   IFS="$ac_save_ifs"
1891 fi
1892 fi
1893 CXX="$ac_cv_prog_CXX"
1894 if test -n "$CXX"; then
1895   echo "$ac_t""$CXX" 1>&6
1896 else
1897   echo "$ac_t""no" 1>&6
1898 fi
1899
1900 test -n "$CXX" && break
1901 done
1902 test -n "$CXX" || CXX="gcc"
1903
1904
1905 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1907
1908 ac_ext=C
1909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1910 ac_cpp='$CXXCPP $CPPFLAGS'
1911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1913 cross_compiling=$ac_cv_prog_cxx_cross
1914
1915 cat > conftest.$ac_ext << EOF
1916
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919
1920 int main(){return(0);}
1921 EOF
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923   ac_cv_prog_cxx_works=yes
1924   # If we can't run a trivial program, we are probably using a cross compiler.
1925   if (./conftest; exit) 2>/dev/null; then
1926     ac_cv_prog_cxx_cross=no
1927   else
1928     ac_cv_prog_cxx_cross=yes
1929   fi
1930 else
1931   echo "configure: failed program was:" >&5
1932   cat conftest.$ac_ext >&5
1933   ac_cv_prog_cxx_works=no
1934 fi
1935 rm -fr conftest*
1936 ac_ext=c
1937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1941 cross_compiling=$ac_cv_prog_cc_cross
1942
1943 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1944 if test $ac_cv_prog_cxx_works = no; then
1945   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1946 fi
1947 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1948 echo "configure:1949: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1949 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1950 cross_compiling=$ac_cv_prog_cxx_cross
1951
1952 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether we are using GNU C++" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1955   echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957   cat > conftest.C <<EOF
1958 #ifdef __GNUC__
1959   yes;
1960 #endif
1961 EOF
1962 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1963   ac_cv_prog_gxx=yes
1964 else
1965   ac_cv_prog_gxx=no
1966 fi
1967 fi
1968
1969 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1970
1971 if test $ac_cv_prog_gxx = yes; then
1972   GXX=yes
1973 else
1974   GXX=
1975 fi
1976
1977 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1978 ac_save_CXXFLAGS="$CXXFLAGS"
1979 CXXFLAGS=
1980 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether ${CXX-g++} accepts -g" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1983   echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985   echo 'void f(){}' > conftest.cc
1986 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1987   ac_cv_prog_cxx_g=yes
1988 else
1989   ac_cv_prog_cxx_g=no
1990 fi
1991 rm -f conftest*
1992
1993 fi
1994
1995 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1996 if test "$ac_test_CXXFLAGS" = set; then
1997   CXXFLAGS="$ac_save_CXXFLAGS"
1998 elif test $ac_cv_prog_cxx_g = yes; then
1999   if test "$GXX" = yes; then
2000     CXXFLAGS="-g -O2"
2001   else
2002     CXXFLAGS="-g"
2003   fi
2004 else
2005   if test "$GXX" = yes; then
2006     CXXFLAGS="-O2"
2007   else
2008     CXXFLAGS=
2009   fi
2010 fi
2011
2012 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2013 echo "configure:2014: checking how to run the C++ preprocessor" >&5
2014 if test -z "$CXXCPP"; then
2015 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2016   echo $ac_n "(cached) $ac_c" 1>&6
2017 else
2018   ac_ext=C
2019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2020 ac_cpp='$CXXCPP $CPPFLAGS'
2021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2023 cross_compiling=$ac_cv_prog_cxx_cross
2024   CXXCPP="${CXX-g++} -E"
2025   cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <stdlib.h>
2029 EOF
2030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2031 { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2033 if test -z "$ac_err"; then
2034   :
2035 else
2036   echo "$ac_err" >&5
2037   echo "configure: failed program was:" >&5
2038   cat conftest.$ac_ext >&5
2039   rm -rf conftest*
2040   CXXCPP=/lib/cpp
2041 fi
2042 rm -f conftest*
2043   ac_cv_prog_CXXCPP="$CXXCPP"
2044 ac_ext=c
2045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2049 cross_compiling=$ac_cv_prog_cc_cross
2050 fi
2051 fi
2052 CXXCPP="$ac_cv_prog_CXXCPP"
2053 echo "$ac_t""$CXXCPP" 1>&6
2054
2055 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2056 echo "configure:2057: checking for Cygwin environment" >&5
2057 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2058   echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060   cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063
2064 int main() {
2065
2066 #ifndef __CYGWIN__
2067 #define __CYGWIN__ __CYGWIN32__
2068 #endif
2069 return __CYGWIN__;
2070 ; return 0; }
2071 EOF
2072 if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2073   rm -rf conftest*
2074   ac_cv_cygwin=yes
2075 else
2076   echo "configure: failed program was:" >&5
2077   cat conftest.$ac_ext >&5
2078   rm -rf conftest*
2079   ac_cv_cygwin=no
2080 fi
2081 rm -f conftest*
2082 rm -f conftest*
2083 fi
2084
2085 echo "$ac_t""$ac_cv_cygwin" 1>&6
2086 CYGWIN=
2087 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2088 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2089 echo "configure:2090: checking for mingw32 environment" >&5
2090 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2091   echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093   cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096
2097 int main() {
2098 return __MINGW32__;
2099 ; return 0; }
2100 EOF
2101 if { (eval echo configure:2102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102   rm -rf conftest*
2103   ac_cv_mingw32=yes
2104 else
2105   echo "configure: failed program was:" >&5
2106   cat conftest.$ac_ext >&5
2107   rm -rf conftest*
2108   ac_cv_mingw32=no
2109 fi
2110 rm -f conftest*
2111 rm -f conftest*
2112 fi
2113
2114 echo "$ac_t""$ac_cv_mingw32" 1>&6
2115 MINGW32=
2116 test "$ac_cv_mingw32" = yes && MINGW32=yes
2117
2118
2119 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2120 echo "configure:2121: checking for executable suffix" >&5
2121 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2122   echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2125   ac_cv_exeext=.exe
2126 else
2127   rm -f conftest*
2128   echo 'int main () { return 0; }' > conftest.$ac_ext
2129   ac_cv_exeext=
2130   if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2131     for file in conftest.*; do
2132       case $file in
2133       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2134       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2135       esac
2136     done
2137   else
2138     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2139   fi
2140   rm -f conftest*
2141   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2142 fi
2143 fi
2144
2145 EXEEXT=""
2146 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2147 echo "$ac_t""${ac_cv_exeext}" 1>&6
2148 ac_exeext=$EXEEXT
2149
2150 ac_ext=C
2151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2152 ac_cpp='$CXXCPP $CPPFLAGS'
2153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2155 cross_compiling=$ac_cv_prog_cxx_cross
2156
2157
2158 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2159 echo "configure:2160: checking for main in -lm" >&5
2160 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2162   echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164   ac_save_LIBS="$LIBS"
2165 LIBS="-lm  $LIBS"
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169
2170 int main() {
2171 main()
2172 ; return 0; }
2173 EOF
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2175   rm -rf conftest*
2176   eval "ac_cv_lib_$ac_lib_var=yes"
2177 else
2178   echo "configure: failed program was:" >&5
2179   cat conftest.$ac_ext >&5
2180   rm -rf conftest*
2181   eval "ac_cv_lib_$ac_lib_var=no"
2182 fi
2183 rm -f conftest*
2184 LIBS="$ac_save_LIBS"
2185
2186 fi
2187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188   echo "$ac_t""yes" 1>&6
2189     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2190     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2191   cat >> confdefs.h <<EOF
2192 #define $ac_tr_lib 1
2193 EOF
2194
2195   LIBS="-lm $LIBS"
2196
2197 else
2198   echo "$ac_t""no" 1>&6
2199 fi
2200
2201
2202
2203
2204
2205 sid_host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host`
2206 sid_target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target`
2207
2208 if test "$sid_host" = "$sid_target" -o "$target" = "NONE"
2209 then
2210     echo "configure: warning: Assuming --enable-targets=all" 1>&2
2211     all_targets=""
2212     sidtarget_default=1
2213 else
2214     all_targets="$target"
2215     sidtarget_default=0
2216 fi
2217
2218
2219 # Check whether --enable-targets or --disable-targets was given.
2220 if test "${enable_targets+set}" = set; then
2221   enableval="$enable_targets"
2222   
2223   case "${enable_targets}" in
2224     all)  sidtarget_default=1 ;;
2225     no)   sidtarget_default=0 ;;
2226     *)    all_targets="${all_targets} `echo ${enable_targets} | sed -e 's-,- -g'`" ;;
2227   esac
2228
2229 fi
2230
2231
2232 sidtarget_arm=$sidtarget_default
2233 sidtarget_mips=$sidtarget_default
2234 sidtarget_m32r=$sidtarget_default
2235 sidtarget_m68k=$sidtarget_default
2236 sidtarget_ppc=$sidtarget_default
2237
2238 for targ in $all_targets
2239 do
2240    case "$targ" in
2241       arm*)   sidtarget_arm=1 ;;
2242       thumb*) sidtarget_arm=1 ;;
2243       mips*)  sidtarget_mips=1 ;;
2244       m32r*)  sidtarget_m32r=1 ;;
2245       m68k*)  sidtarget_m68k=1 ;;
2246       powerpc*) sidtarget_ppc=1 ;;
2247       ppc*)   sidtarget_ppc=1 ;;
2248       *)      echo "configure: warning: "Unknown target $targ"" 1>&2 ;;
2249    esac
2250 done
2251
2252 case 1 in
2253   ${sidtarget_arm}) ;;
2254   ${sidtarget_mips}) ;;
2255   ${sidtarget_m32r}) ;;
2256   ${sidtarget_m68k}) ;;
2257   ${sidtarget_ppc}) ;;
2258   *) echo "configure: warning: No selected sid targets: use --enable-targets or --target" 1>&2
2259         ;;
2260 esac
2261
2262
2263 echo $ac_n "checking ARM family support""... $ac_c" 1>&6
2264 echo "configure:2295: checking ARM family support" >&5
2265
2266
2267
2268 if test "x$sidtarget_arm" = x1; then
2269   SIDTARGET_ARM_TRUE=
2270   SIDTARGET_ARM_FALSE='#'
2271 else
2272   SIDTARGET_ARM_TRUE='#'
2273   SIDTARGET_ARM_FALSE=
2274 fi
2275 echo "$ac_t""$sidtarget_arm" 1>&6
2276
2277
2278 echo $ac_n "checking MIPS family support""... $ac_c" 1>&6
2279 echo "configure:2325: checking MIPS family support" >&5
2280
2281
2282
2283 if test "x$sidtarget_mips" = x1; then
2284   SIDTARGET_MIPS_TRUE=
2285   SIDTARGET_MIPS_FALSE='#'
2286 else
2287   SIDTARGET_MIPS_TRUE='#'
2288   SIDTARGET_MIPS_FALSE=
2289 fi
2290 echo "$ac_t""$sidtarget_mips" 1>&6
2291
2292 echo $ac_n "checking M32R family support""... $ac_c" 1>&6
2293 echo "configure:2339: checking M32R family support" >&5
2294
2295
2296
2297 if test "x$sidtarget_m32r" = x1; then
2298   SIDTARGET_M32R_TRUE=
2299   SIDTARGET_M32R_FALSE='#'
2300 else
2301   SIDTARGET_M32R_TRUE='#'
2302   SIDTARGET_M32R_FALSE=
2303 fi
2304 echo "$ac_t""$sidtarget_m32r" 1>&6
2305
2306 echo $ac_n "checking M68K family support""... $ac_c" 1>&6
2307 echo "configure:2353: checking M68K family support" >&5
2308
2309
2310
2311 if test "x$sidtarget_m68k" = x1; then
2312   SIDTARGET_M68K_TRUE=
2313   SIDTARGET_M68K_FALSE='#'
2314 else
2315   SIDTARGET_M68K_TRUE='#'
2316   SIDTARGET_M68K_FALSE=
2317 fi
2318 echo "$ac_t""$sidtarget_m68k" 1>&6
2319
2320 echo $ac_n "checking PPC family support""... $ac_c" 1>&6
2321 echo "configure:2367: checking PPC family support" >&5
2322
2323
2324
2325 if test "x$sidtarget_ppc" = x1; then
2326   SIDTARGET_PPC_TRUE=
2327   SIDTARGET_PPC_FALSE='#'
2328 else
2329   SIDTARGET_PPC_TRUE='#'
2330   SIDTARGET_PPC_FALSE=
2331 fi
2332 echo "$ac_t""$sidtarget_ppc" 1>&6
2333
2334
2335
2336
2337 # Add per-target-family subdirectories here
2338 cpu_subdirs=
2339 cpu_libs=
2340 cpu_incl=
2341 if test $sidtarget_arm -eq 1; then
2342         cpu_subdirs="$cpu_subdirs arm7t"
2343 fi
2344
2345 for dir in $cpu_subdirs; do
2346         cpu_libs="$cpu_libs $dir/lib${dir}timers.la"
2347         cpu_incl="$cpu_incl -I$srcdir/$dir"
2348 done
2349
2350 subdirs="$cpu_subdirs"
2351
2352
2353
2354
2355
2356 trap '' 1 2 15
2357 cat > confcache <<\EOF
2358 # This file is a shell script that caches the results of configure
2359 # tests run on this system so they can be shared between configure
2360 # scripts and configure runs.  It is not useful on other systems.
2361 # If it contains results you don't want to keep, you may remove or edit it.
2362 #
2363 # By default, configure uses ./config.cache as the cache file,
2364 # creating it if it does not exist already.  You can give configure
2365 # the --cache-file=FILE option to use a different cache file; that is
2366 # what configure does when it calls configure scripts in
2367 # subdirectories, so they share the cache.
2368 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2369 # config.status only pays attention to the cache file if you give it the
2370 # --recheck option to rerun configure.
2371 #
2372 EOF
2373 # The following way of writing the cache mishandles newlines in values,
2374 # but we know of no workaround that is simple, portable, and efficient.
2375 # So, don't put newlines in cache variables' values.
2376 # Ultrix sh set writes to stderr and can't be redirected directly,
2377 # and sets the high bit in the cache file unless we assign to the vars.
2378 (set) 2>&1 |
2379   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2380   *ac_space=\ *)
2381     # `set' does not quote correctly, so add quotes (double-quote substitution
2382     # turns \\\\ into \\, and sed turns \\ into \).
2383     sed -n \
2384       -e "s/'/'\\\\''/g" \
2385       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2386     ;;
2387   *)
2388     # `set' quotes correctly as required by POSIX, so do not add quotes.
2389     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2390     ;;
2391   esac >> confcache
2392 if cmp -s $cache_file confcache; then
2393   :
2394 else
2395   if test -w $cache_file; then
2396     echo "updating cache $cache_file"
2397     cat confcache > $cache_file
2398   else
2399     echo "not updating unwritable cache $cache_file"
2400   fi
2401 fi
2402 rm -f confcache
2403
2404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2405
2406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2407 # Let make expand exec_prefix.
2408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2409
2410 # Any assignment to VPATH causes Sun make to only execute
2411 # the first set of double-colon rules, so remove it if not needed.
2412 # If there is a colon in the path, we need to keep it.
2413 if test "x$srcdir" = x.; then
2414   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2415 fi
2416
2417 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2418
2419 DEFS=-DHAVE_CONFIG_H
2420
2421 # Without the "./", some shells look in PATH for config.status.
2422 : ${CONFIG_STATUS=./config.status}
2423
2424 echo creating $CONFIG_STATUS
2425 rm -f $CONFIG_STATUS
2426 cat > $CONFIG_STATUS <<EOF
2427 #! /bin/sh
2428 # Generated automatically by configure.
2429 # Run this file to recreate the current configuration.
2430 # This directory was configured as follows,
2431 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2432 #
2433 # $0 $ac_configure_args
2434 #
2435 # Compiler output produced by configure, useful for debugging
2436 # configure, is in ./config.log if it exists.
2437
2438 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2439 for ac_option
2440 do
2441   case "\$ac_option" in
2442   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2443     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2444     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2445   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2446     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2447     exit 0 ;;
2448   -help | --help | --hel | --he | --h)
2449     echo "\$ac_cs_usage"; exit 0 ;;
2450   *) echo "\$ac_cs_usage"; exit 1 ;;
2451   esac
2452 done
2453
2454 ac_given_srcdir=$srcdir
2455 ac_given_INSTALL="$INSTALL"
2456
2457 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2458 EOF
2459 cat >> $CONFIG_STATUS <<EOF
2460
2461 # Protect against being on the right side of a sed subst in config.status.
2462 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2463  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2464 $ac_vpsub
2465 $extrasub
2466 s%@SHELL@%$SHELL%g
2467 s%@CFLAGS@%$CFLAGS%g
2468 s%@CPPFLAGS@%$CPPFLAGS%g
2469 s%@CXXFLAGS@%$CXXFLAGS%g
2470 s%@FFLAGS@%$FFLAGS%g
2471 s%@DEFS@%$DEFS%g
2472 s%@LDFLAGS@%$LDFLAGS%g
2473 s%@LIBS@%$LIBS%g
2474 s%@exec_prefix@%$exec_prefix%g
2475 s%@prefix@%$prefix%g
2476 s%@program_transform_name@%$program_transform_name%g
2477 s%@bindir@%$bindir%g
2478 s%@sbindir@%$sbindir%g
2479 s%@libexecdir@%$libexecdir%g
2480 s%@datadir@%$datadir%g
2481 s%@sysconfdir@%$sysconfdir%g
2482 s%@sharedstatedir@%$sharedstatedir%g
2483 s%@localstatedir@%$localstatedir%g
2484 s%@libdir@%$libdir%g
2485 s%@includedir@%$includedir%g
2486 s%@oldincludedir@%$oldincludedir%g
2487 s%@infodir@%$infodir%g
2488 s%@mandir@%$mandir%g
2489 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2490 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2491 s%@INSTALL_DATA@%$INSTALL_DATA%g
2492 s%@PACKAGE@%$PACKAGE%g
2493 s%@VERSION@%$VERSION%g
2494 s%@ACLOCAL@%$ACLOCAL%g
2495 s%@AUTOCONF@%$AUTOCONF%g
2496 s%@AUTOMAKE@%$AUTOMAKE%g
2497 s%@AUTOHEADER@%$AUTOHEADER%g
2498 s%@MAKEINFO@%$MAKEINFO%g
2499 s%@SET_MAKE@%$SET_MAKE%g
2500 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2501 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2502 s%@MAINT@%$MAINT%g
2503 s%@host@%$host%g
2504 s%@host_alias@%$host_alias%g
2505 s%@host_cpu@%$host_cpu%g
2506 s%@host_vendor@%$host_vendor%g
2507 s%@host_os@%$host_os%g
2508 s%@build@%$build%g
2509 s%@build_alias@%$build_alias%g
2510 s%@build_cpu@%$build_cpu%g
2511 s%@build_vendor@%$build_vendor%g
2512 s%@build_os@%$build_os%g
2513 s%@CC@%$CC%g
2514 s%@LD@%$LD%g
2515 s%@NM@%$NM%g
2516 s%@LN_S@%$LN_S%g
2517 s%@AR@%$AR%g
2518 s%@RANLIB@%$RANLIB%g
2519 s%@DLLTOOL@%$DLLTOOL%g
2520 s%@AS@%$AS%g
2521 s%@OBJDUMP@%$OBJDUMP%g
2522 s%@LIBTOOL@%$LIBTOOL%g
2523 s%@CXX@%$CXX%g
2524 s%@CXXCPP@%$CXXCPP%g
2525 s%@EXEEXT@%$EXEEXT%g
2526 s%@sidtarget_arm@%$sidtarget_arm%g
2527 s%@SIDTARGET_ARM_TRUE@%$SIDTARGET_ARM_TRUE%g
2528 s%@SIDTARGET_ARM_FALSE@%$SIDTARGET_ARM_FALSE%g
2529 s%@sidtarget_mips@%$sidtarget_mips%g
2530 s%@SIDTARGET_MIPS_TRUE@%$SIDTARGET_MIPS_TRUE%g
2531 s%@SIDTARGET_MIPS_FALSE@%$SIDTARGET_MIPS_FALSE%g
2532 s%@sidtarget_m32r@%$sidtarget_m32r%g
2533 s%@SIDTARGET_M32R_TRUE@%$SIDTARGET_M32R_TRUE%g
2534 s%@SIDTARGET_M32R_FALSE@%$SIDTARGET_M32R_FALSE%g
2535 s%@sidtarget_m68k@%$sidtarget_m68k%g
2536 s%@SIDTARGET_M68K_TRUE@%$SIDTARGET_M68K_TRUE%g
2537 s%@SIDTARGET_M68K_FALSE@%$SIDTARGET_M68K_FALSE%g
2538 s%@sidtarget_ppc@%$sidtarget_ppc%g
2539 s%@SIDTARGET_PPC_TRUE@%$SIDTARGET_PPC_TRUE%g
2540 s%@SIDTARGET_PPC_FALSE@%$SIDTARGET_PPC_FALSE%g
2541 s%@subdirs@%$subdirs%g
2542 s%@cpu_subdirs@%$cpu_subdirs%g
2543 s%@cpu_incl@%$cpu_incl%g
2544 s%@cpu_libs@%$cpu_libs%g
2545
2546 CEOF
2547 EOF
2548
2549 cat >> $CONFIG_STATUS <<\EOF
2550
2551 # Split the substitutions into bite-sized pieces for seds with
2552 # small command number limits, like on Digital OSF/1 and HP-UX.
2553 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2554 ac_file=1 # Number of current file.
2555 ac_beg=1 # First line for current file.
2556 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2557 ac_more_lines=:
2558 ac_sed_cmds=""
2559 while $ac_more_lines; do
2560   if test $ac_beg -gt 1; then
2561     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2562   else
2563     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2564   fi
2565   if test ! -s conftest.s$ac_file; then
2566     ac_more_lines=false
2567     rm -f conftest.s$ac_file
2568   else
2569     if test -z "$ac_sed_cmds"; then
2570       ac_sed_cmds="sed -f conftest.s$ac_file"
2571     else
2572       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2573     fi
2574     ac_file=`expr $ac_file + 1`
2575     ac_beg=$ac_end
2576     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2577   fi
2578 done
2579 if test -z "$ac_sed_cmds"; then
2580   ac_sed_cmds=cat
2581 fi
2582 EOF
2583
2584 cat >> $CONFIG_STATUS <<EOF
2585
2586 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2587 EOF
2588 cat >> $CONFIG_STATUS <<\EOF
2589 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2590   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2591   case "$ac_file" in
2592   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2593        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2594   *) ac_file_in="${ac_file}.in" ;;
2595   esac
2596
2597   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2598
2599   # Remove last slash and all that follows it.  Not all systems have dirname.
2600   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2601   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2602     # The file is in a subdirectory.
2603     test ! -d "$ac_dir" && mkdir "$ac_dir"
2604     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2605     # A "../" for each directory in $ac_dir_suffix.
2606     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2607   else
2608     ac_dir_suffix= ac_dots=
2609   fi
2610
2611   case "$ac_given_srcdir" in
2612   .)  srcdir=.
2613       if test -z "$ac_dots"; then top_srcdir=.
2614       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2615   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2616   *) # Relative path.
2617     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2618     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2619   esac
2620
2621   case "$ac_given_INSTALL" in
2622   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2623   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2624   esac
2625
2626   echo creating "$ac_file"
2627   rm -f "$ac_file"
2628   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2629   case "$ac_file" in
2630   *Makefile*) ac_comsub="1i\\
2631 # $configure_input" ;;
2632   *) ac_comsub= ;;
2633   esac
2634
2635   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2636   sed -e "$ac_comsub
2637 s%@configure_input@%$configure_input%g
2638 s%@srcdir@%$srcdir%g
2639 s%@top_srcdir@%$top_srcdir%g
2640 s%@INSTALL@%$INSTALL%g
2641 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2642 fi; done
2643 rm -f conftest.s*
2644
2645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2647 #
2648 # ac_d sets the value in "#define NAME VALUE" lines.
2649 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2650 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2651 ac_dC='\3'
2652 ac_dD='%g'
2653 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2654 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2655 ac_uB='\([      ]\)%\1#\2define\3'
2656 ac_uC=' '
2657 ac_uD='\4%g'
2658 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2659 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2660 ac_eB='$%\1#\2define\3'
2661 ac_eC=' '
2662 ac_eD='%g'
2663
2664 if test "${CONFIG_HEADERS+set}" != set; then
2665 EOF
2666 cat >> $CONFIG_STATUS <<EOF
2667   CONFIG_HEADERS="config.h:config.in"
2668 EOF
2669 cat >> $CONFIG_STATUS <<\EOF
2670 fi
2671 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2672   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2673   case "$ac_file" in
2674   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2675        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2676   *) ac_file_in="${ac_file}.in" ;;
2677   esac
2678
2679   echo creating $ac_file
2680
2681   rm -f conftest.frag conftest.in conftest.out
2682   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2683   cat $ac_file_inputs > conftest.in
2684
2685 EOF
2686
2687 # Transform confdefs.h into a sed script conftest.vals that substitutes
2688 # the proper values into config.h.in to produce config.h.  And first:
2689 # Protect against being on the right side of a sed subst in config.status.
2690 # Protect against being in an unquoted here document in config.status.
2691 rm -f conftest.vals
2692 cat > conftest.hdr <<\EOF
2693 s/[\\&%]/\\&/g
2694 s%[\\$`]%\\&%g
2695 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2696 s%ac_d%ac_u%gp
2697 s%ac_u%ac_e%gp
2698 EOF
2699 sed -n -f conftest.hdr confdefs.h > conftest.vals
2700 rm -f conftest.hdr
2701
2702 # This sed command replaces #undef with comments.  This is necessary, for
2703 # example, in the case of _POSIX_SOURCE, which is predefined and required
2704 # on some systems where configure will not decide to define it.
2705 cat >> conftest.vals <<\EOF
2706 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2707 EOF
2708
2709 # Break up conftest.vals because some shells have a limit on
2710 # the size of here documents, and old seds have small limits too.
2711
2712 rm -f conftest.tail
2713 while :
2714 do
2715   ac_lines=`grep -c . conftest.vals`
2716   # grep -c gives empty output for an empty file on some AIX systems.
2717   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2718   # Write a limited-size here document to conftest.frag.
2719   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2720   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2721   echo 'CEOF
2722   sed -f conftest.frag conftest.in > conftest.out
2723   rm -f conftest.in
2724   mv conftest.out conftest.in
2725 ' >> $CONFIG_STATUS
2726   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2727   rm -f conftest.vals
2728   mv conftest.tail conftest.vals
2729 done
2730 rm -f conftest.vals
2731
2732 cat >> $CONFIG_STATUS <<\EOF
2733   rm -f conftest.frag conftest.h
2734   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2735   cat conftest.in >> conftest.h
2736   rm -f conftest.in
2737   if cmp -s $ac_file conftest.h 2>/dev/null; then
2738     echo "$ac_file is unchanged"
2739     rm -f conftest.h
2740   else
2741     # Remove last slash and all that follows it.  Not all systems have dirname.
2742       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2743       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2744       # The file is in a subdirectory.
2745       test ! -d "$ac_dir" && mkdir "$ac_dir"
2746     fi
2747     rm -f $ac_file
2748     mv conftest.h $ac_file
2749   fi
2750 fi; done
2751
2752 EOF
2753 cat >> $CONFIG_STATUS <<EOF
2754
2755
2756 EOF
2757 cat >> $CONFIG_STATUS <<\EOF
2758 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2759
2760 exit 0
2761 EOF
2762 chmod +x $CONFIG_STATUS
2763 rm -fr confdefs* $ac_clean_files
2764 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2765
2766 if test "$no_recursion" != yes; then
2767
2768   # Remove --cache-file and --srcdir arguments so they do not pile up.
2769   ac_sub_configure_args=
2770   ac_prev=
2771   for ac_arg in $ac_configure_args; do
2772     if test -n "$ac_prev"; then
2773       ac_prev=
2774       continue
2775     fi
2776     case "$ac_arg" in
2777     -cache-file | --cache-file | --cache-fil | --cache-fi \
2778     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2779       ac_prev=cache_file ;;
2780     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2781     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2782       ;;
2783     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2784       ac_prev=srcdir ;;
2785     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2786       ;;
2787     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2788     esac
2789   done
2790
2791   for ac_config_dir in $cpu_subdirs; do
2792
2793     # Do not complain, so a configure script can configure whichever
2794     # parts of a large source tree are present.
2795     if test ! -d $srcdir/$ac_config_dir; then
2796       continue
2797     fi
2798
2799     echo configuring in $ac_config_dir
2800
2801     case "$srcdir" in
2802     .) ;;
2803     *)
2804       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2805       else
2806         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2807       fi
2808       ;;
2809     esac
2810
2811     ac_popdir=`pwd`
2812     cd $ac_config_dir
2813
2814       # A "../" for each directory in /$ac_config_dir.
2815       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2816
2817     case "$srcdir" in
2818     .) # No --srcdir option.  We are building in place.
2819       ac_sub_srcdir=$srcdir ;;
2820     /*) # Absolute path.
2821       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2822     *) # Relative path.
2823       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2824     esac
2825
2826     # Check for guested configure; otherwise get Cygnus style configure.
2827     if test -f $ac_sub_srcdir/configure; then
2828       ac_sub_configure=$ac_sub_srcdir/configure
2829     elif test -f $ac_sub_srcdir/configure.in; then
2830       ac_sub_configure=$ac_configure
2831     else
2832       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2833       ac_sub_configure=
2834     fi
2835
2836     # The recursion is here.
2837     if test -n "$ac_sub_configure"; then
2838
2839       # Make the cache file name correct relative to the subdirectory.
2840       case "$cache_file" in
2841       /*) ac_sub_cache_file=$cache_file ;;
2842       *) # Relative path.
2843         ac_sub_cache_file="$ac_dots$cache_file" ;;
2844       esac
2845   case "$ac_given_INSTALL" in
2846         [/$]*) INSTALL="$ac_given_INSTALL" ;;
2847         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2848         esac
2849
2850       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2851       # The eval makes quoting arguments work.
2852       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2853       then :
2854       else
2855         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2856       fi
2857     fi
2858
2859     cd $ac_popdir
2860   done
2861 fi
2862