Mon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / configure
bloba6e37c2e1d7cca682cc51395011af81be4b1fb95
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.5
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=
76 MFLAGS= MAKEFLAGS=
78 ac_prev=
79 for ac_option
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
94 # Accept the important Cygnus configure options, so we can diagnose typos.
96 case "$ac_option" in
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 ac_prev=datadir ;;
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 | --da=*)
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 case "$ac_option" in
138 *=*) ;;
139 *) ac_optarg=yes ;;
140 esac
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
159 cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
170 [$ac_default_prefix]
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 [same as prefix]
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
190 cat << EOF
191 Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
202 --enable and --with options recognized:$ac_help
204 exit 0 ;;
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.5"
354 exit 0 ;;
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 nonopt="$ac_option"
409 esac
410 done
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 4 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
427 exec 4>/dev/null
428 else
429 exec 4>&1
431 exec 5>./config.log
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452 done
454 # NLS nuisances.
455 # Only set LANG and LC_ALL to C if already set.
456 # These must not be set unconditionally because not all systems understand
457 # e.g. LANG=C (notably SCO).
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 echo > confdefs.h
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=features.h
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
481 else
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
506 done
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511 else
512 echo "creating cache $cache_file"
513 > $cache_file
516 ac_ext=c
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='echo $CPP $CPPFLAGS 1>&5;
519 $CPP $CPPFLAGS'
520 ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
521 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
522 ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
523 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='
529 ' ac_t=' '
530 else
531 ac_n=-n ac_c= ac_t=
533 else
534 ac_n= ac_c='\c' ac_t=
537 if test -r /vmunix; then
538 kernel_id=`strings /vmunix | grep UNIX`
539 elif test -r /dynix; then
540 kernel_id=`strings /dynix | grep DYNIX`
541 else
542 kernel_id=
548 # This will get text that should go into config.make.
549 config_vars=
551 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
552 # Check whether --with-gmp or --without-gmp was given.
553 if test "${with_gmp+set}" = set; then
554 withval="$with_gmp"
555 case "$with_gmp" in
556 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
557 ''|no) ;;
558 *) config_vars="$config_vars
559 gmp-srcdir = $withval" ;;
560 esac
564 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
565 # Check whether --with-gettext or --without-gettext was given.
566 if test "${with_gettext+set}" = set; then
567 withval="$with_gettext"
568 case "$with_gettext" in
569 yes)
570 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
571 ''|no) ;;
573 config_vars="$config_vars
574 gettext-srcdir = $withval" ;;
575 esac
580 # Check whether --with-fp or --without-fp was given.
581 if test "${with_fp+set}" = set; then
582 withval="$with_fp"
583 with_fp=$withval
584 else
585 with_fp=yes
588 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
589 if test "${with_gnu_binutils+set}" = set; then
590 withval="$with_gnu_binutils"
591 gnu_binutils=$withval
592 else
593 gnu_binutils=no
596 # Check whether --with-gnu-ld or --without-gnu-ld was given.
597 if test "${with_gnu_ld+set}" = set; then
598 withval="$with_gnu_ld"
599 gnu_ld=$withval
600 else
601 gnu_ld=no
604 # Check whether --with-gnu-as or --without-gnu-as was given.
605 if test "${with_gnu_as+set}" = set; then
606 withval="$with_gnu_as"
607 gnu_as=$withval
608 else
609 gnu_as=no
612 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
613 # Check whether --with-elf or --without-elf was given.
614 if test "${with_elf+set}" = set; then
615 withval="$with_elf"
616 elf=$withval
617 else
618 elf=no
621 # Check whether --with-weak-symbols or --without-weak-symbols was given.
622 if test "${with_weak_symbols+set}" = set; then
623 withval="$with_weak_symbols"
624 weak=$withval
625 else
626 weak=no
630 # Check whether --enable-libio or --disable-libio was given.
631 if test "${enable_libio+set}" = set; then
632 enableval="$enable_libio"
633 stdio=libio
634 else
635 stdio=default
639 # Check whether --enable-shared or --disable-shared was given.
640 if test "${enable_shared+set}" = set; then
641 enableval="$enable_shared"
642 shared=$enableval
643 else
644 shared=default
647 # Check whether --enable-profile or --disable-profile was given.
648 if test "${enable_profile+set}" = set; then
649 enableval="$enable_profile"
650 profile=$enableval
651 else
652 profile=yes
655 # Check whether --enable-omitfp or --disable-omitfp was given.
656 if test "${enable_omitfp+set}" = set; then
657 enableval="$enable_omitfp"
658 omitfp=$enableval
659 else
660 omitfp=no
664 ac_aux_dir=
665 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
666 if test -f $ac_dir/install-sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install-sh -c"
669 break
670 elif test -f $ac_dir/install.sh; then
671 ac_aux_dir=$ac_dir
672 ac_install_sh="$ac_aux_dir/install.sh -c"
673 break
675 done
676 if test -z "$ac_aux_dir"; then
677 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679 ac_config_guess=$ac_aux_dir/config.guess
680 ac_config_sub=$ac_aux_dir/config.sub
681 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
684 # Make sure we can run config.sub.
685 if $ac_config_sub sun4 >/dev/null 2>&1; then :
686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
689 echo $ac_n "checking host system type""... $ac_c" 1>&4
691 host_alias=$host
692 case "$host_alias" in
693 NONE)
694 case $nonopt in
695 NONE)
696 if host_alias=`$ac_config_guess`; then :
697 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
698 fi ;;
699 *) host_alias=$nonopt ;;
700 esac ;;
701 esac
703 host=`$ac_config_sub $host_alias`
704 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
705 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
706 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
707 echo "$ac_t""$host" 1>&4
709 # We keep the original values in `$config_*' and never modify them, so we
710 # can write them unchanged into config.make. Everything else uses
711 # $machine, $vendor, and $os, and changes them whenever convenient.
712 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
714 # Some configurations imply other options.
715 case "$host_os" in
716 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
717 # These systems always use GNU tools.
718 gnu_ld=yes gnu_as=yes
719 esac
720 case "$host_os" in
721 gnu* | linux* | sysv4* | solaris2*)
722 # These systems always use the ELF format.
723 elf=yes
724 esac
726 # Compute the list of sysdep directories for this configuration.
727 sysdep_dir=$srcdir/sysdeps
728 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
729 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&4
731 else
732 machine=$config_machine
733 vendor=$config_vendor
734 os=$config_os
736 # Expand the configuration machine name into a subdirectory by architecture
737 # type and particular chip.
738 case "$machine" in
739 a29k | am29000) machine=a29k ;;
740 alpha*) machine=alpha/$machine ;;
741 hppa*) machine=hppa/$machine ;;
742 i[345]86) machine=i386/$machine ;;
743 m680?0) machine=m68k/$machine ;;
744 m68k) machine=m68k/m68020 ;;
745 m88???) machine=m88k/$machine ;;
746 m88k) machine=m88k/m88100 ;;
747 mips*) machine=mips/$machine ;;
748 mips64*) machine=mips/mips64/$machine ;;
749 sparc[6789]) machine=sparc/$machine ;;
750 supersparc) machine=sparc/sparc8 ;;
751 esac
753 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
754 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
756 case "$os" in
757 gnu*)
758 base_os=mach/hurd ;;
759 netbsd* | 386bsd* | freebsd* | bsdi*)
760 base_os=unix/bsd/bsd4.4 ;;
761 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
762 base_os=unix/bsd ;;
763 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
764 base_os=unix/sysv ;;
765 solaris[2-9]*)
766 base_os=unix/sysv/sysv4 ;;
767 none)
768 base_os=standalone ;;
770 base_os='' ;;
771 esac
773 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
774 tail=$os
775 ostry=$os
776 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
777 ostry="$ostry /$o"
778 tail=$o
779 done
780 o=`echo $tail | sed 's/[0-9]*$//'`
781 if test $o != $tail; then
782 ostry="$ostry /$o"
785 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
786 base=
787 tail=$base_os
788 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
789 set $b
790 base="$base /$1"
791 tail="$2"
792 done
794 # For sparc/sparc9, try sparc/sparc9 and then sparc.
795 mach=
796 tail=$machine
797 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
798 set $m
799 # Prepend the machine's FPU directory unless --without-fp.
800 if test "$with_fp" = yes; then
801 mach="$mach /$1/fpu"
803 mach="$mach /$1"
804 tail="$2"
805 done
808 # Find what sysdep directories exist.
809 sysnames=
810 for b in $base ''; do
811 for m0 in $mach ''; do
812 for v in /$vendor ''; do
813 for o in /$ostry ''; do
814 for m in $mach ''; do
815 try="$m0$b$v$o$m"
816 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
817 if test -d $sysdep_dir$try; then
818 sysnames="$sysnames $try"
819 { test -n "$o" || test -n "$b"; } && os_used=t
820 { test -n "$m" || test -n "$m0"; } && machine_used=t
822 done
823 done
824 done
825 done
826 done
828 if test -z "$os_used" && test "$os" != none; then
829 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
831 if test -z "$machine_used" && test "$machine" != none; then
832 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
835 # We have now validated the configuration.
838 # If using ELF, look for an `elf' subdirectory of each machine directory.
839 # We prepend these rather than inserting them whereever the machine appears
840 # because things specified by the machine's ELF ABI should override
841 # OS-specific things, and should always be the same for any OS on the
842 # machine (otherwise what's the point of an ABI?).
843 if test "$elf" = yes; then
844 elf_dirs=
845 for m in $mach; do
846 if test -d $sysdep_dir$m/elf; then
847 elf_dirs="$elf_dirs $m/elf"
849 done
850 sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
854 # Remove the leading slashes.
855 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
858 # Expand the list of system names into a full list of directories
859 # from each element's parent name and Implies file (if present).
860 set $sysnames
861 while test $# -gt 0; do
862 name=$1
863 shift
865 if test -f $sysdep_dir/$name/Implies; then
866 # Collect more names from the `Implies' file (removing comments).
867 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
868 for x in $implied; do
869 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
870 done
871 else
872 implied=
875 # Add NAME to the list of names.
876 names="$names $name"
878 # Find the parent of NAME, using the empty string if it has none.
879 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
881 # Add the names implied by NAME, and NAME's parent (if it has one), to
882 # the list of names to be processed (the argument list). We prepend the
883 # implied names to the list and append the parent. We want implied
884 # directories to come before further directories inferred from the
885 # configuration components; this ensures that for sysv4, unix/common
886 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
887 # after sysv4).
888 sysnames="`echo $implied $* $parent`"
889 test -n "$sysnames" && set $sysnames
890 done
892 # Add the default directories.
893 names="$names generic stub"
895 # Now uniquize the list.
896 seen=
897 sysnames=
898 for name in $names; do
899 if echo "$seen" | fgrep -x $name >/dev/null; then
900 # Already in the list.
901 true;
902 else
903 # A new one.
904 if test -z "$seen"; then
905 seen="$name" sysnames="$name"
906 else
907 seen="$seen
908 $name"
909 sysnames="$sysnames $name"
912 done
913 libc_cv_sysdirs="$sysnames"
916 echo "$ac_t""$libc_cv_sysdirs" 1>&4
917 sysnames="$libc_cv_sysdirs"
919 # Find a good install program. We prefer a C program (faster),
920 # so one script is as good as another. But avoid the broken or
921 # incompatible versions:
922 # SysV /etc/install, /usr/sbin/install
923 # SunOS /usr/etc/install
924 # IRIX /sbin/install
925 # AIX /bin/install
926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
928 # ./install, which can be erroneously created by make from ./install.sh.
929 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
930 if test -z "$INSTALL"; then
931 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&4
933 else
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
935 for ac_dir in $PATH; do
936 # Account for people who put trailing slashes in PATH elements.
937 case "$ac_dir/" in
938 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
940 # OSF1 and SCO ODT 3.0 have their own names for install.
941 for ac_prog in ginstall installbsd scoinst install; do
942 if test -f $ac_dir/$ac_prog; then
943 if test $ac_prog = install &&
944 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
945 # AIX install. It has an incompatible calling convention.
946 # OSF/1 installbsd also uses dspmsg, but is usable.
948 else
949 ac_cv_path_install="$ac_dir/$ac_prog -c"
950 break 2
953 done
955 esac
956 done
957 IFS="$ac_save_ifs"
960 if test "${ac_cv_path_install+set}" = set; then
961 INSTALL="$ac_cv_path_install"
962 else
963 # As a last resort, use the slow shell script. We don't cache a
964 # path for INSTALL within a source directory, because that will
965 # break other packages using the cache if that directory is
966 # removed, or if the path is relative.
967 INSTALL="$ac_install_sh"
970 echo "$ac_t""$INSTALL" 1>&4
972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
973 # It thinks the first close brace ends the variable substitution.
974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
978 if test "$INSTALL" = "${srcdir}/install-sh"; then
979 # The makefiles need to use a different form to find it in $srcdir.
980 INSTALL='$(..)./install-sh'
983 echo $ac_n "checking build system type""... $ac_c" 1>&4
985 build_alias=$build
986 case "$build_alias" in
987 NONE)
988 case $nonopt in
989 NONE) build_alias=$host_alias ;;
990 *) build_alias=$nonopt ;;
991 esac ;;
992 esac
994 build=`$ac_config_sub $build_alias`
995 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
996 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
997 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
998 echo "$ac_t""$build" 1>&4
1000 if test $host != $build; then
1001 ac_tool_prefix=${host_alias}-
1002 else
1003 ac_tool_prefix=
1006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1009 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&4
1011 else
1012 if test -n "$CC"; then
1013 ac_cv_prog_CC="$CC" # Let the user override the test.
1014 else
1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1016 for ac_dir in $PATH; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1020 break
1022 done
1023 IFS="$ac_save_ifs"
1024 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1027 CC="$ac_cv_prog_CC"
1028 if test -n "$CC"; then
1029 echo "$ac_t""$CC" 1>&4
1030 else
1031 echo "$ac_t""no" 1>&4
1036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1037 set dummy ${ac_tool_prefix}ar; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1039 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&4
1041 else
1042 if test -n "$AR"; then
1043 ac_cv_prog_AR="$AR" # Let the user override the test.
1044 else
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1046 for ac_dir in $PATH; do
1047 test -z "$ac_dir" && ac_dir=.
1048 if test -f $ac_dir/$ac_word; then
1049 ac_cv_prog_AR="${ac_tool_prefix}ar"
1050 break
1052 done
1053 IFS="$ac_save_ifs"
1054 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1057 AR="$ac_cv_prog_AR"
1058 if test -n "$AR"; then
1059 echo "$ac_t""$AR" 1>&4
1060 else
1061 echo "$ac_t""no" 1>&4
1066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1069 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&4
1071 else
1072 if test -n "$RANLIB"; then
1073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1074 else
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1076 for ac_dir in $PATH; do
1077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1080 break
1082 done
1083 IFS="$ac_save_ifs"
1086 RANLIB="$ac_cv_prog_RANLIB"
1087 if test -n "$RANLIB"; then
1088 echo "$ac_t""$RANLIB" 1>&4
1089 else
1090 echo "$ac_t""no" 1>&4
1094 if test -z "$ac_cv_prog_RANLIB"; then
1095 if test -n "$ac_tool_prefix"; then
1096 # Extract the first word of "ranlib", so it can be a program name with args.
1097 set dummy ranlib; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1099 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&4
1101 else
1102 if test -n "$RANLIB"; then
1103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1104 else
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1106 for ac_dir in $PATH; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 ac_cv_prog_RANLIB="ranlib"
1110 break
1112 done
1113 IFS="$ac_save_ifs"
1114 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1117 RANLIB="$ac_cv_prog_RANLIB"
1118 if test -n "$RANLIB"; then
1119 echo "$ac_t""$RANLIB" 1>&4
1120 else
1121 echo "$ac_t""no" 1>&4
1124 else
1125 RANLIB=":"
1129 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1130 # On Suns, sometimes $CPP names a directory.
1131 if test -n "$CPP" && test -d "$CPP"; then
1132 CPP=
1134 if test -z "$CPP"; then
1135 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&4
1137 else
1138 # This must be in double quotes, not single quotes, because CPP may get
1139 # substituted into the Makefile and "${CC-cc}" will confuse make.
1140 CPP="${CC-cc} -E"
1141 # On the NeXT, cc -E runs the code through the compiler's parser,
1142 # not just through cpp.
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1146 #include <assert.h>
1147 Syntax Error
1149 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1150 ac_err=`grep -v '^ *+' conftest.out`
1151 if test -z "$ac_err"; then
1153 else
1154 echo "$ac_err" >&5
1155 rm -rf conftest*
1156 CPP="${CC-cc} -E -traditional-cpp"
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160 #include <assert.h>
1161 Syntax Error
1163 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164 ac_err=`grep -v '^ *+' conftest.out`
1165 if test -z "$ac_err"; then
1167 else
1168 echo "$ac_err" >&5
1169 rm -rf conftest*
1170 CPP=/lib/cpp
1172 rm -f conftest*
1174 rm -f conftest*
1175 ac_cv_prog_CPP="$CPP"
1177 CPP="$ac_cv_prog_CPP"
1178 else
1179 ac_cv_prog_CPP="$CPP"
1181 echo "$ac_t""$CPP" 1>&4
1184 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1185 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&4
1187 else
1188 echo '#include <stddef.h>
1189 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1190 if eval "$ac_cpp conftest.c 2>/dev/null" \
1191 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1192 libc_cv_signed_size_t=no
1193 else
1194 libc_cv_signed_size_t=yes
1196 rm -f conftest*
1199 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1200 if test $libc_cv_signed_size_t = yes; then
1201 cat >> confdefs.h <<\EOF
1202 #undef __SIZE_TYPE__
1203 #define __SIZE_TYPE__ unsigned
1207 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1208 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&4
1210 else
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 #define __need_size_t
1215 #define __need_wchar_t
1216 #include <stddef.h>
1217 #define __need_NULL
1218 #include <stddef.h>
1219 int main() { return 0; }
1220 int t() {
1221 size_t size; wchar_t wchar;
1222 #ifdef offsetof
1223 #error stddef.h ignored __need_*
1224 #endif
1225 if (&size == NULL || &wchar == NULL) abort ();
1226 ; return 0; }
1228 if eval $ac_compile; then
1229 rm -rf conftest*
1230 libc_cv_friendly_stddef=yes
1231 else
1232 rm -rf conftest*
1233 libc_cv_friendly_stddef=no
1235 rm -f conftest*
1239 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1240 if test $libc_cv_friendly_stddef = yes; then
1241 config_vars="$config_vars
1242 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1245 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1246 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&4
1248 else
1249 cat > conftest.S <<EOF
1250 #include "confdefs.h"
1251 /* Nothing whatsoever. */
1253 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1254 libc_cv_need_minus_P=no
1255 else
1256 libc_cv_need_minus_P=yes
1258 rm -f conftest*
1261 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1262 if test $libc_cv_need_minus_P = yes; then
1263 config_vars="$config_vars
1264 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1267 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1268 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&4
1270 else
1271 libc_cv_asm_global_directive=UNKNOWN
1272 for ac_globl in .globl .global; do
1273 cat > conftest.s <<EOF
1274 .text
1275 ${ac_globl} foo
1276 foo: .long 0
1278 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1279 libc_cv_asm_global_directive=${ac_globl}
1281 rm -f conftest*
1282 test $libc_cv_asm_global_directive != UNKNOWN && break
1283 done
1286 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1287 if test $libc_cv_asm_global_directive = UNKNOWN; then
1288 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1289 else
1290 cat >> confdefs.h <<EOF
1291 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1296 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1297 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&4
1299 else
1300 cat > conftest.s <<EOF
1301 .text
1302 foo: .long 0
1303 .set glibc_conftest_frobozz,foo
1304 $libc_cv_asm_global_directive glibc_conftest_frobozz
1306 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1307 # (but it doesn't work), so we must do a linking check to be sure.
1308 cat > conftest1.c <<\EOF
1309 extern int glibc_conftest_frobozz;
1310 main () { printf ("%d\n", glibc_conftest_frobozz); }
1312 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1313 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1314 libc_cv_asm_set_directive=yes
1315 else
1316 libc_cv_asm_set_directive=no
1318 rm -f conftest*
1321 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1322 if test $libc_cv_asm_set_directive = yes; then
1323 cat >> confdefs.h <<\EOF
1324 #define HAVE_ASM_SET_DIRECTIVE 1
1329 if test $elf != yes; then
1330 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1331 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&4
1333 else
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1338 int main() { return 0; }
1339 int t() {
1340 asm (".section .init");
1341 asm (".section .fini");
1342 ; return 0; }
1344 if eval $ac_compile; then
1345 rm -rf conftest*
1346 libc_cv_have_initfini=yes
1347 else
1348 rm -rf conftest*
1349 libc_cv_have_initfini=no
1351 rm -f conftest*
1355 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1356 if test $libc_cv_have_initfini = yes; then
1357 cat >> confdefs.h <<\EOF
1358 #define HAVE_INITFINI 1
1364 # sysdeps configure fragments may set these with files to be linked below.
1365 libc_link_dests=
1366 libc_link_sources=
1368 # Iterate over all the sysdep directories we will use, running their
1369 # configure fragments, and looking for a uname implementation.
1370 uname=
1371 for dir in $sysnames; do
1372 if test -r $sysdep_dir/$dir/configure; then
1373 echo "$ac_t""running configure fragment for $dir" 1>&4
1374 . $sysdep_dir/$dir/configure
1376 if test -z "$uname"; then
1377 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1378 && uname=$dir
1380 done
1384 # If we will use the generic uname implementation, we must figure out what
1385 # it will say by examining the system, and write the results in config-name.h.
1386 if test "$uname" = generic; then
1388 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1389 if test $uname_sysname != $config_os; then
1390 config_release=`echo $config_os | sed s/$uname_sysname//`
1393 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1394 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&4
1396 else
1397 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1398 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1399 != x$config_release; then
1400 # The configuration release is a substring of the kernel release.
1401 libc_cv_uname_release=$kernel_release
1402 elif test x$config_release != x; then
1403 libc_cv_uname_release=$config_release
1404 elif test x$kernel_release != x; then
1405 libc_cv_uname_release=$kernel_release
1406 else
1407 libc_cv_uname_release=unknown
1411 echo "$ac_t""$libc_cv_uname_release" 1>&4
1412 uname_release="$libc_cv_uname_release"
1414 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1415 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&4
1417 else
1418 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1419 if test -n "$kernel_version"; then
1420 libc_cv_uname_version="$kernel_version"
1421 else
1422 libc_cv_uname_version=unknown
1426 echo "$ac_t""$libc_cv_uname_version" 1>&4
1427 uname_version="$libc_cv_uname_version"
1429 config_uname=config-name.h:config-name.in
1430 else
1431 # For non-generic uname, we don't need to create config-name.h at all.
1432 config_uname=
1435 echo $ac_n "checking stdio selection""... $ac_c" 1>&4
1437 case $stdio in
1438 libio) cat >> confdefs.h <<\EOF
1439 #define USE_IN_LIBIO 1
1442 default) stdio=stdio ;;
1443 esac
1444 echo "$ac_t""$stdio" 1>&4
1447 if test $gnu_ld = yes; then
1448 cat >> confdefs.h <<\EOF
1449 #define HAVE_GNU_LD 1
1453 if test $gnu_as = yes; then
1454 cat >> confdefs.h <<\EOF
1455 #define HAVE_GNU_AS 1
1459 if test $elf = yes; then
1460 cat >> confdefs.h <<\EOF
1461 #define HAVE_ELF 1
1465 if test $weak = yes; then
1466 cat >> confdefs.h <<\EOF
1467 #define HAVE_WEAK_SYMBOLS 1
1473 if test $shared = default; then
1474 if test $gnu_ld = yes; then
1475 shared=$elf
1481 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1482 config_makefile=
1483 else
1484 config_makefile=Makefile
1487 trap '' 1 2 15
1488 cat > confcache <<\EOF
1489 # This file is a shell script that caches the results of configure
1490 # tests run on this system so they can be shared between configure
1491 # scripts and configure runs. It is not useful on other systems.
1492 # If it contains results you don't want to keep, you may remove or edit it.
1494 # By default, configure uses ./config.cache as the cache file,
1495 # creating it if it does not exist already. You can give configure
1496 # the --cache-file=FILE option to use a different cache file; that is
1497 # what configure does when it calls configure scripts in
1498 # subdirectories, so they share the cache.
1499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1500 # config.status only pays attention to the cache file if you give it the
1501 # --recheck option to rerun configure.
1504 # Ultrix sh set writes to stderr and can't be redirected directly,
1505 # and sets the high bit in the cache file unless we assign to the vars.
1506 (set) 2>&1 |
1507 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1508 >> confcache
1509 if cmp -s $cache_file confcache; then
1511 else
1512 if test -w $cache_file; then
1513 echo "updating cache $cache_file"
1514 cat confcache > $cache_file
1515 else
1516 echo "not updating unwritable cache $cache_file"
1519 rm -f confcache
1521 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1524 # Let make expand exec_prefix.
1525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1527 # Any assignment to VPATH causes Sun make to only execute
1528 # the first set of double-colon rules, so remove it if not needed.
1529 # If there is a colon in the path, we need to keep it.
1530 if test "x$srcdir" = x.; then
1531 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1534 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1536 DEFS=-DHAVE_CONFIG_H
1538 # Without the "./", some shells look in PATH for config.status.
1539 : ${CONFIG_STATUS=./config.status}
1541 echo creating $CONFIG_STATUS
1542 rm -f $CONFIG_STATUS
1543 cat > $CONFIG_STATUS <<EOF
1544 #! /bin/sh
1545 # Generated automatically by configure.
1546 # Run this file to recreate the current configuration.
1547 # This directory was configured as follows,
1548 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1550 # $0 $ac_configure_args
1552 # Compiler output produced by configure, useful for debugging
1553 # configure, is in ./config.log if it exists.
1555 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1556 for ac_option
1558 case "\$ac_option" in
1559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1560 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1561 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1562 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1563 echo "$CONFIG_STATUS generated by autoconf version 2.5"
1564 exit 0 ;;
1565 -help | --help | --hel | --he | --h)
1566 echo "\$ac_cs_usage"; exit 0 ;;
1567 *) echo "\$ac_cs_usage"; exit 1 ;;
1568 esac
1569 done
1571 ac_given_srcdir=$srcdir
1572 ac_given_INSTALL="$INSTALL"
1574 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1576 # Protect against being on the right side of a sed subst in config.status.
1577 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1578 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1579 $ac_vpsub
1580 $extrasub
1581 s%@CFLAGS@%$CFLAGS%g
1582 s%@CPPFLAGS@%$CPPFLAGS%g
1583 s%@CXXFLAGS@%$CXXFLAGS%g
1584 s%@DEFS@%$DEFS%g
1585 s%@LDFLAGS@%$LDFLAGS%g
1586 s%@LIBS@%$LIBS%g
1587 s%@exec_prefix@%$exec_prefix%g
1588 s%@prefix@%$prefix%g
1589 s%@program_transform_name@%$program_transform_name%g
1590 s%@bindir@%$bindir%g
1591 s%@sbindir@%$sbindir%g
1592 s%@libexecdir@%$libexecdir%g
1593 s%@datadir@%$datadir%g
1594 s%@sysconfdir@%$sysconfdir%g
1595 s%@sharedstatedir@%$sharedstatedir%g
1596 s%@localstatedir@%$localstatedir%g
1597 s%@libdir@%$libdir%g
1598 s%@includedir@%$includedir%g
1599 s%@oldincludedir@%$oldincludedir%g
1600 s%@infodir@%$infodir%g
1601 s%@mandir@%$mandir%g
1602 s%@host@%$host%g
1603 s%@host_alias@%$host_alias%g
1604 s%@host_cpu@%$host_cpu%g
1605 s%@host_vendor@%$host_vendor%g
1606 s%@host_os@%$host_os%g
1607 s%@sysnames@%$sysnames%g
1608 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1609 s%@INSTALL_DATA@%$INSTALL_DATA%g
1610 s%@build@%$build%g
1611 s%@build_alias@%$build_alias%g
1612 s%@build_cpu@%$build_cpu%g
1613 s%@build_vendor@%$build_vendor%g
1614 s%@build_os@%$build_os%g
1615 s%@CC@%$CC%g
1616 s%@AR@%$AR%g
1617 s%@RANLIB@%$RANLIB%g
1618 s%@CPP@%$CPP%g
1619 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1620 s%@uname_sysname@%$uname_sysname%g
1621 s%@uname_release@%$uname_release%g
1622 s%@uname_version@%$uname_version%g
1623 s%@stdio@%$stdio%g
1624 s%@gnu_ld@%$gnu_ld%g
1625 s%@gnu_as@%$gnu_as%g
1626 s%@elf@%$elf%g
1627 s%@weak@%$weak%g
1628 s%@shared@%$shared%g
1629 s%@profile@%$profile%g
1630 s%@omitfp@%$omitfp%g
1632 CEOF
1634 cat >> $CONFIG_STATUS <<EOF
1636 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1638 cat >> $CONFIG_STATUS <<\EOF
1639 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1640 # Support "outfile[:infile]", defaulting infile="outfile.in".
1641 case "$ac_file" in
1642 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1643 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1644 *) ac_file_in="${ac_file}.in" ;;
1645 esac
1647 # Adjust relative srcdir, etc. for subdirectories.
1649 # Remove last slash and all that follows it. Not all systems have dirname.
1650 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1651 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1652 # The file is in a subdirectory.
1653 test ! -d "$ac_dir" && mkdir "$ac_dir"
1654 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1655 # A "../" for each directory in $ac_dir_suffix.
1656 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1657 else
1658 ac_dir_suffix= ac_dots=
1661 case "$ac_given_srcdir" in
1662 .) srcdir=.
1663 if test -z "$ac_dots"; then top_srcdir=.
1664 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1665 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1666 *) # Relative path.
1667 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1668 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1669 esac
1671 case "$ac_given_INSTALL" in
1672 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1673 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1674 esac
1675 echo creating "$ac_file"
1676 rm -f "$ac_file"
1677 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1678 case "$ac_file" in
1679 *Makefile*) ac_comsub="1i\\
1680 # $configure_input" ;;
1681 *) ac_comsub= ;;
1682 esac
1683 sed -e "$ac_comsub
1684 s%@configure_input@%$configure_input%g
1685 s%@srcdir@%$srcdir%g
1686 s%@top_srcdir@%$top_srcdir%g
1687 s%@INSTALL@%$INSTALL%g
1688 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1689 fi; done
1690 rm -f conftest.subs
1692 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1693 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1695 # ac_d sets the value in "#define NAME VALUE" lines.
1696 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1697 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1698 ac_dC='\3'
1699 ac_dD='%g'
1700 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1701 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1702 ac_uB='\([ ]\)%\1#\2define\3'
1703 ac_uC=' '
1704 ac_uD='\4%g'
1705 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1706 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1707 ac_eB='$%\1#\2define\3'
1708 ac_eC=' '
1709 ac_eD='%g'
1711 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1712 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1713 # Support "outfile[:infile]", defaulting infile="outfile.in".
1714 case "$ac_file" in
1715 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1716 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1717 *) ac_file_in="${ac_file}.in" ;;
1718 esac
1720 echo creating $ac_file
1722 rm -f conftest.frag conftest.in conftest.out
1723 cp $ac_given_srcdir/$ac_file_in conftest.in
1727 # Transform confdefs.h into a sed script conftest.vals that substitutes
1728 # the proper values into config.h.in to produce config.h. And first:
1729 # Protect against being on the right side of a sed subst in config.status.
1730 # Protect against being in an unquoted here document in config.status.
1731 rm -f conftest.vals
1732 cat > conftest.hdr <<\EOF
1733 s/[\\&%]/\\&/g
1734 s%[\\$`]%\\&%g
1735 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1736 s%ac_d%ac_u%gp
1737 s%ac_u%ac_e%gp
1739 sed -n -f conftest.hdr confdefs.h > conftest.vals
1740 rm -f conftest.hdr
1742 # This sed command replaces #undef with comments. This is necessary, for
1743 # example, in the case of _POSIX_SOURCE, which is predefined and required
1744 # on some systems where configure will not decide to define it.
1745 cat >> conftest.vals <<\EOF
1746 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1749 # Break up conftest.vals because some shells have a limit on
1750 # the size of here documents, and old seds have small limits too.
1751 # Maximum number of lines to put in a single here document.
1752 ac_max_here_lines=12
1754 rm -f conftest.tail
1755 while :
1757 ac_lines=`grep -c . conftest.vals`
1758 # grep -c gives empty output for an empty file on some AIX systems.
1759 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1760 # Write a limited-size here document to conftest.frag.
1761 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1762 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1763 echo 'CEOF
1764 sed -f conftest.frag conftest.in > conftest.out
1765 rm -f conftest.in
1766 mv conftest.out conftest.in
1767 ' >> $CONFIG_STATUS
1768 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1769 rm -f conftest.vals
1770 mv conftest.tail conftest.vals
1771 done
1772 rm -f conftest.vals
1774 cat >> $CONFIG_STATUS <<\EOF
1775 rm -f conftest.frag conftest.h
1776 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1777 cat conftest.in >> conftest.h
1778 rm -f conftest.in
1779 if cmp -s $ac_file conftest.h 2>/dev/null; then
1780 echo "$ac_file is unchanged"
1781 rm -f conftest.h
1782 else
1783 rm -f $ac_file
1784 mv conftest.h $ac_file
1786 fi; done
1790 cat >> $CONFIG_STATUS <<EOF
1791 ac_sources="`echo $libc_link_sources`"
1792 ac_dests="`echo $libc_link_dests`"
1795 cat >> $CONFIG_STATUS <<\EOF
1796 srcdir=$ac_given_srcdir
1797 while test -n "$ac_sources"; do
1798 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1799 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1801 echo "linking $srcdir/$ac_source to $ac_dest"
1803 if test ! -r $srcdir/$ac_source; then
1804 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1806 rm -f $ac_dest
1808 # Make relative symlinks.
1809 # Remove last slash and all that follows it. Not all systems have dirname.
1810 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1811 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1812 # The dest file is in a subdirectory.
1813 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1814 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1815 # A "../" for each directory in $ac_dest_dir_suffix.
1816 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1817 else
1818 ac_dest_dir_suffix= ac_dots=
1821 case "$srcdir" in
1822 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1823 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1824 esac
1826 # Make a symlink if possible; otherwise try a hard link.
1827 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1828 ln $srcdir/$ac_source $ac_dest; then :
1829 else
1830 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1832 done
1834 cat >> $CONFIG_STATUS <<EOF
1835 echo '$config_vars' >> config.make
1837 cat >> $CONFIG_STATUS <<\EOF
1839 exit 0
1841 chmod +x $CONFIG_STATUS
1842 rm -fr confdefs* $ac_clean_files
1843 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1