2002-08-01 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared use shared libraries"
16 ac_help="$ac_help
17 --enable-gdbtk "
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
67 ac_prev=
68 continue
69 fi
70
71 case "$ac_option" in
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 *) ac_optarg= ;;
74 esac
75
76 # Accept the important Cygnus configure options, so we can diagnose typos.
77
78 case "$ac_option" in
79
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 ac_prev=bindir ;;
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
84
85 -build | --build | --buil | --bui | --bu)
86 ac_prev=build ;;
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 build="$ac_optarg" ;;
89
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 ac_prev=cache_file ;;
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
96
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 ac_prev=datadir ;;
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 | --da=*)
101 datadir="$ac_optarg" ;;
102
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 fi
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
111
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 case "$ac_option" in
120 *=*) ;;
121 *) ac_optarg=yes ;;
122 esac
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
133
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
136 with_gas=yes ;;
137
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
141 cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
152 [$ac_default_prefix]
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 [same as prefix]
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
159 [PREFIX/share]
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 [PREFIX/com]
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
174 EOF
175 cat << EOF
176 Host type:
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
187 EOF
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
190 fi
191 exit 0 ;;
192
193 -host | --host | --hos | --ho)
194 ac_prev=host ;;
195 -host=* | --host=* | --hos=* | --ho=*)
196 host="$ac_optarg" ;;
197
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
204
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 ac_prev=infodir ;;
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
209
210 -libdir | --libdir | --libdi | --libd)
211 ac_prev=libdir ;;
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
214
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
221
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
230
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 ac_prev=mandir ;;
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
235
236 -nfp | --nfp | --nf)
237 # Obsolete; use --without-fp.
238 with_fp=no ;;
239
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 | --no-cr | --no-c)
242 no_create=yes ;;
243
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 no_recursion=yes ;;
247
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
256
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 ac_prev=prefix ;;
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
261
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
268
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
275
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
292
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
295 silent=yes ;;
296
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 ac_prev=sbindir ;;
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 | --sbi=* | --sb=*)
301 sbindir="$ac_optarg" ;;
302
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
306 | --sha | --sh)
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 | --sha=* | --sh=*)
312 sharedstatedir="$ac_optarg" ;;
313
314 -site | --site | --sit)
315 ac_prev=site ;;
316 -site=* | --site=* | --sit=*)
317 site="$ac_optarg" ;;
318
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 ac_prev=srcdir ;;
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
323
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
330
331 -target | --target | --targe | --targ | --tar | --ta | --t)
332 ac_prev=target ;;
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
335
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 verbose=yes ;;
338
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
341 exit 0 ;;
342
343 -with-* | --with-*)
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 fi
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 case "$ac_option" in
351 *=*) ;;
352 *) ac_optarg=yes ;;
353 esac
354 eval "with_${ac_package}='$ac_optarg'" ;;
355
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
364
365 --x)
366 # Obsolete; use --with-x.
367 with_x=yes ;;
368
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
375
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
382
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 ;;
385
386 *)
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 fi
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392 fi
393 nonopt="$ac_option"
394 ;;
395
396 esac
397 done
398
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414 exec 6>/dev/null
415 else
416 exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430 case "$ac_arg" in
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=gdb.base
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
470 fi
471 else
472 ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
495 fi
496 done
497
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501 else
502 echo "creating cache $cache_file"
503 > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518 ac_n= ac_c='
519 ' ac_t=' '
520 else
521 ac_n=-n ac_c= ac_t=
522 fi
523 else
524 ac_n= ac_c='\c' ac_t=
525 fi
526
527
528
529 CC=${CC-cc}
530
531 ac_aux_dir=
532 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
533 if test -f $ac_dir/install-sh; then
534 ac_aux_dir=$ac_dir
535 ac_install_sh="$ac_aux_dir/install-sh -c"
536 break
537 elif test -f $ac_dir/install.sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install.sh -c"
540 break
541 fi
542 done
543 if test -z "$ac_aux_dir"; then
544 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
545 fi
546 ac_config_guess=$ac_aux_dir/config.guess
547 ac_config_sub=$ac_aux_dir/config.sub
548 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549
550
551 # Do some error checking and defaulting for the host and target type.
552 # The inputs are:
553 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
554 #
555 # The rules are:
556 # 1. You are not allowed to specify --host, --target, and nonopt at the
557 # same time.
558 # 2. Host defaults to nonopt.
559 # 3. If nonopt is not specified, then host defaults to the current host,
560 # as determined by config.guess.
561 # 4. Target and build default to nonopt.
562 # 5. If nonopt is not specified, then target and build default to host.
563
564 # The aliases save the names the user supplied, while $host etc.
565 # will get canonicalized.
566 case $host---$target---$nonopt in
567 NONE---*---* | *---NONE---* | *---*---NONE) ;;
568 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
569 esac
570
571
572 # Make sure we can run config.sub.
573 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
574 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
575 fi
576
577 echo $ac_n "checking host system type""... $ac_c" 1>&6
578 echo "configure:579: checking host system type" >&5
579
580 host_alias=$host
581 case "$host_alias" in
582 NONE)
583 case $nonopt in
584 NONE)
585 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
586 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
587 fi ;;
588 *) host_alias=$nonopt ;;
589 esac ;;
590 esac
591
592 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
593 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
594 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
595 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
596 echo "$ac_t""$host" 1>&6
597
598 echo $ac_n "checking target system type""... $ac_c" 1>&6
599 echo "configure:600: checking target system type" >&5
600
601 target_alias=$target
602 case "$target_alias" in
603 NONE)
604 case $nonopt in
605 NONE) target_alias=$host_alias ;;
606 *) target_alias=$nonopt ;;
607 esac ;;
608 esac
609
610 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
611 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614 echo "$ac_t""$target" 1>&6
615
616 echo $ac_n "checking build system type""... $ac_c" 1>&6
617 echo "configure:618: checking build system type" >&5
618
619 build_alias=$build
620 case "$build_alias" in
621 NONE)
622 case $nonopt in
623 NONE) build_alias=$host_alias ;;
624 *) build_alias=$nonopt ;;
625 esac ;;
626 esac
627
628 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
629 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$build" 1>&6
633
634 test "$host_alias" != "$target_alias" &&
635 test "$program_prefix$program_suffix$program_transform_name" = \
636 NONENONEs,x,x, &&
637 program_prefix=${target_alias}-
638
639
640 # Directories to use in all configurations.
641 configdirs="gdb.arch \
642 gdb.asm \
643 gdb.base \
644 gdb.c++ \
645 gdb.java \
646 gdb.disasm \
647 gdb.mi \
648 gdb.threads \
649 gdb.trace"
650
651
652 # Directories to use for a configuration which uses stabs.
653 stabsdirs="gdb.stabs"
654
655 # this section is for targets that use stabs
656 # add stabs tests for appropriate targets
657 case "${target}" in
658 powerpc-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
659 rs6000-*-aix*) configdirs="${configdirs} ${stabsdirs}" ;;
660 *-*-bsd*) configdirs="${configdirs} ${stabsdirs}" ;;
661 *-*-go32*) configdirs="${configdirs} ${stabsdirs}" ;;
662 *-*-linux*) configdirs="${configdirs} ${stabsdirs}" ;;
663 *-*-lynxos*) configdirs="${configdirs} ${stabsdirs}" ;;
664 *-sun-*) configdirs="${configdirs} ${stabsdirs}" ;;
665 hppa*-*-*) configdirs="${configdirs} ${stabsdirs}" ;;
666 *-*-elf*) configdirs="${configdirs} ${stabsdirs}" ;;
667 *) if test "x${with_stabs}" = x"yes" ; then
668 configdirs="${configdirs} ${stabsdirs}"
669 fi ;;
670 esac
671
672 # Directory with HP specific tests. They will run only with HP's compilers.
673 # These tests will not work on other platforms and compilers.
674
675 hpdir="gdb.hp"
676
677 case "${target}" in
678 hppa*-*-hpux*) configdirs="${configdirs} ${hpdir}" ;;
679 esac
680
681
682 # Begin stuff to support --enable-shared
683 # Check whether --enable-shared or --disable-shared was given.
684 if test "${enable_shared+set}" = set; then
685 enableval="$enable_shared"
686 case "${enableval}" in
687 yes) shared=true ;;
688 no) shared=false ;;
689 *) shared=true ;;
690 esac
691 fi
692 RPATH_ENVVAR=LD_LIBRARY_PATH
693 # If we have shared libraries, try to set RPATH_ENVVAR reasonably.
694 if test "${shared}" = "true"; then
695 case "${host}" in
696 *-*-hpux*)
697 RPATH_ENVVAR=SHLIB_PATH
698 ;;
699 esac
700 fi
701
702 # End stuff to support --enable-shared
703 # Start stuff to support --enable-gdbtk
704 # Check whether --enable-gdbtk or --disable-gdbtk was given.
705 if test "${enable_gdbtk+set}" = set; then
706 enableval="$enable_gdbtk"
707 case "${enableval}" in
708 yes)
709 case "$host" in
710 *go32*)
711 enable_gdbtk=no ;;
712 *windows*)
713 enable_gdbtk=no ;;
714 *)
715 enable_gdbtk=yes ;;
716 esac ;;
717 no)
718 enable_gdbtk=no ;;
719 *)
720 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
721 esac
722 else
723
724 # Default is on for everything but go32 and windows
725 case "$host" in
726 *go32* | *windows*)
727 ;;
728 *)
729 enable_gdbtk=yes ;;
730 esac
731
732 fi
733
734
735 if test "${enable_gdbtk}" = "yes"; then
736 configdirs="${configdirs} gdb.gdbtk"
737 fi
738 # End stuff to support --enable-shared
739
740 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
741 echo "configure:742: checking for Cygwin environment" >&5
742 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
744 else
745 cat > conftest.$ac_ext <<EOF
746 #line 747 "configure"
747 #include "confdefs.h"
748
749 int main() {
750
751 #ifndef __CYGWIN__
752 #define __CYGWIN__ __CYGWIN32__
753 #endif
754 return __CYGWIN__;
755 ; return 0; }
756 EOF
757 if { (eval echo configure:758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
758 rm -rf conftest*
759 ac_cv_cygwin=yes
760 else
761 echo "configure: failed program was:" >&5
762 cat conftest.$ac_ext >&5
763 rm -rf conftest*
764 ac_cv_cygwin=no
765 fi
766 rm -f conftest*
767 rm -f conftest*
768 fi
769
770 echo "$ac_t""$ac_cv_cygwin" 1>&6
771 CYGWIN=
772 test "$ac_cv_cygwin" = yes && CYGWIN=yes
773 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
774 echo "configure:775: checking for mingw32 environment" >&5
775 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777 else
778 cat > conftest.$ac_ext <<EOF
779 #line 780 "configure"
780 #include "confdefs.h"
781
782 int main() {
783 return __MINGW32__;
784 ; return 0; }
785 EOF
786 if { (eval echo configure:787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
787 rm -rf conftest*
788 ac_cv_mingw32=yes
789 else
790 echo "configure: failed program was:" >&5
791 cat conftest.$ac_ext >&5
792 rm -rf conftest*
793 ac_cv_mingw32=no
794 fi
795 rm -f conftest*
796 rm -f conftest*
797 fi
798
799 echo "$ac_t""$ac_cv_mingw32" 1>&6
800 MINGW32=
801 test "$ac_cv_mingw32" = yes && MINGW32=yes
802
803
804 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
805 echo "configure:806: checking for executable suffix" >&5
806 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
810 ac_cv_exeext=.exe
811 else
812 rm -f conftest*
813 echo 'int main () { return 0; }' > conftest.$ac_ext
814 ac_cv_exeext=
815 if { (eval echo configure:816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
816 for file in conftest.*; do
817 case $file in
818 *.c | *.o | *.obj) ;;
819 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
820 esac
821 done
822 else
823 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
824 fi
825 rm -f conftest*
826 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
827 fi
828 fi
829
830 EXEEXT=""
831 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
832 echo "$ac_t""${ac_cv_exeext}" 1>&6
833 ac_exeext=$EXEEXT
834
835
836 # configure the subdirectories too
837 subdirs="$configdirs"
838
839
840 trap '' 1 2 15
841 cat > confcache <<\EOF
842 # This file is a shell script that caches the results of configure
843 # tests run on this system so they can be shared between configure
844 # scripts and configure runs. It is not useful on other systems.
845 # If it contains results you don't want to keep, you may remove or edit it.
846 #
847 # By default, configure uses ./config.cache as the cache file,
848 # creating it if it does not exist already. You can give configure
849 # the --cache-file=FILE option to use a different cache file; that is
850 # what configure does when it calls configure scripts in
851 # subdirectories, so they share the cache.
852 # Giving --cache-file=/dev/null disables caching, for debugging configure.
853 # config.status only pays attention to the cache file if you give it the
854 # --recheck option to rerun configure.
855 #
856 EOF
857 # The following way of writing the cache mishandles newlines in values,
858 # but we know of no workaround that is simple, portable, and efficient.
859 # So, don't put newlines in cache variables' values.
860 # Ultrix sh set writes to stderr and can't be redirected directly,
861 # and sets the high bit in the cache file unless we assign to the vars.
862 (set) 2>&1 |
863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
864 *ac_space=\ *)
865 # `set' does not quote correctly, so add quotes (double-quote substitution
866 # turns \\\\ into \\, and sed turns \\ into \).
867 sed -n \
868 -e "s/'/'\\\\''/g" \
869 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
870 ;;
871 *)
872 # `set' quotes correctly as required by POSIX, so do not add quotes.
873 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
874 ;;
875 esac >> confcache
876 if cmp -s $cache_file confcache; then
877 :
878 else
879 if test -w $cache_file; then
880 echo "updating cache $cache_file"
881 cat confcache > $cache_file
882 else
883 echo "not updating unwritable cache $cache_file"
884 fi
885 fi
886 rm -f confcache
887
888 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
889
890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
891 # Let make expand exec_prefix.
892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
893
894 # Any assignment to VPATH causes Sun make to only execute
895 # the first set of double-colon rules, so remove it if not needed.
896 # If there is a colon in the path, we need to keep it.
897 if test "x$srcdir" = x.; then
898 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
899 fi
900
901 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
902
903 # Transform confdefs.h into DEFS.
904 # Protect against shell expansion while executing Makefile rules.
905 # Protect against Makefile macro expansion.
906 cat > conftest.defs <<\EOF
907 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
908 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
909 s%\[%\\&%g
910 s%\]%\\&%g
911 s%\$%$$%g
912 EOF
913 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
914 rm -f conftest.defs
915
916
917 # Without the "./", some shells look in PATH for config.status.
918 : ${CONFIG_STATUS=./config.status}
919
920 echo creating $CONFIG_STATUS
921 rm -f $CONFIG_STATUS
922 cat > $CONFIG_STATUS <<EOF
923 #! /bin/sh
924 # Generated automatically by configure.
925 # Run this file to recreate the current configuration.
926 # This directory was configured as follows,
927 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
928 #
929 # $0 $ac_configure_args
930 #
931 # Compiler output produced by configure, useful for debugging
932 # configure, is in ./config.log if it exists.
933
934 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
935 for ac_option
936 do
937 case "\$ac_option" in
938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
939 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
940 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
941 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
942 echo "$CONFIG_STATUS generated by autoconf version 2.13"
943 exit 0 ;;
944 -help | --help | --hel | --he | --h)
945 echo "\$ac_cs_usage"; exit 0 ;;
946 *) echo "\$ac_cs_usage"; exit 1 ;;
947 esac
948 done
949
950 ac_given_srcdir=$srcdir
951
952 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
953 EOF
954 cat >> $CONFIG_STATUS <<EOF
955
956 # Protect against being on the right side of a sed subst in config.status.
957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
959 $ac_vpsub
960 $extrasub
961 s%@SHELL@%$SHELL%g
962 s%@CFLAGS@%$CFLAGS%g
963 s%@CPPFLAGS@%$CPPFLAGS%g
964 s%@CXXFLAGS@%$CXXFLAGS%g
965 s%@FFLAGS@%$FFLAGS%g
966 s%@DEFS@%$DEFS%g
967 s%@LDFLAGS@%$LDFLAGS%g
968 s%@LIBS@%$LIBS%g
969 s%@exec_prefix@%$exec_prefix%g
970 s%@prefix@%$prefix%g
971 s%@program_transform_name@%$program_transform_name%g
972 s%@bindir@%$bindir%g
973 s%@sbindir@%$sbindir%g
974 s%@libexecdir@%$libexecdir%g
975 s%@datadir@%$datadir%g
976 s%@sysconfdir@%$sysconfdir%g
977 s%@sharedstatedir@%$sharedstatedir%g
978 s%@localstatedir@%$localstatedir%g
979 s%@libdir@%$libdir%g
980 s%@includedir@%$includedir%g
981 s%@oldincludedir@%$oldincludedir%g
982 s%@infodir@%$infodir%g
983 s%@mandir@%$mandir%g
984 s%@CC@%$CC%g
985 s%@host@%$host%g
986 s%@host_alias@%$host_alias%g
987 s%@host_cpu@%$host_cpu%g
988 s%@host_vendor@%$host_vendor%g
989 s%@host_os@%$host_os%g
990 s%@target@%$target%g
991 s%@target_alias@%$target_alias%g
992 s%@target_cpu@%$target_cpu%g
993 s%@target_vendor@%$target_vendor%g
994 s%@target_os@%$target_os%g
995 s%@build@%$build%g
996 s%@build_alias@%$build_alias%g
997 s%@build_cpu@%$build_cpu%g
998 s%@build_vendor@%$build_vendor%g
999 s%@build_os@%$build_os%g
1000 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1001 s%@EXEEXT@%$EXEEXT%g
1002 s%@subdirs@%$subdirs%g
1003
1004 CEOF
1005 EOF
1006
1007 cat >> $CONFIG_STATUS <<\EOF
1008
1009 # Split the substitutions into bite-sized pieces for seds with
1010 # small command number limits, like on Digital OSF/1 and HP-UX.
1011 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1012 ac_file=1 # Number of current file.
1013 ac_beg=1 # First line for current file.
1014 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1015 ac_more_lines=:
1016 ac_sed_cmds=""
1017 while $ac_more_lines; do
1018 if test $ac_beg -gt 1; then
1019 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1020 else
1021 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1022 fi
1023 if test ! -s conftest.s$ac_file; then
1024 ac_more_lines=false
1025 rm -f conftest.s$ac_file
1026 else
1027 if test -z "$ac_sed_cmds"; then
1028 ac_sed_cmds="sed -f conftest.s$ac_file"
1029 else
1030 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1031 fi
1032 ac_file=`expr $ac_file + 1`
1033 ac_beg=$ac_end
1034 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1035 fi
1036 done
1037 if test -z "$ac_sed_cmds"; then
1038 ac_sed_cmds=cat
1039 fi
1040 EOF
1041
1042 cat >> $CONFIG_STATUS <<EOF
1043
1044 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1045 EOF
1046 cat >> $CONFIG_STATUS <<\EOF
1047 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1049 case "$ac_file" in
1050 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1051 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1052 *) ac_file_in="${ac_file}.in" ;;
1053 esac
1054
1055 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1056
1057 # Remove last slash and all that follows it. Not all systems have dirname.
1058 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1060 # The file is in a subdirectory.
1061 test ! -d "$ac_dir" && mkdir "$ac_dir"
1062 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1065 else
1066 ac_dir_suffix= ac_dots=
1067 fi
1068
1069 case "$ac_given_srcdir" in
1070 .) srcdir=.
1071 if test -z "$ac_dots"; then top_srcdir=.
1072 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1073 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1074 *) # Relative path.
1075 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1076 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1077 esac
1078
1079
1080 echo creating "$ac_file"
1081 rm -f "$ac_file"
1082 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1083 case "$ac_file" in
1084 *Makefile*) ac_comsub="1i\\
1085 # $configure_input" ;;
1086 *) ac_comsub= ;;
1087 esac
1088
1089 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1090 sed -e "$ac_comsub
1091 s%@configure_input@%$configure_input%g
1092 s%@srcdir@%$srcdir%g
1093 s%@top_srcdir@%$top_srcdir%g
1094 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1095 fi; done
1096 rm -f conftest.s*
1097
1098 EOF
1099 cat >> $CONFIG_STATUS <<EOF
1100
1101 EOF
1102 cat >> $CONFIG_STATUS <<\EOF
1103
1104 exit 0
1105 EOF
1106 chmod +x $CONFIG_STATUS
1107 rm -fr confdefs* $ac_clean_files
1108 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1109
1110 if test "$no_recursion" != yes; then
1111
1112 # Remove --cache-file and --srcdir arguments so they do not pile up.
1113 ac_sub_configure_args=
1114 ac_prev=
1115 for ac_arg in $ac_configure_args; do
1116 if test -n "$ac_prev"; then
1117 ac_prev=
1118 continue
1119 fi
1120 case "$ac_arg" in
1121 -cache-file | --cache-file | --cache-fil | --cache-fi \
1122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123 ac_prev=cache_file ;;
1124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126 ;;
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 ;;
1131 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1132 esac
1133 done
1134
1135 for ac_config_dir in $configdirs; do
1136
1137 # Do not complain, so a configure script can configure whichever
1138 # parts of a large source tree are present.
1139 if test ! -d $srcdir/$ac_config_dir; then
1140 continue
1141 fi
1142
1143 echo configuring in $ac_config_dir
1144
1145 case "$srcdir" in
1146 .) ;;
1147 *)
1148 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1149 else
1150 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1151 fi
1152 ;;
1153 esac
1154
1155 ac_popdir=`pwd`
1156 cd $ac_config_dir
1157
1158 # A "../" for each directory in /$ac_config_dir.
1159 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1160
1161 case "$srcdir" in
1162 .) # No --srcdir option. We are building in place.
1163 ac_sub_srcdir=$srcdir ;;
1164 /*) # Absolute path.
1165 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1166 *) # Relative path.
1167 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1168 esac
1169
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_sub_srcdir/configure; then
1172 ac_sub_configure=$ac_sub_srcdir/configure
1173 elif test -f $ac_sub_srcdir/configure.in; then
1174 ac_sub_configure=$ac_configure
1175 else
1176 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1177 ac_sub_configure=
1178 fi
1179
1180 # The recursion is here.
1181 if test -n "$ac_sub_configure"; then
1182
1183 # Make the cache file name correct relative to the subdirectory.
1184 case "$cache_file" in
1185 /*) ac_sub_cache_file=$cache_file ;;
1186 *) # Relative path.
1187 ac_sub_cache_file="$ac_dots$cache_file" ;;
1188 esac
1189
1190 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1191 # The eval makes quoting arguments work.
1192 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1193 then :
1194 else
1195 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1196 fi
1197 fi
1198
1199 cd $ac_popdir
1200 done
1201 fi
1202
This page took 0.056986 seconds and 4 git commands to generate.