Tue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / configure
blob26935c74c0aee3b3fc6216cb7832265472a4f834
1 #! /bin/sh
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.4.2
6 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20 --with-fp if using floating-point hardware"
21 ac_help="$ac_help
22 --with-gnu-binutils if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24 --with-gnu-ld if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26 --with-gnu-as if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28 --with-elf if using the ELF object format"
29 ac_help="$ac_help
30 --with-weak-symbols if weak symbols are available in as and ld"
31 ac_help="$ac_help
32 --enable-libio build in GNU libio instead of GNU stdio"
33 ac_help="$ac_help
34 --enable-shared build shared library [default=yes if GNU ld & ELF]"
35 ac_help="$ac_help
36 --enable-profile build profiled library [default=yes]"
37 ac_help="$ac_help
38 --enable-omitfp build undebuggable optimized library [default=no]"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
43 build=NONE
44 cache_file=./config.cache
45 exec_prefix=NONE
46 host=NONE
47 no_create=
48 nonopt=NONE
49 no_recursion=
50 prefix=NONE
51 program_prefix=NONE
52 program_suffix=NONE
53 program_transform_name=s,x,x,
54 silent=
55 site=
56 srcdir=
57 target=NONE
58 verbose=
59 x_includes=NONE
60 x_libraries=NONE
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
75 subdirs=
77 ac_prev=
78 for ac_option
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
93 # Accept the important Cygnus configure options, so we can diagnose typos.
95 case "$ac_option" in
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
189 cat << EOF
190 Host type:
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
201 --enable and --with options recognized:$ac_help
203 exit 0 ;;
205 -host | --host | --hos | --ho)
206 ac_prev=host ;;
207 -host=* | --host=* | --hos=* | --ho=*)
208 host="$ac_optarg" ;;
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 ac_prev=infodir ;;
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
223 ac_prev=libdir ;;
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 ac_prev=mandir ;;
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
248 -nfp | --nfp | --nf)
249 # Obsolete; use --without-fp.
250 with_fp=no ;;
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 | --no-cr | --no-c)
254 no_create=yes ;;
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 no_recursion=yes ;;
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 ac_prev=prefix ;;
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
307 silent=yes ;;
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 ac_prev=sbindir ;;
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 | --sbi=* | --sb=*)
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
318 | --sha | --sh)
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 | --sha=* | --sh=*)
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
327 ac_prev=site ;;
328 -site=* | --site=* | --sit=*)
329 site="$ac_optarg" ;;
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 ac_prev=srcdir ;;
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
344 ac_prev=target ;;
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 verbose=yes ;;
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.4.2"
353 exit 0 ;;
355 -with-* | --with-*)
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 case "$ac_option" in
363 *=*) ;;
364 *) ac_optarg=yes ;;
365 esac
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
377 --x)
378 # Obsolete; use --with-x.
379 with_x=yes ;;
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 nonopt="$ac_option"
408 esac
409 done
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
418 # 0 standard input
419 # 1 file creation
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 4 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
426 exec 4>/dev/null
427 else
428 exec 4>&1
430 exec 5>./config.log
432 echo "\
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
435 " 1>&5
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
439 ac_configure_args=
440 for ac_arg
442 case "$ac_arg" in
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 esac
451 done
453 # NLS nuisances.
454 # Only set LANG and LC_ALL to C if already set.
455 # These must not be set unconditionally because not all systems understand
456 # e.g. LANG=C (notably SCO).
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LANG+set}" = set; then LANG=C; export LANG; 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.
463 echo > confdefs.h
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=features.h
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.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
480 else
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; }
486 else
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 "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
505 done
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
518 $CPP $CPPFLAGS'
519 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
520 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
521 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
522 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528 ' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
532 else
533 ac_n= ac_c='\c' ac_t=
536 if test -r /vmunix; then
537 kernel_id=`strings /vmunix | grep UNIX`
538 elif test -r /dynix; then
539 kernel_id=`strings /dynix | grep DYNIX`
540 else
541 kernel_id=
547 # This will get text that should go into config.make.
548 config_vars=
550 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
551 # Check whether --with-gmp or --without-gmp was given.
552 if test "${with_gmp+set}" = set; then
553 withval="$with_gmp"
554 case "$with_gmp" in
555 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
556 ''|no) ;;
557 *) config_vars="$config_vars
558 gmp-srcdir = $withval" ;;
559 esac
563 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
564 # Check whether --with-gettext or --without-gettext was given.
565 if test "${with_gettext+set}" = set; then
566 withval="$with_gettext"
567 case "$with_gettext" in
568 yes)
569 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
570 ''|no) ;;
572 config_vars="$config_vars
573 gettext-srcdir = $withval" ;;
574 esac
579 # Check whether --with-fp or --without-fp was given.
580 if test "${with_fp+set}" = set; then
581 withval="$with_fp"
582 with_fp=$withval
583 else
584 with_fp=yes
587 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
588 if test "${with_gnu_binutils+set}" = set; then
589 withval="$with_gnu_binutils"
590 gnu_binutils=$withval
591 else
592 gnu_binutils=no
595 # Check whether --with-gnu-ld or --without-gnu-ld was given.
596 if test "${with_gnu_ld+set}" = set; then
597 withval="$with_gnu_ld"
598 gnu_ld=$withval
599 else
600 gnu_ld=no
603 # Check whether --with-gnu-as or --without-gnu-as was given.
604 if test "${with_gnu_as+set}" = set; then
605 withval="$with_gnu_as"
606 gnu_as=$withval
607 else
608 gnu_as=no
611 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
612 # Check whether --with-elf or --without-elf was given.
613 if test "${with_elf+set}" = set; then
614 withval="$with_elf"
615 elf=$withval
616 else
617 elf=no
620 # Check whether --with-weak-symbols or --without-weak-symbols was given.
621 if test "${with_weak_symbols+set}" = set; then
622 withval="$with_weak_symbols"
623 weak=$withval
624 else
625 weak=no
629 # Check whether --enable-libio or --disable-libio was given.
630 if test "${enable_libio+set}" = set; then
631 enableval="$enable_libio"
632 stdio=libio
633 else
634 stdio=stdio
638 # Check whether --enable-shared or --disable-shared was given.
639 if test "${enable_shared+set}" = set; then
640 enableval="$enable_shared"
641 shared=$enableval
642 else
643 shared=default
646 # Check whether --enable-profile or --disable-profile was given.
647 if test "${enable_profile+set}" = set; then
648 enableval="$enable_profile"
649 profile=$enableval
650 else
651 profile=yes
654 # Check whether --enable-omitfp or --disable-omitfp was given.
655 if test "${enable_omitfp+set}" = set; then
656 enableval="$enable_omitfp"
657 omitfp=$enableval
658 else
659 omitfp=no
663 echo $ac_n "checking stdio selection""... $ac_c" 1>&4
665 if test $stdio = libio; then
666 cat >> confdefs.h <<\EOF
667 #define USE_IN_LIBIO 1
671 echo "$ac_t""$stdio" 1>&4
673 ac_aux_dir=
674 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
675 if test -f $ac_dir/install-sh; then
676 ac_aux_dir=$ac_dir
677 ac_install_sh="$ac_aux_dir/install-sh -c"
678 break
679 elif test -f $ac_dir/install.sh; then
680 ac_aux_dir=$ac_dir
681 ac_install_sh="$ac_aux_dir/install.sh -c"
682 break
684 done
685 if test -z "$ac_aux_dir"; then
686 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
688 ac_config_guess=$ac_aux_dir/config.guess
689 ac_config_sub=$ac_aux_dir/config.sub
690 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
693 # Make sure we can run config.sub.
694 if $ac_config_sub sun4 >/dev/null 2>&1; then :
695 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
698 echo $ac_n "checking host system type""... $ac_c" 1>&4
700 host_alias=$host
701 case "$host_alias" in
702 NONE)
703 case $nonopt in
704 NONE)
705 if host_alias=`$ac_config_guess`; then :
706 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
707 fi ;;
708 *) host_alias=$nonopt ;;
709 esac ;;
710 esac
712 host=`$ac_config_sub $host_alias`
713 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
714 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
715 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
716 echo "$ac_t""$host" 1>&4
718 # We keep the original values in `$config_*' and never modify them, so we
719 # can write them unchanged into config.make. Everything else uses
720 # $machine, $vendor, and $os, and changes them whenever convenient.
721 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
723 # Some configurations imply other options.
724 case "$host_os" in
725 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
726 # These systems always use GNU tools.
727 gnu_ld=yes gnu_as=yes
728 esac
729 case "$host_os" in
730 gnu* | linux* | sysv4* | solaris2*)
731 # These systems always use the ELF format.
732 elf=yes
733 esac
735 # Compute the list of sysdep directories for this configuration.
736 sysdep_dir=$srcdir/sysdeps
737 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
738 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&4
740 else
741 machine=$config_machine
742 vendor=$config_vendor
743 os=$config_os
745 # Expand the configuration machine name into a subdirectory by architecture
746 # type and particular chip.
747 case "$machine" in
748 a29k | am29000) machine=a29k ;;
749 alpha*) machine=alpha/$machine ;;
750 hppa*) machine=hppa/$machine ;;
751 i[345]86) machine=i386/$machine ;;
752 m680?0) machine=m68k/$machine ;;
753 m68k) machine=m68k/m68020 ;;
754 m88???) machine=m88k/$machine ;;
755 m88k) machine=m88k/m88100 ;;
756 mips*) machine=mips/$machine ;;
757 mips64*) machine=mips/mips64/$machine ;;
758 sparc[6789]) machine=sparc/$machine ;;
759 supersparc) machine=sparc/sparc8 ;;
760 esac
762 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
763 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
765 case "$os" in
766 gnu*)
767 base_os=mach/hurd ;;
768 netbsd* | 386bsd* | freebsd* | bsdi*)
769 base_os=unix/bsd/bsd4.4 ;;
770 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
771 base_os=unix/bsd ;;
772 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
773 base_os=unix/sysv ;;
774 solaris[2-9]*)
775 base_os=unix/sysv/sysv4 ;;
776 none)
777 base_os=standalone ;;
779 base_os='' ;;
780 esac
782 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
783 tail=$os
784 ostry=$os
785 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
786 ostry="$ostry /$o"
787 tail=$o
788 done
789 o=`echo $tail | sed 's/[0-9]*$//'`
790 if test $o != $tail; then
791 ostry="$ostry /$o"
794 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
795 base=
796 tail=$base_os
797 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
798 set $b
799 base="$base /$1"
800 tail="$2"
801 done
803 # For sparc/sparc9, try sparc/sparc9 and then sparc.
804 mach=
805 tail=$machine
806 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
807 set $m
808 # Prepend the machine's FPU directory unless --without-fp.
809 if test "$with_fp" = yes; then
810 mach="$mach /$1/fpu"
812 mach="$mach /$1"
813 tail="$2"
814 done
817 # Find what sysdep directories exist.
818 sysnames=
819 for b in $base ''; do
820 for m0 in $mach ''; do
821 for v in /$vendor ''; do
822 for o in /$ostry ''; do
823 for m in $mach ''; do
824 try="$m0$b$v$o$m"
825 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
826 if test -d $sysdep_dir$try; then
827 sysnames="$sysnames $try"
828 { test -n "$o" || test -n "$b"; } && os_used=t
829 { test -n "$m" || test -n "$m0"; } && machine_used=t
831 done
832 done
833 done
834 done
835 done
837 if test -z "$os_used" && test "$os" != none; then
838 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
840 if test -z "$machine_used" && test "$machine" != none; then
841 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
844 # We have now validated the configuration.
847 # If using ELF, look for an `elf' subdirectory of each machine directory.
848 # We prepend these rather than inserting them whereever the machine appears
849 # because things specified by the machine's ELF ABI should override
850 # OS-specific things, and should always be the same for any OS on the
851 # machine (otherwise what's the point of an ABI?).
852 if test "$elf" = yes; then
853 elf_dirs=
854 for m in $mach; do
855 if test -d $sysdep_dir$m/elf; then
856 elf_dirs="$elf_dirs $m/elf"
858 done
859 sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
863 # Remove the leading slashes.
864 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
867 # Expand the list of system names into a full list of directories
868 # from each element's parent name and Implies file (if present).
869 set $sysnames
870 while test $# -gt 0; do
871 name=$1
872 shift
874 if test -f $sysdep_dir/$name/Implies; then
875 # Collect more names from the `Implies' file (removing comments).
876 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
877 for x in $implied; do
878 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
879 done
880 else
881 implied=
884 # Add NAME to the list of names.
885 names="$names $name"
887 # Find the parent of NAME, using the empty string if it has none.
888 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
890 # Add the names implied by NAME, and NAME's parent (if it has one), to
891 # the list of names to be processed (the argument list). We prepend the
892 # implied names to the list and append the parent. We want implied
893 # directories to come before further directories inferred from the
894 # configuration components; this ensures that for sysv4, unix/common
895 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
896 # after sysv4).
897 sysnames="`echo $implied $* $parent`"
898 test -n "$sysnames" && set $sysnames
899 done
901 # Add the default directories.
902 names="$names generic stub"
904 # Now uniquize the list.
905 seen=
906 sysnames=
907 for name in $names; do
908 if echo "$seen" | fgrep -x $name >/dev/null; then
909 # Already in the list.
910 true;
911 else
912 # A new one.
913 if test -z "$seen"; then
914 seen="$name" sysnames="$name"
915 else
916 seen="$seen
917 $name"
918 sysnames="$sysnames $name"
921 done
922 libc_cv_sysdirs="$sysnames"
925 echo "$ac_t""$libc_cv_sysdirs" 1>&4
926 sysnames="$libc_cv_sysdirs"
928 # Find a good install program. We prefer a C program (faster),
929 # so one script is as good as another. But avoid the broken or
930 # incompatible versions:
931 # SysV /etc/install, /usr/sbin/install
932 # SunOS /usr/etc/install
933 # IRIX /sbin/install
934 # AIX /bin/install
935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
937 # ./install, which can be erroneously created by make from ./install.sh.
938 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
939 if test -z "$INSTALL"; then
940 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&4
942 else
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
944 for ac_dir in $PATH; do
945 # Account for people who put trailing slashes in PATH elements.
946 case "$ac_dir/" in
947 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
949 # OSF1 and SCO ODT 3.0 have their own names for install.
950 for ac_prog in ginstall installbsd scoinst install; do
951 if test -f $ac_dir/$ac_prog; then
952 if test $ac_prog = install &&
953 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
954 # AIX install. It has an incompatible calling convention.
955 # OSF/1 installbsd also uses dspmsg, but is usable.
957 else
958 ac_cv_path_install="$ac_dir/$ac_prog -c"
959 break 2
962 done
964 esac
965 done
966 IFS="$ac_save_ifs"
969 if test "${ac_cv_path_install+set}" = set; then
970 INSTALL="$ac_cv_path_install"
971 else
972 # As a last resort, use the slow shell script. We don't cache a
973 # path for INSTALL within a source directory, because that will
974 # break other packages using the cache if that directory is
975 # removed, or if the path is relative.
976 INSTALL="$ac_install_sh"
979 echo "$ac_t""$INSTALL" 1>&4
981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
982 # It thinks the first close brace ends the variable substitution.
983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
987 if test "$INSTALL" = "${srcdir}/install-sh"; then
988 # The makefiles need to use a different form to find it in $srcdir.
989 INSTALL='$(..)./install-sh'
992 echo $ac_n "checking build system type""... $ac_c" 1>&4
994 build_alias=$build
995 case "$build_alias" in
996 NONE)
997 case $nonopt in
998 NONE) build_alias=$host_alias ;;
999 *) build_alias=$nonopt ;;
1000 esac ;;
1001 esac
1003 build=`$ac_config_sub $build_alias`
1004 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1005 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1006 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$build" 1>&4
1009 if test $host != $build; then
1010 ac_tool_prefix=${host_alias}-
1011 else
1012 ac_tool_prefix=
1015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1016 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&4
1020 else
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
1023 else
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1025 for ac_dir in $PATH; do
1026 test -z "$ac_dir" && ac_dir=.
1027 if test -f $ac_dir/$ac_word; then
1028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1029 break
1031 done
1032 IFS="$ac_save_ifs"
1033 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1036 CC="$ac_cv_prog_CC"
1037 if test -n "$CC"; then
1038 echo "$ac_t""$CC" 1>&4
1039 else
1040 echo "$ac_t""no" 1>&4
1045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1046 set dummy ${ac_tool_prefix}ar; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1048 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&4
1050 else
1051 if test -n "$AR"; then
1052 ac_cv_prog_AR="$AR" # Let the user override the test.
1053 else
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1055 for ac_dir in $PATH; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1058 ac_cv_prog_AR="${ac_tool_prefix}ar"
1059 break
1061 done
1062 IFS="$ac_save_ifs"
1063 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1066 AR="$ac_cv_prog_AR"
1067 if test -n "$AR"; then
1068 echo "$ac_t""$AR" 1>&4
1069 else
1070 echo "$ac_t""no" 1>&4
1075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1078 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&4
1080 else
1081 if test -n "$RANLIB"; then
1082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1083 else
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1085 for ac_dir in $PATH; do
1086 test -z "$ac_dir" && ac_dir=.
1087 if test -f $ac_dir/$ac_word; then
1088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1089 break
1091 done
1092 IFS="$ac_save_ifs"
1095 RANLIB="$ac_cv_prog_RANLIB"
1096 if test -n "$RANLIB"; then
1097 echo "$ac_t""$RANLIB" 1>&4
1098 else
1099 echo "$ac_t""no" 1>&4
1103 if test -z "$ac_cv_prog_RANLIB"; then
1104 if test -n "$ac_tool_prefix"; then
1105 # Extract the first word of "ranlib", so it can be a program name with args.
1106 set dummy ranlib; ac_word=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1108 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&4
1110 else
1111 if test -n "$RANLIB"; then
1112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1113 else
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1115 for ac_dir in $PATH; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1118 ac_cv_prog_RANLIB="ranlib"
1119 break
1121 done
1122 IFS="$ac_save_ifs"
1123 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1126 RANLIB="$ac_cv_prog_RANLIB"
1127 if test -n "$RANLIB"; then
1128 echo "$ac_t""$RANLIB" 1>&4
1129 else
1130 echo "$ac_t""no" 1>&4
1133 else
1134 RANLIB=":"
1138 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1139 # On Suns, sometimes $CPP names a directory.
1140 if test -n "$CPP" && test -d "$CPP"; then
1141 CPP=
1143 if test -z "$CPP"; then
1144 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&4
1146 else
1147 # This must be in double quotes, not single quotes, because CPP may get
1148 # substituted into the Makefile and "${CC-cc}" will confuse make.
1149 CPP="${CC-cc} -E"
1150 # On the NeXT, cc -E runs the code through the compiler's parser,
1151 # not just through cpp.
1152 cat > conftest.$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1155 #include <assert.h>
1156 Syntax Error
1158 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1159 ac_err=`grep -v '^ *+' conftest.out`
1160 if test -z "$ac_err"; then
1162 else
1163 echo "$ac_err" >&5
1164 rm -rf conftest*
1165 CPP="${CC-cc} -E -traditional-cpp"
1166 cat > conftest.$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1169 #include <assert.h>
1170 Syntax Error
1172 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1173 ac_err=`grep -v '^ *+' conftest.out`
1174 if test -z "$ac_err"; then
1176 else
1177 echo "$ac_err" >&5
1178 rm -rf conftest*
1179 CPP=/lib/cpp
1181 rm -f conftest*
1183 rm -f conftest*
1184 ac_cv_prog_CPP="$CPP"
1186 CPP="$ac_cv_prog_CPP"
1187 else
1188 ac_cv_prog_CPP="$CPP"
1190 echo "$ac_t""$CPP" 1>&4
1193 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1194 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&4
1196 else
1197 echo '#include <stddef.h>
1198 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1199 if eval "$ac_cpp conftest.c 2>/dev/null" \
1200 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1201 libc_cv_signed_size_t=no
1202 else
1203 libc_cv_signed_size_t=yes
1205 rm -f conftest*
1208 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1209 if test $libc_cv_signed_size_t = yes; then
1210 cat >> confdefs.h <<\EOF
1211 #undef __SIZE_TYPE__
1212 #define __SIZE_TYPE__ unsigned
1216 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1217 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&4
1219 else
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 #define __need_size_t
1224 #define __need_wchar_t
1225 #include <stddef.h>
1226 #define __need_NULL
1227 #include <stddef.h>
1228 int main() { return 0; }
1229 int t() {
1230 size_t size; wchar_t wchar;
1231 #ifdef offsetof
1232 #error stddef.h ignored __need_*
1233 #endif
1234 if (&size == NULL || &wchar == NULL) abort ();
1235 ; return 0; }
1237 if eval $ac_compile; then
1238 rm -rf conftest*
1239 libc_cv_friendly_stddef=yes
1240 else
1241 rm -rf conftest*
1242 libc_cv_friendly_stddef=no
1244 rm -f conftest*
1248 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1249 if test $libc_cv_friendly_stddef = yes; then
1250 config_vars="$config_vars
1251 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1254 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1255 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&4
1257 else
1258 cat > conftest.S <<EOF
1259 #include "confdefs.h"
1260 /* Nothing whatsoever. */
1262 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1263 libc_cv_need_minus_P=no
1264 else
1265 libc_cv_need_minus_P=yes
1267 rm -f conftest*
1270 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1271 if test $libc_cv_need_minus_P = yes; then
1272 config_vars="$config_vars
1273 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1276 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1277 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&4
1279 else
1280 libc_cv_asm_global_directive=UNKNOWN
1281 for ac_globl in .globl .global; do
1282 cat > conftest.s <<EOF
1283 .text
1284 ${ac_globl} foo
1285 foo: .long 0
1287 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1288 libc_cv_asm_global_directive=${ac_globl}
1290 rm -f conftest*
1291 test $libc_cv_asm_global_directive != UNKNOWN && break
1292 done
1295 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1296 if test $libc_cv_asm_global_directive = UNKNOWN; then
1297 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1298 else
1299 cat >> confdefs.h <<EOF
1300 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1305 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1306 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&4
1308 else
1309 cat > conftest.s <<EOF
1310 .text
1311 foo: .long 0
1312 .set glibc_conftest_frobozz,foo
1313 $libc_cv_asm_global_directive glibc_conftest_frobozz
1315 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1316 # (but it doesn't work), so we must do a linking check to be sure.
1317 cat > conftest1.c <<\EOF
1318 extern int glibc_conftest_frobozz;
1319 main () { printf ("%d\n", glibc_conftest_frobozz); }
1321 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1322 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1323 libc_cv_asm_set_directive=yes
1324 else
1325 libc_cv_asm_set_directive=no
1327 rm -f conftest*
1330 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1331 if test $libc_cv_asm_set_directive = yes; then
1332 cat >> confdefs.h <<\EOF
1333 #define HAVE_ASM_SET_DIRECTIVE 1
1338 if test $elf != yes; then
1339 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1340 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&4
1342 else
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1347 int main() { return 0; }
1348 int t() {
1349 asm (".section .init");
1350 asm (".section .fini");
1351 ; return 0; }
1353 if eval $ac_compile; then
1354 rm -rf conftest*
1355 libc_cv_have_initfini=yes
1356 else
1357 rm -rf conftest*
1358 libc_cv_have_initfini=no
1360 rm -f conftest*
1364 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1365 if test $libc_cv_have_initfini = yes; then
1366 cat >> confdefs.h <<\EOF
1367 #define HAVE_INITFINI 1
1373 # sysdeps configure fragments may set these with files to be linked below.
1374 libc_link_dests=
1375 libc_link_sources=
1377 # Iterate over all the sysdep directories we will use, running their
1378 # configure fragments, and looking for a uname implementation.
1379 uname=
1380 for dir in $sysnames; do
1381 if test -r $sysdep_dir/$dir/configure; then
1382 echo "$ac_t""running configure fragment for $dir" 1>&4
1383 . $sysdep_dir/$dir/configure
1385 if test -z "$uname"; then
1386 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1387 && uname=$dir
1389 done
1393 # If we will use the generic uname implementation, we must figure out what
1394 # it will say by examining the system, and write the results in config-name.h.
1395 if test "$uname" = generic; then
1397 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1398 if test $uname_sysname != $config_os; then
1399 config_release=`echo $config_os | sed s/$uname_sysname//`
1402 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1403 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&4
1405 else
1406 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1407 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1408 != x$config_release; then
1409 # The configuration release is a substring of the kernel release.
1410 libc_cv_uname_release=$kernel_release
1411 elif test x$config_release != x; then
1412 libc_cv_uname_release=$config_release
1413 elif test x$kernel_release != x; then
1414 libc_cv_uname_release=$kernel_release
1415 else
1416 libc_cv_uname_release=unknown
1420 echo "$ac_t""$libc_cv_uname_release" 1>&4
1421 uname_release="$libc_cv_uname_release"
1423 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1424 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&4
1426 else
1427 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1428 if test -n "$kernel_version"; then
1429 libc_cv_uname_version="$kernel_version"
1430 else
1431 libc_cv_uname_version=unknown
1435 echo "$ac_t""$libc_cv_uname_version" 1>&4
1436 uname_version="$libc_cv_uname_version"
1438 config_uname=config-name.h:config-name.in
1439 else
1440 # For non-generic uname, we don't need to create config-name.h at all.
1441 config_uname=
1445 if test $gnu_ld = yes; then
1446 cat >> confdefs.h <<\EOF
1447 #define HAVE_GNU_LD 1
1451 if test $gnu_as = yes; then
1452 cat >> confdefs.h <<\EOF
1453 #define HAVE_GNU_AS 1
1457 if test $elf = yes; then
1458 cat >> confdefs.h <<\EOF
1459 #define HAVE_ELF 1
1463 if test $weak = yes; then
1464 cat >> confdefs.h <<\EOF
1465 #define HAVE_WEAK_SYMBOLS 1
1471 if test $shared = default; then
1472 if test $gnu_ld = yes; then
1473 shared=$elf
1479 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1480 config_makefile=
1481 else
1482 config_makefile=Makefile
1485 trap '' 1 2 15
1486 cat > confcache <<\EOF
1487 # This file is a shell script that caches the results of configure
1488 # tests run on this system so they can be shared between configure
1489 # scripts and configure runs. It is not useful on other systems.
1490 # If it contains results you don't want to keep, you may remove or edit it.
1492 # By default, configure uses ./config.cache as the cache file,
1493 # creating it if it does not exist already. You can give configure
1494 # the --cache-file=FILE option to use a different cache file; that is
1495 # what configure does when it calls configure scripts in
1496 # subdirectories, so they share the cache.
1497 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1498 # config.status only pays attention to the cache file if you give it the
1499 # --recheck option to rerun configure.
1502 # Ultrix sh set writes to stderr and can't be redirected directly,
1503 # and sets the high bit in the cache file unless we assign to the vars.
1504 (set) 2>&1 |
1505 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1506 >> confcache
1507 if cmp -s $cache_file confcache; then
1509 else
1510 if test -w $cache_file; then
1511 echo "updating cache $cache_file"
1512 cat confcache > $cache_file
1513 else
1514 echo "not updating unwritable cache $cache_file"
1517 rm -f confcache
1519 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1522 # Let make expand exec_prefix.
1523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1525 # Any assignment to VPATH causes Sun make to only execute
1526 # the first set of double-colon rules, so remove it if not needed.
1527 # If there is a colon in the path, we need to keep it.
1528 if test "x$srcdir" = x.; then
1529 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1532 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1534 DEFS=-DHAVE_CONFIG_H
1536 # Without the "./", some shells look in PATH for config.status.
1537 : ${CONFIG_STATUS=./config.status}
1539 echo creating $CONFIG_STATUS
1540 rm -f $CONFIG_STATUS
1541 cat > $CONFIG_STATUS <<EOF
1542 #! /bin/sh
1543 # Generated automatically by configure.
1544 # Run this file to recreate the current configuration.
1545 # This directory was configured as follows,
1546 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1548 # $0 $ac_configure_args
1550 # Compiler output produced by configure, useful for debugging
1551 # configure, is in ./config.log if it exists.
1553 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1554 for ac_option
1556 case "\$ac_option" in
1557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1558 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1559 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1560 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1561 echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
1562 exit 0 ;;
1563 -help | --help | --hel | --he | --h)
1564 echo "\$ac_cs_usage"; exit 0 ;;
1565 *) echo "\$ac_cs_usage"; exit 1 ;;
1566 esac
1567 done
1569 ac_given_srcdir=$srcdir
1570 ac_given_INSTALL="$INSTALL"
1572 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1574 # Protect against being on the right side of a sed subst in config.status.
1575 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1576 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1577 $ac_vpsub
1578 $extrasub
1579 s%@CFLAGS@%$CFLAGS%g
1580 s%@CPPFLAGS@%$CPPFLAGS%g
1581 s%@CXXFLAGS@%$CXXFLAGS%g
1582 s%@DEFS@%$DEFS%g
1583 s%@LDFLAGS@%$LDFLAGS%g
1584 s%@LIBS@%$LIBS%g
1585 s%@exec_prefix@%$exec_prefix%g
1586 s%@prefix@%$prefix%g
1587 s%@program_transform_name@%$program_transform_name%g
1588 s%@bindir@%$bindir%g
1589 s%@sbindir@%$sbindir%g
1590 s%@libexecdir@%$libexecdir%g
1591 s%@datadir@%$datadir%g
1592 s%@sysconfdir@%$sysconfdir%g
1593 s%@sharedstatedir@%$sharedstatedir%g
1594 s%@localstatedir@%$localstatedir%g
1595 s%@libdir@%$libdir%g
1596 s%@includedir@%$includedir%g
1597 s%@oldincludedir@%$oldincludedir%g
1598 s%@infodir@%$infodir%g
1599 s%@mandir@%$mandir%g
1600 s%@stdio@%$stdio%g
1601 s%@host@%$host%g
1602 s%@host_alias@%$host_alias%g
1603 s%@host_cpu@%$host_cpu%g
1604 s%@host_vendor@%$host_vendor%g
1605 s%@host_os@%$host_os%g
1606 s%@sysnames@%$sysnames%g
1607 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1608 s%@INSTALL_DATA@%$INSTALL_DATA%g
1609 s%@build@%$build%g
1610 s%@build_alias@%$build_alias%g
1611 s%@build_cpu@%$build_cpu%g
1612 s%@build_vendor@%$build_vendor%g
1613 s%@build_os@%$build_os%g
1614 s%@CC@%$CC%g
1615 s%@AR@%$AR%g
1616 s%@RANLIB@%$RANLIB%g
1617 s%@CPP@%$CPP%g
1618 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1619 s%@uname_sysname@%$uname_sysname%g
1620 s%@uname_release@%$uname_release%g
1621 s%@uname_version@%$uname_version%g
1622 s%@gnu_ld@%$gnu_ld%g
1623 s%@gnu_as@%$gnu_as%g
1624 s%@elf@%$elf%g
1625 s%@weak@%$weak%g
1626 s%@shared@%$shared%g
1627 s%@profile@%$profile%g
1628 s%@omitfp@%$omitfp%g
1630 CEOF
1632 cat >> $CONFIG_STATUS <<EOF
1634 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1636 cat >> $CONFIG_STATUS <<\EOF
1637 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1638 # Support "outfile[:infile]", defaulting infile="outfile.in".
1639 case "$ac_file" in
1640 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1641 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1642 *) ac_file_in="${ac_file}.in" ;;
1643 esac
1645 # Adjust relative srcdir, etc. for subdirectories.
1647 # Remove last slash and all that follows it. Not all systems have dirname.
1648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1650 # The file is in a subdirectory.
1651 test ! -d "$ac_dir" && mkdir "$ac_dir"
1652 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1653 # A "../" for each directory in $ac_dir_suffix.
1654 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1655 else
1656 ac_dir_suffix= ac_dots=
1659 case "$ac_given_srcdir" in
1660 .) srcdir=.
1661 if test -z "$ac_dots"; then top_srcdir=.
1662 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1663 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1664 *) # Relative path.
1665 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1666 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1667 esac
1669 case "$ac_given_INSTALL" in
1670 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1671 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1672 esac
1673 echo creating "$ac_file"
1674 rm -f "$ac_file"
1675 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1676 case "$ac_file" in
1677 *Makefile*) ac_comsub="1i\\
1678 # $configure_input" ;;
1679 *) ac_comsub= ;;
1680 esac
1681 sed -e "$ac_comsub
1682 s%@configure_input@%$configure_input%g
1683 s%@srcdir@%$srcdir%g
1684 s%@top_srcdir@%$top_srcdir%g
1685 s%@INSTALL@%$INSTALL%g
1686 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1687 fi; done
1688 rm -f conftest.subs
1690 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1691 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1693 # ac_d sets the value in "#define NAME VALUE" lines.
1694 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1695 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1696 ac_dC='\3'
1697 ac_dD='%g'
1698 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1699 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1700 ac_uB='\([ ]\)%\1#\2define\3'
1701 ac_uC=' '
1702 ac_uD='\4%g'
1703 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1704 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1705 ac_eB='$%\1#\2define\3'
1706 ac_eC=' '
1707 ac_eD='%g'
1709 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1710 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1711 # Support "outfile[:infile]", defaulting infile="outfile.in".
1712 case "$ac_file" in
1713 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1714 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1715 *) ac_file_in="${ac_file}.in" ;;
1716 esac
1718 echo creating $ac_file
1720 rm -f conftest.frag conftest.in conftest.out
1721 cp $ac_given_srcdir/$ac_file_in conftest.in
1725 # Transform confdefs.h into a sed script conftest.vals that substitutes
1726 # the proper values into config.h.in to produce config.h. And first:
1727 # Protect against being on the right side of a sed subst in config.status.
1728 # Protect against being in an unquoted here document in config.status.
1729 rm -f conftest.vals
1730 cat > conftest.hdr <<\EOF
1731 s/[\\&%]/\\&/g
1732 s%[\\$`]%\\&%g
1733 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1734 s%ac_d%ac_u%gp
1735 s%ac_u%ac_e%gp
1737 sed -n -f conftest.hdr confdefs.h > conftest.vals
1738 rm -f conftest.hdr
1740 # This sed command replaces #undef with comments. This is necessary, for
1741 # example, in the case of _POSIX_SOURCE, which is predefined and required
1742 # on some systems where configure will not decide to define it.
1743 cat >> conftest.vals <<\EOF
1744 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1747 # Break up conftest.vals because some shells have a limit on
1748 # the size of here documents, and old seds have small limits too.
1749 # Maximum number of lines to put in a single here document.
1750 ac_max_here_lines=12
1752 rm -f conftest.tail
1753 while :
1755 ac_lines=`grep -c . conftest.vals`
1756 # grep -c gives empty output for an empty file on some AIX systems.
1757 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1758 # Write a limited-size here document to conftest.frag.
1759 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1760 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1761 echo 'CEOF
1762 sed -f conftest.frag conftest.in > conftest.out
1763 rm -f conftest.in
1764 mv conftest.out conftest.in
1765 ' >> $CONFIG_STATUS
1766 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1767 rm -f conftest.vals
1768 mv conftest.tail conftest.vals
1769 done
1770 rm -f conftest.vals
1772 cat >> $CONFIG_STATUS <<\EOF
1773 rm -f conftest.frag conftest.h
1774 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1775 cat conftest.in >> conftest.h
1776 rm -f conftest.in
1777 if cmp -s $ac_file conftest.h 2>/dev/null; then
1778 echo "$ac_file is unchanged"
1779 rm -f conftest.h
1780 else
1781 rm -f $ac_file
1782 mv conftest.h $ac_file
1784 fi; done
1788 cat >> $CONFIG_STATUS <<EOF
1789 ac_sources="`echo $libc_link_sources`"
1790 ac_dests="`echo $libc_link_dests`"
1793 cat >> $CONFIG_STATUS <<\EOF
1794 srcdir=$ac_given_srcdir
1795 while test -n "$ac_sources"; do
1796 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1797 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1799 echo "linking $srcdir/$ac_source to $ac_dest"
1801 if test ! -r $srcdir/$ac_source; then
1802 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1804 rm -f $ac_dest
1806 # Make relative symlinks.
1807 # Remove last slash and all that follows it. Not all systems have dirname.
1808 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1809 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1810 # The dest file is in a subdirectory.
1811 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1812 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1813 # A "../" for each directory in $ac_dest_dir_suffix.
1814 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1815 else
1816 ac_dest_dir_suffix= ac_dots=
1819 case "$srcdir" in
1820 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1821 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1822 esac
1824 # Make a symlink if possible; otherwise try a hard link.
1825 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1826 ln $srcdir/$ac_source $ac_dest; then :
1827 else
1828 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1830 done
1832 cat >> $CONFIG_STATUS <<EOF
1833 echo '$config_vars' >> config.make
1835 cat >> $CONFIG_STATUS <<\EOF
1837 exit 0
1839 chmod +x $CONFIG_STATUS
1840 rm -fr confdefs* $ac_clean_files
1841 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1