3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 # Maximum number of lines to put in a shell here document.
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 # Accept the important Cygnus configure options, so we can diagnose typos.
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
80 -build | --build | --buil | --bui | --bu)
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96 datadir="$ac_optarg" ;;
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
188 -host | --host | --hos | --ho)
190 -host=* | --host=* | --hos=* | --ho=*)
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
205 -libdir | --libdir | --libdi | --libd)
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
232 # Obsolete; use --without-fp.
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296 sbindir="$ac_optarg" ;;
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307 sharedstatedir="$ac_optarg" ;;
309 -site | --site | --sit)
311 -site=* | --site=* | --sit=*)
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
326 -target | --target | --targe | --targ | --tar | --ta | --t)
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.12"
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
349 eval "with_${ac_package}='$ac_optarg'" ;;
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
361 # Obsolete; use --with-x.
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400 # File descriptor usage:
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=popt.h
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 if test ! -r $srcdir/$ac_unique_file; then
467 ac_srcdir_defaulted=no
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
497 echo "creating cache $cache_file"
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
508 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517 ac_n= ac_c='\c' ac_t=
522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
523 if test -f $ac_dir/install-sh; then
525 ac_install_sh="$ac_aux_dir/install-sh -c"
527 elif test -f $ac_dir/install.sh; then
529 ac_install_sh="$ac_aux_dir/install.sh -c"
533 if test -z "$ac_aux_dir"; then
534 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
536 ac_config_guess=$ac_aux_dir/config.guess
537 ac_config_sub=$ac_aux_dir/config.sub
538 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
540 # Find a good install program. We prefer a C program (faster),
541 # so one script is as good as another. But avoid the broken or
542 # incompatible versions:
543 # SysV /etc/install, /usr/sbin/install
544 # SunOS /usr/etc/install
547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
549 # ./install, which can be erroneously created by make from ./install.sh.
550 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
551 echo "configure:552: checking for a BSD compatible install" >&5
552 if test -z "$INSTALL"; then
553 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
556 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
557 for ac_dir in $PATH; do
558 # Account for people who put trailing slashes in PATH elements.
560 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
562 # OSF1 and SCO ODT 3.0 have their own names for install.
563 for ac_prog in ginstall installbsd scoinst install; do
564 if test -f $ac_dir/$ac_prog; then
565 if test $ac_prog = install &&
566 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
567 # AIX install. It has an incompatible calling convention.
568 # OSF/1 installbsd also uses dspmsg, but is usable.
571 ac_cv_path_install="$ac_dir/$ac_prog -c"
582 if test "${ac_cv_path_install+set}" = set; then
583 INSTALL="$ac_cv_path_install"
585 # As a last resort, use the slow shell script. We don't cache a
586 # path for INSTALL within a source directory, because that will
587 # break other packages using the cache if that directory is
588 # removed, or if the path is relative.
589 INSTALL="$ac_install_sh"
592 echo "$ac_t""$INSTALL" 1>&6
594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
595 # It thinks the first close brace ends the variable substitution.
596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
598 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
603 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
604 echo "configure:605: checking whether build environment is sane" >&5
607 echo timestamp > conftestfile
608 # Do `set' in a subshell so we don't clobber the current shell's
609 # arguments. Must try -L first in case configure is actually a
610 # symlink; some systems play weird games with the mod time of symlinks
611 # (eg FreeBSD returns the mod time of the symlink's containing
614 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
615 if test "$*" = "X"; then
617 set X `ls -t $srcdir/configure conftestfile`
619 if test "$*" != "X $srcdir/configure conftestfile" \
620 && test "$*" != "X conftestfile $srcdir/configure"; then
622 # If neither matched, then we have a broken ls. This can happen
623 # if, for instance, CONFIG_SHELL is bash and it inherits a
624 # broken ls alias from the environment. This has actually
625 # happened. Such a system could not be considered "sane".
626 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
627 alias in your environment" 1>&2; exit 1; }
630 test "$2" = conftestfile
636 { echo "configure: error: newly created file is older than distributed files!
637 Check your system clock" 1>&2; exit 1; }
640 echo "$ac_t""yes" 1>&6
641 if test "$program_transform_name" = s,x,x,; then
642 program_transform_name=
644 # Double any \ or $. echo might interpret backslashes.
645 cat <<\EOF_SED > conftestsed
646 s,\\,\\\\,g; s,\$,$$,g
648 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
651 test "$program_prefix" != NONE &&
652 program_transform_name="s,^,${program_prefix},; $program_transform_name"
653 # Use a double $ so make ignores it.
654 test "$program_suffix" != NONE &&
655 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
657 # sed with no file args requires a program.
658 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
660 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
661 echo "configure:662: checking whether ${MAKE-make} sets \${MAKE}" >&5
662 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
663 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
666 cat > conftestmake <<\EOF
668 @echo 'ac_maketemp="${MAKE}"'
670 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
671 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
672 if test -n "$ac_maketemp"; then
673 eval ac_cv_prog_make_${ac_make}_set=yes
675 eval ac_cv_prog_make_${ac_make}_set=no
679 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
680 echo "$ac_t""yes" 1>&6
683 echo "$ac_t""no" 1>&6
684 SET_MAKE="MAKE=${MAKE-make}"
692 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
693 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
695 cat >> confdefs.h <<EOF
696 #define PACKAGE "$PACKAGE"
699 cat >> confdefs.h <<EOF
700 #define VERSION "$VERSION"
705 missing_dir=`cd $ac_aux_dir && pwd`
706 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
707 echo "configure:708: checking for working aclocal" >&5
708 # Run test in a subshell; some versions of sh will print an error if
709 # an executable is not found, even if stderr is redirected.
710 # Redirect stdin to placate older versions of autoconf. Sigh.
711 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
713 echo "$ac_t""found" 1>&6
715 ACLOCAL="$missing_dir/missing aclocal"
716 echo "$ac_t""missing" 1>&6
719 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
720 echo "configure:721: checking for working autoconf" >&5
721 # Run test in a subshell; some versions of sh will print an error if
722 # an executable is not found, even if stderr is redirected.
723 # Redirect stdin to placate older versions of autoconf. Sigh.
724 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
726 echo "$ac_t""found" 1>&6
728 AUTOCONF="$missing_dir/missing autoconf"
729 echo "$ac_t""missing" 1>&6
732 echo $ac_n "checking for working automake""... $ac_c" 1>&6
733 echo "configure:734: checking for working automake" >&5
734 # Run test in a subshell; some versions of sh will print an error if
735 # an executable is not found, even if stderr is redirected.
736 # Redirect stdin to placate older versions of autoconf. Sigh.
737 if (automake --version) < /dev/null > /dev/null 2>&1; then
739 echo "$ac_t""found" 1>&6
741 AUTOMAKE="$missing_dir/missing automake"
742 echo "$ac_t""missing" 1>&6
745 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
746 echo "configure:747: checking for working autoheader" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
751 AUTOHEADER=autoheader
752 echo "$ac_t""found" 1>&6
754 AUTOHEADER="$missing_dir/missing autoheader"
755 echo "$ac_t""missing" 1>&6
758 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
759 echo "configure:760: checking for working makeinfo" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
765 echo "$ac_t""found" 1>&6
767 MAKEINFO="$missing_dir/missing makeinfo"
768 echo "$ac_t""missing" 1>&6
776 # Extract the first word of "gcc", so it can be a program name with args.
777 set dummy gcc; ac_word=$2
778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
779 echo "configure:780: checking for $ac_word" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 if test -n "$CC"; then
784 ac_cv_prog_CC="$CC" # Let the user override the test.
786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
787 for ac_dir in $PATH; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
798 if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
801 echo "$ac_t""no" 1>&6
804 if test -z "$CC"; then
805 # Extract the first word of "cc", so it can be a program name with args.
806 set dummy cc; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
817 for ac_dir in $PATH; do
818 test -z "$ac_dir" && ac_dir=.
819 if test -f $ac_dir/$ac_word; then
820 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
829 if test $ac_prog_rejected = yes; then
830 # We found a bogon in the path, so make sure we never use it.
831 set dummy $ac_cv_prog_CC
833 if test $# -gt 0; then
834 # We chose a different compiler from the bogus one.
835 # However, it has the same basename, so the bogon will be chosen
836 # first if we set CC to just the basename; use the full file name.
838 set dummy "$ac_dir/$ac_word" "$@"
846 if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
849 echo "$ac_t""no" 1>&6
852 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
855 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
856 echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
860 ac_cpp='$CPP $CPPFLAGS'
861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
862 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
863 cross_compiling=$ac_cv_prog_cc_cross
865 cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
870 if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
871 ac_cv_prog_cc_works=yes
872 # If we can't run a trivial program, we are probably using a cross compiler.
873 if (./conftest; exit) 2>/dev/null; then
874 ac_cv_prog_cc_cross=no
876 ac_cv_prog_cc_cross=yes
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 ac_cv_prog_cc_works=no
885 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
886 if test $ac_cv_prog_cc_works = no; then
887 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
890 echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
891 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
892 cross_compiling=$ac_cv_prog_cc_cross
894 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
895 echo "configure:896: checking whether we are using GNU C" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 cat > conftest.c <<EOF
904 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
911 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
913 if test $ac_cv_prog_gcc = yes; then
915 ac_test_CFLAGS="${CFLAGS+set}"
916 ac_save_CFLAGS="$CFLAGS"
918 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
919 echo "configure:920: checking whether ${CC-cc} accepts -g" >&5
920 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
923 echo 'void f(){}' > conftest.c
924 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
933 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
934 if test "$ac_test_CFLAGS" = set; then
935 CFLAGS="$ac_save_CFLAGS"
936 elif test $ac_cv_prog_cc_g = yes; then
943 test "${CFLAGS+set}" = set || CFLAGS="-g"
946 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
947 echo "configure:948: checking how to run the C preprocessor" >&5
948 # On Suns, sometimes $CPP names a directory.
949 if test -n "$CPP" && test -d "$CPP"; then
952 if test -z "$CPP"; then
953 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 # This must be in double quotes, not single quotes, because CPP may get
957 # substituted into the Makefile and "${CC-cc}" will confuse make.
959 # On the NeXT, cc -E runs the code through the compiler's parser,
960 # not just through cpp.
961 cat > conftest.$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
968 { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
969 ac_err=`grep -v '^ *+' conftest.out`
970 if test -z "$ac_err"; then
974 echo "configure: failed program was:" >&5
975 cat conftest.$ac_ext >&5
977 CPP="${CC-cc} -E -traditional-cpp"
978 cat > conftest.$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
985 { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
986 ac_err=`grep -v '^ *+' conftest.out`
987 if test -z "$ac_err"; then
991 echo "configure: failed program was:" >&5
992 cat conftest.$ac_ext >&5
999 ac_cv_prog_CPP="$CPP"
1001 CPP="$ac_cv_prog_CPP"
1003 ac_cv_prog_CPP="$CPP"
1005 echo "$ac_t""$CPP" 1>&6
1007 if test $ac_cv_prog_gcc = yes; then
1008 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether ${CC-cc} needs -traditional" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 ac_pattern="Autoconf.*'x'"
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1021 egrep "$ac_pattern" >/dev/null 2>&1; then
1023 ac_cv_prog_gcc_traditional=yes
1026 ac_cv_prog_gcc_traditional=no
1031 if test $ac_cv_prog_gcc_traditional = no; then
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1039 egrep "$ac_pattern" >/dev/null 2>&1; then
1041 ac_cv_prog_gcc_traditional=yes
1048 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1049 if test $ac_cv_prog_gcc_traditional = yes; then
1050 CC="$CC -traditional"
1057 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1058 echo "configure:1059: checking for ${CC-cc} option to accept ANSI C" >&5
1059 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 am_cv_prog_cc_stdc=no
1064 # Don't try gcc -ansi; that turns off useful extensions and
1065 # breaks some systems' header files.
1066 # AIX -qlanglvl=ansi
1067 # Ultrix and OSF/1 -std1
1068 # HP-UX -Aa -D_HPUX_SOURCE
1069 # SVR4 -Xc -D__EXTENSIONS__
1070 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1072 CC="$ac_save_CC $ac_arg"
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1078 #include <sys/types.h>
1079 #include <sys/stat.h>
1080 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1081 struct buf { int x; };
1082 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1083 static char *e (p, i)
1089 static char *f (char * (*g) (char **, int), char **p, ...)
1094 s = g (p, va_arg (v,int));
1098 int test (int i, double x);
1099 struct s1 {int (*f) (int a);};
1100 struct s2 {int (*f) (double a);};
1101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1111 if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1113 am_cv_prog_cc_stdc="$ac_arg"; break
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1124 if test -z "$am_cv_prog_cc_stdc"; then
1125 echo "$ac_t""none needed" 1>&6
1127 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1129 case "x$am_cv_prog_cc_stdc" in
1131 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1136 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1137 echo "configure:1138: checking for function prototypes" >&5
1138 if test "$am_cv_prog_cc_stdc" != no; then
1139 echo "$ac_t""yes" 1>&6
1140 cat >> confdefs.h <<\EOF
1141 #define PROTOTYPES 1
1146 echo "$ac_t""no" 1>&6
1147 U=_ ANSI2KNR=./ansi2knr
1148 # Ensure some checks needed by ansi2knr itself.
1149 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1150 echo "configure:1151: checking for ANSI C header files" >&5
1151 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1163 { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1164 ac_err=`grep -v '^ *+' conftest.out`
1165 if test -z "$ac_err"; then
1167 ac_cv_header_stdc=yes
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1173 ac_cv_header_stdc=no
1177 if test $ac_cv_header_stdc = yes; then
1178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1185 egrep "memchr" >/dev/null 2>&1; then
1189 ac_cv_header_stdc=no
1195 if test $ac_cv_header_stdc = yes; then
1196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1197 cat > conftest.$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1203 egrep "free" >/dev/null 2>&1; then
1207 ac_cv_header_stdc=no
1213 if test $ac_cv_header_stdc = yes; then
1214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1215 if test "$cross_compiling" = yes; then
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1222 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1223 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1225 int main () { int i; for (i = 0; i < 256; i++)
1226 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 ac_cv_header_stdc=no
1245 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1246 if test $ac_cv_header_stdc = yes; then
1247 cat >> confdefs.h <<\EOF
1248 #define STDC_HEADERS 1
1253 for ac_hdr in string.h
1255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_hdr" >&5
1258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err=`grep -v '^ *+' conftest.out`
1269 if test -z "$ac_err"; then
1271 eval "ac_cv_header_$ac_safe=yes"
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1277 eval "ac_cv_header_$ac_safe=no"
1281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1284 cat >> confdefs.h <<EOF
1285 #define $ac_tr_hdr 1
1289 echo "$ac_t""no" 1>&6
1296 # Extract the first word of "ranlib", so it can be a program name with args.
1297 set dummy ranlib; ac_word=$2
1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299 echo "configure:1300: checking for $ac_word" >&5
1300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 if test -n "$RANLIB"; then
1304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1307 for ac_dir in $PATH; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="ranlib"
1315 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1318 RANLIB="$ac_cv_prog_RANLIB"
1319 if test -n "$RANLIB"; then
1320 echo "$ac_t""$RANLIB" 1>&6
1322 echo "$ac_t""no" 1>&6
1325 # Find a good install program. We prefer a C program (faster),
1326 # so one script is as good as another. But avoid the broken or
1327 # incompatible versions:
1328 # SysV /etc/install, /usr/sbin/install
1329 # SunOS /usr/etc/install
1330 # IRIX /sbin/install
1332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1334 # ./install, which can be erroneously created by make from ./install.sh.
1335 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1336 echo "configure:1337: checking for a BSD compatible install" >&5
1337 if test -z "$INSTALL"; then
1338 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1342 for ac_dir in $PATH; do
1343 # Account for people who put trailing slashes in PATH elements.
1345 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1347 # OSF1 and SCO ODT 3.0 have their own names for install.
1348 for ac_prog in ginstall installbsd scoinst install; do
1349 if test -f $ac_dir/$ac_prog; then
1350 if test $ac_prog = install &&
1351 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1352 # AIX install. It has an incompatible calling convention.
1353 # OSF/1 installbsd also uses dspmsg, but is usable.
1356 ac_cv_path_install="$ac_dir/$ac_prog -c"
1367 if test "${ac_cv_path_install+set}" = set; then
1368 INSTALL="$ac_cv_path_install"
1370 # As a last resort, use the slow shell script. We don't cache a
1371 # path for INSTALL within a source directory, because that will
1372 # break other packages using the cache if that directory is
1373 # removed, or if the path is relative.
1374 INSTALL="$ac_install_sh"
1377 echo "$ac_t""$INSTALL" 1>&6
1379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1380 # It thinks the first close brace ends the variable substitution.
1381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1386 if test $CC = gcc; then
1387 CFLAGS="-Wall $CFLAGS"
1393 *-*-solaris*) LIBS="$LIBS -L$l -R $l $*";;
1394 *) LIBS="$LIBS -L$l $*";;
1398 if test X"$GCC" = Xyes ; then
1399 TARGET="depend allprogs"
1403 # let the Makefile know that we're done with `depend', since we don't
1404 # have gcc we're not going to rebuild our dependencies at all.
1410 for ac_hdr in unistd.h alloca.h libintl.h
1412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1414 echo "configure:1415: checking for $ac_hdr" >&5
1415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err=`grep -v '^ *+' conftest.out`
1426 if test -z "$ac_err"; then
1428 eval "ac_cv_header_$ac_safe=yes"
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1434 eval "ac_cv_header_$ac_safe=no"
1438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1439 echo "$ac_t""yes" 1>&6
1440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1441 cat >> confdefs.h <<EOF
1442 #define $ac_tr_hdr 1
1446 echo "$ac_t""no" 1>&6
1450 echo $ac_n "checking for /usr/ucblib in LIBS""... $ac_c" 1>&6
1451 echo "configure:1452: checking for /usr/ucblib in LIBS" >&5
1452 if test -d /usr/ucblib ; then
1453 if test "$build" = "mips-sni-sysv4" ; then
1454 addlib /usr/ccs/lib -lc
1459 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1464 for ac_func in strerror
1466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_func" >&5
1468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char $ac_func(); below. */
1477 /* Override any gcc2 internal prototype to avoid an error. */
1478 /* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1497 eval "ac_cv_func_$ac_func=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 eval "ac_cv_func_$ac_func=no"
1507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1510 cat >> confdefs.h <<EOF
1511 #define $ac_tr_func 1
1515 echo "$ac_t""no" 1>&6
1519 for ac_func in gettext
1521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $ac_func" >&5
1523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1529 /* System header to define __stub macros and hopefully few prototypes,
1530 which can conflict with char $ac_func(); below. */
1532 /* Override any gcc2 internal prototype to avoid an error. */
1533 /* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1539 /* The GNU C library defines this for functions which it implements
1540 to always fail with ENOSYS. Some functions are actually named
1541 something starting with __ and the normal name is an alias. */
1542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1550 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1552 eval "ac_cv_func_$ac_func=yes"
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1557 eval "ac_cv_func_$ac_func=no"
1562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1563 echo "$ac_t""yes" 1>&6
1564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1565 cat >> confdefs.h <<EOF
1566 #define $ac_tr_func 1
1570 echo "$ac_t""no" 1>&6
1574 for ac_func in dgettext
1576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_func" >&5
1578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 /* System header to define __stub macros and hopefully few prototypes,
1585 which can conflict with char $ac_func(); below. */
1587 /* Override any gcc2 internal prototype to avoid an error. */
1588 /* We use char because int might match the return type of a gcc2
1589 builtin and then its argument prototype would still apply. */
1594 /* The GNU C library defines this for functions which it implements
1595 to always fail with ENOSYS. Some functions are actually named
1596 something starting with __ and the normal name is an alias. */
1597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1605 if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1607 eval "ac_cv_func_$ac_func=yes"
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1612 eval "ac_cv_func_$ac_func=no"
1617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1620 cat >> confdefs.h <<EOF
1621 #define $ac_tr_func 1
1625 echo "$ac_t""no" 1>&6
1629 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
1630 echo "configure:1631: checking for setreuid" >&5
1631 if eval "test \"`echo '$''{'ac_cv_func_setreuid'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 /* System header to define __stub macros and hopefully few prototypes,
1638 which can conflict with char setreuid(); below. */
1640 /* Override any gcc2 internal prototype to avoid an error. */
1641 /* We use char because int might match the return type of a gcc2
1642 builtin and then its argument prototype would still apply. */
1647 /* The GNU C library defines this for functions which it implements
1648 to always fail with ENOSYS. Some functions are actually named
1649 something starting with __ and the normal name is an alias. */
1650 #if defined (__stub_setreuid) || defined (__stub___setreuid)
1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1660 eval "ac_cv_func_setreuid=yes"
1662 echo "configure: failed program was:" >&5
1663 cat conftest.$ac_ext >&5
1665 eval "ac_cv_func_setreuid=no"
1670 if eval "test \"`echo '$ac_cv_func_'setreuid`\" = yes"; then
1671 echo "$ac_t""yes" 1>&6
1674 echo "$ac_t""no" 1>&6
1676 echo $ac_n "checking for setreuid in -lucb""... $ac_c" 1>&6
1677 echo "configure:1678: checking for setreuid in -lucb" >&5
1678 ac_lib_var=`echo ucb'_'setreuid | sed 'y%./+-%__p_%'`
1679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 ac_save_LIBS="$LIBS"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 /* Override any gcc2 internal prototype to avoid an error. */
1688 /* We use char because int might match the return type of a gcc2
1689 builtin and then its argument prototype would still apply. */
1696 if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1698 eval "ac_cv_lib_$ac_lib_var=yes"
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 eval "ac_cv_lib_$ac_lib_var=no"
1706 LIBS="$ac_save_LIBS"
1709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
1713 echo "$ac_t""no" 1>&6
1721 cat > confcache <<\EOF
1722 # This file is a shell script that caches the results of configure
1723 # tests run on this system so they can be shared between configure
1724 # scripts and configure runs. It is not useful on other systems.
1725 # If it contains results you don't want to keep, you may remove or edit it.
1727 # By default, configure uses ./config.cache as the cache file,
1728 # creating it if it does not exist already. You can give configure
1729 # the --cache-file=FILE option to use a different cache file; that is
1730 # what configure does when it calls configure scripts in
1731 # subdirectories, so they share the cache.
1732 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1733 # config.status only pays attention to the cache file if you give it the
1734 # --recheck option to rerun configure.
1737 # The following way of writing the cache mishandles newlines in values,
1738 # but we know of no workaround that is simple, portable, and efficient.
1739 # So, don't put newlines in cache variables' values.
1740 # Ultrix sh set writes to stderr and can't be redirected directly,
1741 # and sets the high bit in the cache file unless we assign to the vars.
1743 case `(ac_space=' '; set) 2>&1` in
1745 # `set' does not quote correctly, so add quotes (double-quote substitution
1746 # turns \\\\ into \\, and sed turns \\ into \).
1748 -e "s/'/'\\\\''/g" \
1749 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1752 # `set' quotes correctly as required by POSIX, so do not add quotes.
1753 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1756 if cmp -s $cache_file confcache; then
1759 if test -w $cache_file; then
1760 echo "updating cache $cache_file"
1761 cat confcache > $cache_file
1763 echo "not updating unwritable cache $cache_file"
1768 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1771 # Let make expand exec_prefix.
1772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1774 # Any assignment to VPATH causes Sun make to only execute
1775 # the first set of double-colon rules, so remove it if not needed.
1776 # If there is a colon in the path, we need to keep it.
1777 if test "x$srcdir" = x.; then
1778 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1781 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1783 DEFS=-DHAVE_CONFIG_H
1785 # Without the "./", some shells look in PATH for config.status.
1786 : ${CONFIG_STATUS=./config.status}
1788 echo creating $CONFIG_STATUS
1789 rm -f $CONFIG_STATUS
1790 cat > $CONFIG_STATUS <<EOF
1792 # Generated automatically by configure.
1793 # Run this file to recreate the current configuration.
1794 # This directory was configured as follows,
1795 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1797 # $0 $ac_configure_args
1799 # Compiler output produced by configure, useful for debugging
1800 # configure, is in ./config.log if it exists.
1802 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1805 case "\$ac_option" in
1806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1807 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1808 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1809 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1810 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1812 -help | --help | --hel | --he | --h)
1813 echo "\$ac_cs_usage"; exit 0 ;;
1814 *) echo "\$ac_cs_usage"; exit 1 ;;
1818 ac_given_srcdir=$srcdir
1819 ac_given_INSTALL="$INSTALL"
1821 trap 'rm -fr `echo "Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1823 cat >> $CONFIG_STATUS <<EOF
1825 # Protect against being on the right side of a sed subst in config.status.
1826 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1827 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1830 s%@CFLAGS@%$CFLAGS%g
1831 s%@CPPFLAGS@%$CPPFLAGS%g
1832 s%@CXXFLAGS@%$CXXFLAGS%g
1834 s%@LDFLAGS@%$LDFLAGS%g
1836 s%@exec_prefix@%$exec_prefix%g
1837 s%@prefix@%$prefix%g
1838 s%@program_transform_name@%$program_transform_name%g
1839 s%@bindir@%$bindir%g
1840 s%@sbindir@%$sbindir%g
1841 s%@libexecdir@%$libexecdir%g
1842 s%@datadir@%$datadir%g
1843 s%@sysconfdir@%$sysconfdir%g
1844 s%@sharedstatedir@%$sharedstatedir%g
1845 s%@localstatedir@%$localstatedir%g
1846 s%@libdir@%$libdir%g
1847 s%@includedir@%$includedir%g
1848 s%@oldincludedir@%$oldincludedir%g
1849 s%@infodir@%$infodir%g
1850 s%@mandir@%$mandir%g
1851 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1852 s%@INSTALL_DATA@%$INSTALL_DATA%g
1853 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1854 s%@PACKAGE@%$PACKAGE%g
1855 s%@VERSION@%$VERSION%g
1856 s%@ACLOCAL@%$ACLOCAL%g
1857 s%@AUTOCONF@%$AUTOCONF%g
1858 s%@AUTOMAKE@%$AUTOMAKE%g
1859 s%@AUTOHEADER@%$AUTOHEADER%g
1860 s%@MAKEINFO@%$MAKEINFO%g
1861 s%@SET_MAKE@%$SET_MAKE%g
1865 s%@ANSI2KNR@%$ANSI2KNR%g
1866 s%@RANLIB@%$RANLIB%g
1867 s%@TARGET@%$TARGET%g
1872 cat >> $CONFIG_STATUS <<\EOF
1874 # Split the substitutions into bite-sized pieces for seds with
1875 # small command number limits, like on Digital OSF/1 and HP-UX.
1876 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1877 ac_file=1 # Number of current file.
1878 ac_beg=1 # First line for current file.
1879 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1882 while $ac_more_lines; do
1883 if test $ac_beg -gt 1; then
1884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1888 if test ! -s conftest.s$ac_file; then
1890 rm -f conftest.s$ac_file
1892 if test -z "$ac_sed_cmds"; then
1893 ac_sed_cmds="sed -f conftest.s$ac_file"
1895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1897 ac_file=`expr $ac_file + 1`
1899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1902 if test -z "$ac_sed_cmds"; then
1907 cat >> $CONFIG_STATUS <<EOF
1909 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in"}
1911 cat >> $CONFIG_STATUS <<\EOF
1912 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1917 *) ac_file_in="${ac_file}.in" ;;
1920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1922 # Remove last slash and all that follows it. Not all systems have dirname.
1923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1925 # The file is in a subdirectory.
1926 test ! -d "$ac_dir" && mkdir "$ac_dir"
1927 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1928 # A "../" for each directory in $ac_dir_suffix.
1929 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1931 ac_dir_suffix= ac_dots=
1934 case "$ac_given_srcdir" in
1936 if test -z "$ac_dots"; then top_srcdir=.
1937 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1938 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1940 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1941 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1944 case "$ac_given_INSTALL" in
1945 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1946 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1949 echo creating "$ac_file"
1951 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1953 *Makefile*) ac_comsub="1i\\
1954 # $configure_input" ;;
1958 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1960 s%@configure_input@%$configure_input%g
1961 s%@srcdir@%$srcdir%g
1962 s%@top_srcdir@%$top_srcdir%g
1963 s%@INSTALL@%$INSTALL%g
1964 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1971 # ac_d sets the value in "#define NAME VALUE" lines.
1972 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1973 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1976 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1977 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1978 ac_uB='\([ ]\)%\1#\2define\3'
1981 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1982 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1983 ac_eB='$%\1#\2define\3'
1987 if test "${CONFIG_HEADERS+set}" != set; then
1989 cat >> $CONFIG_STATUS <<EOF
1990 CONFIG_HEADERS="config.h"
1992 cat >> $CONFIG_STATUS <<\EOF
1994 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1999 *) ac_file_in="${ac_file}.in" ;;
2002 echo creating $ac_file
2004 rm -f conftest.frag conftest.in conftest.out
2005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2006 cat $ac_file_inputs > conftest.in
2010 # Transform confdefs.h into a sed script conftest.vals that substitutes
2011 # the proper values into config.h.in to produce config.h. And first:
2012 # Protect against being on the right side of a sed subst in config.status.
2013 # Protect against being in an unquoted here document in config.status.
2015 cat > conftest.hdr <<\EOF
2018 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2022 sed -n -f conftest.hdr confdefs.h > conftest.vals
2025 # This sed command replaces #undef with comments. This is necessary, for
2026 # example, in the case of _POSIX_SOURCE, which is predefined and required
2027 # on some systems where configure will not decide to define it.
2028 cat >> conftest.vals <<\EOF
2029 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2032 # Break up conftest.vals because some shells have a limit on
2033 # the size of here documents, and old seds have small limits too.
2038 ac_lines=`grep -c . conftest.vals`
2039 # grep -c gives empty output for an empty file on some AIX systems.
2040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2041 # Write a limited-size here document to conftest.frag.
2042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2045 sed -f conftest.frag conftest.in > conftest.out
2047 mv conftest.out conftest.in
2049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2051 mv conftest.tail conftest.vals
2055 cat >> $CONFIG_STATUS <<\EOF
2056 rm -f conftest.frag conftest.h
2057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2058 cat conftest.in >> conftest.h
2060 if cmp -s $ac_file conftest.h 2>/dev/null; then
2061 echo "$ac_file is unchanged"
2064 # Remove last slash and all that follows it. Not all systems have dirname.
2065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2067 # The file is in a subdirectory.
2068 test ! -d "$ac_dir" && mkdir "$ac_dir"
2071 mv conftest.h $ac_file
2076 cat >> $CONFIG_STATUS <<EOF
2080 cat >> $CONFIG_STATUS <<\EOF
2081 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2082 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
2085 chmod +x $CONFIG_STATUS
2086 rm -fr confdefs* $ac_clean_files
2087 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1