3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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-static[=PKGS] build static libraries [default=no]"
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --disable-nls don't use NLS"
27 --with-locale-dir=DIR Location of the locale file(s)
28 [PREFIX/share/locale]"
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 SHELL
=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host |
--host |
--hos |
--ho)
208 -host=* |
--host=* |
--hos=* |
--ho=*)
211 -includedir |
--includedir |
--includedi |
--included |
--include \
212 |
--includ |
--inclu |
--incl |
--inc)
213 ac_prev
=includedir
;;
214 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
215 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
216 includedir
="$ac_optarg" ;;
218 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
220 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
221 infodir
="$ac_optarg" ;;
223 -libdir |
--libdir |
--libdi |
--libd)
225 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
226 libdir
="$ac_optarg" ;;
228 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
229 |
--libexe |
--libex |
--libe)
230 ac_prev
=libexecdir
;;
231 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
232 |
--libexe=* |
--libex=* |
--libe=*)
233 libexecdir
="$ac_optarg" ;;
235 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
236 |
--localstate |
--localstat |
--localsta |
--localst \
237 |
--locals |
--local |
--loca |
--loc |
--lo)
238 ac_prev
=localstatedir
;;
239 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
240 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
241 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
242 localstatedir
="$ac_optarg" ;;
244 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
246 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
247 mandir
="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
257 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
258 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
261 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
262 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
263 |
--oldin |
--oldi |
--old |
--ol |
--o)
264 ac_prev
=oldincludedir
;;
265 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
266 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
267 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
268 oldincludedir
="$ac_optarg" ;;
270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
273 prefix
="$ac_optarg" ;;
275 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
276 |
--program-pre |
--program-pr |
--program-p)
277 ac_prev
=program_prefix
;;
278 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
279 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
280 program_prefix
="$ac_optarg" ;;
282 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
283 |
--program-suf |
--program-su |
--program-s)
284 ac_prev
=program_suffix
;;
285 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
286 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
287 program_suffix
="$ac_optarg" ;;
289 -program-transform-name |
--program-transform-name \
290 |
--program-transform-nam |
--program-transform-na \
291 |
--program-transform-n |
--program-transform- \
292 |
--program-transform |
--program-transfor \
293 |
--program-transfo |
--program-transf \
294 |
--program-trans |
--program-tran \
295 |
--progr-tra |
--program-tr |
--program-t)
296 ac_prev
=program_transform_name
;;
297 -program-transform-name=* |
--program-transform-name=* \
298 |
--program-transform-nam=* |
--program-transform-na=* \
299 |
--program-transform-n=* |
--program-transform-=* \
300 |
--program-transform=* |
--program-transfor=* \
301 |
--program-transfo=* |
--program-transf=* \
302 |
--program-trans=* |
--program-tran=* \
303 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
304 program_transform_name
="$ac_optarg" ;;
306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
307 |
-silent |
--silent |
--silen |
--sile |
--sil)
310 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
312 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
314 sbindir
="$ac_optarg" ;;
316 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
317 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
318 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
320 ac_prev
=sharedstatedir
;;
321 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
322 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
323 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
325 sharedstatedir
="$ac_optarg" ;;
327 -site |
--site |
--sit)
329 -site=* |
--site=* |
--sit=*)
332 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
334 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
335 srcdir
="$ac_optarg" ;;
337 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
338 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
339 ac_prev
=sysconfdir
;;
340 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
341 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
342 sysconfdir
="$ac_optarg" ;;
344 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
346 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
347 target
="$ac_optarg" ;;
349 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
352 -version |
--version |
--versio |
--versi |
--vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* |
--without-*)
370 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
384 ac_prev
=x_includes
;;
385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
387 x_includes
="$ac_optarg" ;;
389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
391 ac_prev
=x_libraries
;;
392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
394 x_libraries
="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE
; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 |
--no-cr |
--no-c) ;;
446 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
447 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
448 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=lib
/freetype.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
542 srcdir
=`cd $srcdir; pwd`
544 # Check whether --enable-static or --disable-static was given.
545 if test "${enable_static+set}" = set; then
546 enableval
="$enable_static"
549 yes) enable_static
=yes ;;
550 no
) enable_static
=no
;;
553 # Look at the argument we got. We use all the common list separators.
554 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
555 for pkg
in $enableval; do
556 if test "X$pkg" = "X$p"; then
568 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
569 if test -f $ac_dir/install-sh
; then
571 ac_install_sh
="$ac_aux_dir/install-sh -c"
573 elif test -f $ac_dir/install.sh
; then
575 ac_install_sh
="$ac_aux_dir/install.sh -c"
579 if test -z "$ac_aux_dir"; then
580 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
582 ac_config_guess
=$ac_aux_dir/config.guess
583 ac_config_sub
=$ac_aux_dir/config.sub
584 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
586 # Check whether --enable-shared or --disable-shared was given.
587 if test "${enable_shared+set}" = set; then
588 enableval
="$enable_shared"
591 yes) enable_shared
=yes ;;
592 no
) enable_shared
=no
;;
595 # Look at the argument we got. We use all the common list separators.
596 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
597 for pkg
in $enableval; do
598 if test "X$pkg" = "X$p"; then
609 # Check whether --enable-fast-install or --disable-fast-install was given.
610 if test "${enable_fast_install+set}" = set; then
611 enableval
="$enable_fast_install"
614 yes) enable_fast_install
=yes ;;
615 no
) enable_fast_install
=no
;;
617 enable_fast_install
=no
618 # Look at the argument we got. We use all the common list separators.
619 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
620 for pkg
in $enableval; do
621 if test "X$pkg" = "X$p"; then
622 enable_fast_install
=yes
629 enable_fast_install
=yes
633 # Make sure we can run config.sub.
634 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
635 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
638 echo $ac_n "checking host system type""... $ac_c" 1>&6
639 echo "configure:640: checking host system type" >&5
642 case "$host_alias" in
646 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
647 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
649 *) host_alias
=$nonopt ;;
653 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
654 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
655 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
656 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
657 echo "$ac_t""$host" 1>&6
659 echo $ac_n "checking build system type""... $ac_c" 1>&6
660 echo "configure:661: checking build system type" >&5
663 case "$build_alias" in
666 NONE
) build_alias
=$host_alias ;;
667 *) build_alias
=$nonopt ;;
671 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
672 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
675 echo "$ac_t""$build" 1>&6
677 # Extract the first word of "ranlib", so it can be a program name with args.
678 set dummy ranlib
; ac_word
=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$RANLIB"; then
685 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
689 for ac_dir
in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
692 ac_cv_prog_RANLIB
="ranlib"
697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
700 RANLIB
="$ac_cv_prog_RANLIB"
701 if test -n "$RANLIB"; then
702 echo "$ac_t""$RANLIB" 1>&6
704 echo "$ac_t""no" 1>&6
707 # Extract the first word of "gcc", so it can be a program name with args.
708 set dummy gcc
; ac_word
=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 echo "configure:711: checking for $ac_word" >&5
711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
714 if test -n "$CC"; then
715 ac_cv_prog_CC
="$CC" # Let the user override the test.
717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
719 for ac_dir
in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir
=.
721 if test -f $ac_dir/$ac_word; then
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
737 # Extract the first word of "cc", so it can be a program name with args.
738 set dummy cc
; ac_word
=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC
="$CC" # Let the user override the test.
747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
750 for ac_dir
in $ac_dummy; do
751 test -z "$ac_dir" && ac_dir
=.
752 if test -f $ac_dir/$ac_word; then
753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
762 if test $ac_prog_rejected = yes; then
763 # We found a bogon in the path, so make sure we never use it.
764 set dummy
$ac_cv_prog_CC
766 if test $# -gt 0; then
767 # We chose a different compiler from the bogus one.
768 # However, it has the same basename, so the bogon will be chosen
769 # first if we set CC to just the basename; use the full file name.
771 set dummy
"$ac_dir/$ac_word" "$@"
779 if test -n "$CC"; then
780 echo "$ac_t""$CC" 1>&6
782 echo "$ac_t""no" 1>&6
785 if test -z "$CC"; then
788 # Extract the first word of "cl", so it can be a program name with args.
789 set dummy cl
; ac_word
=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 if test -n "$CC"; then
796 ac_cv_prog_CC
="$CC" # Let the user override the test.
798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
800 for ac_dir
in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir
=.
802 if test -f $ac_dir/$ac_word; then
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
827 ac_cpp
='$CPP $CPPFLAGS'
828 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
829 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
830 cross_compiling
=$ac_cv_prog_cc_cross
832 cat > conftest.
$ac_ext << EOF
834 #line 835 "configure"
835 #include "confdefs.h"
839 if { (eval echo configure
:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
840 ac_cv_prog_cc_works
=yes
841 # If we can't run a trivial program, we are probably using a cross compiler.
842 if (.
/conftest
; exit) 2>/dev
/null
; then
843 ac_cv_prog_cc_cross
=no
845 ac_cv_prog_cc_cross
=yes
848 echo "configure: failed program was:" >&5
849 cat conftest.
$ac_ext >&5
850 ac_cv_prog_cc_works
=no
854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
855 ac_cpp
='$CPP $CPPFLAGS'
856 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
857 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
858 cross_compiling
=$ac_cv_prog_cc_cross
860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
861 if test $ac_cv_prog_cc_works = no
; then
862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
865 echo "configure:866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
867 cross_compiling
=$ac_cv_prog_cc_cross
869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
870 echo "configure:871: checking whether we are using GNU C" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 cat > conftest.c
<<EOF
879 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
888 if test $ac_cv_prog_gcc = yes; then
894 ac_test_CFLAGS
="${CFLAGS+set}"
895 ac_save_CFLAGS
="$CFLAGS"
897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${CC-cc} accepts -g" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 echo 'void f(){}' > conftest.c
903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
913 if test "$ac_test_CFLAGS" = set; then
914 CFLAGS
="$ac_save_CFLAGS"
915 elif test $ac_cv_prog_cc_g = yes; then
916 if test "$GCC" = yes; then
922 if test "$GCC" = yes; then
929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
930 if test "${with_gnu_ld+set}" = set; then
931 withval
="$with_gnu_ld"
932 test "$withval" = no || with_gnu_ld
=yes
938 if test "$ac_cv_prog_gcc" = yes; then
939 # Check if gcc -print-prog-name=ld gives a path.
940 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
941 echo "configure:942: checking for ld used by GCC" >&5
942 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
944 # Accept absolute paths.
945 [\\/]* |
[A-Za-z
]:[\\/]*)
946 re_direlt
='/[^/][^/]*/\.\./'
947 # Canonicalize the path of ld
948 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
949 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
950 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
952 test -z "$LD" && LD
="$ac_prog"
955 # If it fails, then pretend we aren't using GCC.
959 # If it is relative, then search for the first ld in PATH.
963 elif test "$with_gnu_ld" = yes; then
964 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
965 echo "configure:966: checking for GNU ld" >&5
967 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
968 echo "configure:969: checking for non-GNU ld" >&5
970 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 if test -z "$LD"; then
974 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
975 for ac_dir
in $PATH; do
976 test -z "$ac_dir" && ac_dir
=.
977 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
978 ac_cv_path_LD
="$ac_dir/$ac_prog"
979 # Check to see if the program is GNU ld. I'd rather use --version,
980 # but apparently some GNU ld's only accept -v.
981 # Break only if it was the GNU/non-GNU ld that we prefer.
982 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
983 test "$with_gnu_ld" != no
&& break
985 test "$with_gnu_ld" != yes && break
991 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
996 if test -n "$LD"; then
997 echo "$ac_t""$LD" 1>&6
999 echo "$ac_t""no" 1>&6
1001 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1003 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1004 echo "configure:1005: checking if the linker ($LD) is GNU ld" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1009 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1010 ac_cv_prog_gnu_ld
=yes
1012 ac_cv_prog_gnu_ld
=no
1016 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1019 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1020 echo "configure:1021: checking for BSD-compatible nm" >&5
1021 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$NM"; then
1025 # Let the user override the test.
1028 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1029 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1032 # Check to see if the nm accepts a BSD-compat flag.
1033 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1034 # nm: unknown option "B" ignored
1035 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1036 ac_cv_path_NM
="$ac_dir/nm -B"
1038 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1039 ac_cv_path_NM
="$ac_dir/nm -p"
1042 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1043 continue # so that we can try to find one that supports BSD flags
1048 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1053 echo "$ac_t""$NM" 1>&6
1056 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1057 echo "configure:1058: checking whether ln -s works" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1062 if ln -s X conftestdata
2>/dev
/null
1065 ac_cv_prog_LN_S
="ln -s"
1070 LN_S
="$ac_cv_prog_LN_S"
1071 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1072 echo "$ac_t""yes" 1>&6
1074 echo "$ac_t""no" 1>&6
1078 # Check for any special flags to pass to ltconfig.
1079 libtool_flags
="--cache-file=$cache_file"
1080 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1081 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1082 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1083 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1084 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1087 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1088 if test "${enable_libtool_lock+set}" = set; then
1089 enableval
="$enable_libtool_lock"
1093 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1094 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1096 # Some flags need to be propagated to the compiler or linker for good
1100 # Find out which ABI we are using.
1101 echo '#line 1102 "configure"' > conftest.
$ac_ext
1102 if { (eval echo configure
:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 case "`/usr/bin/file conftest.o`" in
1119 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1120 SAVE_CFLAGS
="$CFLAGS"
1121 CFLAGS
="$CFLAGS -belf"
1122 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether the C compiler needs -belf" >&5
1124 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 cat > conftest.
$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1135 if { (eval echo configure
:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1137 lt_cv_cc_needs_belf
=yes
1139 echo "configure: failed program was:" >&5
1140 cat conftest.
$ac_ext >&5
1142 lt_cv_cc_needs_belf
=no
1147 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1148 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1149 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1150 CFLAGS
="$SAVE_CFLAGS"
1158 # Save cache, so that ltconfig can load it
1159 cat > confcache
<<\EOF
1160 # This file is a shell script that caches the results of configure
1161 # tests run on this system so they can be shared between configure
1162 # scripts and configure runs. It is not useful on other systems.
1163 # If it contains results you don't want to keep, you may remove or edit it.
1165 # By default, configure uses ./config.cache as the cache file,
1166 # creating it if it does not exist already. You can give configure
1167 # the --cache-file=FILE option to use a different cache file; that is
1168 # what configure does when it calls configure scripts in
1169 # subdirectories, so they share the cache.
1170 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1171 # config.status only pays attention to the cache file if you give it the
1172 # --recheck option to rerun configure.
1175 # The following way of writing the cache mishandles newlines in values,
1176 # but we know of no workaround that is simple, portable, and efficient.
1177 # So, don't put newlines in cache variables' values.
1178 # Ultrix sh set writes to stderr and can't be redirected directly,
1179 # and sets the high bit in the cache file unless we assign to the vars.
1181 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1183 # `set' does not quote correctly, so add quotes (double-quote substitution
1184 # turns \\\\ into \\, and sed turns \\ into \).
1186 -e "s/'/'\\\\''/g" \
1187 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1190 # `set' quotes correctly as required by POSIX, so do not add quotes.
1191 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1194 if cmp -s $cache_file confcache
; then
1197 if test -w $cache_file; then
1198 echo "updating cache $cache_file"
1199 cat confcache
> $cache_file
1201 echo "not updating unwritable cache $cache_file"
1207 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1208 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1209 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1210 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1211 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1212 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1213 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1214 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1216 # Reload cache, that may have been modified by ltconfig
1217 if test -r "$cache_file"; then
1218 echo "loading cache $cache_file"
1221 echo "creating cache $cache_file"
1226 # This can be used to rebuild libtool when needed
1227 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1229 # Always use our own libtool.
1230 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1232 # Redirect the config.log output again, so that the ltconfig log is not
1233 # clobbered by the next message.
1234 exec 5>>.
/config.log
1237 freetype_version
='1.2.0'
1239 version_info
='4:0:2'
1241 # Check whether --enable-nls or --disable-nls was given.
1242 if test "${enable_nls+set}" = set; then
1243 enableval
="$enable_nls"
1252 # Do some error checking and defaulting for the host and target type.
1254 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1257 # 1. You are not allowed to specify --host, --target, and nonopt at the
1259 # 2. Host defaults to nonopt.
1260 # 3. If nonopt is not specified, then host defaults to the current host,
1261 # as determined by config.guess.
1262 # 4. Target and build default to nonopt.
1263 # 5. If nonopt is not specified, then target and build default to host.
1265 # The aliases save the names the user supplied, while $host etc.
1266 # will get canonicalized.
1267 case $host---$target---$nonopt in
1268 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1269 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1273 # Make sure we can run config.sub.
1274 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1275 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1278 echo $ac_n "checking host system type""... $ac_c" 1>&6
1279 echo "configure:1280: checking host system type" >&5
1282 case "$host_alias" in
1286 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1287 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1289 *) host_alias
=$nonopt ;;
1293 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1294 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 echo "$ac_t""$host" 1>&6
1299 echo $ac_n "checking target system type""... $ac_c" 1>&6
1300 echo "configure:1301: checking target system type" >&5
1302 target_alias
=$target
1303 case "$target_alias" in
1306 NONE
) target_alias
=$host_alias ;;
1307 *) target_alias
=$nonopt ;;
1311 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1312 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1313 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1314 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1315 echo "$ac_t""$target" 1>&6
1317 echo $ac_n "checking build system type""... $ac_c" 1>&6
1318 echo "configure:1319: checking build system type" >&5
1321 case "$build_alias" in
1324 NONE
) build_alias
=$host_alias ;;
1325 *) build_alias
=$nonopt ;;
1329 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1330 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333 echo "$ac_t""$build" 1>&6
1335 test "$host_alias" != "$target_alias" &&
1336 test "$program_prefix$program_suffix$program_transform_name" = \
1338 program_prefix
=${target_alias}-
1341 # Extract the first word of "gcc", so it can be a program name with args.
1342 set dummy gcc
; ac_word
=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$CC"; then
1349 ac_cv_prog_CC
="$CC" # Let the user override the test.
1351 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1353 for ac_dir
in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f $ac_dir/$ac_word; then
1364 if test -n "$CC"; then
1365 echo "$ac_t""$CC" 1>&6
1367 echo "$ac_t""no" 1>&6
1370 if test -z "$CC"; then
1371 # Extract the first word of "cc", so it can be a program name with args.
1372 set dummy cc
; ac_word
=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test -n "$CC"; then
1379 ac_cv_prog_CC
="$CC" # Let the user override the test.
1381 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1384 for ac_dir
in $ac_dummy; do
1385 test -z "$ac_dir" && ac_dir
=.
1386 if test -f $ac_dir/$ac_word; then
1387 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1388 ac_prog_rejected
=yes
1396 if test $ac_prog_rejected = yes; then
1397 # We found a bogon in the path, so make sure we never use it.
1398 set dummy
$ac_cv_prog_CC
1400 if test $# -gt 0; then
1401 # We chose a different compiler from the bogus one.
1402 # However, it has the same basename, so the bogon will be chosen
1403 # first if we set CC to just the basename; use the full file name.
1405 set dummy
"$ac_dir/$ac_word" "$@"
1413 if test -n "$CC"; then
1414 echo "$ac_t""$CC" 1>&6
1416 echo "$ac_t""no" 1>&6
1419 if test -z "$CC"; then
1420 case "`uname -s`" in
1422 # Extract the first word of "cl", so it can be a program name with args.
1423 set dummy cl
; ac_word
=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC
="$CC" # Let the user override the test.
1432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1434 for ac_dir
in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir
=.
1436 if test -f $ac_dir/$ac_word; then
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1448 echo "$ac_t""no" 1>&6
1453 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1456 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1461 ac_cpp
='$CPP $CPPFLAGS'
1462 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1463 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1464 cross_compiling
=$ac_cv_prog_cc_cross
1466 cat > conftest.
$ac_ext << EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1473 if { (eval echo configure
:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1474 ac_cv_prog_cc_works
=yes
1475 # If we can't run a trivial program, we are probably using a cross compiler.
1476 if (.
/conftest
; exit) 2>/dev
/null
; then
1477 ac_cv_prog_cc_cross
=no
1479 ac_cv_prog_cc_cross
=yes
1482 echo "configure: failed program was:" >&5
1483 cat conftest.
$ac_ext >&5
1484 ac_cv_prog_cc_works
=no
1488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1489 ac_cpp
='$CPP $CPPFLAGS'
1490 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1491 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1492 cross_compiling
=$ac_cv_prog_cc_cross
1494 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1495 if test $ac_cv_prog_cc_works = no
; then
1496 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1498 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1500 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1501 cross_compiling
=$ac_cv_prog_cc_cross
1503 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether we are using GNU C" >&5
1505 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 cat > conftest.c
<<EOF
1513 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1520 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1522 if test $ac_cv_prog_gcc = yes; then
1528 ac_test_CFLAGS
="${CFLAGS+set}"
1529 ac_save_CFLAGS
="$CFLAGS"
1531 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1532 echo "configure:1533: checking whether ${CC-cc} accepts -g" >&5
1533 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 echo 'void f(){}' > conftest.c
1537 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1546 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1547 if test "$ac_test_CFLAGS" = set; then
1548 CFLAGS
="$ac_save_CFLAGS"
1549 elif test $ac_cv_prog_cc_g = yes; then
1550 if test "$GCC" = yes; then
1556 if test "$GCC" = yes; then
1563 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1564 echo "configure:1565: checking how to run the C preprocessor" >&5
1565 # On Suns, sometimes $CPP names a directory.
1566 if test -n "$CPP" && test -d "$CPP"; then
1569 if test -z "$CPP"; then
1570 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 # This must be in double quotes, not single quotes, because CPP may get
1574 # substituted into the Makefile and "${CC-cc}" will confuse make.
1576 # On the NeXT, cc -E runs the code through the compiler's parser,
1577 # not just through cpp.
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure
:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 CPP
="${CC-cc} -E -traditional-cpp"
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1601 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1602 { (eval echo configure
:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1603 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1604 if test -z "$ac_err"; then
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 CPP
="${CC-cc} -nologo -E"
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1618 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1619 { (eval echo configure
:1620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1620 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1621 if test -z "$ac_err"; then
1625 echo "configure: failed program was:" >&5
1626 cat conftest.
$ac_ext >&5
1635 ac_cv_prog_CPP
="$CPP"
1637 CPP
="$ac_cv_prog_CPP"
1639 ac_cv_prog_CPP
="$CPP"
1641 echo "$ac_t""$CPP" 1>&6
1645 if test "x$CC" = xgcc
; then
1646 XX_CFLAGS
="-Wall -pedantic -ansi"
1650 XX_CFLAGS
="-std1 -O2 -g3"
1662 ln -s ..
/..
/MakeSub lib
/arch
1663 ln -s ..
/..
/MakeSub test
/arch
1670 if test "$USE_NLS" = "yes"; then
1672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${MAKE-make} sets \${MAKE}" >&5
1674 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftestmake
<<\EOF
1680 @
echo 'ac_maketemp="${MAKE}"'
1682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1684 if test -n "$ac_maketemp"; then
1685 eval ac_cv_prog_make_
${ac_make}_set
=yes
1687 eval ac_cv_prog_make_
${ac_make}_set
=no
1691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1695 echo "$ac_t""no" 1>&6
1696 SET_MAKE
="MAKE=${MAKE-make}"
1699 for ac_hdr
in locale.h
1701 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_hdr" >&5
1704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1713 { (eval echo configure
:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1715 if test -z "$ac_err"; then
1717 eval "ac_cv_header_$ac_safe=yes"
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 eval "ac_cv_header_$ac_safe=no"
1727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1730 cat >> confdefs.h
<<EOF
1731 #define $ac_tr_hdr 1
1735 echo "$ac_t""no" 1>&6
1739 for ac_func
in setlocale
1741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_func" >&5
1743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $ac_func(); below. */
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1770 if { (eval echo configure
:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1772 eval "ac_cv_func_$ac_func=yes"
1774 echo "configure: failed program was:" >&5
1775 cat conftest.
$ac_ext >&5
1777 eval "ac_cv_func_$ac_func=no"
1782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1785 cat >> confdefs.h
<<EOF
1786 #define $ac_tr_func 1
1790 echo "$ac_t""no" 1>&6
1796 ALL_LINGUAS
="de fr cs nl es"
1797 for ac_hdr
in libintl.h
1799 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_hdr" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1810 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1811 { (eval echo configure
:1812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1812 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1813 if test -z "$ac_err"; then
1815 eval "ac_cv_header_$ac_safe=yes"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1821 eval "ac_cv_header_$ac_safe=no"
1825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1826 echo "$ac_t""yes" 1>&6
1827 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1828 cat >> confdefs.h
<<EOF
1829 #define $ac_tr_hdr 1
1833 echo "$ac_t""no" 1>&6
1837 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1838 echo "configure:1839: checking for gettext in -lintl" >&5
1839 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 ac_save_LIBS
="$LIBS"
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 /* Override any gcc2 internal prototype to avoid an error. */
1849 /* We use char because int might match the return type of a gcc2
1850 builtin and then its argument prototype would still apply. */
1857 if { (eval echo configure
:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1859 eval "ac_cv_lib_$ac_lib_var=yes"
1861 echo "configure: failed program was:" >&5
1862 cat conftest.
$ac_ext >&5
1864 eval "ac_cv_lib_$ac_lib_var=no"
1867 LIBS
="$ac_save_LIBS"
1870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1874 cat >> confdefs.h
<<EOF
1875 #define $ac_tr_lib 1
1881 echo "$ac_t""no" 1>&6
1887 LOCALEDIR
='${prefix}/share/locale'
1888 # Check whether --with-locale-dir or --without-locale-dir was given.
1889 if test "${with_locale_dir+set}" = set; then
1890 withval
="$with_locale_dir"
1892 if test x
$withval = xyes
; then
1893 echo "configure: warning: Usage is: --with-locale-dir=basedir" 1>&2
1895 if test x
$withval = xno
; then
1896 echo "configure: warning: Usage is: --with-locale-dir=basedir" 1>&2
1906 # Extract the first word of "msgfmt", so it can be a program name with args.
1907 set dummy msgfmt
; ac_word
=$2
1908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1909 echo "configure:1910: checking for $ac_word" >&5
1910 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1915 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
1918 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a dos path.
1921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1923 for ac_dir
in $ac_dummy; do
1924 test -z "$ac_dir" && ac_dir
=.
1925 if test -f $ac_dir/$ac_word; then
1926 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
1931 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="$MSGFMT"
1935 MSGFMT
="$ac_cv_path_MSGFMT"
1936 if test -n "$MSGFMT"; then
1937 echo "$ac_t""$MSGFMT" 1>&6
1939 echo "$ac_t""no" 1>&6
1942 if test -n "$MSGFMT"; then
1943 for ac_func
in dcgettext
1945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_func" >&5
1947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 /* System header to define __stub macros and hopefully few prototypes,
1954 which can conflict with char $ac_func(); below. */
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1974 if { (eval echo configure
:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1976 eval "ac_cv_func_$ac_func=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 eval "ac_cv_func_$ac_func=no"
1986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1989 cat >> confdefs.h
<<EOF
1990 #define $ac_tr_func 1
1994 echo "$ac_t""no" 1>&6
1998 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1999 set dummy gmsgfmt
; ac_word
=$2
2000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_word" >&5
2002 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2007 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2010 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2015 for ac_dir
in $ac_dummy; do
2016 test -z "$ac_dir" && ac_dir
=.
2017 if test -f $ac_dir/$ac_word; then
2018 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2023 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2027 GMSGFMT
="$ac_cv_path_GMSGFMT"
2028 if test -n "$GMSGFMT"; then
2029 echo "$ac_t""$GMSGFMT" 1>&6
2031 echo "$ac_t""no" 1>&6
2034 # Extract the first word of "xgettext", so it can be a program name with args.
2035 set dummy xgettext
; ac_word
=$2
2036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_word" >&5
2038 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2043 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2046 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a dos path.
2049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2051 for ac_dir
in $ac_dummy; do
2052 test -z "$ac_dir" && ac_dir
=.
2053 if test -f $ac_dir/$ac_word; then
2054 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2059 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
="$XGETTEXT"
2063 XGETTEXT
="$ac_cv_path_XGETTEXT"
2064 if test -n "$XGETTEXT"; then
2065 echo "$ac_t""$XGETTEXT" 1>&6
2067 echo "$ac_t""no" 1>&6
2070 # Extract the first word of "msgmerge", so it can be a program name with args.
2071 set dummy msgmerge
; ac_word
=$2
2072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_word" >&5
2074 if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2079 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
2082 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a dos path.
2085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2087 for ac_dir
in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir
=.
2089 if test -f $ac_dir/$ac_word; then
2090 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
2095 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
="$MSGMERGE"
2099 MSGMERGE
="$ac_cv_path_MSGMERGE"
2100 if test -n "$MSGMERGE"; then
2101 echo "$ac_t""$MSGMERGE" 1>&6
2103 echo "$ac_t""no" 1>&6
2107 if test -n "$XGETTEXT"; then
2108 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2111 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2116 if test -n "$XGETTEXT"; then
2117 if $XGETTEXT --help > /dev
/null
2> /dev
/null
; then
2120 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2125 if test -n "$MSGFMT"; then
2126 if $MSGFMT < /dev
/null
2> /dev
/null
; then
2127 echo "$ac_t""found msgfmt program is not GNU msgfmt; NLS won't be installed" 1>&6
2132 cat > conftest.
$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2137 extern int _nl_msg_cat_cntr;
2138 return _nl_msg_cat_cntr
2141 if { (eval echo configure
:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2156 if test -n "$ALL_LINGUAS"; then
2157 for lang
in $ALL_LINGUAS; do
2158 CATALOGS
="$CATALOGS $lang$CATOBJEXT"
2167 if test x
"$MSGFMT" = x
; then
2172 # Extract the first word of "rm", so it can be a program name with args.
2173 set dummy
rm; ac_word
=$2
2174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_word" >&5
2176 if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 if test -n "$RM"; then
2180 ac_cv_prog_RM
="$RM" # Let the user override the test.
2182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2184 for ac_dir
in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir
=.
2186 if test -f $ac_dir/$ac_word; then
2195 if test -n "$RM"; then
2196 echo "$ac_t""$RM" 1>&6
2198 echo "$ac_t""no" 1>&6
2201 # Extract the first word of "rmdir", so it can be a program name with args.
2202 set dummy
rmdir; ac_word
=$2
2203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2204 echo "configure:2205: checking for $ac_word" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_RMDIR'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 if test -n "$RMDIR"; then
2209 ac_cv_prog_RMDIR
="$RMDIR" # Let the user override the test.
2211 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2213 for ac_dir
in $ac_dummy; do
2214 test -z "$ac_dir" && ac_dir
=.
2215 if test -f $ac_dir/$ac_word; then
2216 ac_cv_prog_RMDIR
="rmdir"
2223 RMDIR
="$ac_cv_prog_RMDIR"
2224 if test -n "$RMDIR"; then
2225 echo "$ac_t""$RMDIR" 1>&6
2227 echo "$ac_t""no" 1>&6
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2240 # ./install, which can be erroneously created by make from ./install.sh.
2241 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2242 echo "configure:2243: checking for a BSD compatible install" >&5
2243 if test -z "$INSTALL"; then
2244 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2248 for ac_dir
in $PATH; do
2249 # Account for people who put trailing slashes in PATH elements.
2251 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2253 # OSF1 and SCO ODT 3.0 have their own names for install.
2254 # Don't use installbsd from OSF since it installs stuff as root
2256 for ac_prog
in ginstall scoinst
install; do
2257 if test -f $ac_dir/$ac_prog; then
2258 if test $ac_prog = install &&
2259 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2263 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2274 if test "${ac_cv_path_install+set}" = set; then
2275 INSTALL
="$ac_cv_path_install"
2277 # As a last resort, use the slow shell script. We don't cache a
2278 # path for INSTALL within a source directory, because that will
2279 # break other packages using the cache if that directory is
2280 # removed, or if the path is relative.
2281 INSTALL
="$ac_install_sh"
2284 echo "$ac_t""$INSTALL" 1>&6
2286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2287 # It thinks the first close brace ends the variable substitution.
2288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2292 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2294 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether ln -s works" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2300 if ln -s X conftestdata
2>/dev
/null
2303 ac_cv_prog_LN_S
="ln -s"
2308 LN_S
="$ac_cv_prog_LN_S"
2309 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2310 echo "$ac_t""yes" 1>&6
2312 echo "$ac_t""no" 1>&6
2319 # Most operating systems have gethostbyname() in the default searched
2320 # libraries (i.e. libc):
2321 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2322 echo "configure:2323: checking for gethostbyname" >&5
2323 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2326 cat > conftest.
$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 /* System header to define __stub macros and hopefully few prototypes,
2330 which can conflict with char gethostbyname(); below. */
2332 /* Override any gcc2 internal prototype to avoid an error. */
2333 /* We use char because int might match the return type of a gcc2
2334 builtin and then its argument prototype would still apply. */
2335 char gethostbyname();
2339 /* The GNU C library defines this for functions which it implements
2340 to always fail with ENOSYS. Some functions are actually named
2341 something starting with __ and the normal name is an alias. */
2342 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2350 if { (eval echo configure
:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2352 eval "ac_cv_func_gethostbyname=yes"
2354 echo "configure: failed program was:" >&5
2355 cat conftest.
$ac_ext >&5
2357 eval "ac_cv_func_gethostbyname=no"
2362 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2366 echo "$ac_t""no" 1>&6
2367 # Some OSes (eg. Solaris) place it in libnsl:
2368 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for gethostbyname in -lnsl" >&5
2370 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char gethostbyname();
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2405 cat >> confdefs.h
<<EOF
2406 #define $ac_tr_lib 1
2412 echo "$ac_t""no" 1>&6
2413 # Some strange OSes (SINIX) have it in libsocket:
2414 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2415 echo "configure:2416: checking for gethostbyname in -lsocket" >&5
2416 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_save_LIBS
="$LIBS"
2421 LIBS
="-lsocket $LIBS"
2422 cat > conftest.
$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428 char gethostbyname();
2434 if { (eval echo configure
:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2436 eval "ac_cv_lib_$ac_lib_var=yes"
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 eval "ac_cv_lib_$ac_lib_var=no"
2444 LIBS
="$ac_save_LIBS"
2447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2451 cat >> confdefs.h
<<EOF
2452 #define $ac_tr_lib 1
2455 LIBS
="-lsocket $LIBS"
2458 echo "$ac_t""no" 1>&6
2459 # Unfortunately libsocket sometimes depends on libnsl.
2460 # AC_CHECK_LIB's API is essentially broken so the following
2461 # ugliness is necessary:
2462 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2463 echo "configure:2464: checking for gethostbyname in -lsocket" >&5
2464 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 ac_save_LIBS
="$LIBS"
2469 LIBS
="-lsocket -lnsl $LIBS"
2470 cat > conftest.
$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2476 char gethostbyname();
2482 if { (eval echo configure
:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2484 eval "ac_cv_lib_$ac_lib_var=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.
$ac_ext >&5
2489 eval "ac_cv_lib_$ac_lib_var=no"
2492 LIBS
="$ac_save_LIBS"
2495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 LIBS
="-lsocket -lnsl $LIBS"
2499 echo "$ac_t""no" 1>&6
2500 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2501 echo "configure:2502: checking for gethostbyname in -lresolv" >&5
2502 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 ac_save_LIBS
="$LIBS"
2507 LIBS
="-lresolv $LIBS"
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 /* Override any gcc2 internal prototype to avoid an error. */
2512 /* We use char because int might match the return type of a gcc2
2513 builtin and then its argument prototype would still apply. */
2514 char gethostbyname();
2520 if { (eval echo configure
:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2522 eval "ac_cv_lib_$ac_lib_var=yes"
2524 echo "configure: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2527 eval "ac_cv_lib_$ac_lib_var=no"
2530 LIBS
="$ac_save_LIBS"
2533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2537 cat >> confdefs.h
<<EOF
2538 #define $ac_tr_lib 1
2541 LIBS
="-lresolv $LIBS"
2544 echo "$ac_t""no" 1>&6
2558 echo $ac_n "checking for socket""... $ac_c" 1>&6
2559 echo "configure:2560: checking for socket" >&5
2560 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 cat > conftest.
$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 /* System header to define __stub macros and hopefully few prototypes,
2567 which can conflict with char socket(); below. */
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2576 /* The GNU C library defines this for functions which it implements
2577 to always fail with ENOSYS. Some functions are actually named
2578 something starting with __ and the normal name is an alias. */
2579 #if defined (__stub_socket) || defined (__stub___socket)
2587 if { (eval echo configure
:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2589 eval "ac_cv_func_socket=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2594 eval "ac_cv_func_socket=no"
2599 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2603 echo "$ac_t""no" 1>&6
2604 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2605 echo "configure:2606: checking for socket in -lsocket" >&5
2606 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 ac_save_LIBS
="$LIBS"
2611 LIBS
="-lsocket $LIBS"
2612 cat > conftest.
$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 /* Override any gcc2 internal prototype to avoid an error. */
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2624 if { (eval echo configure
:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2626 eval "ac_cv_lib_$ac_lib_var=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.
$ac_ext >&5
2631 eval "ac_cv_lib_$ac_lib_var=no"
2634 LIBS
="$ac_save_LIBS"
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2641 cat >> confdefs.h
<<EOF
2642 #define $ac_tr_lib 1
2645 LIBS
="-lsocket $LIBS"
2648 echo "$ac_t""no" 1>&6
2649 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2650 echo "configure:2651: checking for socket in -lsocket" >&5
2651 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 ac_save_LIBS
="$LIBS"
2656 LIBS
="-lsocket -lnsl $LIBS"
2657 cat > conftest.
$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 /* Override any gcc2 internal prototype to avoid an error. */
2661 /* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2669 if { (eval echo configure
:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2671 eval "ac_cv_lib_$ac_lib_var=yes"
2673 echo "configure: failed program was:" >&5
2674 cat conftest.
$ac_ext >&5
2676 eval "ac_cv_lib_$ac_lib_var=no"
2679 LIBS
="$ac_save_LIBS"
2682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 LIBS
="-lsocket -lnsl $LIBS"
2686 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
2695 echo "configure:2696: checking for cos in -lm" >&5
2696 ac_lib_var
=`echo m'_'cos | sed 'y%./+-%__p_%'`
2697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 ac_save_LIBS
="$LIBS"
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2714 if { (eval echo configure
:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2716 eval "ac_cv_lib_$ac_lib_var=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 eval "ac_cv_lib_$ac_lib_var=no"
2724 LIBS
="$ac_save_LIBS"
2727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2731 cat >> confdefs.h
<<EOF
2732 #define $ac_tr_lib 1
2738 echo "$ac_t""no" 1>&6
2742 # If we find X, set shell vars x_includes and x_libraries to the
2743 # paths, otherwise set no_x=yes.
2744 # Uses ac_ vars as temps to allow command line to override cache and checks.
2745 # --without-x overrides everything else, but does not touch the cache.
2746 echo $ac_n "checking for X""... $ac_c" 1>&6
2747 echo "configure:2748: checking for X" >&5
2749 # Check whether --with-x or --without-x was given.
2750 if test "${with_x+set}" = set; then
2755 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2756 if test "x$with_x" = xno
; then
2757 # The user explicitly disabled X.
2760 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2761 # Both variables are already set.
2764 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 # One or both of the vars are not set, and there is no cached value.
2768 ac_x_includes
=NO ac_x_libraries
=NO
2770 if mkdir conftestdir
; then
2772 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2773 cat > Imakefile
<<'EOF'
2775 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2777 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2779 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2780 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2781 for ac_extension
in a so sl
; do
2782 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2783 test -f $ac_im_libdir/libX11.
$ac_extension; then
2784 ac_im_usrlibdir
=$ac_im_libdir; break
2787 # Screen out bogus values from the imake configuration. They are
2788 # bogus both because they are the default anyway, and because
2789 # using them would break gcc on systems where it needs fixed includes.
2790 case "$ac_im_incroot" in
2792 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2794 case "$ac_im_usrlibdir" in
2796 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2803 if test "$ac_x_includes" = NO
; then
2804 # Guess where to find include files, by looking for this one X11 .h file.
2805 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2807 # First, try using that file with no special directory specified.
2808 cat > conftest.
$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 #include <$x_direct_test_include>
2813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2814 { (eval echo configure
:2815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2816 if test -z "$ac_err"; then
2818 # We can compile using X headers with no special include directory.
2822 echo "configure: failed program was:" >&5
2823 cat conftest.
$ac_ext >&5
2825 # Look for the header file in a standard set of common directories.
2826 # Check X11 before X11Rn because it is often a symlink to the current release.
2829 /usr
/X11R
6/include \
2830 /usr
/X11R
5/include \
2831 /usr
/X11R
4/include \
2834 /usr
/include
/X11R6 \
2835 /usr
/include
/X11R5 \
2836 /usr
/include
/X11R4 \
2838 /usr
/local
/X11
/include \
2839 /usr
/local
/X11R
6/include \
2840 /usr
/local
/X11R
5/include \
2841 /usr
/local
/X11R
4/include \
2843 /usr
/local
/include
/X11 \
2844 /usr
/local
/include
/X11R6 \
2845 /usr
/local
/include
/X11R5 \
2846 /usr
/local
/include
/X11R4 \
2850 /usr
/XFree86
/include
/X11 \
2853 /usr
/local
/include \
2854 /usr
/unsupported
/include \
2855 /usr
/athena
/include \
2856 /usr
/local
/x11r
5/include \
2857 /usr
/lpp
/Xamples
/include \
2859 /usr
/openwin
/include \
2860 /usr
/openwin
/share
/include \
2863 if test -r "$ac_dir/$x_direct_test_include"; then
2864 ac_x_includes
=$ac_dir
2870 fi # $ac_x_includes = NO
2872 if test "$ac_x_libraries" = NO
; then
2873 # Check for the libraries.
2875 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2876 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2878 # See if we find them without any special options.
2879 # Don't add to $LIBS permanently.
2880 ac_save_LIBS
="$LIBS"
2881 LIBS
="-l$x_direct_test_library $LIBS"
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 ${x_direct_test_function}()
2890 if { (eval echo configure
:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2892 LIBS
="$ac_save_LIBS"
2893 # We can link X programs with no special library path.
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 LIBS
="$ac_save_LIBS"
2900 # First see if replacing the include by lib works.
2901 # Check X11 before X11Rn because it is often a symlink to the current release.
2902 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2913 /usr
/local
/X11
/lib \
2914 /usr
/local
/X11R
6/lib \
2915 /usr
/local
/X11R
5/lib \
2916 /usr
/local
/X11R
4/lib \
2918 /usr
/local
/lib
/X11 \
2919 /usr
/local
/lib
/X11R6 \
2920 /usr
/local
/lib
/X11R5 \
2921 /usr
/local
/lib
/X11R4 \
2925 /usr
/XFree86
/lib
/X11 \
2929 /usr
/unsupported
/lib \
2931 /usr
/local
/x11r
5/lib \
2932 /usr
/lpp
/Xamples
/lib \
2936 /usr
/openwin
/share
/lib \
2939 for ac_extension
in a so sl
; do
2940 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2941 ac_x_libraries
=$ac_dir
2948 fi # $ac_x_libraries = NO
2950 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
2951 # Didn't find X anywhere. Cache the known absence of X.
2952 ac_cv_have_x
="have_x=no"
2954 # Record where we found X for the cache.
2955 ac_cv_have_x
="have_x=yes \
2956 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2960 eval "$ac_cv_have_x"
2963 if test "$have_x" != yes; then
2964 echo "$ac_t""$have_x" 1>&6
2967 # If each of the values was on the command line, it overrides each guess.
2968 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2969 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2970 # Update the cache value to reflect the command line values.
2971 ac_cv_have_x
="have_x=yes \
2972 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2973 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2976 if test "$no_x" = yes; then
2977 # Not all programs may use this symbol, but it does not hurt to define it.
2978 cat >> confdefs.h
<<\EOF
2979 #define X_DISPLAY_MISSING 1
2982 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
2984 if test -n "$x_includes"; then
2985 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2988 # It would also be nice to do this for all -L options, not just this one.
2989 if test -n "$x_libraries"; then
2990 X_LIBS
="$X_LIBS -L$x_libraries"
2991 # For Solaris; some versions of Sun CC require a space after -R and
2992 # others require no space. Words are not sufficient . . . .
2993 case "`(uname -sr) 2>/dev/null`" in
2995 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2996 echo "configure:2997: checking whether -R must be followed by a space" >&5
2997 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3006 if { (eval echo configure
:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3010 echo "configure: failed program was:" >&5
3011 cat conftest.
$ac_ext >&5
3016 if test $ac_R_nospace = yes; then
3017 echo "$ac_t""no" 1>&6
3018 X_LIBS
="$X_LIBS -R$x_libraries"
3020 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3021 cat > conftest.
$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3029 if { (eval echo configure
:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3033 echo "configure: failed program was:" >&5
3034 cat conftest.
$ac_ext >&5
3039 if test $ac_R_space = yes; then
3040 echo "$ac_t""yes" 1>&6
3041 X_LIBS
="$X_LIBS -R $x_libraries"
3043 echo "$ac_t""neither works" 1>&6
3046 LIBS
="$ac_xsave_LIBS"
3050 # Check for system-dependent libraries X programs must link with.
3051 # Do this before checking for the system-independent R6 libraries
3052 # (-lICE), since we may need -lsocket or whatever for X linking.
3054 if test "$ISC" = yes; then
3055 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3057 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3058 # libraries were built with DECnet support. And karl@cs.umb.edu says
3059 # the Alpha needs dnet_stub (dnet does not exist).
3060 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3061 echo "configure:3062: checking for dnet_ntoa in -ldnet" >&5
3062 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 ac_save_LIBS
="$LIBS"
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3080 if { (eval echo configure
:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3084 echo "configure: failed program was:" >&5
3085 cat conftest.
$ac_ext >&5
3087 eval "ac_cv_lib_$ac_lib_var=no"
3090 LIBS
="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3097 echo "$ac_t""no" 1>&6
3100 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3101 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3102 echo "configure:3103: checking for dnet_ntoa in -ldnet_stub" >&5
3103 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 ac_save_LIBS
="$LIBS"
3108 LIBS
="-ldnet_stub $LIBS"
3109 cat > conftest.
$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3121 if { (eval echo configure
:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.
$ac_ext >&5
3128 eval "ac_cv_lib_$ac_lib_var=no"
3131 LIBS
="$ac_save_LIBS"
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3138 echo "$ac_t""no" 1>&6
3143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3144 # to get the SysV transport functions.
3145 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3147 # The nsl library prevents programs from opening the X display
3148 # on Irix 5.2, according to dickey@clark.net.
3149 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3150 echo "configure:3151: checking for gethostbyname" >&5
3151 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.
$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char gethostbyname(); below. */
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3163 char gethostbyname();
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3178 if { (eval echo configure
:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3180 eval "ac_cv_func_gethostbyname=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.
$ac_ext >&5
3185 eval "ac_cv_func_gethostbyname=no"
3190 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3194 echo "$ac_t""no" 1>&6
3197 if test $ac_cv_func_gethostbyname = no
; then
3198 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3199 echo "configure:3200: checking for gethostbyname in -lnsl" >&5
3200 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 ac_save_LIBS
="$LIBS"
3206 cat > conftest.
$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3212 char gethostbyname();
3218 if { (eval echo configure
:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3220 eval "ac_cv_lib_$ac_lib_var=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3225 eval "ac_cv_lib_$ac_lib_var=no"
3228 LIBS
="$ac_save_LIBS"
3231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3235 echo "$ac_t""no" 1>&6
3240 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3241 # socket/setsockopt and other routines are undefined under SCO ODT
3242 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3243 # on later versions), says simon@lia.di.epfl.ch: it contains
3244 # gethostby* variants that don't use the nameserver (or something).
3245 # -lsocket must be given before -lnsl if both are needed.
3246 # We assume that if connect needs -lnsl, so does gethostbyname.
3247 echo $ac_n "checking for connect""... $ac_c" 1>&6
3248 echo "configure:3249: checking for connect" >&5
3249 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char connect(); below. */
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_connect) || defined (__stub___connect)
3276 if { (eval echo configure
:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3278 eval "ac_cv_func_connect=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 eval "ac_cv_func_connect=no"
3288 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3292 echo "$ac_t""no" 1>&6
3295 if test $ac_cv_func_connect = no
; then
3296 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3297 echo "configure:3298: checking for connect in -lsocket" >&5
3298 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 ac_save_LIBS
="$LIBS"
3303 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3304 cat > conftest.
$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3316 if { (eval echo configure
:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3318 eval "ac_cv_lib_$ac_lib_var=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.
$ac_ext >&5
3323 eval "ac_cv_lib_$ac_lib_var=no"
3326 LIBS
="$ac_save_LIBS"
3329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3333 echo "$ac_t""no" 1>&6
3338 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3339 echo $ac_n "checking for remove""... $ac_c" 1>&6
3340 echo "configure:3341: checking for remove" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char remove(); below. */
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_remove) || defined (__stub___remove)
3368 if { (eval echo configure
:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3370 eval "ac_cv_func_remove=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3375 eval "ac_cv_func_remove=no"
3380 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3384 echo "$ac_t""no" 1>&6
3387 if test $ac_cv_func_remove = no
; then
3388 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3389 echo "configure:3390: checking for remove in -lposix" >&5
3390 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 ac_save_LIBS
="$LIBS"
3395 LIBS
="-lposix $LIBS"
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3408 if { (eval echo configure
:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3410 eval "ac_cv_lib_$ac_lib_var=yes"
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3415 eval "ac_cv_lib_$ac_lib_var=no"
3418 LIBS
="$ac_save_LIBS"
3421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3423 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3425 echo "$ac_t""no" 1>&6
3430 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3431 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3432 echo "configure:3433: checking for shmat" >&5
3433 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.
$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 /* System header to define __stub macros and hopefully few prototypes,
3440 which can conflict with char shmat(); below. */
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3449 /* The GNU C library defines this for functions which it implements
3450 to always fail with ENOSYS. Some functions are actually named
3451 something starting with __ and the normal name is an alias. */
3452 #if defined (__stub_shmat) || defined (__stub___shmat)
3460 if { (eval echo configure
:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3462 eval "ac_cv_func_shmat=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.
$ac_ext >&5
3467 eval "ac_cv_func_shmat=no"
3472 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3473 echo "$ac_t""yes" 1>&6
3476 echo "$ac_t""no" 1>&6
3479 if test $ac_cv_func_shmat = no
; then
3480 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3481 echo "configure:3482: checking for shmat in -lipc" >&5
3482 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 ac_save_LIBS
="$LIBS"
3488 cat > conftest.
$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3500 if { (eval echo configure
:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.
$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS
="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3517 echo "$ac_t""no" 1>&6
3523 # Check for libraries that X11R6 Xt/Xaw programs need.
3524 ac_save_LDFLAGS
="$LDFLAGS"
3525 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3526 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3527 # check for ICE first), but we must link in the order -lSM -lICE or
3528 # we get undefined symbols. So assume we have SM if we have ICE.
3529 # These have to be linked with before -lX11, unlike the other
3530 # libraries we check for below, so use a different variable.
3531 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3532 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3533 echo "configure:3534: checking for IceConnectionNumber in -lICE" >&5
3534 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_save_LIBS
="$LIBS"
3539 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3546 char IceConnectionNumber();
3549 IceConnectionNumber()
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 eval "ac_cv_lib_$ac_lib_var=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 eval "ac_cv_lib_$ac_lib_var=no"
3562 LIBS
="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3569 echo "$ac_t""no" 1>&6
3572 LDFLAGS
="$ac_save_LDFLAGS"
3576 for ac_hdr
in stdlib.h fcntl.h unistd.h
3578 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_hdr" >&5
3581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.
$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3590 { (eval echo configure
:3591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3591 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3592 if test -z "$ac_err"; then
3594 eval "ac_cv_header_$ac_safe=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.
$ac_ext >&5
3600 eval "ac_cv_header_$ac_safe=no"
3604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3607 cat >> confdefs.h
<<EOF
3608 #define $ac_tr_hdr 1
3612 echo "$ac_t""no" 1>&6
3617 echo $ac_n "checking for working const""... $ac_c" 1>&6
3618 echo "configure:3619: checking for working const" >&5
3619 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3628 /* Ultrix mips cc rejects this. */
3629 typedef int charset[2]; const charset x;
3630 /* SunOS 4.1.1 cc rejects this. */
3631 char const *const *ccp;
3633 /* NEC SVR4.0.2 mips cc rejects this. */
3634 struct point {int x, y;};
3635 static struct point const zero = {0,0};
3636 /* AIX XL C 1.02.0.0 rejects this.
3637 It does not let you subtract one const X* pointer from another in an arm
3638 of an if-expression whose if-part is not a constant expression */
3639 const char *g = "string";
3640 ccp = &g + (g ? g-g : 0);
3641 /* HPUX 7.0 cc rejects these. */
3644 ccp = (char const *const *) p;
3645 { /* SCO 3.2v4 cc rejects this. */
3647 char const *s = 0 ? (char *) 0 : (char const *) 0;
3651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3653 const int *foo = &x[0];
3656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3657 typedef const int *iptr;
3661 { /* AIX XL C 1.02.0.0 rejects this saying
3662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3663 struct s { int j; const int *ap[3]; };
3664 struct s *b; b->j = 5;
3666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3672 if { (eval echo configure
:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3684 echo "$ac_t""$ac_cv_c_const" 1>&6
3685 if test $ac_cv_c_const = no
; then
3686 cat >> confdefs.h
<<\EOF
3692 echo $ac_n "checking size of int""... $ac_c" 1>&6
3693 echo "configure:3694: checking size of int" >&5
3694 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 if test "$cross_compiling" = yes; then
3698 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3700 cat > conftest.
$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3706 FILE *f=fopen("conftestval", "w");
3708 fprintf(f, "%d\n", sizeof(int));
3712 if { (eval echo configure
:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3714 ac_cv_sizeof_int
=`cat conftestval`
3716 echo "configure: failed program was:" >&5
3717 cat conftest.
$ac_ext >&5
3725 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3726 cat >> confdefs.h
<<EOF
3727 #define SIZEOF_INT $ac_cv_sizeof_int
3731 echo $ac_n "checking size of long""... $ac_c" 1>&6
3732 echo "configure:3733: checking size of long" >&5
3733 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 if test "$cross_compiling" = yes; then
3737 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3745 FILE *f=fopen("conftestval", "w");
3747 fprintf(f, "%d\n", sizeof(long));
3751 if { (eval echo configure
:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3753 ac_cv_sizeof_long
=`cat conftestval`
3755 echo "configure: failed program was:" >&5
3756 cat conftest.
$ac_ext >&5
3764 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3765 cat >> confdefs.h
<<EOF
3766 #define SIZEOF_LONG $ac_cv_sizeof_long
3772 for ac_hdr
in unistd.h
3774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3776 echo "configure:3777: checking for $ac_hdr" >&5
3777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.
$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3786 { (eval echo configure
:3787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3788 if test -z "$ac_err"; then
3790 eval "ac_cv_header_$ac_safe=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3796 eval "ac_cv_header_$ac_safe=no"
3800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3803 cat >> confdefs.h
<<EOF
3804 #define $ac_tr_hdr 1
3808 echo "$ac_t""no" 1>&6
3812 for ac_func
in getpagesize
3814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_func" >&5
3816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3819 cat > conftest.
$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* System header to define __stub macros and hopefully few prototypes,
3823 which can conflict with char $ac_func(); below. */
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3843 if { (eval echo configure
:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3845 eval "ac_cv_func_$ac_func=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 eval "ac_cv_func_$ac_func=no"
3855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3858 cat >> confdefs.h
<<EOF
3859 #define $ac_tr_func 1
3863 echo "$ac_t""no" 1>&6
3867 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3868 echo "configure:3869: checking for working mmap" >&5
3869 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 if test "$cross_compiling" = yes; then
3873 ac_cv_func_mmap_fixed_mapped
=no
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3879 /* Thanks to Mike Haertel and Jim Avera for this test.
3880 Here is a matrix of mmap possibilities:
3881 mmap private not fixed
3882 mmap private fixed at somewhere currently unmapped
3883 mmap private fixed at somewhere already mapped
3884 mmap shared not fixed
3885 mmap shared fixed at somewhere currently unmapped
3886 mmap shared fixed at somewhere already mapped
3887 For private mappings, we should verify that changes cannot be read()
3888 back from the file, nor mmap's back from the file at a different
3889 address. (There have been systems where private was not correctly
3890 implemented like the infamous i386 svr4.0, and systems where the
3891 VM page cache was not coherent with the filesystem buffer cache
3892 like early versions of FreeBSD and possibly contemporary NetBSD.)
3893 For shared mappings, we should conversely verify that changes get
3894 propogated back to all the places they're supposed to be.
3896 Grep wants private fixed already mapped.
3897 The main things grep needs to know about mmap are:
3898 * does it exist and is it safe to write into the mmap'd area
3899 * how to use it (BSD variants) */
3900 #include <sys/types.h>
3902 #include <sys/mman.h>
3904 /* This mess was copied from the GNU getpagesize.h. */
3905 #ifndef HAVE_GETPAGESIZE
3906 # ifdef HAVE_UNISTD_H
3907 # include <unistd.h>
3910 /* Assume that all systems that can run configure have sys/param.h. */
3911 # ifndef HAVE_SYS_PARAM_H
3912 # define HAVE_SYS_PARAM_H 1
3915 # ifdef _SC_PAGESIZE
3916 # define getpagesize() sysconf(_SC_PAGESIZE)
3917 # else /* no _SC_PAGESIZE */
3918 # ifdef HAVE_SYS_PARAM_H
3919 # include <sys/param.h>
3920 # ifdef EXEC_PAGESIZE
3921 # define getpagesize() EXEC_PAGESIZE
3922 # else /* no EXEC_PAGESIZE */
3924 # define getpagesize() NBPG * CLSIZE
3927 # endif /* no CLSIZE */
3928 # else /* no NBPG */
3930 # define getpagesize() NBPC
3931 # else /* no NBPC */
3933 # define getpagesize() PAGESIZE
3934 # endif /* PAGESIZE */
3935 # endif /* no NBPC */
3936 # endif /* no NBPG */
3937 # endif /* no EXEC_PAGESIZE */
3938 # else /* no HAVE_SYS_PARAM_H */
3939 # define getpagesize() 8192 /* punt totally */
3940 # endif /* no HAVE_SYS_PARAM_H */
3941 # endif /* no _SC_PAGESIZE */
3943 #endif /* no HAVE_GETPAGESIZE */
3946 extern "C" { void *malloc(unsigned); }
3954 char *data, *data2, *data3;
3958 pagesize = getpagesize();
3961 * First, make a file with some known garbage in it.
3963 data = malloc(pagesize);
3966 for (i = 0; i < pagesize; ++i)
3967 *(data + i) = rand();
3969 fd = creat("conftestmmap", 0600);
3972 if (write(fd, data, pagesize) != pagesize)
3977 * Next, try to mmap the file at a fixed address which
3978 * already has something else allocated at it. If we can,
3979 * also make sure that we see the same garbage.
3981 fd = open("conftestmmap", O_RDWR);
3984 data2 = malloc(2 * pagesize);
3987 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3988 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3991 for (i = 0; i < pagesize; ++i)
3992 if (*(data + i) != *(data2 + i))
3996 * Finally, make sure that changes to the mapped area
3997 * do not percolate back to the file as seen by read().
3998 * (This is a bug on some variants of i386 svr4.0.)
4000 for (i = 0; i < pagesize; ++i)
4001 *(data2 + i) = *(data2 + i) + 1;
4002 data3 = malloc(pagesize);
4005 if (read(fd, data3, pagesize) != pagesize)
4007 for (i = 0; i < pagesize; ++i)
4008 if (*(data + i) != *(data3 + i))
4011 unlink("conftestmmap");
4016 if { (eval echo configure
:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4018 ac_cv_func_mmap_fixed_mapped
=yes
4020 echo "configure: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4023 ac_cv_func_mmap_fixed_mapped
=no
4030 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4032 cat >> confdefs.h
<<\EOF
4038 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
4039 TT_FILE_COMPONENT
=ttfile.c
4041 TT_FILE_COMPONENT
=arch
/unix
/ttmmap.c
4045 for ac_func
in memcpy memmove
4047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_func" >&5
4049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char $ac_func(); below. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4065 /* The GNU C library defines this for functions which it implements
4066 to always fail with ENOSYS. Some functions are actually named
4067 something starting with __ and the normal name is an alias. */
4068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4076 if { (eval echo configure
:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4078 eval "ac_cv_func_$ac_func=yes"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.
$ac_ext >&5
4083 eval "ac_cv_func_$ac_func=no"
4088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4090 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4091 cat >> confdefs.h
<<EOF
4092 #define $ac_tr_func 1
4096 echo "$ac_t""no" 1>&6
4103 $srcdir/mkinstalldirs lib
/arch
/unix test
/arch
/unix
4106 cat > confcache
<<\EOF
4107 # This file is a shell script that caches the results of configure
4108 # tests run on this system so they can be shared between configure
4109 # scripts and configure runs. It is not useful on other systems.
4110 # If it contains results you don't want to keep, you may remove or edit it.
4112 # By default, configure uses ./config.cache as the cache file,
4113 # creating it if it does not exist already. You can give configure
4114 # the --cache-file=FILE option to use a different cache file; that is
4115 # what configure does when it calls configure scripts in
4116 # subdirectories, so they share the cache.
4117 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4118 # config.status only pays attention to the cache file if you give it the
4119 # --recheck option to rerun configure.
4122 # The following way of writing the cache mishandles newlines in values,
4123 # but we know of no workaround that is simple, portable, and efficient.
4124 # So, don't put newlines in cache variables' values.
4125 # Ultrix sh set writes to stderr and can't be redirected directly,
4126 # and sets the high bit in the cache file unless we assign to the vars.
4128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4130 # `set' does not quote correctly, so add quotes (double-quote substitution
4131 # turns \\\\ into \\, and sed turns \\ into \).
4133 -e "s/'/'\\\\''/g" \
4134 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4137 # `set' quotes correctly as required by POSIX, so do not add quotes.
4138 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4141 if cmp -s $cache_file confcache
; then
4144 if test -w $cache_file; then
4145 echo "updating cache $cache_file"
4146 cat confcache
> $cache_file
4148 echo "not updating unwritable cache $cache_file"
4153 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4155 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4156 # Let make expand exec_prefix.
4157 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4159 # Any assignment to VPATH causes Sun make to only execute
4160 # the first set of double-colon rules, so remove it if not needed.
4161 # If there is a colon in the path, we need to keep it.
4162 if test "x$srcdir" = x.
; then
4163 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4166 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4168 DEFS
=-DHAVE_CONFIG_H
4170 # Without the "./", some shells look in PATH for config.status.
4171 : ${CONFIG_STATUS=./config.status}
4173 echo creating
$CONFIG_STATUS
4174 rm -f $CONFIG_STATUS
4175 cat > $CONFIG_STATUS <<EOF
4177 # Generated automatically by configure.
4178 # Run this file to recreate the current configuration.
4179 # This directory was configured as follows,
4180 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4182 # $0 $ac_configure_args
4184 # Compiler output produced by configure, useful for debugging
4185 # configure, is in ./config.log if it exists.
4187 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4190 case "\$ac_option" in
4191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4192 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4193 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4194 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4195 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4197 -help | --help | --hel | --he | --h)
4198 echo "\$ac_cs_usage"; exit 0 ;;
4199 *) echo "\$ac_cs_usage"; exit 1 ;;
4203 ac_given_srcdir=$srcdir
4204 ac_given_INSTALL="$INSTALL"
4206 trap 'rm -fr `echo "Makefile
4208 lib/arch/unix/Makefile
4209 test/arch/unix/Makefile
4210 po/Makefile.in ft_conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4212 cat >> $CONFIG_STATUS <<EOF
4214 # Protect against being on the right side of a sed subst in config.status.
4215 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4216 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4220 s%@CFLAGS@%$CFLAGS%g
4221 s%@CPPFLAGS@%$CPPFLAGS%g
4222 s%@CXXFLAGS@%$CXXFLAGS%g
4223 s%@FFLAGS@%$FFLAGS%g
4225 s%@LDFLAGS@%$LDFLAGS%g
4227 s%@exec_prefix@%$exec_prefix%g
4228 s%@prefix@%$prefix%g
4229 s%@program_transform_name@%$program_transform_name%g
4230 s%@bindir@%$bindir%g
4231 s%@sbindir@%$sbindir%g
4232 s%@libexecdir@%$libexecdir%g
4233 s%@datadir@%$datadir%g
4234 s%@sysconfdir@%$sysconfdir%g
4235 s%@sharedstatedir@%$sharedstatedir%g
4236 s%@localstatedir@%$localstatedir%g
4237 s%@libdir@%$libdir%g
4238 s%@includedir@%$includedir%g
4239 s%@oldincludedir@%$oldincludedir%g
4240 s%@infodir@%$infodir%g
4241 s%@mandir@%$mandir%g
4243 s%@host_alias@%$host_alias%g
4244 s%@host_cpu@%$host_cpu%g
4245 s%@host_vendor@%$host_vendor%g
4246 s%@host_os@%$host_os%g
4248 s%@build_alias@%$build_alias%g
4249 s%@build_cpu@%$build_cpu%g
4250 s%@build_vendor@%$build_vendor%g
4251 s%@build_os@%$build_os%g
4252 s%@RANLIB@%$RANLIB%g
4257 s%@LIBTOOL@%$LIBTOOL%g
4258 s%@USE_NLS@%$USE_NLS%g
4259 s%@target@%$target%g
4260 s%@target_alias@%$target_alias%g
4261 s%@target_cpu@%$target_cpu%g
4262 s%@target_vendor@%$target_vendor%g
4263 s%@target_os@%$target_os%g
4265 s%@XX_CFLAGS@%$XX_CFLAGS%g
4266 s%@freetype_version@%$freetype_version%g
4267 s%@version_info@%$version_info%g
4268 s%@SET_MAKE@%$SET_MAKE%g
4269 s%@HAVE_LOCALE_H@%$HAVE_LOCALE_H%g
4270 s%@HAVE_LIBINTL_H@%$HAVE_LIBINTL_H%g
4271 s%@HAVE_LIBINTL@%$HAVE_LIBINTL%g
4272 s%@LOCALEDIR@%$LOCALEDIR%g
4273 s%@MSGFMT@%$MSGFMT%g
4274 s%@GMSGFMT@%$GMSGFMT%g
4275 s%@XGETTEXT@%$XGETTEXT%g
4276 s%@MSGMERGE@%$MSGMERGE%g
4277 s%@CATALOGS@%$CATALOGS%g
4278 s%@CATOBJEXT@%$CATOBJEXT%g
4279 s%@INSTOBJEXT@%$INSTOBJEXT%g
4280 s%@DATADIRNAME@%$DATADIRNAME%g
4283 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4284 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4285 s%@INSTALL_DATA@%$INSTALL_DATA%g
4286 s%@X_CFLAGS@%$X_CFLAGS%g
4287 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4288 s%@X_LIBS@%$X_LIBS%g
4289 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4290 s%@TT_FILE_COMPONENT@%$TT_FILE_COMPONENT%g
4295 cat >> $CONFIG_STATUS <<\EOF
4297 # Split the substitutions into bite-sized pieces for seds with
4298 # small command number limits, like on Digital OSF/1 and HP-UX.
4299 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4300 ac_file
=1 # Number of current file.
4301 ac_beg
=1 # First line for current file.
4302 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4305 while $ac_more_lines; do
4306 if test $ac_beg -gt 1; then
4307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4309 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4311 if test ! -s conftest.s
$ac_file; then
4313 rm -f conftest.s
$ac_file
4315 if test -z "$ac_sed_cmds"; then
4316 ac_sed_cmds
="sed -f conftest.s$ac_file"
4318 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4320 ac_file
=`expr $ac_file + 1`
4322 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4325 if test -z "$ac_sed_cmds"; then
4330 cat >> $CONFIG_STATUS <<EOF
4332 CONFIG_FILES=\${CONFIG_FILES-"Makefile
4334 lib/arch/unix/Makefile
4335 test/arch/unix/Makefile
4338 cat >> $CONFIG_STATUS <<\EOF
4339 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4340 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4342 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4343 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4344 *) ac_file_in
="${ac_file}.in" ;;
4347 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4349 # Remove last slash and all that follows it. Not all systems have dirname.
4350 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4352 # The file is in a subdirectory.
4353 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4354 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4355 # A "../" for each directory in $ac_dir_suffix.
4356 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4358 ac_dir_suffix
= ac_dots
=
4361 case "$ac_given_srcdir" in
4363 if test -z "$ac_dots"; then top_srcdir
=.
4364 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4365 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4367 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4368 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4371 case "$ac_given_INSTALL" in
4372 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4373 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4376 echo creating
"$ac_file"
4378 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4380 *Makefile
*) ac_comsub
="1i\\
4381 # $configure_input" ;;
4385 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4387 s%@configure_input@%$configure_input%g
4388 s%@srcdir@%$srcdir%g
4389 s%@top_srcdir@%$top_srcdir%g
4390 s%@INSTALL@%$INSTALL%g
4391 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4395 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4396 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4398 # ac_d sets the value in "#define NAME VALUE" lines.
4399 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4400 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4403 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4404 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4405 ac_uB
='\([ ]\)%\1#\2define\3'
4408 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4409 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4410 ac_eB
='$%\1#\2define\3'
4414 if test "${CONFIG_HEADERS+set}" != set; then
4416 cat >> $CONFIG_STATUS <<EOF
4417 CONFIG_HEADERS="ft_conf.h"
4419 cat >> $CONFIG_STATUS <<\EOF
4421 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4424 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4425 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4426 *) ac_file_in
="${ac_file}.in" ;;
4429 echo creating
$ac_file
4431 rm -f conftest.frag conftest.
in conftest.out
4432 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4433 cat $ac_file_inputs > conftest.
in
4437 # Transform confdefs.h into a sed script conftest.vals that substitutes
4438 # the proper values into config.h.in to produce config.h. And first:
4439 # Protect against being on the right side of a sed subst in config.status.
4440 # Protect against being in an unquoted here document in config.status.
4442 cat > conftest.hdr
<<\EOF
4445 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4449 sed -n -f conftest.hdr confdefs.h > conftest.vals
4452 # This sed command replaces #undef with comments. This is necessary, for
4453 # example, in the case of _POSIX_SOURCE, which is predefined and required
4454 # on some systems where configure will not decide to define it.
4455 cat >> conftest.vals <<\EOF
4456 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4459 # Break up conftest.vals because some shells have a limit on
4460 # the size of here documents, and old seds have small limits too.
4465 ac_lines=`grep -c . conftest.vals
`
4466 # grep -c gives empty output for an empty file on some AIX systems.
4467 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4468 # Write a limited-size here document to conftest.frag.
4469 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4470 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4472 sed -f conftest.frag conftest.in > conftest.out
4474 mv conftest.out conftest.in
4476 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4478 mv conftest.tail conftest.vals
4482 cat >> $CONFIG_STATUS <<\EOF
4483 rm -f conftest.frag conftest.h
4484 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4485 cat conftest.in >> conftest.h
4487 if cmp -s $ac_file conftest.h 2>/dev/null; then
4488 echo "$ac_file is unchanged"
4491 # Remove last slash and all that follows it. Not all systems have dirname.
4492 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4494 # The file is in a subdirectory.
4495 test ! -d "$ac_dir" && mkdir "$ac_dir"
4498 mv conftest.h $ac_file
4503 cat >> $CONFIG_STATUS <<EOF
4506 cat >> $CONFIG_STATUS <<\EOF
4507 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
4510 chmod +x $CONFIG_STATUS
4511 rm -fr confdefs* $ac_clean_files
4512 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1