source: trunk/third/gcc/libobjc/configure @ 21199

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