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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-stabs arrange to use stabs instead of host debug format"
17 --enable-gtk enable gdbtk graphical user interface (GUI)"
19 --enable-shared build shared libraries [deault=yes]"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file
=.
/config.cache
34 program_transform_name
=s
,x
,x
,
43 bindir
='${exec_prefix}/bin'
44 sbindir
='${exec_prefix}/sbin'
45 libexecdir
='${exec_prefix}/libexec'
46 datadir
='${prefix}/share'
47 sysconfdir
='${prefix}/etc'
48 sharedstatedir
='${prefix}/com'
49 localstatedir
='${prefix}/var'
50 libdir
='${exec_prefix}/lib'
51 includedir
='${prefix}/include'
52 oldincludedir
='/usr/include'
53 infodir
='${prefix}/info'
54 mandir
='${prefix}/man'
56 # Initialize some other variables.
59 SHELL
=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --site-file=FILE use FILE as the site file
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host |
--host |
--hos |
--ho)
199 -host=* |
--host=* |
--hos=* |
--ho=*)
202 -includedir |
--includedir |
--includedi |
--included |
--include \
203 |
--includ |
--inclu |
--incl |
--inc)
204 ac_prev
=includedir
;;
205 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
206 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
207 includedir
="$ac_optarg" ;;
209 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
211 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
212 infodir
="$ac_optarg" ;;
214 -libdir |
--libdir |
--libdi |
--libd)
216 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
217 libdir
="$ac_optarg" ;;
219 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
220 |
--libexe |
--libex |
--libe)
221 ac_prev
=libexecdir
;;
222 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
223 |
--libexe=* |
--libex=* |
--libe=*)
224 libexecdir
="$ac_optarg" ;;
226 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
227 |
--localstate |
--localstat |
--localsta |
--localst \
228 |
--locals |
--local |
--loca |
--loc |
--lo)
229 ac_prev
=localstatedir
;;
230 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
231 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
232 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
233 localstatedir
="$ac_optarg" ;;
235 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
237 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
238 mandir
="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
248 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
249 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
252 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
253 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
254 |
--oldin |
--oldi |
--old |
--ol |
--o)
255 ac_prev
=oldincludedir
;;
256 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
257 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
258 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
259 oldincludedir
="$ac_optarg" ;;
261 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
263 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
264 prefix
="$ac_optarg" ;;
266 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
267 |
--program-pre |
--program-pr |
--program-p)
268 ac_prev
=program_prefix
;;
269 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
270 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
271 program_prefix
="$ac_optarg" ;;
273 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
274 |
--program-suf |
--program-su |
--program-s)
275 ac_prev
=program_suffix
;;
276 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
277 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
278 program_suffix
="$ac_optarg" ;;
280 -program-transform-name |
--program-transform-name \
281 |
--program-transform-nam |
--program-transform-na \
282 |
--program-transform-n |
--program-transform- \
283 |
--program-transform |
--program-transfor \
284 |
--program-transfo |
--program-transf \
285 |
--program-trans |
--program-tran \
286 |
--progr-tra |
--program-tr |
--program-t)
287 ac_prev
=program_transform_name
;;
288 -program-transform-name=* |
--program-transform-name=* \
289 |
--program-transform-nam=* |
--program-transform-na=* \
290 |
--program-transform-n=* |
--program-transform-=* \
291 |
--program-transform=* |
--program-transfor=* \
292 |
--program-transfo=* |
--program-transf=* \
293 |
--program-trans=* |
--program-tran=* \
294 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
295 program_transform_name
="$ac_optarg" ;;
297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
298 |
-silent |
--silent |
--silen |
--sile |
--sil)
301 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
303 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
305 sbindir
="$ac_optarg" ;;
307 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
308 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
309 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
311 ac_prev
=sharedstatedir
;;
312 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
313 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
314 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
316 sharedstatedir
="$ac_optarg" ;;
318 -site |
--site |
--sit)
320 -site=* |
--site=* |
--sit=*)
323 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
325 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
326 sitefile
="$ac_optarg" ;;
328 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
330 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
331 srcdir
="$ac_optarg" ;;
333 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
334 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
335 ac_prev
=sysconfdir
;;
336 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
337 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
338 sysconfdir
="$ac_optarg" ;;
340 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
342 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
343 target
="$ac_optarg" ;;
345 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
348 -version |
--version |
--versio |
--versi |
--vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* |
--without-*)
366 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
379 |
--x-incl |
--x-inc |
--x-in |
--x-i)
380 ac_prev
=x_includes
;;
381 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
382 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
383 x_includes
="$ac_optarg" ;;
385 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
386 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
387 ac_prev
=x_libraries
;;
388 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
389 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
390 x_libraries
="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE
; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
441 |
--no-cr |
--no-c) ;;
442 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
443 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
444 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest
* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file
=gdb.base
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted
=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted
=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$sitefile"; then
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE
; then
496 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 CONFIG_SITE
="$sitefile"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
543 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
544 if test -f $ac_dir/install-sh
; then
546 ac_install_sh
="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh
; then
550 ac_install_sh
="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 ac_config_guess
=$ac_aux_dir/config.guess
558 ac_config_sub
=$ac_aux_dir/config.sub
559 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
561 echo $ac_n "checking build system type""... $ac_c" 1>&6
562 echo "configure:563: checking build system type" >&5
565 case "$build_alias" in
568 NONE
) build_alias
=$host_alias ;;
569 *) build_alias
=$nonopt ;;
573 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
574 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
575 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
576 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
577 echo "$ac_t""$build" 1>&6
580 # Make sure we can run config.sub.
581 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585 echo $ac_n "checking host system type""... $ac_c" 1>&6
586 echo "configure:587: checking host system type" >&5
589 case "$host_alias" in
593 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
594 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
596 *) host_alias
=$nonopt ;;
600 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
601 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
602 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
603 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
604 echo "$ac_t""$host" 1>&6
606 echo $ac_n "checking target system type""... $ac_c" 1>&6
607 echo "configure:608: checking target system type" >&5
610 case "$target_alias" in
613 NONE
) target_alias
=$host_alias ;;
614 *) target_alias
=$nonopt ;;
618 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
619 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$target" 1>&6
625 # Directories that need to be configured in all configurations.
628 # Add HP-specific tests when appropriate.
631 configdirs
="$configdirs gdb.hp" ;;
635 # Check whether --with-stabs or --without-stabs was given.
636 if test "${with_stabs+set}" = set; then
637 withval
="$with_stabs"
640 # We enable stabs tests by default on selected targets.
659 # Add stabs tests when appropriate.
660 if test $with_stabs = yes; then
661 configdirs
="$configdirs gdb.stabs"
665 # Check whether --enable-gdbtk or --disable-gdbtk was given.
666 if test "${enable_gdbtk+set}" = set; then
667 enableval
="$enable_gdbtk"
670 if test -d $srcdir/gdb.gdbtk
; then
677 # We unconditionally disable gdbtk tests on selected platforms.
683 # Add gdbtk tests when appropriate.
684 if test $enable_gdbtk = yes; then
685 configdirs
="$configdirs gdb.gdbtk"
688 # Enable shared libraries.
689 # Check whether --enable-shared or --disable-shared was given.
690 if test "${enable_shared+set}" = set; then
691 enableval
="$enable_shared"
698 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
699 # such that we can find the shared libraries in the build tree.
700 if test $enable_shared = no
; then
701 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
703 RPATH_ENVVAR
=RPATH_ENVVAR
705 # The variable `LD_LIBRARY_PATH' is used on most platforms.
706 RPATH_ENVVAR
=LD_LIBRARY_PATH
707 # The following exceptions are taken from Libtool 1.4.3.
710 if test $host_cpu != ia64
; then
714 RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
716 RPATH_ENVVAR
=SHLIB_PATH
;;
721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
722 echo "configure:723: checking how to run the C preprocessor" >&5
723 # On Suns, sometimes $CPP names a directory.
724 if test -n "$CPP" && test -d "$CPP"; then
727 if test -z "$CPP"; then
728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 # This must be in double quotes, not single quotes, because CPP may get
732 # substituted into the Makefile and "${CC-cc}" will confuse make.
734 # On the NeXT, cc -E runs the code through the compiler's parser,
735 # not just through cpp.
736 cat > conftest.
$ac_ext <<EOF
737 #line 738 "configure"
738 #include "confdefs.h"
742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
743 { (eval echo configure
:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
745 if test -z "$ac_err"; then
749 echo "configure: failed program was:" >&5
750 cat conftest.
$ac_ext >&5
752 CPP
="${CC-cc} -E -traditional-cpp"
753 cat > conftest.
$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
760 { (eval echo configure
:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
762 if test -z "$ac_err"; then
766 echo "configure: failed program was:" >&5
767 cat conftest.
$ac_ext >&5
769 CPP
="${CC-cc} -nologo -E"
770 cat > conftest.
$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
777 { (eval echo configure
:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
779 if test -z "$ac_err"; then
783 echo "configure: failed program was:" >&5
784 cat conftest.
$ac_ext >&5
793 ac_cv_prog_CPP
="$CPP"
795 CPP
="$ac_cv_prog_CPP"
797 ac_cv_prog_CPP
="$CPP"
799 echo "$ac_t""$CPP" 1>&6
801 for ac_hdr
in pthread.h
803 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_hdr" >&5
806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.
$ac_ext <<EOF
810 #line 811 "configure"
811 #include "confdefs.h"
814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 { (eval echo configure
:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 if test -z "$ac_err"; then
819 eval "ac_cv_header_$ac_safe=yes"
822 echo "configure: failed program was:" >&5
823 cat conftest.
$ac_ext >&5
825 eval "ac_cv_header_$ac_safe=no"
829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
830 echo "$ac_t""yes" 1>&6
831 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
832 cat >> confdefs.h
<<EOF
837 echo "$ac_t""no" 1>&6
842 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
843 echo "configure:844: checking for Cygwin environment" >&5
844 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 cat > conftest.
$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
854 #define __CYGWIN__ __CYGWIN32__
859 if { (eval echo configure
:860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
863 echo "configure: failed program was:" >&5
864 cat conftest.
$ac_ext >&5
872 echo "$ac_t""$ac_cv_cygwin" 1>&6
874 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
875 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
876 echo "configure:877: checking for mingw32 environment" >&5
877 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 cat > conftest.
$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
888 if { (eval echo configure
:889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
892 echo "configure: failed program was:" >&5
893 cat conftest.
$ac_ext >&5
901 echo "$ac_t""$ac_cv_mingw32" 1>&6
903 test "$ac_cv_mingw32" = yes && MINGW32
=yes
906 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
907 echo "configure:908: checking for executable suffix" >&5
908 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
915 echo 'int main () { return 0; }' > conftest.
$ac_ext
917 if { (eval echo configure
:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
918 for file in conftest.
*; do
920 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
921 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
925 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
928 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
933 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
934 echo "$ac_t""${ac_cv_exeext}" 1>&6
938 subdirs
="$configdirs"
941 cat > confcache
<<\EOF
942 # This file is a shell script that caches the results of configure
943 # tests run on this system so they can be shared between configure
944 # scripts and configure runs. It is not useful on other systems.
945 # If it contains results you don't want to keep, you may remove or edit it.
947 # By default, configure uses ./config.cache as the cache file,
948 # creating it if it does not exist already. You can give configure
949 # the --cache-file=FILE option to use a different cache file; that is
950 # what configure does when it calls configure scripts in
951 # subdirectories, so they share the cache.
952 # Giving --cache-file=/dev/null disables caching, for debugging configure.
953 # config.status only pays attention to the cache file if you give it the
954 # --recheck option to rerun configure.
957 # The following way of writing the cache mishandles newlines in values,
958 # but we know of no workaround that is simple, portable, and efficient.
959 # So, don't put newlines in cache variables' values.
960 # Ultrix sh set writes to stderr and can't be redirected directly,
961 # and sets the high bit in the cache file unless we assign to the vars.
963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
965 # `set' does not quote correctly, so add quotes (double-quote substitution
966 # turns \\\\ into \\, and sed turns \\ into \).
969 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
972 # `set' quotes correctly as required by POSIX, so do not add quotes.
973 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
976 if cmp -s $cache_file confcache
; then
979 if test -w $cache_file; then
980 echo "updating cache $cache_file"
981 cat confcache
> $cache_file
983 echo "not updating unwritable cache $cache_file"
988 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
990 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
991 # Let make expand exec_prefix.
992 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
994 # Any assignment to VPATH causes Sun make to only execute
995 # the first set of double-colon rules, so remove it if not needed.
996 # If there is a colon in the path, we need to keep it.
997 if test "x$srcdir" = x.
; then
998 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1001 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1003 # Transform confdefs.h into DEFS.
1004 # Protect against shell expansion while executing Makefile rules.
1005 # Protect against Makefile macro expansion.
1006 cat > conftest.defs
<<\EOF
1007 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1008 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1013 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1017 # Without the "./", some shells look in PATH for config.status.
1018 : ${CONFIG_STATUS=./config.status}
1020 echo creating $CONFIG_STATUS
1021 rm -f $CONFIG_STATUS
1022 cat > $CONFIG_STATUS <<EOF
1024 # Generated automatically by configure.
1025 # Run this file to recreate the current configuration.
1026 # This directory was configured as follows,
1027 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1029 # $0 $ac_configure_args
1031 # Compiler output produced by configure, useful for debugging
1032 # configure, is in ./config.log if it exists.
1034 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1037 case "\$ac_option" in
1038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1039 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1040 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1041 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1042 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1044 -help | --help | --hel | --he | --h)
1045 echo "\$ac_cs_usage"; exit 0 ;;
1046 *) echo "\$ac_cs_usage"; exit 1 ;;
1050 ac_given_srcdir=$srcdir
1052 trap 'rm -fr `echo "Makefile \
1053 gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
1054 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1055 gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
1056 gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1058 cat >> $CONFIG_STATUS <<EOF
1060 # Protect against being on the right side of a sed subst in config.status.
1061 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1062 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1066 s%@CFLAGS@%$CFLAGS%g
1067 s%@CPPFLAGS@%$CPPFLAGS%g
1068 s%@CXXFLAGS@%$CXXFLAGS%g
1069 s%@FFLAGS@%$FFLAGS%g
1071 s%@LDFLAGS@%$LDFLAGS%g
1073 s%@exec_prefix@%$exec_prefix%g
1074 s%@prefix@%$prefix%g
1075 s%@program_transform_name@%$program_transform_name%g
1076 s%@bindir@%$bindir%g
1077 s%@sbindir@%$sbindir%g
1078 s%@libexecdir@%$libexecdir%g
1079 s%@datadir@%$datadir%g
1080 s%@sysconfdir@%$sysconfdir%g
1081 s%@sharedstatedir@%$sharedstatedir%g
1082 s%@localstatedir@%$localstatedir%g
1083 s%@libdir@%$libdir%g
1084 s%@includedir@%$includedir%g
1085 s%@oldincludedir@%$oldincludedir%g
1086 s%@infodir@%$infodir%g
1087 s%@mandir@%$mandir%g
1089 s%@build_alias@%$build_alias%g
1090 s%@build_cpu@%$build_cpu%g
1091 s%@build_vendor@%$build_vendor%g
1092 s%@build_os@%$build_os%g
1094 s%@host_alias@%$host_alias%g
1095 s%@host_cpu@%$host_cpu%g
1096 s%@host_vendor@%$host_vendor%g
1097 s%@host_os@%$host_os%g
1098 s%@target@%$target%g
1099 s%@target_alias@%$target_alias%g
1100 s%@target_cpu@%$target_cpu%g
1101 s%@target_vendor@%$target_vendor%g
1102 s%@target_os@%$target_os%g
1103 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1105 s%@EXEEXT@%$EXEEXT%g
1106 s%@subdirs@%$subdirs%g
1111 cat >> $CONFIG_STATUS <<\EOF
1113 # Split the substitutions into bite-sized pieces for seds with
1114 # small command number limits, like on Digital OSF/1 and HP-UX.
1115 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1116 ac_file=1 # Number of current file.
1117 ac_beg=1 # First line for current file.
1118 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1121 while $ac_more_lines; do
1122 if test $ac_beg -gt 1; then
1123 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1125 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1127 if test ! -s conftest.s$ac_file; then
1129 rm -f conftest.s$ac_file
1131 if test -z "$ac_sed_cmds"; then
1132 ac_sed_cmds="sed -f conftest.s$ac_file"
1134 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1136 ac_file=`expr $ac_file + 1`
1138 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1141 if test -z "$ac_sed_cmds"; then
1146 cat >> $CONFIG_STATUS <<EOF
1148 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
1149 gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
1150 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1151 gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
1152 gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile"}
1154 cat >> $CONFIG_STATUS <<\EOF
1155 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1158 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1159 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1160 *) ac_file_in="${ac_file}.in" ;;
1163 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1165 # Remove last slash and all that follows it. Not all systems have dirname.
1166 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1167 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1168 # The file is in a subdirectory.
1169 test ! -d "$ac_dir" && mkdir "$ac_dir"
1170 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1171 # A "../" for each directory in $ac_dir_suffix.
1172 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1174 ac_dir_suffix= ac_dots=
1177 case "$ac_given_srcdir" in
1179 if test -z "$ac_dots"; then top_srcdir=.
1180 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1181 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1183 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1184 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1188 echo creating "$ac_file"
1190 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1192 *Makefile*) ac_comsub="1i\\
1193 # $configure_input" ;;
1197 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1199 s%@configure_input@%$configure_input%g
1200 s%@srcdir@%$srcdir%g
1201 s%@top_srcdir@%$top_srcdir%g
1202 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1207 cat >> $CONFIG_STATUS <<EOF
1210 cat >> $CONFIG_STATUS <<\EOF
1214 chmod +x $CONFIG_STATUS
1215 rm -fr confdefs* $ac_clean_files
1216 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1218 if test "$no_recursion" != yes; then
1220 # Remove --cache-file and --srcdir arguments so they do not pile up.
1221 ac_sub_configure_args=
1223 for ac_arg in $ac_configure_args; do
1224 if test -n "$ac_prev"; then
1229 -cache-file | --cache-file | --cache-fil | --cache-fi \
1230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1231 ac_prev=cache_file ;;
1232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1243 for ac_config_dir in $configdirs; do
1245 # Do not complain, so a configure script can configure whichever
1246 # parts of a large source tree are present.
1247 if test ! -d $srcdir/$ac_config_dir; then
1251 echo configuring in $ac_config_dir
1256 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1258 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1266 # A "../" for each directory in /$ac_config_dir.
1267 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1270 .) # No --srcdir option. We are building in place.
1271 ac_sub_srcdir=$srcdir ;;
1272 /*) # Absolute path.
1273 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1275 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1278 # Check for guested configure; otherwise get Cygnus style configure.
1279 if test -f $ac_sub_srcdir/configure; then
1280 ac_sub_configure=$ac_sub_srcdir/configure
1281 elif test -f $ac_sub_srcdir/configure.in; then
1282 ac_sub_configure=$ac_configure
1284 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1288 # The recursion is here.
1289 if test -n "$ac_sub_configure"; then
1291 # Make the cache file name correct relative to the subdirectory.
1292 case "$cache_file" in
1293 /*) ac_sub_cache_file=$cache_file ;;
1295 ac_sub_cache_file="$ac_dots$cache_file" ;;
1298 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1299 # The eval makes quoting arguments work.
1300 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1303 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }