OSDN Git Service

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