a8f363e972d611cc06a847ef8c6a125251e73168
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 SHELL
=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
91 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
92 bindir
="$ac_optarg" ;;
94 -build |
--build |
--buil |
--bui |
--bu)
96 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
99 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
100 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
101 ac_prev
=cache_file
;;
102 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
103 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
104 cache_file
="$ac_optarg" ;;
106 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
108 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
110 datadir
="$ac_optarg" ;;
112 -disable-* |
--disable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* |
--enable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
136 |
--exec |
--exe |
--ex)
137 ac_prev
=exec_prefix
;;
138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
140 |
--exec=* |
--exe=* |
--ex=*)
141 exec_prefix
="$ac_optarg" ;;
143 -gas |
--gas |
--ga |
--g)
144 # Obsolete; use --with-gas.
147 -help |
--help |
--hel |
--he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host |
--host |
--hos |
--ho)
204 -host=* |
--host=* |
--hos=* |
--ho=*)
207 -includedir |
--includedir |
--includedi |
--included |
--include \
208 |
--includ |
--inclu |
--incl |
--inc)
209 ac_prev
=includedir
;;
210 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
211 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
212 includedir
="$ac_optarg" ;;
214 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
216 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
217 infodir
="$ac_optarg" ;;
219 -libdir |
--libdir |
--libdi |
--libd)
221 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
222 libdir
="$ac_optarg" ;;
224 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
225 |
--libexe |
--libex |
--libe)
226 ac_prev
=libexecdir
;;
227 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
228 |
--libexe=* |
--libex=* |
--libe=*)
229 libexecdir
="$ac_optarg" ;;
231 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
232 |
--localstate |
--localstat |
--localsta |
--localst \
233 |
--locals |
--local |
--loca |
--loc |
--lo)
234 ac_prev
=localstatedir
;;
235 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
236 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
237 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
238 localstatedir
="$ac_optarg" ;;
240 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
242 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
243 mandir
="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
253 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
254 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
257 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
258 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
259 |
--oldin |
--oldi |
--old |
--ol |
--o)
260 ac_prev
=oldincludedir
;;
261 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
262 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
263 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
264 oldincludedir
="$ac_optarg" ;;
266 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
268 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
269 prefix
="$ac_optarg" ;;
271 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
272 |
--program-pre |
--program-pr |
--program-p)
273 ac_prev
=program_prefix
;;
274 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
275 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
276 program_prefix
="$ac_optarg" ;;
278 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
279 |
--program-suf |
--program-su |
--program-s)
280 ac_prev
=program_suffix
;;
281 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
282 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
283 program_suffix
="$ac_optarg" ;;
285 -program-transform-name |
--program-transform-name \
286 |
--program-transform-nam |
--program-transform-na \
287 |
--program-transform-n |
--program-transform- \
288 |
--program-transform |
--program-transfor \
289 |
--program-transfo |
--program-transf \
290 |
--program-trans |
--program-tran \
291 |
--progr-tra |
--program-tr |
--program-t)
292 ac_prev
=program_transform_name
;;
293 -program-transform-name=* |
--program-transform-name=* \
294 |
--program-transform-nam=* |
--program-transform-na=* \
295 |
--program-transform-n=* |
--program-transform-=* \
296 |
--program-transform=* |
--program-transfor=* \
297 |
--program-transfo=* |
--program-transf=* \
298 |
--program-trans=* |
--program-tran=* \
299 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
300 program_transform_name
="$ac_optarg" ;;
302 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
303 |
-silent |
--silent |
--silen |
--sile |
--sil)
306 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
308 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
310 sbindir
="$ac_optarg" ;;
312 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
313 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
314 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
316 ac_prev
=sharedstatedir
;;
317 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
318 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
319 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
321 sharedstatedir
="$ac_optarg" ;;
323 -site |
--site |
--sit)
325 -site=* |
--site=* |
--sit=*)
328 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
330 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
331 srcdir
="$ac_optarg" ;;
333 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
334 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
335 ac_prev
=sysconfdir
;;
336 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
337 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
338 sysconfdir
="$ac_optarg" ;;
340 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
342 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
343 target
="$ac_optarg" ;;
345 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
348 -version |
--version |
--versio |
--versi |
--vers)
349 echo "configure generated by autoconf version 2.12.1"
353 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* |
--without-*)
366 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
379 |
--x-incl |
--x-inc |
--x-in |
--x-i)
380 ac_prev
=x_includes
;;
381 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
382 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
383 x_includes
="$ac_optarg" ;;
385 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
386 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
387 ac_prev
=x_libraries
;;
388 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
389 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
390 x_libraries
="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE
; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
441 |
--no-cr |
--no-c) ;;
442 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
443 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
444 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest
* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file
=gprof.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted
=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted
=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE
; then
495 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file
in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp
='$CPP $CPPFLAGS'
518 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling
=$ac_cv_prog_cc_cross
522 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
531 ac_n
= ac_c
='\c' ac_t
=
537 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
538 if test -f $ac_dir/install-sh
; then
540 ac_install_sh
="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh
; then
544 ac_install_sh
="$ac_aux_dir/install.sh -c"
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 ac_config_guess
=$ac_aux_dir/config.guess
552 ac_config_sub
=$ac_aux_dir/config.sub
553 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
556 # Do some error checking and defaulting for the host and target type.
558 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
561 # 1. You are not allowed to specify --host, --target, and nonopt at the
563 # 2. Host defaults to nonopt.
564 # 3. If nonopt is not specified, then host defaults to the current host,
565 # as determined by config.guess.
566 # 4. Target and build default to nonopt.
567 # 5. If nonopt is not specified, then target and build default to host.
569 # The aliases save the names the user supplied, while $host etc.
570 # will get canonicalized.
571 case $host---$target---$nonopt in
572 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
573 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
577 # Make sure we can run config.sub.
578 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
579 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
582 echo $ac_n "checking host system type""... $ac_c" 1>&6
583 echo "configure:584: checking host system type" >&5
586 case "$host_alias" in
590 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
593 *) host_alias
=$nonopt ;;
597 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
598 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601 echo "$ac_t""$host" 1>&6
603 echo $ac_n "checking target system type""... $ac_c" 1>&6
604 echo "configure:605: checking target system type" >&5
607 case "$target_alias" in
610 NONE
) target_alias
=$host_alias ;;
611 *) target_alias
=$nonopt ;;
615 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
616 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619 echo "$ac_t""$target" 1>&6
621 echo $ac_n "checking build system type""... $ac_c" 1>&6
622 echo "configure:623: checking build system type" >&5
625 case "$build_alias" in
628 NONE
) build_alias
=$host_alias ;;
629 *) build_alias
=$nonopt ;;
633 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
634 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$build" 1>&6
639 test "$host_alias" != "$target_alias" &&
640 test "$program_prefix$program_suffix$program_transform_name" = \
642 program_prefix
=${target_alias}-
645 # Find a good install program. We prefer a C program (faster),
646 # so one script is as good as another. But avoid the broken or
647 # incompatible versions:
648 # SysV /etc/install, /usr/sbin/install
649 # SunOS /usr/etc/install
652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
655 # ./install, which can be erroneously created by make from ./install.sh.
656 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
657 echo "configure:658: checking for a BSD compatible install" >&5
658 if test -z "$INSTALL"; then
659 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
663 for ac_dir
in $PATH; do
664 # Account for people who put trailing slashes in PATH elements.
666 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
668 # OSF1 and SCO ODT 3.0 have their own names for install.
669 # Don't use installbsd from OSF since it installs stuff as root
671 for ac_prog
in ginstall scoinst
install; do
672 if test -f $ac_dir/$ac_prog; then
673 if test $ac_prog = install &&
674 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
675 # AIX install. It has an incompatible calling convention.
678 ac_cv_path_install
="$ac_dir/$ac_prog -c"
689 if test "${ac_cv_path_install+set}" = set; then
690 INSTALL
="$ac_cv_path_install"
692 # As a last resort, use the slow shell script. We don't cache a
693 # path for INSTALL within a source directory, because that will
694 # break other packages using the cache if that directory is
695 # removed, or if the path is relative.
696 INSTALL
="$ac_install_sh"
699 echo "$ac_t""$INSTALL" 1>&6
701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
702 # It thinks the first close brace ends the variable substitution.
703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
705 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
710 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
711 echo "configure:712: checking whether build environment is sane" >&5
714 echo timestamp
> conftestfile
715 # Do `set' in a subshell so we don't clobber the current shell's
716 # arguments. Must try -L first in case configure is actually a
717 # symlink; some systems play weird games with the mod time of symlinks
718 # (eg FreeBSD returns the mod time of the symlink's containing
721 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
722 if test "$*" = "X"; then
724 set X
`ls -t $srcdir/configure conftestfile`
726 if test "$*" != "X $srcdir/configure conftestfile" \
727 && test "$*" != "X conftestfile $srcdir/configure"; then
729 # If neither matched, then we have a broken ls. This can happen
730 # if, for instance, CONFIG_SHELL is bash and it inherits a
731 # broken ls alias from the environment. This has actually
732 # happened. Such a system could not be considered "sane".
733 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
734 alias in your environment" 1>&2; exit 1; }
737 test "$2" = conftestfile
743 { echo "configure: error: newly created file is older than distributed files!
744 Check your system clock" 1>&2; exit 1; }
747 echo "$ac_t""yes" 1>&6
748 if test "$program_transform_name" = s
,x
,x
,; then
749 program_transform_name
=
751 # Double any \ or $. echo might interpret backslashes.
752 cat <<\EOF_SED
> conftestsed
753 s
,\\,\\\\,g
; s
,\$
,$$
,g
755 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
758 test "$program_prefix" != NONE
&&
759 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
760 # Use a double $ so make ignores it.
761 test "$program_suffix" != NONE
&&
762 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
764 # sed with no file args requires a program.
765 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
767 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${MAKE-make} sets \${MAKE}" >&5
769 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
770 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftestmake
<<\EOF
775 @
echo 'ac_maketemp="${MAKE}"'
777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
778 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
779 if test -n "$ac_maketemp"; then
780 eval ac_cv_prog_make_
${ac_make}_set
=yes
782 eval ac_cv_prog_make_
${ac_make}_set
=no
786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
787 echo "$ac_t""yes" 1>&6
790 echo "$ac_t""no" 1>&6
791 SET_MAKE
="MAKE=${MAKE-make}"
799 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
800 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
802 cat >> confdefs.h
<<EOF
803 #define PACKAGE "$PACKAGE"
806 cat >> confdefs.h
<<EOF
807 #define VERSION "$VERSION"
812 missing_dir
=`cd $ac_aux_dir && pwd`
813 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
814 echo "configure:815: checking for working aclocal" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
820 echo "$ac_t""found" 1>&6
822 ACLOCAL
="$missing_dir/missing aclocal"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoconf" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
833 echo "$ac_t""found" 1>&6
835 AUTOCONF
="$missing_dir/missing autoconf"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working automake""... $ac_c" 1>&6
840 echo "configure:841: checking for working automake" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
846 echo "$ac_t""found" 1>&6
848 AUTOMAKE
="$missing_dir/missing automake"
849 echo "$ac_t""missing" 1>&6
852 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
853 echo "configure:854: checking for working autoheader" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
858 AUTOHEADER
=autoheader
859 echo "$ac_t""found" 1>&6
861 AUTOHEADER
="$missing_dir/missing autoheader"
862 echo "$ac_t""missing" 1>&6
865 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
866 echo "configure:867: checking for working makeinfo" >&5
867 # Run test in a subshell; some versions of sh will print an error if
868 # an executable is not found, even if stderr is redirected.
869 # Redirect stdin to placate older versions of autoconf. Sigh.
870 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
872 echo "$ac_t""found" 1>&6
874 MAKEINFO
="$missing_dir/missing makeinfo"
875 echo "$ac_t""missing" 1>&6
880 # Check whether --enable-shared or --disable-shared was given.
881 if test "${enable_shared+set}" = set; then
882 enableval
="$enable_shared"
885 yes) enable_shared
=yes ;;
886 no
) enable_shared
=no
;;
889 # Look at the argument we got. We use all the common list separators.
890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
891 for pkg
in $enableval; do
892 if test "X$pkg" = "X$p"; then
903 # Check whether --enable-static or --disable-static was given.
904 if test "${enable_static+set}" = set; then
905 enableval
="$enable_static"
908 yes) enable_static
=yes ;;
909 no
) enable_static
=no
;;
912 # Look at the argument we got. We use all the common list separators.
913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
914 for pkg
in $enableval; do
915 if test "X$pkg" = "X$p"; then
926 # Extract the first word of "ranlib", so it can be a program name with args.
927 set dummy ranlib
; ac_word
=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$RANLIB"; then
934 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
937 for ac_dir
in $PATH; do
938 test -z "$ac_dir" && ac_dir
=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_prog_RANLIB
="ranlib"
945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
948 RANLIB
="$ac_cv_prog_RANLIB"
949 if test -n "$RANLIB"; then
950 echo "$ac_t""$RANLIB" 1>&6
952 echo "$ac_t""no" 1>&6
955 # Extract the first word of "gcc", so it can be a program name with args.
956 set dummy gcc
; ac_word
=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 echo "configure:959: checking for $ac_word" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 if test -n "$CC"; then
963 ac_cv_prog_CC
="$CC" # Let the user override the test.
965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
966 for ac_dir
in $PATH; do
967 test -z "$ac_dir" && ac_dir
=.
968 if test -f $ac_dir/$ac_word; then
977 if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
980 echo "$ac_t""no" 1>&6
983 if test -z "$CC"; then
984 # Extract the first word of "cc", so it can be a program name with args.
985 set dummy cc
; ac_word
=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$CC"; then
992 ac_cv_prog_CC
="$CC" # Let the user override the test.
994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
996 for ac_dir
in $PATH; do
997 test -z "$ac_dir" && ac_dir
=.
998 if test -f $ac_dir/$ac_word; then
999 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1000 ac_prog_rejected
=yes
1008 if test $ac_prog_rejected = yes; then
1009 # We found a bogon in the path, so make sure we never use it.
1010 set dummy
$ac_cv_prog_CC
1012 if test $# -gt 0; then
1013 # We chose a different compiler from the bogus one.
1014 # However, it has the same basename, so the bogon will be chosen
1015 # first if we set CC to just the basename; use the full file name.
1017 set dummy
"$ac_dir/$ac_word" "$@"
1025 if test -n "$CC"; then
1026 echo "$ac_t""$CC" 1>&6
1028 echo "$ac_t""no" 1>&6
1031 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1039 ac_cpp
='$CPP $CPPFLAGS'
1040 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1041 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1042 cross_compiling
=$ac_cv_prog_cc_cross
1044 cat > conftest.
$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1049 if { (eval echo configure
:1050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1050 ac_cv_prog_cc_works
=yes
1051 # If we can't run a trivial program, we are probably using a cross compiler.
1052 if (.
/conftest
; exit) 2>/dev
/null
; then
1053 ac_cv_prog_cc_cross
=no
1055 ac_cv_prog_cc_cross
=yes
1058 echo "configure: failed program was:" >&5
1059 cat conftest.
$ac_ext >&5
1060 ac_cv_prog_cc_works
=no
1064 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1065 if test $ac_cv_prog_cc_works = no
; then
1066 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1068 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1070 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1071 cross_compiling
=$ac_cv_prog_cc_cross
1073 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1074 echo "configure:1075: checking whether we are using GNU C" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 cat > conftest.c
<<EOF
1083 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1090 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1092 if test $ac_cv_prog_gcc = yes; then
1094 ac_test_CFLAGS
="${CFLAGS+set}"
1095 ac_save_CFLAGS
="$CFLAGS"
1097 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether ${CC-cc} accepts -g" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 echo 'void f(){}' > conftest.c
1103 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1112 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1113 if test "$ac_test_CFLAGS" = set; then
1114 CFLAGS
="$ac_save_CFLAGS"
1115 elif test $ac_cv_prog_cc_g = yes; then
1122 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1125 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1126 if test "${with_gnu_ld+set}" = set; then
1127 withval
="$with_gnu_ld"
1128 test "$withval" = no || with_gnu_ld
=yes
1135 if test "$ac_cv_prog_gcc" = yes; then
1136 # Check if gcc -print-prog-name=ld gives a path.
1137 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1138 echo "configure:1139: checking for ld used by GCC" >&5
1139 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1141 # Accept absolute paths.
1143 test -z "$LD" && LD
="$ac_prog"
1146 # If it fails, then pretend we aren't using GCC.
1150 # If it is relative, then search for the first ld in PATH.
1154 elif test "$with_gnu_ld" = yes; then
1155 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1156 echo "configure:1157: checking for GNU ld" >&5
1158 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1159 echo "configure:1160: checking for non-GNU ld" >&5
1161 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -z "$LD"; then
1165 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1166 for ac_dir
in $PATH; do
1167 test -z "$ac_dir" && ac_dir
=.
1168 if test -f "$ac_dir/$ac_prog"; then
1169 ac_cv_path_LD
="$ac_dir/$ac_prog"
1170 # Check to see if the program is GNU ld. I'd rather use --version,
1171 # but apparently some GNU ld's only accept -v.
1172 # Break only if it was the GNU/non-GNU ld that we prefer.
1173 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1174 test "$with_gnu_ld" != no
&& break
1176 test "$with_gnu_ld" != yes && break
1182 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1187 if test -n "$LD"; then
1188 echo "$ac_t""$LD" 1>&6
1190 echo "$ac_t""no" 1>&6
1192 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1194 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1195 echo "configure:1196: checking if the linker ($LD) is GNU ld" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1200 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1201 ac_cv_prog_gnu_ld
=yes
1203 ac_cv_prog_gnu_ld
=no
1207 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1210 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1211 echo "configure:1212: checking for BSD-compatible nm" >&5
1212 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1217 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1220 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1221 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1222 test -z "$ac_dir" && ac_dir
=.
1223 if test -f $ac_dir/nm
; then
1224 # Check to see if the nm accepts a BSD-compat flag.
1225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1226 # nm: unknown option "B" ignored
1227 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1228 ac_cv_path_NM
="$ac_dir/nm -B"
1229 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1230 ac_cv_path_NM
="$ac_dir/nm -p"
1232 ac_cv_path_NM
="$ac_dir/nm"
1238 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1244 echo "$ac_t""$NM" 1>&6
1247 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ln -s works" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1253 if ln -s X conftestdata
2>/dev
/null
1256 ac_cv_prog_LN_S
="ln -s"
1261 LN_S
="$ac_cv_prog_LN_S"
1262 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1263 echo "$ac_t""yes" 1>&6
1265 echo "$ac_t""no" 1>&6
1268 # Always use our own libtool.
1269 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1271 # Check for any special flags to pass to ltconfig.
1273 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1274 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1275 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1276 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1277 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1279 # Some flags need to be propagated to the compiler or linker for good
1283 # Find out which ABI we are using.
1284 echo '#line 1285 "configure"' > conftest.
$ac_ext
1285 if { (eval echo configure
:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1286 case "`/usr/bin/file conftest.o`" in
1302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1303 CFLAGS
="$CFLAGS -belf"
1307 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1308 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1309 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1310 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1311 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1312 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1319 # Extract the first word of "gcc", so it can be a program name with args.
1320 set dummy gcc
; ac_word
=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$CC"; then
1327 ac_cv_prog_CC
="$CC" # Let the user override the test.
1329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1330 for ac_dir
in $PATH; do
1331 test -z "$ac_dir" && ac_dir
=.
1332 if test -f $ac_dir/$ac_word; then
1341 if test -n "$CC"; then
1342 echo "$ac_t""$CC" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 if test -z "$CC"; then
1348 # Extract the first word of "cc", so it can be a program name with args.
1349 set dummy cc
; ac_word
=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC
="$CC" # Let the user override the test.
1358 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1360 for ac_dir
in $PATH; do
1361 test -z "$ac_dir" && ac_dir
=.
1362 if test -f $ac_dir/$ac_word; then
1363 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1364 ac_prog_rejected
=yes
1372 if test $ac_prog_rejected = yes; then
1373 # We found a bogon in the path, so make sure we never use it.
1374 set dummy
$ac_cv_prog_CC
1376 if test $# -gt 0; then
1377 # We chose a different compiler from the bogus one.
1378 # However, it has the same basename, so the bogon will be chosen
1379 # first if we set CC to just the basename; use the full file name.
1381 set dummy
"$ac_dir/$ac_word" "$@"
1389 if test -n "$CC"; then
1390 echo "$ac_t""$CC" 1>&6
1392 echo "$ac_t""no" 1>&6
1395 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1403 ac_cpp
='$CPP $CPPFLAGS'
1404 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406 cross_compiling
=$ac_cv_prog_cc_cross
1408 cat > conftest.
$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1413 if { (eval echo configure
:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1414 ac_cv_prog_cc_works
=yes
1415 # If we can't run a trivial program, we are probably using a cross compiler.
1416 if (.
/conftest
; exit) 2>/dev
/null
; then
1417 ac_cv_prog_cc_cross
=no
1419 ac_cv_prog_cc_cross
=yes
1422 echo "configure: failed program was:" >&5
1423 cat conftest.
$ac_ext >&5
1424 ac_cv_prog_cc_works
=no
1428 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1429 if test $ac_cv_prog_cc_works = no
; then
1430 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1432 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1434 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1435 cross_compiling
=$ac_cv_prog_cc_cross
1437 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether we are using GNU C" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 cat > conftest.c
<<EOF
1447 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1454 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1456 if test $ac_cv_prog_gcc = yes; then
1458 ac_test_CFLAGS
="${CFLAGS+set}"
1459 ac_save_CFLAGS
="$CFLAGS"
1461 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1462 echo "configure:1463: checking whether ${CC-cc} accepts -g" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 echo 'void f(){}' > conftest.c
1467 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1476 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1477 if test "$ac_test_CFLAGS" = set; then
1478 CFLAGS
="$ac_save_CFLAGS"
1479 elif test $ac_cv_prog_cc_g = yes; then
1486 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1493 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1494 echo "configure:1495: checking for POSIXized ISC" >&5
1495 if test -d /etc
/conf
/kconfig.d
&&
1496 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1498 echo "$ac_t""yes" 1>&6
1499 ISC
=yes # If later tests want to check for ISC.
1500 cat >> confdefs.h
<<\EOF
1501 #define _POSIX_SOURCE 1
1504 if test "$GCC" = yes; then
1510 echo "$ac_t""no" 1>&6
1516 *-*-bsd4.4
* |
*-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1517 cat >> confdefs.h
<<\EOF
1518 #define BSD44_FORMAT 1
1524 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether to enable maintainer-specific portions of Makefiles" >&5
1526 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1527 if test "${enable_maintainer_mode+set}" = set; then
1528 enableval
="$enable_maintainer_mode"
1529 USE_MAINTAINER_MODE
=$enableval
1531 USE_MAINTAINER_MODE
=no
1534 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1535 if test $USE_MAINTAINER_MODE = yes; then
1542 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1543 echo "configure:1544: checking for Cygwin32 environment" >&5
1544 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 cat > conftest.
$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1552 return __CYGWIN32__;
1555 if { (eval echo configure
:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1559 echo "configure: failed program was:" >&5
1560 cat conftest.
$ac_ext >&5
1568 echo "$ac_t""$am_cv_cygwin32" 1>&6
1570 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1571 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1572 echo "configure:1573: checking for Mingw32 environment" >&5
1573 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.
$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1584 if { (eval echo configure
:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588 echo "configure: failed program was:" >&5
1589 cat conftest.
$ac_ext >&5
1597 echo "$ac_t""$am_cv_mingw32" 1>&6
1599 test "$am_cv_mingw32" = yes && MINGW32
=yes
1602 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1603 echo "configure:1604: checking for executable suffix" >&5
1604 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
1610 cat > am_c_test.c
<< 'EOF'
1612 /* Nothing needed here
*/
1615 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1616 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1620 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1623 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1624 echo "$ac_t""${am_cv_exeext}" 1>&6
1628 cat > confcache
<<\EOF
1629 # This file is a shell script that caches the results of configure
1630 # tests run on this system so they can be shared between configure
1631 # scripts and configure runs. It is not useful on other systems.
1632 # If it contains results you don't want to keep, you may remove or edit it.
1634 # By default, configure uses ./config.cache as the cache file,
1635 # creating it if it does not exist already. You can give configure
1636 # the --cache-file=FILE option to use a different cache file; that is
1637 # what configure does when it calls configure scripts in
1638 # subdirectories, so they share the cache.
1639 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1640 # config.status only pays attention to the cache file if you give it the
1641 # --recheck option to rerun configure.
1644 # The following way of writing the cache mishandles newlines in values,
1645 # but we know of no workaround that is simple, portable, and efficient.
1646 # So, don't put newlines in cache variables' values.
1647 # Ultrix sh set writes to stderr and can't be redirected directly,
1648 # and sets the high bit in the cache file unless we assign to the vars.
1650 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1652 # `set' does not quote correctly, so add quotes (double-quote substitution
1653 # turns \\\\ into \\, and sed turns \\ into \).
1655 -e "s/'/'\\\\''/g" \
1656 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1659 # `set' quotes correctly as required by POSIX, so do not add quotes.
1660 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1663 if cmp -s $cache_file confcache
; then
1666 if test -w $cache_file; then
1667 echo "updating cache $cache_file"
1668 cat confcache
> $cache_file
1670 echo "not updating unwritable cache $cache_file"
1675 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1677 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1678 # Let make expand exec_prefix.
1679 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1681 # Any assignment to VPATH causes Sun make to only execute
1682 # the first set of double-colon rules, so remove it if not needed.
1683 # If there is a colon in the path, we need to keep it.
1684 if test "x$srcdir" = x.
; then
1685 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1688 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1690 DEFS
=-DHAVE_CONFIG_H
1692 # Without the "./", some shells look in PATH for config.status.
1693 : ${CONFIG_STATUS=./config.status}
1695 echo creating
$CONFIG_STATUS
1696 rm -f $CONFIG_STATUS
1697 cat > $CONFIG_STATUS <<EOF
1699 # Generated automatically by configure.
1700 # Run this file to recreate the current configuration.
1701 # This directory was configured as follows,
1702 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1704 # $0 $ac_configure_args
1706 # Compiler output produced by configure, useful for debugging
1707 # configure, is in ./config.log if it exists.
1709 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1712 case "\$ac_option" in
1713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1714 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1715 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1716 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1717 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1719 -help | --help | --hel | --he | --h)
1720 echo "\$ac_cs_usage"; exit 0 ;;
1721 *) echo "\$ac_cs_usage"; exit 1 ;;
1725 ac_given_srcdir=$srcdir
1726 ac_given_INSTALL="$INSTALL"
1728 trap 'rm -fr `echo "Makefile gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1730 cat >> $CONFIG_STATUS <<EOF
1732 # Protect against being on the right side of a sed subst in config.status.
1733 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1734 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1738 s%@CFLAGS@%$CFLAGS%g
1739 s%@CPPFLAGS@%$CPPFLAGS%g
1740 s%@CXXFLAGS@%$CXXFLAGS%g
1742 s%@LDFLAGS@%$LDFLAGS%g
1744 s%@exec_prefix@%$exec_prefix%g
1745 s%@prefix@%$prefix%g
1746 s%@program_transform_name@%$program_transform_name%g
1747 s%@bindir@%$bindir%g
1748 s%@sbindir@%$sbindir%g
1749 s%@libexecdir@%$libexecdir%g
1750 s%@datadir@%$datadir%g
1751 s%@sysconfdir@%$sysconfdir%g
1752 s%@sharedstatedir@%$sharedstatedir%g
1753 s%@localstatedir@%$localstatedir%g
1754 s%@libdir@%$libdir%g
1755 s%@includedir@%$includedir%g
1756 s%@oldincludedir@%$oldincludedir%g
1757 s%@infodir@%$infodir%g
1758 s%@mandir@%$mandir%g
1760 s%@host_alias@%$host_alias%g
1761 s%@host_cpu@%$host_cpu%g
1762 s%@host_vendor@%$host_vendor%g
1763 s%@host_os@%$host_os%g
1764 s%@target@%$target%g
1765 s%@target_alias@%$target_alias%g
1766 s%@target_cpu@%$target_cpu%g
1767 s%@target_vendor@%$target_vendor%g
1768 s%@target_os@%$target_os%g
1770 s%@build_alias@%$build_alias%g
1771 s%@build_cpu@%$build_cpu%g
1772 s%@build_vendor@%$build_vendor%g
1773 s%@build_os@%$build_os%g
1774 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1775 s%@INSTALL_DATA@%$INSTALL_DATA%g
1776 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1777 s%@PACKAGE@%$PACKAGE%g
1778 s%@VERSION@%$VERSION%g
1779 s%@ACLOCAL@%$ACLOCAL%g
1780 s%@AUTOCONF@%$AUTOCONF%g
1781 s%@AUTOMAKE@%$AUTOMAKE%g
1782 s%@AUTOHEADER@%$AUTOHEADER%g
1783 s%@MAKEINFO@%$MAKEINFO%g
1784 s%@SET_MAKE@%$SET_MAKE%g
1785 s%@RANLIB@%$RANLIB%g
1790 s%@LIBTOOL@%$LIBTOOL%g
1792 s%@EXEEXT@%$EXEEXT%g
1797 cat >> $CONFIG_STATUS <<\EOF
1799 # Split the substitutions into bite-sized pieces for seds with
1800 # small command number limits, like on Digital OSF/1 and HP-UX.
1801 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1802 ac_file
=1 # Number of current file.
1803 ac_beg
=1 # First line for current file.
1804 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1807 while $ac_more_lines; do
1808 if test $ac_beg -gt 1; then
1809 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1811 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1813 if test ! -s conftest.s
$ac_file; then
1815 rm -f conftest.s
$ac_file
1817 if test -z "$ac_sed_cmds"; then
1818 ac_sed_cmds
="sed -f conftest.s$ac_file"
1820 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1822 ac_file
=`expr $ac_file + 1`
1824 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1827 if test -z "$ac_sed_cmds"; then
1832 cat >> $CONFIG_STATUS <<EOF
1834 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1836 cat >> $CONFIG_STATUS <<\EOF
1837 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1840 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1841 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1842 *) ac_file_in
="${ac_file}.in" ;;
1845 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1847 # Remove last slash and all that follows it. Not all systems have dirname.
1848 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1850 # The file is in a subdirectory.
1851 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1852 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1853 # A "../" for each directory in $ac_dir_suffix.
1854 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1856 ac_dir_suffix
= ac_dots
=
1859 case "$ac_given_srcdir" in
1861 if test -z "$ac_dots"; then top_srcdir
=.
1862 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1863 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1865 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1866 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1869 case "$ac_given_INSTALL" in
1870 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1871 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1874 echo creating
"$ac_file"
1876 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1878 *Makefile
*) ac_comsub
="1i\\
1879 # $configure_input" ;;
1883 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1885 s%@configure_input@%$configure_input%g
1886 s%@srcdir@%$srcdir%g
1887 s%@top_srcdir@%$top_srcdir%g
1888 s%@INSTALL@%$INSTALL%g
1889 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1893 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1894 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1896 # ac_d sets the value in "#define NAME VALUE" lines.
1897 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1898 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1901 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1902 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1903 ac_uB
='\([ ]\)%\1#\2define\3'
1906 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1907 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1908 ac_eB
='$%\1#\2define\3'
1912 if test "${CONFIG_HEADERS+set}" != set; then
1914 cat >> $CONFIG_STATUS <<EOF
1915 CONFIG_HEADERS="gconfig.h:gconfig.in"
1917 cat >> $CONFIG_STATUS <<\EOF
1919 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1922 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1923 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1924 *) ac_file_in
="${ac_file}.in" ;;
1927 echo creating
$ac_file
1929 rm -f conftest.frag conftest.
in conftest.out
1930 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1931 cat $ac_file_inputs > conftest.
in
1935 # Transform confdefs.h into a sed script conftest.vals that substitutes
1936 # the proper values into config.h.in to produce config.h. And first:
1937 # Protect against being on the right side of a sed subst in config.status.
1938 # Protect against being in an unquoted here document in config.status.
1940 cat > conftest.hdr
<<\EOF
1943 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1947 sed -n -f conftest.hdr confdefs.h > conftest.vals
1950 # This sed command replaces #undef with comments. This is necessary, for
1951 # example, in the case of _POSIX_SOURCE, which is predefined and required
1952 # on some systems where configure will not decide to define it.
1953 cat >> conftest.vals <<\EOF
1954 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1957 # Break up conftest.vals because some shells have a limit on
1958 # the size of here documents, and old seds have small limits too.
1963 ac_lines=`grep -c . conftest.vals
`
1964 # grep -c gives empty output for an empty file on some AIX systems.
1965 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1966 # Write a limited-size here document to conftest.frag.
1967 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1968 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1970 sed -f conftest.frag conftest.in > conftest.out
1972 mv conftest.out conftest.in
1974 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1976 mv conftest.tail conftest.vals
1980 cat >> $CONFIG_STATUS <<\EOF
1981 rm -f conftest.frag conftest.h
1982 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1983 cat conftest.in >> conftest.h
1985 if cmp -s $ac_file conftest.h 2>/dev/null; then
1986 echo "$ac_file is unchanged"
1989 # Remove last slash and all that follows it. Not all systems have dirname.
1990 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992 # The file is in a subdirectory.
1993 test ! -d "$ac_dir" && mkdir "$ac_dir"
1996 mv conftest.h $ac_file
2001 cat >> $CONFIG_STATUS <<EOF
2005 cat >> $CONFIG_STATUS <<\EOF
2006 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2010 chmod +x $CONFIG_STATUS
2011 rm -fr confdefs* $ac_clean_files
2012 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.100754 seconds and 3 git commands to generate.