OSDN Git Service

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