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-strict compile with strict compiler options [default=no]"
17 --enable-64bit-libs build 64-bit libraries [default=yes]"
19 --enable-shared build shared libraries [default=yes]"
21 --enable-static build static libraries [default=no]"
23 --enable-debug build debug libraries [default=no]"
25 --enable-release build release libraries [default=yes]"
27 --enable-renaming add a version suffix to symbols [default=yes]"
29 --enable-tracing enable function and data tracing [default=yes]"
31 --enable-rpath use rpath when linking [default is only if necessary]"
33 --enable-threads build ICU with thread safety [default=yes]"
35 --with-iostream=version specify the version of iostream to use (none, old, std, auto) [default=auto]"
37 --enable-extras build ICU extras [default=yes]"
39 --enable-icuio build ICU's icuio library [default=yes]"
41 --enable-layout build ICU's layout library [default=yes]"
43 --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) [default=auto]"
47 --with-library-suffix=suffix tag a suffix to the library names [default=]"
49 --enable-tests build ICU tests [default=yes]"
51 --enable-samples build ICU samples [default=yes]
52 Additionally, the variable FORCE_LIBS may be set before calling configure. If set, it will REPLACE any automatic list of libraries."
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file
=.
/config.cache
67 program_transform_name
=s
,x
,x
,
75 bindir
='${exec_prefix}/bin'
76 sbindir
='${exec_prefix}/sbin'
77 libexecdir
='${exec_prefix}/libexec'
78 datadir
='${prefix}/share'
79 sysconfdir
='${prefix}/etc'
80 sharedstatedir
='${prefix}/com'
81 localstatedir
='${prefix}/var'
82 libdir
='${exec_prefix}/lib'
83 includedir
='${prefix}/include'
84 oldincludedir
='/usr/include'
85 infodir
='${prefix}/info'
86 mandir
='${prefix}/man'
88 # Initialize some other variables.
91 SHELL
=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
107 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 # Accept the important Cygnus configure options, so we can diagnose typos.
115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
118 bindir
="$ac_optarg" ;;
120 -build | --build | --buil | --bui | --bu)
122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
123 build
="$ac_optarg" ;;
125 -cache-file | --cache-file | --cache-fil | --cache-fi \
126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
127 ac_prev
=cache_file
;;
128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
130 cache_file
="$ac_optarg" ;;
132 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136 datadir
="$ac_optarg" ;;
138 -disable-* | --disable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* | --enable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
162 | --exec | --exe | --ex)
163 ac_prev
=exec_prefix
;;
164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
166 | --exec=* | --exe=* | --ex=*)
167 exec_prefix
="$ac_optarg" ;;
169 -gas | --gas | --ga | --g)
170 # Obsolete; use --with-gas.
173 -help | --help | --hel | --he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
228 -host | --host | --hos | --ho)
230 -host=* | --host=* | --hos=* | --ho=*)
233 -includedir | --includedir | --includedi | --included | --include \
234 | --includ | --inclu | --incl | --inc)
235 ac_prev
=includedir
;;
236 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
237 | --includ=* | --inclu=* | --incl=* | --inc=*)
238 includedir
="$ac_optarg" ;;
240 -infodir | --infodir | --infodi | --infod | --info | --inf)
242 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
243 infodir
="$ac_optarg" ;;
245 -libdir | --libdir | --libdi | --libd)
247 -libdir=* | --libdir=* | --libdi=* | --libd=*)
248 libdir
="$ac_optarg" ;;
250 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
251 | --libexe | --libex | --libe)
252 ac_prev
=libexecdir
;;
253 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
254 | --libexe=* | --libex=* | --libe=*)
255 libexecdir
="$ac_optarg" ;;
257 -localstatedir | --localstatedir | --localstatedi | --localstated \
258 | --localstate | --localstat | --localsta | --localst \
259 | --locals | --local | --loca | --loc | --lo)
260 ac_prev
=localstatedir
;;
261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
262 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
263 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
264 localstatedir
="$ac_optarg" ;;
266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
269 mandir
="$ac_optarg" ;;
272 # Obsolete; use --without-fp.
275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
285 | --oldin | --oldi | --old | --ol | --o)
286 ac_prev
=oldincludedir
;;
287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
290 oldincludedir
="$ac_optarg" ;;
292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
295 prefix
="$ac_optarg" ;;
297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
298 | --program-pre | --program-pr | --program-p)
299 ac_prev
=program_prefix
;;
300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
302 program_prefix
="$ac_optarg" ;;
304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
305 | --program-suf | --program-su | --program-s)
306 ac_prev
=program_suffix
;;
307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
309 program_suffix
="$ac_optarg" ;;
311 -program-transform-name | --program-transform-name \
312 | --program-transform-nam | --program-transform-na \
313 | --program-transform-n | --program-transform- \
314 | --program-transform | --program-transfor \
315 | --program-transfo | --program-transf \
316 | --program-trans | --program-tran \
317 | --progr-tra | --program-tr | --program-t)
318 ac_prev
=program_transform_name
;;
319 -program-transform-name=* | --program-transform-name=* \
320 | --program-transform-nam=* | --program-transform-na=* \
321 | --program-transform-n=* | --program-transform-=* \
322 | --program-transform=* | --program-transfor=* \
323 | --program-transfo=* | --program-transf=* \
324 | --program-trans=* | --program-tran=* \
325 | --progr-tra=* | --program-tr=* | --program-t=*)
326 program_transform_name
="$ac_optarg" ;;
328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
329 | -silent | --silent | --silen | --sile | --sil)
332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336 sbindir
="$ac_optarg" ;;
338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
340 | --sharedst | --shareds | --shared | --share | --shar \
342 ac_prev
=sharedstatedir
;;
343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347 sharedstatedir
="$ac_optarg" ;;
349 -site | --site | --sit)
351 -site=* | --site=* | --sit=*)
354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
357 srcdir
="$ac_optarg" ;;
359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
360 | --syscon | --sysco | --sysc | --sys | --sy)
361 ac_prev
=sysconfdir
;;
362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
364 sysconfdir
="$ac_optarg" ;;
366 -target | --target | --targe | --targ | --tar | --ta | --t)
368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
369 target
="$ac_optarg" ;;
371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
374 -version | --version | --versio | --versi | --vers)
375 echo "configure generated by autoconf version 2.13"
379 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* | --without-*)
392 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package
=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
401 # Obsolete; use --with-x.
404 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
405 | --x-incl | --x-inc | --x-in | --x-i)
406 ac_prev
=x_includes
;;
407 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
408 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
409 x_includes
="$ac_optarg" ;;
411 -x-libraries | --x-libraries | --x-librarie | --x-librari \
412 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
413 ac_prev
=x_libraries
;;
414 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
415 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
416 x_libraries
="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE
; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 | --no-cr | --no-c) ;;
468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest
* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
493 ac_unique_file
=common
/unicode
/utypes.h
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted
=yes
498 # Try the directory containing this script, then its parent.
500 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
503 if test ! -r $srcdir/$ac_unique_file; then
507 ac_srcdir_defaulted
=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE
; then
521 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file
in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
537 echo "creating cache $cache_file"
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp
='$CPP $CPPFLAGS'
544 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling
=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
559 ac_n
= ac_c
='\c' ac_t
=
568 echo $ac_n "checking for ICU version numbers""... $ac_c" 1>&6
569 echo "configure:570: checking for ICU version numbers" >&5
572 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
574 VERSION
=`geticuversion $srcdir/common/unicode/uversion.h`
575 if test x
"$VERSION" = x
; then
576 VERSION
=`geticuversion $srcdir/common/unicode/*.h`
577 if test x
"$VERSION" = x
; then
578 { echo "configure: error: Cannot determine ICU version number from header files" 1>&2; exit 1; }
581 LIB_VERSION
=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
582 LIB_VERSION_MAJOR
=`echo $LIB_VERSION | sed 's/\..*//'`
586 echo "$ac_t""release $VERSION, library $LIB_VERSION" 1>&6
588 UNICODE_VERSION
="4.0.1"
592 #AC_SUBST(CINTLTST_CPPFLAGS)
594 # Extract the first word of "gcc", so it can be a program name with args.
595 set dummy gcc
; ac_word
=$2
596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
597 echo "configure:598: checking for $ac_word" >&5
598 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 if test -n "$CC"; then
602 ac_cv_prog_CC
="$CC" # Let the user override the test.
604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
606 for ac_dir
in $ac_dummy; do
607 test -z "$ac_dir" && ac_dir
=.
608 if test -f $ac_dir/$ac_word; then
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
620 echo "$ac_t""no" 1>&6
623 if test -z "$CC"; then
624 # Extract the first word of "cc", so it can be a program name with args.
625 set dummy cc
; ac_word
=$2
626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:628: checking for $ac_word" >&5
628 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 if test -n "$CC"; then
632 ac_cv_prog_CC
="$CC" # Let the user override the test.
634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
637 for ac_dir
in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir
=.
639 if test -f $ac_dir/$ac_word; then
640 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
649 if test $ac_prog_rejected = yes; then
650 # We found a bogon in the path, so make sure we never use it.
651 set dummy
$ac_cv_prog_CC
653 if test $# -gt 0; then
654 # We chose a different compiler from the bogus one.
655 # However, it has the same basename, so the bogon will be chosen
656 # first if we set CC to just the basename; use the full file name.
658 set dummy
"$ac_dir/$ac_word" "$@"
666 if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
669 echo "$ac_t""no" 1>&6
672 if test -z "$CC"; then
675 # Extract the first word of "cl", so it can be a program name with args.
676 set dummy cl
; ac_word
=$2
677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
678 echo "configure:679: checking for $ac_word" >&5
679 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 if test -n "$CC"; then
683 ac_cv_prog_CC
="$CC" # Let the user override the test.
685 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
687 for ac_dir
in $ac_dummy; do
688 test -z "$ac_dir" && ac_dir
=.
689 if test -f $ac_dir/$ac_word; then
698 if test -n "$CC"; then
699 echo "$ac_t""$CC" 1>&6
701 echo "$ac_t""no" 1>&6
706 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
709 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
710 echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
714 ac_cpp
='$CPP $CPPFLAGS'
715 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
716 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
717 cross_compiling
=$ac_cv_prog_cc_cross
719 cat > conftest.
$ac_ext << EOF
721 #line 722 "configure"
722 #include "confdefs.h"
726 if { (eval echo configure
:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
727 ac_cv_prog_cc_works
=yes
728 # If we can't run a trivial program, we are probably using a cross compiler.
729 if (.
/conftest
; exit) 2>/dev
/null
; then
730 ac_cv_prog_cc_cross
=no
732 ac_cv_prog_cc_cross
=yes
735 echo "configure: failed program was:" >&5
736 cat conftest.
$ac_ext >&5
737 ac_cv_prog_cc_works
=no
741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
742 ac_cpp
='$CPP $CPPFLAGS'
743 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
744 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
745 cross_compiling
=$ac_cv_prog_cc_cross
747 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
748 if test $ac_cv_prog_cc_works = no
; then
749 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
753 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
754 cross_compiling
=$ac_cv_prog_cc_cross
756 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
757 echo "configure:758: checking whether we are using GNU C" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftest.c
<<EOF
766 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
773 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
775 if test $ac_cv_prog_gcc = yes; then
781 ac_test_CFLAGS
="${CFLAGS+set}"
782 ac_save_CFLAGS
="$CFLAGS"
784 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
785 echo "configure:786: checking whether ${CC-cc} accepts -g" >&5
786 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 echo 'void f(){}' > conftest.c
790 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
799 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
800 if test "$ac_test_CFLAGS" = set; then
801 CFLAGS
="$ac_save_CFLAGS"
802 elif test $ac_cv_prog_cc_g = yes; then
803 if test "$GCC" = yes; then
809 if test "$GCC" = yes; then
816 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
818 # Extract the first word of "$ac_prog", so it can be a program name with args.
819 set dummy
$ac_prog; ac_word
=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CXX"; then
826 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
830 for ac_dir
in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir
=.
832 if test -f $ac_dir/$ac_word; then
833 ac_cv_prog_CXX
="$ac_prog"
840 CXX
="$ac_cv_prog_CXX"
841 if test -n "$CXX"; then
842 echo "$ac_t""$CXX" 1>&6
844 echo "$ac_t""no" 1>&6
847 test -n "$CXX" && break
849 test -n "$CXX" || CXX
="gcc"
852 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
853 echo "configure:854: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
857 ac_cpp
='$CXXCPP $CPPFLAGS'
858 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
859 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
860 cross_compiling
=$ac_cv_prog_cxx_cross
862 cat > conftest.
$ac_ext << EOF
864 #line 865 "configure"
865 #include "confdefs.h"
867 int main(){return(0);}
869 if { (eval echo configure
:870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
870 ac_cv_prog_cxx_works
=yes
871 # If we can't run a trivial program, we are probably using a cross compiler.
872 if (.
/conftest
; exit) 2>/dev
/null
; then
873 ac_cv_prog_cxx_cross
=no
875 ac_cv_prog_cxx_cross
=yes
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
880 ac_cv_prog_cxx_works
=no
884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
885 ac_cpp
='$CPP $CPPFLAGS'
886 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
887 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
888 cross_compiling
=$ac_cv_prog_cc_cross
890 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
891 if test $ac_cv_prog_cxx_works = no
; then
892 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
894 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
895 echo "configure:896: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
896 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
897 cross_compiling
=$ac_cv_prog_cxx_cross
899 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
900 echo "configure:901: checking whether we are using GNU C++" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 cat > conftest.C
<<EOF
909 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
916 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
918 if test $ac_cv_prog_gxx = yes; then
924 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
925 ac_save_CXXFLAGS
="$CXXFLAGS"
927 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
928 echo "configure:929: checking whether ${CXX-g++} accepts -g" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 echo 'void f(){}' > conftest.cc
933 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
942 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
943 if test "$ac_test_CXXFLAGS" = set; then
944 CXXFLAGS
="$ac_save_CXXFLAGS"
945 elif test $ac_cv_prog_cxx_g = yes; then
946 if test "$GXX" = yes; then
952 if test "$GXX" = yes; then
960 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
961 if test -f $ac_dir/install-sh; then
963 ac_install_sh
="$ac_aux_dir/install-sh -c"
965 elif test -f $ac_dir/install.sh
; then
967 ac_install_sh
="$ac_aux_dir/install.sh -c"
971 if test -z "$ac_aux_dir"; then
972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
974 ac_config_guess
=$ac_aux_dir/config.guess
975 ac_config_sub
=$ac_aux_dir/config.sub
976 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
978 # Find a good install program. We prefer a C program (faster),
979 # so one script is as good as another. But avoid the broken or
980 # incompatible versions:
981 # SysV /etc/install, /usr/sbin/install
982 # SunOS /usr/etc/install
985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
988 # ./install, which can be erroneously created by make from ./install.sh.
989 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
990 echo "configure:991: checking for a BSD compatible install" >&5
991 if test -z "$INSTALL"; then
992 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
996 for ac_dir
in $PATH; do
997 # Account for people who put trailing slashes in PATH elements.
999 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1001 # OSF1 and SCO ODT 3.0 have their own names for install.
1002 # Don't use installbsd from OSF since it installs stuff as root
1004 for ac_prog
in ginstall scoinst
install; do
1005 if test -f $ac_dir/$ac_prog; then
1006 if test $ac_prog = install &&
1007 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1008 # AIX install. It has an incompatible calling convention.
1011 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1022 if test "${ac_cv_path_install+set}" = set; then
1023 INSTALL
="$ac_cv_path_install"
1025 # As a last resort, use the slow shell script. We don't cache a
1026 # path for INSTALL within a source directory, because that will
1027 # break other packages using the cache if that directory is
1028 # removed, or if the path is relative.
1029 INSTALL
="$ac_install_sh"
1032 echo "$ac_t""$INSTALL" 1>&6
1034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1035 # It thinks the first close brace ends the variable substitution.
1036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1040 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1043 # make sure install is relative to srcdir - if a script
1044 if test "$srcdir" = "."; then
1045 # If srcdir isn't just ., then (srcdir) is already prepended.
1046 if test "${ac_install_sh}" = "${INSTALL}"; then
1047 INSTALL
="\\\$(top_srcdir)/${ac_install_sh}"
1051 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
1052 # Extract the first word of "strip", so it can be a program name with args.
1053 set dummy strip
; ac_word
=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$STRIP"; then
1060 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_STRIP
="strip"
1072 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
1075 STRIP
="$ac_cv_prog_STRIP"
1076 if test -n "$STRIP"; then
1077 echo "$ac_t""$STRIP" 1>&6
1079 echo "$ac_t""no" 1>&6
1083 for ac_prog
in gmake gnumake
1085 # Extract the first word of "$ac_prog", so it can be a program name with args.
1086 set dummy
$ac_prog; ac_word
=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_path_U_MAKE'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1094 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
1097 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a dos path.
1100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1102 for ac_dir
in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir
=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_path_U_MAKE
="$ac_dir/$ac_word"
1113 U_MAKE
="$ac_cv_path_U_MAKE"
1114 if test -n "$U_MAKE"; then
1115 echo "$ac_t""$U_MAKE" 1>&6
1117 echo "$ac_t""no" 1>&6
1120 test -n "$U_MAKE" && break
1122 test -n "$U_MAKE" || U_MAKE
="make"
1126 # Extract the first word of "doxygen", so it can be a program name with args.
1127 set dummy doxygen
; ac_word
=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1135 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
1138 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a dos path.
1141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1142 ac_dummy
="$PATH:/usr/local/bin:/usr/bin"
1143 for ac_dir
in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir
=.
1145 if test -f $ac_dir/$ac_word; then
1146 ac_cv_path_DOXYGEN
="$ac_dir/$ac_word"
1154 DOXYGEN
="$ac_cv_path_DOXYGEN"
1155 if test -n "$DOXYGEN"; then
1156 echo "$ac_t""$DOXYGEN" 1>&6
1158 echo "$ac_t""no" 1>&6
1163 # Make sure we can run config.sub.
1164 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1165 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1168 echo $ac_n "checking host system type""... $ac_c" 1>&6
1169 echo "configure:1170: checking host system type" >&5
1172 case "$host_alias" in
1176 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1177 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1179 *) host_alias
=$nonopt ;;
1183 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1184 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1185 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1186 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1187 echo "$ac_t""$host" 1>&6
1189 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1190 echo "configure:1191: checking for Cygwin environment" >&5
1191 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1201 #define __CYGWIN__ __CYGWIN32__
1206 if { (eval echo configure
:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1219 echo "$ac_t""$ac_cv_cygwin" 1>&6
1221 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1222 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1223 echo "configure:1224: checking for mingw32 environment" >&5
1224 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 cat > conftest.
$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1235 if { (eval echo configure
:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1248 echo "$ac_t""$ac_cv_mingw32" 1>&6
1250 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1253 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1254 echo "configure:1255: checking for executable suffix" >&5
1255 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1262 echo 'int main () { return 0; }' > conftest.
$ac_ext
1264 if { (eval echo configure
:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1265 for file in conftest.
*; do
1267 *.c
| *.o
| *.obj
) ;;
1268 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1272 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1275 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1280 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1281 echo "$ac_t""${ac_cv_exeext}" 1>&6
1286 echo $ac_n "checking whether strict compiling is on""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether strict compiling is on" >&5
1288 # Check whether --enable-strict or --disable-strict was given.
1289 if test "${enable_strict+set}" = set; then
1290 enableval
="$enable_strict"
1292 if test "$enableval" = no
1294 ac_use_strict_options
=no
1296 ac_use_strict_options
=yes
1300 ac_use_strict_options
=no
1303 echo "$ac_t""$ac_use_strict_options" 1>&6
1305 if test "$ac_use_strict_options" = yes
1307 if test "$GCC" = yes
1309 CFLAGS
="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline -Wno-long-long"
1312 CFLAGS
="$CFLAGS -D__STDC__=0";;
1317 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
1319 CFLAGS
="$CFLAGS /W4"
1323 if test "$GXX" = yes
1325 CXXFLAGS
="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Winline -Wno-long-long"
1328 CXXFLAGS
="$CXXFLAGS -D__STDC__=0";;
1333 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
1335 CXXFLAGS
="$CXXFLAGS /W4"
1343 # Check whether --enable-64bit-libs or --disable-64bit-libs was given.
1344 if test "${enable_64bit_libs+set}" = set; then
1345 enableval
="$enable_64bit_libs"
1346 ENABLE_64BIT_LIBS
=${enableval}
1348 ENABLE_64BIT_LIBS
=yes
1352 echo $ac_n "checking for 64-bit executable support""... $ac_c" 1>&6
1353 echo "configure:1354: checking for 64-bit executable support" >&5
1354 if test "$ENABLE_64BIT_LIBS" != no
; then
1357 SPARCV9
=`isainfo -n 2>&1 | grep sparcv9`
1358 if test "$GCC" = yes; then
1359 # We could add a check for -m64 depending on the gcc version.
1360 ENABLE_64BIT_LIBS
=no
1362 SOL64
=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
1363 if test -z "$SOL64" && test -n "$SPARCV9"; then
1364 CFLAGS
="${CFLAGS} -xtarget=ultra -xarch=v9"
1365 CXXFLAGS
="${CXXFLAGS} -xtarget=ultra -xarch=v9"
1366 LDFLAGS
="${LDFLAGS} -xtarget=ultra -xarch=v9"
1367 ENABLE_64BIT_LIBS
=yes
1369 ENABLE_64BIT_LIBS
=no
1374 if test "$GCC" = yes; then
1375 # gcc compiler support
1376 if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then
1377 ENABLE_64BIT_LIBS
=yes
1379 ENABLE_64BIT_LIBS
=no
1382 # check for ecc/ecpc compiler support
1383 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
1384 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
1385 ENABLE_64BIT_LIBS
=yes
1387 ENABLE_64BIT_LIBS
=no
1391 ENABLE_64BIT_LIBS
=no
1396 if test "$GCC" = yes; then
1397 if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then
1398 ENABLE_64BIT_LIBS
=yes
1400 ENABLE_64BIT_LIBS
=no
1404 ENABLE_64BIT_LIBS
=no
1407 *-*-aix*|powerpc64
-*-linux*)
1408 if test "$ac_cv_prog_gcc" = no
; then
1409 # Note: Have not tested 64-bitness with gcc.
1410 # Maybe the flag "-maix64" could be used with gcc?
1411 OLD_CFLAGS
="${CFLAGS}"
1412 OLD_CXXFLAGS
="${CXXFLAGS}"
1413 OLD_LDFLAGS
="${LDFLAGS}"
1414 CFLAGS
="${CFLAGS} -q64"
1415 CXXFLAGS
="${CXXFLAGS} -q64"
1416 LDFLAGS
="${LDFLAGS} -q64"
1417 if test "$cross_compiling" = yes; then
1418 ENABLE_64BIT_LIBS
=no
1420 cat > conftest.
$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 int main(void) {return 0;}
1425 if { (eval echo configure
:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1427 ENABLE_64BIT_LIBS
=yes
1429 echo "configure: failed program was:" >&5
1430 cat conftest.
$ac_ext >&5
1432 ENABLE_64BIT_LIBS
=no
1437 if test "$ENABLE_64BIT_LIBS" = no
; then
1438 CFLAGS
="${OLD_CFLAGS}"
1439 CXXFLAGS
="${OLD_CXXFLAGS}"
1440 LDFLAGS
="${OLD_LDFLAGS}"
1444 ARFLAGS
="${ARFLAGS} -X64"
1451 OLD_CFLAGS
="${CFLAGS}"
1452 OLD_CXXFLAGS
="${CXXFLAGS}"
1453 CFLAGS
="${CFLAGS} +DD64"
1454 CXXFLAGS
="${CXXFLAGS} +DD64"
1455 if test "$cross_compiling" = yes; then
1456 ENABLE_64BIT_LIBS
=no
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 int main(void) {return 0;}
1463 if { (eval echo configure
:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1465 ENABLE_64BIT_LIBS
=yes
1467 echo "configure: failed program was:" >&5
1468 cat conftest.
$ac_ext >&5
1470 ENABLE_64BIT_LIBS
=no
1475 if test "$ENABLE_64BIT_LIBS" = no
; then
1476 CFLAGS
="${OLD_CFLAGS}"
1477 CXXFLAGS
="${OLD_CXXFLAGS}"
1478 CFLAGS
="${CFLAGS} +DA2.0W"
1479 CXXFLAGS
="${CXXFLAGS} +DA2.0W"
1480 if test "$cross_compiling" = yes; then
1481 ENABLE_64BIT_LIBS
=no
1483 cat > conftest.
$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 int main(void) {return 0;}
1488 if { (eval echo configure
:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1490 ENABLE_64BIT_LIBS
=yes
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1495 ENABLE_64BIT_LIBS
=no
1500 if test "$ENABLE_64BIT_LIBS" = no
; then
1501 CFLAGS
="${OLD_CFLAGS}"
1502 CXXFLAGS
="${OLD_CXXFLAGS}"
1507 ENABLE_64BIT_LIBS
=no
1511 echo "$ac_t""$ENABLE_64BIT_LIBS" 1>&6
1517 echo $ac_n "checking which Makefile fragment to use""... $ac_c" 1>&6
1518 echo "configure:1519: checking which Makefile fragment to use" >&5
1519 if eval "test \"`echo '$''{'icu_cv_host_frag'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1525 if test "$GCC" = yes; then
1526 icu_cv_host_frag
=mh
-solaris-gcc
1528 icu_cv_host_frag
=mh
-solaris
1531 if test "$GCC" = yes; then
1532 icu_cv_host_frag
=mh
-alpha-linux-gcc
1534 icu_cv_host_frag
=mh
-alpha-linux-cc
1537 if test "$GCC" = yes; then
1538 icu_cv_host_frag
=mh
-linux
1540 icu_cv_host_frag
=mh
-linux-va
1542 *-*-linux*) icu_cv_host_frag
=mh
-linux ;;
1544 if test "$GCC" = yes; then
1545 icu_cv_host_frag
=mh
-cygwin
1547 icu_cv_host_frag
=mh
-cygwin-msvc
1550 if test "$GCC" = yes; then
1551 icu_cv_host_frag
=mh
-mingw
1553 icu_cv_host_frag
=mh
-cygwin-msvc
1555 *-*-*bsd
*) icu_cv_host_frag
=mh
-bsd-gcc ;;
1557 if test "$GCC" = yes; then
1558 icu_cv_host_frag
=mh
-aix-gcc
1560 if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then
1561 icu_cv_host_frag
=mh
-aix
1563 icu_cv_host_frag
=mh
-aix-va
1567 if test "$GCC" = yes; then
1568 icu_cv_host_frag
=mh
-hpux-gcc
1571 *aCC
) icu_cv_host_frag
=mh
-hpux-acc ;;
1572 *CC
) icu_cv_host_frag
=mh
-hpux-cc ;;
1575 *-*ibm
-openedition*|*-*-os390*) icu_cv_host_frag
=mh
-os390 ;;
1576 *-*-os400*) icu_cv_host_frag
=mh
-os400 ;;
1577 *-apple-rhapsody*) icu_cv_host_frag
=mh
-darwin ;;
1578 *-apple-darwin*) icu_cv_host_frag
=mh
-darwin ;;
1579 *-*-beos) icu_cv_host_frag
=mh
-beos ;;
1580 *-*-irix*) icu_cv_host_frag
=mh
-irix ;;
1581 *-dec-osf*) icu_cv_host_frag
=mh
-alpha-osf ;;
1582 *-*-nto*) icu_cv_host_frag
=mh
-qnx ;;
1583 *-ncr-*) icu_cv_host_frag
=mh
-mpras ;;
1584 *-sequent-*) icu_cv_host_frag
=mh
-ptx ;;
1585 *) icu_cv_host_frag
=mh
-unknown ;;
1591 echo "$ac_t""$icu_cv_host_frag" 1>&6
1595 *-*-hpux*) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1596 echo "configure:1597: checking for floor in -lm" >&5
1597 ac_lib_var
=`echo m'_'floor | sed 'y%./+-%__p_%'`
1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 ac_save_LIBS
="$LIBS"
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* Override any gcc2 internal prototype to avoid an error. */
1607 /* We use char because int might match the return type of a gcc2
1608 builtin and then its argument prototype would still apply. */
1615 if { (eval echo configure
:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1617 eval "ac_cv_lib_$ac_lib_var=yes"
1619 echo "configure: failed program was:" >&5
1620 cat conftest.
$ac_ext >&5
1622 eval "ac_cv_lib_$ac_lib_var=no"
1625 LIBS
="$ac_save_LIBS"
1628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1632 echo "$ac_t""no" 1>&6
1636 *) echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
1637 echo "configure:1638: checking for floor in -lm" >&5
1638 ac_lib_var
=`echo m'_'floor | sed 'y%./+-%__p_%'`
1639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 ac_save_LIBS
="$LIBS"
1644 cat > conftest.
$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 /* Override any gcc2 internal prototype to avoid an error. */
1648 /* We use char because int might match the return type of a gcc2
1649 builtin and then its argument prototype would still apply. */
1656 if { (eval echo configure
:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1658 eval "ac_cv_lib_$ac_lib_var=yes"
1660 echo "configure: failed program was:" >&5
1661 cat conftest.
$ac_ext >&5
1663 eval "ac_cv_lib_$ac_lib_var=no"
1666 LIBS
="$ac_save_LIBS"
1669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1671 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1673 cat >> confdefs.h
<<EOF
1674 #define $ac_tr_lib 1
1680 echo "$ac_t""no" 1>&6
1687 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
1688 echo "configure:1689: checking whether to build shared libraries" >&5
1690 # Check whether --enable-shared or --disable-shared was given.
1691 if test "${enable_shared+set}" = set; then
1692 enableval
="$enable_shared"
1693 case "${enableval}" in
1694 yes|"") enabled
=yes; ENABLE_SHARED
=YES
;;
1699 enabled
=yes; ENABLE_SHARED
=YES
1703 echo "$ac_t""$enabled" 1>&6
1706 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether to build static libraries" >&5
1709 # Check whether --enable-static or --disable-static was given.
1710 if test "${enable_static+set}" = set; then
1711 enableval
="$enable_static"
1712 case "${enableval}" in
1713 yes|"") enabled
=yes; ENABLE_STATIC
=YES
;;
1719 echo "$ac_t""$enabled" 1>&6
1722 echo $ac_n "checking whether to build debug libraries""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether to build debug libraries" >&5
1726 # Check whether --enable-debug or --disable-debug was given.
1727 if test "${enable_debug+set}" = set; then
1728 enableval
="$enable_debug"
1729 case "${enableval}" in
1730 yes|"") enabled
=yes; ENABLE_DEBUG
=1 ;;
1735 echo "$ac_t""$enabled" 1>&6
1738 echo $ac_n "checking whether to build release libraries""... $ac_c" 1>&6
1739 echo "configure:1740: checking whether to build release libraries" >&5
1742 # Check whether --enable-release or --disable-release was given.
1743 if test "${enable_release+set}" = set; then
1744 enableval
="$enable_release"
1745 case "${enableval}" in
1746 no
) enabled
=no
; ENABLE_RELEASE
=0 ;;
1751 echo "$ac_t""$enabled" 1>&6
1754 # Extract the first word of "ranlib", so it can be a program name with args.
1755 set dummy ranlib
; ac_word
=$2
1756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_word" >&5
1758 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 if test -n "$RANLIB"; then
1762 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1766 for ac_dir
in $ac_dummy; do
1767 test -z "$ac_dir" && ac_dir
=.
1768 if test -f $ac_dir/$ac_word; then
1769 ac_cv_prog_RANLIB
="ranlib"
1774 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1777 RANLIB
="$ac_cv_prog_RANLIB"
1778 if test -n "$RANLIB"; then
1779 echo "$ac_t""$RANLIB" 1>&6
1781 echo "$ac_t""no" 1>&6
1784 # Extract the first word of "ar", so it can be a program name with args.
1785 set dummy
ar; ac_word
=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1793 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
1796 ac_cv_path_AR
="$AR" # Let the user override the test with a dos path.
1799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 ac_dummy
="$PATH:/bin:/usr/bin:/usr/ccs/bin"
1801 for ac_dir
in $ac_dummy; do
1802 test -z "$ac_dir" && ac_dir
=.
1803 if test -f $ac_dir/$ac_word; then
1804 ac_cv_path_AR
="$ac_dir/$ac_word"
1809 test -z "$ac_cv_path_AR" && ac_cv_path_AR
="echo archiver ar not found re-run configure ; false"
1814 if test -n "$AR"; then
1815 echo "$ac_t""$AR" 1>&6
1817 echo "$ac_t""no" 1>&6
1821 echo $ac_n "checking whether to enable renaming of symbols""... $ac_c" 1>&6
1822 echo "configure:1823: checking whether to enable renaming of symbols" >&5
1824 U_DISABLE_RENAMING
=0
1825 # Check whether --enable-renaming or --disable-renaming was given.
1826 if test "${enable_renaming+set}" = set; then
1827 enableval
="$enable_renaming"
1828 case "${enableval}" in
1829 yes|"") enabled
=yes ;;
1830 no
) enabled
=no
; U_DISABLE_RENAMING
=1 ;;
1835 echo "$ac_t""$enabled" 1>&6
1838 echo $ac_n "checking whether to enable function and data tracing""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether to enable function and data tracing" >&5
1842 # Check whether --enable-tracing or --disable-tracing was given.
1843 if test "${enable_tracing+set}" = set; then
1844 enableval
="$enable_tracing"
1845 case "${enableval}" in
1846 yes|"") enabled
=yes ;;
1847 no
) enabled
=no
; U_ENABLE_TRACING
=0 ;;
1852 echo "$ac_t""$enabled" 1>&6
1855 # Check whether --enable-rpath or --disable-rpath was given.
1856 if test "${enable_rpath+set}" = set; then
1857 enableval
="$enable_rpath"
1858 case "${enableval}" in
1859 yes|"") ENABLE_RPATH
=YES
;;
1871 echo $ac_n "checking for definition of U_INLINE for C""... $ac_c" 1>&6
1872 echo "configure:1873: checking for definition of U_INLINE for C" >&5
1873 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1877 for ac_kw
in inline __inline__ __inline
; do
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1883 return 0;} $ac_kw int foo() {
1886 if { (eval echo configure
:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 ac_cv_c_inline
=$ac_kw; break
1890 echo "configure: failed program was:" >&5
1891 cat conftest.
$ac_ext >&5
1898 echo "$ac_t""$ac_cv_c_inline" 1>&6
1899 case "$ac_cv_c_inline" in
1900 yes) U_INLINE
= "inline" ;;
1902 *) U_INLINE
=$ac_cv_c_inline ;;
1908 # Check whether --enable-threads or --disable-threads was given.
1909 if test "${enable_threads+set}" = set; then
1910 enableval
="$enable_threads"
1911 case "${enableval}" in
1912 yes) threads
=true
;;
1913 no
) threads
=false
;;
1914 *) { echo "configure: error: bad value ${enableval} for --enable-threads" 1>&2; exit 1; } ;;
1921 if test "$threads" = true
; then
1929 if test $threads = true
; then
1931 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
1932 echo "configure:1933: checking for pthread_attr_init in -lpthread" >&5
1933 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
1934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 ac_save_LIBS
="$LIBS"
1938 LIBS
="-lpthread $LIBS"
1939 cat > conftest.
$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 /* Override any gcc2 internal prototype to avoid an error. */
1943 /* We use char because int might match the return type of a gcc2
1944 builtin and then its argument prototype would still apply. */
1945 char pthread_attr_init();
1951 if { (eval echo configure
:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1953 eval "ac_cv_lib_$ac_lib_var=yes"
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 eval "ac_cv_lib_$ac_lib_var=no"
1961 LIBS
="$ac_save_LIBS"
1964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1966 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1968 cat >> confdefs.h
<<EOF
1969 #define $ac_tr_lib 1
1972 LIBS
="-lpthread $LIBS"
1975 echo "$ac_t""no" 1>&6
1978 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
1983 echo $ac_n "checking for library containing pthread_mutex_destroy""... $ac_c" 1>&6
1984 echo "configure:1985: checking for library containing pthread_mutex_destroy" >&5
1985 if eval "test \"`echo '$''{'ac_cv_search_pthread_mutex_destroy'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 ac_func_search_save_LIBS
="$LIBS"
1989 ac_cv_search_pthread_mutex_destroy
="no"
1990 for i
in pthread pthreads c_r
; do
1991 LIBS
="-l$i $ac_func_search_save_LIBS"
1992 cat > conftest.
$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 /* Override any gcc2 internal prototype to avoid an error. */
1996 /* We use char because int might match the return type of a gcc2
1997 builtin and then its argument prototype would still apply. */
1998 char pthread_mutex_destroy();
2001 pthread_mutex_destroy()
2004 if { (eval echo configure
:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2006 ac_cv_search_pthread_mutex_destroy
="-l$i"
2009 echo "configure: failed program was:" >&5
2010 cat conftest.
$ac_ext >&5
2014 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
2015 cat > conftest.
$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 /* Override any gcc2 internal prototype to avoid an error. */
2019 /* We use char because int might match the return type of a gcc2
2020 builtin and then its argument prototype would still apply. */
2021 char pthread_mutex_destroy();
2024 pthread_mutex_destroy()
2027 if { (eval echo configure
:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2029 ac_cv_search_pthread_mutex_destroy
="none required"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.
$ac_ext >&5
2036 LIBS
="$ac_func_search_save_LIBS"
2039 echo "$ac_t""$ac_cv_search_pthread_mutex_destroy" 1>&6
2040 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
2041 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS
="$ac_cv_search_pthread_mutex_destroy $LIBS"
2047 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
2050 echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
2051 echo "configure:2052: checking for pthread_mutex_init in -lpthread" >&5
2052 ac_lib_var
=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
2053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 ac_save_LIBS
="$LIBS"
2057 LIBS
="-lpthread $LIBS"
2058 cat > conftest.
$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2061 /* Override any gcc2 internal prototype to avoid an error. */
2062 /* We use char because int might match the return type of a gcc2
2063 builtin and then its argument prototype would still apply. */
2064 char pthread_mutex_init();
2067 pthread_mutex_init()
2070 if { (eval echo configure
:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2072 eval "ac_cv_lib_$ac_lib_var=yes"
2074 echo "configure: failed program was:" >&5
2075 cat conftest.
$ac_ext >&5
2077 eval "ac_cv_lib_$ac_lib_var=no"
2080 LIBS
="$ac_save_LIBS"
2083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2085 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2087 cat >> confdefs.h
<<EOF
2088 #define $ac_tr_lib 1
2091 LIBS
="-lpthread $LIBS"
2094 echo "$ac_t""no" 1>&6
2097 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
2102 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
2103 echo "configure:2104: checking for pthread_mutex_lock" >&5
2104 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* System header to define __stub macros and hopefully few prototypes,
2111 which can conflict with char pthread_mutex_lock(); below. */
2113 /* Override any gcc2 internal prototype to avoid an error. */
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2116 char pthread_mutex_lock();
2120 /* The GNU C library defines this for functions which it implements
2121 to always fail with ENOSYS. Some functions are actually named
2122 something starting with __ and the normal name is an alias. */
2123 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
2126 pthread_mutex_lock();
2131 if { (eval echo configure
:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2133 eval "ac_cv_func_pthread_mutex_lock=yes"
2135 echo "configure: failed program was:" >&5
2136 cat conftest.
$ac_ext >&5
2138 eval "ac_cv_func_pthread_mutex_lock=no"
2143 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2147 echo "$ac_t""no" 1>&6
2151 if test $ac_cv_func_pthread_mutex_lock = yes; then
2155 *-pc-cygwin*|*-pc-mingw*)
2156 if test "$ac_cv_prog_gcc" = no
; then
2160 case "${icu_cv_host_frag}" in
2162 OLD_CXXFLAGS
="${CXXFLAGS}"
2163 CXXFLAGS
="${CXXFLAGS} -mt"
2164 if test x
"`${CXX} ${CXXFLAGS} 2>&1`" != x
""; then
2165 CXXFLAGS
="${OLD_CXXFLAGS}"
2177 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
2178 # Do this check instead.
2180 echo $ac_n "checking for mmap""... $ac_c" 1>&6
2181 echo "configure:2182: checking for mmap" >&5
2182 if eval "test \"`echo '$''{'ac_cv_func_mmap_ok'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.
$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2190 #include <sys/mman.h>
2191 #include <sys/stat.h>
2195 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
2198 if { (eval echo configure
:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2200 ac_cv_func_mmap_ok
=yes
2202 echo "configure: failed program was:" >&5
2203 cat conftest.
$ac_ext >&5
2205 ac_cv_func_mmap_ok
=no
2210 echo "$ac_t""$ac_cv_func_mmap_ok" 1>&6
2211 if test $ac_cv_func_mmap_ok = yes
2219 i
*86-*-*bsd
*|i
*86-*-linux*|x86_64
-*-linux*|powerpc
*-*-linux*)
2220 if test "$GCC" = yes; then
2221 GENCCODE_ASSEMBLY
="-a gcc"
2227 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2228 echo "configure:2229: checking how to run the C preprocessor" >&5
2229 # On Suns, sometimes $CPP names a directory.
2230 if test -n "$CPP" && test -d "$CPP"; then
2233 if test -z "$CPP"; then
2234 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 # This must be in double quotes, not single quotes, because CPP may get
2238 # substituted into the Makefile and "${CC-cc}" will confuse make.
2240 # On the NeXT, cc -E runs the code through the compiler's parser,
2241 # not just through cpp.
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2248 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249 { (eval echo configure
:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251 if test -z "$ac_err"; then
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 CPP
="${CC-cc} -E -traditional-cpp"
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2265 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure
:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then
2272 echo "configure: failed program was:" >&5
2273 cat conftest.
$ac_ext >&5
2275 CPP
="${CC-cc} -nologo -E"
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure
:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2299 ac_cv_prog_CPP
="$CPP"
2301 CPP
="$ac_cv_prog_CPP"
2303 ac_cv_prog_CPP
="$CPP"
2305 echo "$ac_t""$CPP" 1>&6
2307 for ac_hdr
in inttypes.h
2309 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_hdr" >&5
2312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2320 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2321 { (eval echo configure
:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2322 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2323 if test -z "$ac_err"; then
2325 eval "ac_cv_header_$ac_safe=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.
$ac_ext >&5
2331 eval "ac_cv_header_$ac_safe=no"
2335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2336 echo "$ac_t""yes" 1>&6
2337 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2338 cat >> confdefs.h
<<EOF
2339 #define $ac_tr_hdr 1
2343 echo "$ac_t""no" 1>&6
2347 if test $ac_cv_header_inttypes_h = no
; then
2352 if test "$CC" = ccc
; then
2353 echo "$ac_t"""C compiler
set to CCC
${CC}" " 1>&6
2355 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
2361 # Check whether --with-iostream or --without-iostream was given.
2362 if test "${with_iostream+set}" = set; then
2363 withval
="$with_iostream"
2364 case "${withval}" in
2365 none
) streams
=none
;;
2366 old
) streams
=198506 ;;
2367 std
) streams
=199711 ;;
2369 *) { echo "configure: error: bad value ${withval} for --with-iostream" 1>&2; exit 1; } ;;
2377 if test x
$streams != xnone
2381 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2382 ac_cpp
='$CXXCPP $CPPFLAGS'
2383 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2384 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2385 cross_compiling
=$ac_cv_prog_cxx_cross
2387 OLD_CXXFLAGS
="${CXXFLAGS}"
2388 case "${icu_cv_host_frag}" in
2390 CXXFLAGS
="${CXXFLAGS} -AA"
2393 echo $ac_n "checking iostream usability""... $ac_c" 1>&6
2394 echo "configure:2395: checking iostream usability" >&5
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2403 if { (eval echo configure
:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2405 ac_cv_header_iostream
=yes
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 ac_cv_header_iostream
=no
2413 if test $icu_cv_host_frag = mh
-cygwin-msvc
2415 ac_cv_header_iostream
=yes
2417 echo "$ac_t""$ac_cv_header_iostream" 1>&6
2418 if test $ac_cv_header_iostream = yes
2420 U_IOSTREAM_SOURCE
=199711
2422 CXXFLAGS
="${OLD_CXXFLAGS}"
2423 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2424 echo "configure:2425: checking how to run the C++ preprocessor" >&5
2425 if test -z "$CXXCPP"; then
2426 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2431 ac_cpp
='$CXXCPP $CPPFLAGS'
2432 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2433 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2434 cross_compiling
=$ac_cv_prog_cxx_cross
2435 CXXCPP
="${CXX-g++} -E"
2436 cat > conftest.
$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2441 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2442 { (eval echo configure
:2443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2443 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2444 if test -z "$ac_err"; then
2448 echo "configure: failed program was:" >&5
2449 cat conftest.
$ac_ext >&5
2454 ac_cv_prog_CXXCPP
="$CXXCPP"
2456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2457 ac_cpp
='$CXXCPP $CPPFLAGS'
2458 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2459 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2460 cross_compiling
=$ac_cv_prog_cxx_cross
2463 CXXCPP
="$ac_cv_prog_CXXCPP"
2464 echo "$ac_t""$CXXCPP" 1>&6
2466 ac_safe
=`echo "iostream.h" | sed 'y%./+-%__p_%'`
2467 echo $ac_n "checking for iostream.h""... $ac_c" 1>&6
2468 echo "configure:2469: checking for iostream.h" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.
$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <iostream.h>
2477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure
:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 eval "ac_cv_header_$ac_safe=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2488 eval "ac_cv_header_$ac_safe=no"
2492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2493 echo "$ac_t""yes" 1>&6
2496 echo "$ac_t""no" 1>&6
2499 if test $ac_cv_header_iostream_h = yes; then
2500 echo $ac_n "checking whether ostream is really defined""... $ac_c" 1>&6
2501 echo "configure:2502: checking whether ostream is really defined" >&5
2502 if eval "test \"`echo '$''{'ac_cv_iostream_ok'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <iostream.h>
2510 ostream &testout = cout; testout << "test" << endl;
2513 if { (eval echo configure
:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2515 ac_cv_iostream_ok
=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2520 ac_cv_iostream_ok
=no
2525 echo "$ac_t""$ac_cv_iostream_ok" 1>&6
2526 if test $ac_cv_iostream_ok = yes
2528 U_IOSTREAM_SOURCE
=198506
2532 if test x
$streams != x
2534 if test $U_IOSTREAM_SOURCE -ge $streams
2536 U_IOSTREAM_SOURCE
=$streams
2537 case "${icu_cv_host_frag}" in
2539 if test $U_IOSTREAM_SOURCE -lt 199711; then
2540 CXXFLAGS
=${OLD_CXXFLAGS}
2545 { echo "configure: error: ${withval} iostream is not available" 1>&2; exit 1; }
2551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2552 ac_cpp
='$CPP $CPPFLAGS'
2553 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2554 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2555 cross_compiling
=$ac_cv_prog_cc_cross
2558 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2559 echo "configure:2560: checking whether byte ordering is bigendian" >&5
2560 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 ac_cv_c_bigendian
=unknown
2564 # See if sys/param.h defines the BYTE_ORDER macro.
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <sys/types.h>
2569 #include <sys/param.h>
2572 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2577 if { (eval echo configure
:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2579 # It does; now see whether it defined to BIG_ENDIAN or not.
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #include <sys/types.h>
2584 #include <sys/param.h>
2587 #if BYTE_ORDER != BIG_ENDIAN
2592 if { (eval echo configure
:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2594 ac_cv_c_bigendian
=yes
2596 echo "configure: failed program was:" >&5
2597 cat conftest.
$ac_ext >&5
2599 ac_cv_c_bigendian
=no
2603 echo "configure: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2607 if test $ac_cv_c_bigendian = unknown
; then
2608 if test "$cross_compiling" = yes; then
2609 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2611 cat > conftest.
$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2615 /* Are we little or big endian? From Harbison&Steele. */
2619 char c[sizeof (long)];
2622 exit (u.c[sizeof (long) - 1] == 1);
2625 if { (eval echo configure
:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2627 ac_cv_c_bigendian
=no
2629 echo "configure: failed program was:" >&5
2630 cat conftest.
$ac_ext >&5
2632 ac_cv_c_bigendian
=yes
2640 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2641 if test $ac_cv_c_bigendian = yes; then
2642 cat >> confdefs.h
<<\EOF
2643 #define WORDS_BIGENDIAN 1
2648 if test $ac_cv_c_bigendian = no
; then
2657 U_HAVE_NL_LANGINFO_CODESET
=0
2658 U_NL_LANGINFO_CODESET
=-1
2659 echo $ac_n "checking for nl_langinfo""... $ac_c" 1>&6
2660 echo "configure:2661: checking for nl_langinfo" >&5
2661 if eval "test \"`echo '$''{'ac_cv_func_nl_langinfo'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.
$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 /* System header to define __stub macros and hopefully few prototypes,
2668 which can conflict with char nl_langinfo(); below. */
2670 /* Override any gcc2 internal prototype to avoid an error. */
2671 /* We use char because int might match the return type of a gcc2
2672 builtin and then its argument prototype would still apply. */
2677 /* The GNU C library defines this for functions which it implements
2678 to always fail with ENOSYS. Some functions are actually named
2679 something starting with __ and the normal name is an alias. */
2680 #if defined (__stub_nl_langinfo) || defined (__stub___nl_langinfo)
2688 if { (eval echo configure
:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2690 eval "ac_cv_func_nl_langinfo=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2695 eval "ac_cv_func_nl_langinfo=no"
2700 if eval "test \"`echo '$ac_cv_func_'nl_langinfo`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 U_HAVE_NL_LANGINFO
=1
2704 echo "$ac_t""no" 1>&6
2705 U_HAVE_NL_LANGINFO
=0
2709 if test $U_HAVE_NL_LANGINFO -eq 1; then
2710 echo $ac_n "checking for nl_langinfo's argument to obtain the codeset""... $ac_c" 1>&6
2711 echo "configure:2712: checking for nl_langinfo's argument to obtain the codeset" >&5
2712 if eval "test \"`echo '$''{'ac_cv_nl_langinfo_codeset'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 ac_cv_nl_langinfo_codeset
="unknown"
2716 for a
in CODESET _NL_CTYPE_CODESET_NAME
; do
2717 cat > conftest.
$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 #include <langinfo.h>
2725 if { (eval echo configure
:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2727 ac_cv_nl_langinfo_codeset
="$a"; break
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2736 echo "$ac_t""$ac_cv_nl_langinfo_codeset" 1>&6
2737 if test x
$ac_cv_nl_langinfo_codeset != xunknown
2739 U_HAVE_NL_LANGINFO_CODESET
=1
2740 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
2747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2748 ac_cpp
='$CXXCPP $CPPFLAGS'
2749 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2750 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2751 cross_compiling
=$ac_cv_prog_cxx_cross
2753 echo $ac_n "checking for namespace support""... $ac_c" 1>&6
2754 echo "configure:2755: checking for namespace support" >&5
2755 if eval "test \"`echo '$''{'ac_cv_namespace_ok'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 cat > conftest.
$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 namespace x_version {void f(){}};
2762 namespace x = x_version;
2763 using namespace x_version;
2769 if { (eval echo configure
:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2771 ac_cv_namespace_ok
=yes
2773 echo "configure: failed program was:" >&5
2774 cat conftest.
$ac_ext >&5
2776 ac_cv_namespace_ok
=no
2781 echo "$ac_t""$ac_cv_namespace_ok" 1>&6
2783 if test $ac_cv_namespace_ok = no
2789 echo $ac_n "checking for properly overriding new and delete""... $ac_c" 1>&6
2790 echo "configure:2791: checking for properly overriding new and delete" >&5
2791 U_OVERRIDE_CXX_ALLOCATION
=0
2792 U_HAVE_PLACEMENT_NEW
=0
2793 if eval "test \"`echo '$''{'ac_cv_override_cxx_allocation_ok'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2802 void *operator new(size_t size) {return malloc(size);}
2803 void *operator new[](size_t size) {return malloc(size);}
2804 void operator delete(void *p) {free(p);}
2805 void operator delete[](void *p) {free(p);}
2812 if { (eval echo configure
:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2814 ac_cv_override_cxx_allocation_ok
=yes
2816 echo "configure: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2819 ac_cv_override_cxx_allocation_ok
=no
2824 echo "$ac_t""$ac_cv_override_cxx_allocation_ok" 1>&6
2825 if test $ac_cv_override_cxx_allocation_ok = yes
2827 U_OVERRIDE_CXX_ALLOCATION
=1
2828 echo $ac_n "checking for placement new and delete""... $ac_c" 1>&6
2829 echo "configure:2830: checking for placement new and delete" >&5
2830 if eval "test \"`echo '$''{'ac_cv_override_placement_new_ok'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2839 void *operator new(size_t size) {return malloc(size);}
2840 void *operator new[](size_t size) {return malloc(size);}
2841 void operator delete(void *p) {free(p);}
2842 void operator delete[](void *p) {free(p);}
2843 void * operator new(size_t, void *ptr) { return ptr; }
2844 void operator delete(void *, void *) {}
2851 if { (eval echo configure
:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2853 ac_cv_override_placement_new_ok
=yes
2855 echo "configure: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2858 ac_cv_override_placement_new_ok
=no
2863 echo "$ac_t""$ac_cv_override_placement_new_ok" 1>&6
2864 if test $ac_cv_override_placement_new_ok = yes
2866 U_HAVE_PLACEMENT_NEW
=1
2873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2874 ac_cpp
='$CPP $CPPFLAGS'
2875 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2876 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2877 cross_compiling
=$ac_cv_prog_cc_cross
2879 echo $ac_n "checking for popen""... $ac_c" 1>&6
2880 echo "configure:2881: checking for popen" >&5
2881 if eval "test \"`echo '$''{'ac_cv_func_popen'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2887 /* System header to define __stub macros and hopefully few prototypes,
2888 which can conflict with char popen(); below. */
2890 /* Override any gcc2 internal prototype to avoid an error. */
2891 /* We use char because int might match the return type of a gcc2
2892 builtin and then its argument prototype would still apply. */
2897 /* The GNU C library defines this for functions which it implements
2898 to always fail with ENOSYS. Some functions are actually named
2899 something starting with __ and the normal name is an alias. */
2900 #if defined (__stub_popen) || defined (__stub___popen)
2908 if { (eval echo configure
:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2910 eval "ac_cv_func_popen=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2915 eval "ac_cv_func_popen=no"
2920 if eval "test \"`echo '$ac_cv_func_'popen`\" = yes"; then
2921 echo "$ac_t""yes" 1>&6
2924 echo "$ac_t""no" 1>&6
2927 if test x
$ac_cv_func_popen = xyes
2935 echo $ac_n "checking for tzset""... $ac_c" 1>&6
2936 echo "configure:2937: checking for tzset" >&5
2937 if eval "test \"`echo '$''{'ac_cv_func_tzset'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.
$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 /* System header to define __stub macros and hopefully few prototypes,
2944 which can conflict with char tzset(); below. */
2946 /* Override any gcc2 internal prototype to avoid an error. */
2947 /* We use char because int might match the return type of a gcc2
2948 builtin and then its argument prototype would still apply. */
2953 /* The GNU C library defines this for functions which it implements
2954 to always fail with ENOSYS. Some functions are actually named
2955 something starting with __ and the normal name is an alias. */
2956 #if defined (__stub_tzset) || defined (__stub___tzset)
2964 if { (eval echo configure
:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2966 eval "ac_cv_func_tzset=yes"
2968 echo "configure: failed program was:" >&5
2969 cat conftest.
$ac_ext >&5
2971 eval "ac_cv_func_tzset=no"
2976 if eval "test \"`echo '$ac_cv_func_'tzset`\" = yes"; then
2977 echo "$ac_t""yes" 1>&6
2980 echo "$ac_t""no" 1>&6
2984 if test x
$ac_cv_func_tzset = xyes
2989 echo $ac_n "checking for _tzset""... $ac_c" 1>&6
2990 echo "configure:2991: checking for _tzset" >&5
2991 if eval "test \"`echo '$''{'ac_cv_func__tzset'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 cat > conftest.
$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 /* System header to define __stub macros and hopefully few prototypes,
2998 which can conflict with char _tzset(); below. */
3000 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3007 /* The GNU C library defines this for functions which it implements
3008 to always fail with ENOSYS. Some functions are actually named
3009 something starting with __ and the normal name is an alias. */
3010 #if defined (__stub__tzset) || defined (__stub____tzset)
3018 if { (eval echo configure
:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3020 eval "ac_cv_func__tzset=yes"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3025 eval "ac_cv_func__tzset=no"
3030 if eval "test \"`echo '$ac_cv_func_'_tzset`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3034 echo "$ac_t""no" 1>&6
3037 if test x
$ac_cv_func__tzset = xyes
3047 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3048 echo "configure:3049: checking for tzname" >&5
3049 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.
$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3060 #ifndef tzname /* For SGI. */
3061 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3067 if { (eval echo configure
:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3069 ac_cv_var_tzname
=yes
3071 echo "configure: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3079 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3080 if test $ac_cv_var_tzname = yes; then
3084 echo $ac_n "checking for _tzname""... $ac_c" 1>&6
3085 echo "configure:3086: checking for _tzname" >&5
3086 if eval "test \"`echo '$''{'ac_cv_var__tzname'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3094 extern char *_tzname[];
3100 if { (eval echo configure
:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3102 ac_cv_var__tzname
=yes
3104 echo "configure: failed program was:" >&5
3105 cat conftest.
$ac_ext >&5
3107 ac_cv_var__tzname
=no
3112 echo "$ac_t""$ac_cv_var__tzname" 1>&6
3113 if test $ac_cv_var__tzname = yes; then
3121 echo $ac_n "checking for timezone""... $ac_c" 1>&6
3122 echo "configure:3123: checking for timezone" >&5
3123 if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3141 if { (eval echo configure
:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3143 ac_cv_var_timezone
=yes
3145 echo "configure: failed program was:" >&5
3146 cat conftest.
$ac_ext >&5
3148 ac_cv_var_timezone
=no
3153 echo "$ac_t""$ac_cv_var_timezone" 1>&6
3155 if test $ac_cv_var_timezone = yes; then
3159 echo $ac_n "checking for __timezone""... $ac_c" 1>&6
3160 echo "configure:3161: checking for __timezone" >&5
3161 if eval "test \"`echo '$''{'ac_cv_var___timezone'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3173 if { (eval echo configure
:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3175 ac_cv_var___timezone
=yes
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3180 ac_cv_var___timezone
=no
3185 echo "$ac_t""$ac_cv_var___timezone" 1>&6
3186 if test $ac_cv_var___timezone = yes; then
3187 U_TIMEZONE
=__timezone
3190 echo $ac_n "checking for _timezone""... $ac_c" 1>&6
3191 echo "configure:3192: checking for _timezone" >&5
3192 if eval "test \"`echo '$''{'ac_cv_var__timezone'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3204 if { (eval echo configure
:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3206 ac_cv_var__timezone
=yes
3208 echo "configure: failed program was:" >&5
3209 cat conftest.
$ac_ext >&5
3211 ac_cv_var__timezone
=no
3216 echo "$ac_t""$ac_cv_var__timezone" 1>&6
3217 if test $ac_cv_var__timezone = yes; then
3218 U_TIMEZONE
=_timezone
3226 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3227 echo "configure:3228: checking for ANSI C header files" >&5
3228 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3239 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3240 { (eval echo configure
:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3241 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3242 if test -z "$ac_err"; then
3244 ac_cv_header_stdc
=yes
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3250 ac_cv_header_stdc
=no
3254 if test $ac_cv_header_stdc = yes; then
3255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3256 cat > conftest.
$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 egrep "memchr" >/dev
/null
2>&1; then
3266 ac_cv_header_stdc
=no
3272 if test $ac_cv_header_stdc = yes; then
3273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 egrep "free" >/dev
/null
2>&1; then
3284 ac_cv_header_stdc
=no
3290 if test $ac_cv_header_stdc = yes; then
3291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3292 if test "$cross_compiling" = yes; then
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3299 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3300 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3302 int main () { int i; for (i = 0; i < 256; i++)
3303 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3307 if { (eval echo configure
:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3314 ac_cv_header_stdc
=no
3322 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3323 if test $ac_cv_header_stdc = yes; then
3324 cat >> confdefs.h
<<\EOF
3325 #define STDC_HEADERS 1
3330 echo $ac_n "checking for int8_t""... $ac_c" 1>&6
3331 echo "configure:3332: checking for int8_t" >&5
3332 if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.
$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 #include <sys/types.h>
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3347 ac_cv_type_int8_t
=yes
3350 ac_cv_type_int8_t
=no
3355 echo "$ac_t""$ac_cv_type_int8_t" 1>&6
3356 if test $ac_cv_type_int8_t = no
; then
3357 cat >> confdefs.h
<<\EOF
3358 #define int8_t signed char
3363 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3364 echo "configure:3365: checking for uint8_t" >&5
3365 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.
$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 #include <sys/types.h>
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3380 ac_cv_type_uint8_t
=yes
3383 ac_cv_type_uint8_t
=no
3388 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3389 if test $ac_cv_type_uint8_t = no
; then
3390 cat >> confdefs.h
<<\EOF
3391 #define uint8_t unsigned char
3396 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
3397 echo "configure:3398: checking for int16_t" >&5
3398 if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.
$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <sys/types.h>
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3413 ac_cv_type_int16_t
=yes
3416 ac_cv_type_int16_t
=no
3421 echo "$ac_t""$ac_cv_type_int16_t" 1>&6
3422 if test $ac_cv_type_int16_t = no
; then
3423 cat >> confdefs.h
<<\EOF
3424 #define int16_t signed short
3429 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
3430 echo "configure:3431: checking for uint16_t" >&5
3431 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3434 cat > conftest.
$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 #include <sys/types.h>
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3446 ac_cv_type_uint16_t
=yes
3449 ac_cv_type_uint16_t
=no
3454 echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
3455 if test $ac_cv_type_uint16_t = no
; then
3456 cat >> confdefs.h
<<\EOF
3457 #define uint16_t unsigned short
3462 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
3463 echo "configure:3464: checking for int32_t" >&5
3464 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <sys/types.h>
3476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3479 ac_cv_type_int32_t
=yes
3482 ac_cv_type_int32_t
=no
3487 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
3488 if test $ac_cv_type_int32_t = no
; then
3489 cat >> confdefs.h
<<\EOF
3490 #define int32_t signed long
3495 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3496 echo "configure:3497: checking for uint32_t" >&5
3497 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.
$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 #include <sys/types.h>
3509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3512 ac_cv_type_uint32_t
=yes
3515 ac_cv_type_uint32_t
=no
3520 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3521 if test $ac_cv_type_uint32_t = no
; then
3522 cat >> confdefs.h
<<\EOF
3523 #define uint32_t unsigned long
3528 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
3529 echo "configure:3530: checking for int64_t" >&5
3530 if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.
$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <sys/types.h>
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3545 ac_cv_type_int64_t
=yes
3548 ac_cv_type_int64_t
=no
3553 echo "$ac_t""$ac_cv_type_int64_t" 1>&6
3554 if test $ac_cv_type_int64_t = no
; then
3555 cat >> confdefs.h
<<\EOF
3556 #define int64_t signed long long
3561 echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
3562 echo "configure:3563: checking for uint64_t" >&5
3563 if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/types.h>
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3578 ac_cv_type_uint64_t
=yes
3581 ac_cv_type_uint64_t
=no
3586 echo "$ac_t""$ac_cv_type_uint64_t" 1>&6
3587 if test $ac_cv_type_uint64_t = no
; then
3588 cat >> confdefs.h
<<\EOF
3589 #define uint64_t unsigned long long
3595 if test $ac_cv_type_int8_t = no
; then
3602 if test $ac_cv_type_uint8_t = no
; then
3609 if test $ac_cv_type_int16_t = no
; then
3616 if test $ac_cv_type_uint16_t = no
; then
3623 if test $ac_cv_type_int32_t = no
; then
3630 if test $ac_cv_type_uint32_t = no
; then
3637 if test $ac_cv_type_int64_t = no
; then
3644 if test $ac_cv_type_uint64_t = no
; then
3651 ac_safe
=`echo "wchar.h" | sed 'y%./+-%__p_%'`
3652 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
3653 echo "configure:3654: checking for wchar.h" >&5
3654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3662 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3663 { (eval echo configure
:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3664 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3665 if test -z "$ac_err"; then
3667 eval "ac_cv_header_$ac_safe=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3673 eval "ac_cv_header_$ac_safe=no"
3677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3681 echo "$ac_t""no" 1>&6
3684 if test "$ac_cv_header_wchar_h" = no
3689 cat >> confdefs.h
<<\EOF
3690 #define HAVE_WCHAR_H 1
3695 echo $ac_n "checking for library containing wcscpy""... $ac_c" 1>&6
3696 echo "configure:3697: checking for library containing wcscpy" >&5
3697 if eval "test \"`echo '$''{'ac_cv_search_wcscpy'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 ac_func_search_save_LIBS
="$LIBS"
3701 ac_cv_search_wcscpy
="no"
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3714 if { (eval echo configure
:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3716 ac_cv_search_wcscpy
="none required"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3722 test "$ac_cv_search_wcscpy" = "no" && for i
in wcs w
; do
3723 LIBS
="-l$i $ac_func_search_save_LIBS"
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3736 if { (eval echo configure
:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3738 ac_cv_search_wcscpy
="-l$i"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.
$ac_ext >&5
3746 LIBS
="$ac_func_search_save_LIBS"
3749 echo "$ac_t""$ac_cv_search_wcscpy" 1>&6
3750 if test "$ac_cv_search_wcscpy" != "no"; then
3751 test "$ac_cv_search_wcscpy" = "none required" || LIBS
="$ac_cv_search_wcscpy $LIBS"
3756 if test "$ac_cv_search_wcscpy" != no
; then
3765 ac_default_sizeof_wchar_t
=4
3766 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
3767 echo "configure:3768: checking size of wchar_t" >&5
3768 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 if test "$cross_compiling" = yes; then
3772 ac_cv_sizeof_wchar_t
=$ac_default_sizeof_wchar_t
3774 cat > conftest.
$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3787 FILE *f=fopen("conftestval", "w");
3789 fprintf(f, "%d\n", sizeof(wchar_t));
3793 if { (eval echo configure
:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3795 ac_cv_sizeof_wchar_t
=`cat conftestval`
3797 echo "configure: failed program was:" >&5
3798 cat conftest.
$ac_ext >&5
3800 ac_cv_sizeof_wchar_t
=0
3806 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
3807 cat >> confdefs.h
<<EOF
3808 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
3812 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
3813 if test $U_SIZEOF_WCHAR_T = 0; then
3814 if test $U_HAVE_WCHAR_H=1; then
3815 { echo "configure: error: There is wchar.h but the size of wchar_t is 0" 1>&2; exit 1; }
3826 # Check whether --enable-extras or --disable-extras was given.
3827 if test "${enable_extras+set}" = set; then
3828 enableval
="$enable_extras"
3829 case "${enableval}" in
3832 *) { echo "configure: error: bad value ${enableval} for --enable-extras" 1>&2; exit 1; } ;;
3839 if test "$extras" = true
; then
3844 # Check whether --enable-extras or --disable-extras was given.
3845 if test "${enable_extras+set}" = set; then
3846 enableval
="$enable_extras"
3847 case "${enableval}" in
3850 *) { echo "configure: error: bad value ${enableval} for --enable-icuio" 1>&2; exit 1; } ;;
3857 if test "$icuio" = true
; then
3863 # Check whether --enable-layout or --disable-layout was given.
3864 if test "${enable_layout+set}" = set; then
3865 enableval
="$enable_layout"
3866 case "${enableval}" in
3869 *) { echo "configure: error: bad value ${enableval} for --enable-layout" 1>&2; exit 1; } ;;
3876 if test "$layout" = true
; then
3882 # Check whether --with-data-packaging or --without-data-packaging was given.
3883 if test "${with_data_packaging+set}" = set; then
3884 withval
="$with_data_packaging"
3885 case "${withval}" in
3886 files
|archive
|library
) datapackaging
=$withval ;;
3887 auto
) datapackaging
=$withval ;;
3888 common
) datapackaging
=archive
;;
3889 dll
) datapackaging
=library
;;
3890 static
) datapackaging
=static
;;
3891 *) { echo "configure: error: bad value ${withval} for --with-data-packaging" 1>&2; exit 1; } ;;
3898 thesysconfdir
=`eval echo $sysconfdir`
3900 thedatadir
=`eval echo $datadir`
3902 thelibdir
=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $libdir`
3904 pkgicudatadir
=$datadir
3905 thepkgicudatadir
=$thedatadir
3910 # Check whether --enable-mapped or --disable-mapped was given.
3911 if test "${enable_mapped+set}" = set; then
3912 enableval
="$enable_mapped"
3913 case "${enableval}" in
3914 yes) mapped
=archive
;;
3915 no
) mapped
=library
;;
3916 *) { echo "configure: error: bad value ${enableval} for --enable-mapped; use --with-data-packaging now" 1>&2; exit 1; } ;;
3923 if test x
"$mapped" != x
; then
3926 echo "configure: warning: use --with-data-packaging=archive instead of --enable-mapped" 1>&2
3929 echo "configure: warning: use --with-data-packaging=library instead of --disable-mapped" 1>&2
3932 if test x
"$datapackaging" != x
-a x
"$mapped" != x
"$datapackaging"; then
3933 { echo "configure: error: conflicting values used for --with-data-packaging and deprecated --enable-mapped" 1>&2; exit 1; }
3935 datapackaging
=$mapped
3938 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
3939 datapackaging
=library
3942 case "$datapackaging" in
3944 DATA_PACKAGING_CPPFLAGS
=-DUDATA_FILES
3945 DATA_PACKAGING_MODE
=files
3948 DATA_PACKAGING_CPPFLAGS
=-DUDATA_MAP
3949 DATA_PACKAGING_MODE
=common
3952 DATA_PACKAGING_CPPFLAGS
=-DUDATA_DLL
3953 DATA_PACKAGING_MODE
=dll
3959 echo $ac_n "checking for a library suffix to use""... $ac_c" 1>&6
3960 echo "configure:3961: checking for a library suffix to use" >&5
3961 # Check whether --with-library-suffix or --without-library-suffix was given.
3962 if test "${with_library_suffix+set}" = set; then
3963 withval
="$with_library_suffix"
3964 ICULIBSUFFIX
="${withval}"
3970 if test "$msg" = ""; then
3973 echo "$ac_t""$msg" 1>&6
3975 if test "$ICULIBSUFFIX" != ""
3978 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
3985 # Check whether --enable-tests or --disable-tests was given.
3986 if test "${enable_tests+set}" = set; then
3987 enableval
="$enable_tests"
3988 case "${enableval}" in
3991 *) { echo "configure: error: bad value ${enableval} for --enable-tests" 1>&2; exit 1; } ;;
3998 if test "$tests" = true
; then
4004 # Check whether --enable-samples or --disable-samples was given.
4005 if test "${enable_samples+set}" = set; then
4006 enableval
="$enable_samples"
4007 case "${enableval}" in
4008 yes) samples
=true
;;
4009 no
) samples
=false
;;
4010 *) { echo "configure: error: bad value ${enableval} for --enable-samples" 1>&2; exit 1; } ;;
4017 if test "$samples" = true
; then
4023 ICUDATA_CHAR
=$U_ENDIAN_CHAR
4026 *-*-solaris*) platform
=U_SOLARIS
;;
4027 *-*-linux*) platform
=U_LINUX
;;
4028 *-*-*bsd
*) platform
=U_BSD
;;
4029 *-*-aix*) platform
=U_AIX
;;
4030 *-*-hpux*) platform
=U_HPUX
;;
4031 *-apple-darwin*|*-apple-rhapsody*) platform
=U_DARWIN
;;
4032 *-*-cygwin*|*-*-mingw*) platform
=U_CYGWIN
;;
4033 *-*ibm
-openedition*|*-*-os390*) platform
=OS390
4035 *-*-os400*) platform
=OS400
4037 *-*-nto*) platform
=U_QNX
;;
4038 *-dec-osf*) platform
=U_OSF
;;
4039 *-*-beos) platform
=U_BEOS
;;
4040 *-*-irix*) platform
=U_IRIX
;;
4041 *-ncr-*) platform
=U_MPRAS
;;
4042 *-sequent-*) platform
=PTX
;;
4043 *) platform
=U_UNKNOWN_PLATFORM
;;
4047 platform_make_fragment_name
="$icu_cv_host_frag"
4048 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
4053 *-*-solaris*) ld_rpath_suf
=":" ;;
4054 *-*-linux*) ld_rpath_suf
=" " ;;
4055 *-*-*bsd
*) ld_rpath_suf
=" " ;;
4056 *-*-aix*) ld_rpath_suf
="" ;;
4057 *-*-hpux*) ld_rpath_suf
=":" ;;
4058 *-*ibm
-openedition*|*-*-os390*) ld_rpath_suf
="" ;;
4059 *-*-os400*) ld_rpath_suf
=" " ;;
4060 *-sequent-*) ld_rpath_suf
="" ;;
4061 *-*-irix*) ld_rpath_suf
=" " ;;
4062 *) ld_rpath_suf
="" ;;
4068 if test "${icu_cv_host_frag}" = "mh-hpux-cc"; then
4069 for file in samples
/date
/date \
4070 samples
/cal
/cal test
/cintltst
/cintltst \
4071 tools
/makeconv
/makeconv tools
/genrb
/genrb \
4072 tools
/genrb
/derb tools
/genccode
/genccode \
4073 tools
/gencmn
/gencmn tools
/gencmn
/decmn \
4074 tools
/gencnval
/gencnval tools
/gennorm
/gennorm \
4075 tools
/gennames
/gennames tools
/gentest
/gentest \
4076 tools
/pkgdata
/pkgdata tools
/genprops
/genprops \
4077 tools
/gencase
/gencase \
4078 tools
/gensprep
/gensprep
4080 if test -f $file.c
; then
4081 mv $file.c
$file.cpp
4083 echo "# $file.c does not exist or is already renamed [warning]"
4090 if test "${FORCE_LIBS}" != ""; then
4091 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
4096 if test "${AIX_SHLIB}" != ""; then
4097 echo " *** setting AIX_SHLIB (AIX only) to ${AIX_SHLIB}]" 1>&6
4099 AIX_SHLIB
=makeC
++SharedLib_r
4106 if test $ICU_USE_THREADS -ne 0
4108 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
4109 CFLAGS
="$CFLAGS \$(THREADSCFLAGS)"
4110 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS)"
4114 cat > confcache
<<\EOF
4115 # This file is a shell script that caches the results of configure
4116 # tests run on this system so they can be shared between configure
4117 # scripts and configure runs. It is not useful on other systems.
4118 # If it contains results you don't want to keep, you may remove or edit it.
4120 # By default, configure uses ./config.cache as the cache file,
4121 # creating it if it does not exist already. You can give configure
4122 # the --cache-file=FILE option to use a different cache file; that is
4123 # what configure does when it calls configure scripts in
4124 # subdirectories, so they share the cache.
4125 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4126 # config.status only pays attention to the cache file if you give it the
4127 # --recheck option to rerun configure.
4130 # The following way of writing the cache mishandles newlines in values,
4131 # but we know of no workaround that is simple, portable, and efficient.
4132 # So, don't put newlines in cache variables' values.
4133 # Ultrix sh set writes to stderr and can't be redirected directly,
4134 # and sets the high bit in the cache file unless we assign to the vars.
4136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4138 # `set' does not quote correctly, so add quotes (double-quote substitution
4139 # turns \\\\ into \\, and sed turns \\ into \).
4141 -e "s/'/'\\\\''/g" \
4142 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4145 # `set' quotes correctly as required by POSIX, so do not add quotes.
4146 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4149 if cmp -s $cache_file confcache
; then
4152 if test -w $cache_file; then
4153 echo "updating cache $cache_file"
4154 cat confcache
> $cache_file
4156 echo "not updating unwritable cache $cache_file"
4161 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4163 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4164 # Let make expand exec_prefix.
4165 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4167 # Any assignment to VPATH causes Sun make to only execute
4168 # the first set of double-colon rules, so remove it if not needed.
4169 # If there is a colon in the path, we need to keep it.
4170 if test "x$srcdir" = x.
; then
4171 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4174 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4176 DEFS
=-DHAVE_CONFIG_H
4178 # Without the "./", some shells look in PATH for config.status.
4179 : ${CONFIG_STATUS=./config.status}
4181 echo creating
$CONFIG_STATUS
4182 rm -f $CONFIG_STATUS
4183 cat > $CONFIG_STATUS <<EOF
4185 # Generated automatically by configure.
4186 # Run this file to recreate the current configuration.
4187 # This directory was configured as follows,
4188 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4190 # $0 $ac_configure_args
4192 # Compiler output produced by configure, useful for debugging
4193 # configure, is in ./config.log if it exists.
4195 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4198 case "\$ac_option" in
4199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4200 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4201 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4202 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4203 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4205 -help | --help | --hel | --he | --h)
4206 echo "\$ac_cs_usage"; exit 0 ;;
4207 *) echo "\$ac_cs_usage"; exit 1 ;;
4211 ac_given_srcdir=$srcdir
4212 ac_given_INSTALL="$INSTALL"
4214 trap 'rm -fr `echo "icudefs.mk \
4217 config/Makefile.inc \
4226 extra/uconv/Makefile extra/scrptrun/Makefile \
4227 tools/Makefile tools/ctestfw/Makefile \
4228 tools/makeconv/Makefile \
4229 tools/genrb/Makefile \
4230 tools/genuca/Makefile \
4231 tools/genccode/Makefile \
4232 tools/gencmn/Makefile \
4233 tools/gencnval/Makefile \
4234 tools/gennames/Makefile \
4235 tools/gentest/Makefile \
4236 tools/gennorm/Makefile \
4237 tools/genprops/Makefile \
4238 tools/gencase/Makefile \
4239 tools/genpname/Makefile \
4240 tools/genbrk/Makefile \
4241 tools/gensprep/Makefile \
4242 tools/icuswap/Makefile \
4243 tools/pkgdata/Makefile \
4244 tools/toolutil/Makefile \
4245 tools/dumpce/Makefile \
4247 test/testdata/Makefile \
4248 test/testdata/pkgdata.inc \
4249 test/hdrtst/Makefile \
4250 test/intltest/Makefile \
4251 test/cintltst/Makefile \
4252 test/iotest/Makefile \
4253 test/thaitest/Makefile \
4254 test/testmap/Makefile \
4255 test/letest/Makefile \
4256 test/threadtest/Makefile \
4257 samples/Makefile samples/date/Makefile \
4258 samples/cal/Makefile samples/layout/Makefile \
4259 common/unicode/platform.h common/icucfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4261 cat >> $CONFIG_STATUS <<EOF
4263 # Protect against being on the right side of a sed subst in config.status.
4264 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4265 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4269 s%@CFLAGS@%$CFLAGS%g
4270 s%@CPPFLAGS@%$CPPFLAGS%g
4271 s%@CXXFLAGS@%$CXXFLAGS%g
4272 s%@FFLAGS@%$FFLAGS%g
4274 s%@LDFLAGS@%$LDFLAGS%g
4276 s%@exec_prefix@%$exec_prefix%g
4277 s%@prefix@%$prefix%g
4278 s%@program_transform_name@%$program_transform_name%g
4279 s%@bindir@%$bindir%g
4280 s%@sbindir@%$sbindir%g
4281 s%@libexecdir@%$libexecdir%g
4282 s%@datadir@%$datadir%g
4283 s%@sysconfdir@%$sysconfdir%g
4284 s%@sharedstatedir@%$sharedstatedir%g
4285 s%@localstatedir@%$localstatedir%g
4286 s%@libdir@%$libdir%g
4287 s%@includedir@%$includedir%g
4288 s%@oldincludedir@%$oldincludedir%g
4289 s%@infodir@%$infodir%g
4290 s%@mandir@%$mandir%g
4291 s%@PACKAGE@%$PACKAGE%g
4292 s%@VERSION@%$VERSION%g
4293 s%@LIB_VERSION@%$LIB_VERSION%g
4294 s%@LIB_VERSION_MAJOR@%$LIB_VERSION_MAJOR%g
4295 s%@UNICODE_VERSION@%$UNICODE_VERSION%g
4298 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4299 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4300 s%@INSTALL_DATA@%$INSTALL_DATA%g
4302 s%@U_MAKE@%$U_MAKE%g
4303 s%@DOXYGEN@%$DOXYGEN%g
4305 s%@host_alias@%$host_alias%g
4306 s%@host_cpu@%$host_cpu%g
4307 s%@host_vendor@%$host_vendor%g
4308 s%@host_os@%$host_os%g
4309 s%@EXEEXT@%$EXEEXT%g
4310 s%@ARFLAGS@%$ARFLAGS%g
4311 s%@COMPILE_LINK_ENVVAR@%$COMPILE_LINK_ENVVAR%g
4313 s%@ENABLE_SHARED@%$ENABLE_SHARED%g
4314 s%@ENABLE_STATIC@%$ENABLE_STATIC%g
4315 s%@ENABLE_DEBUG@%$ENABLE_DEBUG%g
4316 s%@ENABLE_RELEASE@%$ENABLE_RELEASE%g
4317 s%@RANLIB@%$RANLIB%g
4319 s%@U_DISABLE_RENAMING@%$U_DISABLE_RENAMING%g
4320 s%@U_ENABLE_TRACING@%$U_ENABLE_TRACING%g
4321 s%@ENABLE_RPATH@%$ENABLE_RPATH%g
4322 s%@U_INLINE@%$U_INLINE%g
4323 s%@THREADS_TRUE@%$THREADS_TRUE%g
4324 s%@ICU_USE_THREADS@%$ICU_USE_THREADS%g
4325 s%@HAVE_MMAP@%$HAVE_MMAP%g
4326 s%@GENCCODE_ASSEMBLY@%$GENCCODE_ASSEMBLY%g
4328 s%@U_HAVE_INTTYPES_H@%$U_HAVE_INTTYPES_H%g
4329 s%@CXXCPP@%$CXXCPP%g
4330 s%@U_IOSTREAM_SOURCE@%$U_IOSTREAM_SOURCE%g
4331 s%@U_IS_BIG_ENDIAN@%$U_IS_BIG_ENDIAN%g
4332 s%@U_HAVE_NL_LANGINFO@%$U_HAVE_NL_LANGINFO%g
4333 s%@U_HAVE_NL_LANGINFO_CODESET@%$U_HAVE_NL_LANGINFO_CODESET%g
4334 s%@U_NL_LANGINFO_CODESET@%$U_NL_LANGINFO_CODESET%g
4335 s%@U_HAVE_NAMESPACE@%$U_HAVE_NAMESPACE%g
4336 s%@U_OVERRIDE_CXX_ALLOCATION@%$U_OVERRIDE_CXX_ALLOCATION%g
4337 s%@U_HAVE_PLACEMENT_NEW@%$U_HAVE_PLACEMENT_NEW%g
4338 s%@U_HAVE_POPEN@%$U_HAVE_POPEN%g
4339 s%@U_HAVE_TZSET@%$U_HAVE_TZSET%g
4340 s%@U_TZSET@%$U_TZSET%g
4341 s%@U_HAVE_TZNAME@%$U_HAVE_TZNAME%g
4342 s%@U_TZNAME@%$U_TZNAME%g
4343 s%@U_HAVE_TIMEZONE@%$U_HAVE_TIMEZONE%g
4344 s%@U_TIMEZONE@%$U_TIMEZONE%g
4345 s%@HAVE_INT8_T@%$HAVE_INT8_T%g
4346 s%@HAVE_UINT8_T@%$HAVE_UINT8_T%g
4347 s%@HAVE_INT16_T@%$HAVE_INT16_T%g
4348 s%@HAVE_UINT16_T@%$HAVE_UINT16_T%g
4349 s%@HAVE_INT32_T@%$HAVE_INT32_T%g
4350 s%@HAVE_UINT32_T@%$HAVE_UINT32_T%g
4351 s%@HAVE_INT64_T@%$HAVE_INT64_T%g
4352 s%@HAVE_UINT64_T@%$HAVE_UINT64_T%g
4353 s%@U_HAVE_WCHAR_H@%$U_HAVE_WCHAR_H%g
4354 s%@U_HAVE_WCSCPY@%$U_HAVE_WCSCPY%g
4355 s%@U_SIZEOF_WCHAR_T@%$U_SIZEOF_WCHAR_T%g
4356 s%@EXTRAS_TRUE@%$EXTRAS_TRUE%g
4357 s%@ICUIO_TRUE@%$ICUIO_TRUE%g
4358 s%@LAYOUT_TRUE@%$LAYOUT_TRUE%g
4359 s%@thesysconfdir@%$thesysconfdir%g
4360 s%@thedatadir@%$thedatadir%g
4361 s%@thelibdir@%$thelibdir%g
4362 s%@pkgicudatadir@%$pkgicudatadir%g
4363 s%@thepkgicudatadir@%$thepkgicudatadir%g
4364 s%@DATA_PACKAGING_CPPFLAGS@%$DATA_PACKAGING_CPPFLAGS%g
4365 s%@DATA_PACKAGING_MODE@%$DATA_PACKAGING_MODE%g
4366 s%@ICULIBSUFFIX@%$ICULIBSUFFIX%g
4367 s%@U_HAVE_LIB_SUFFIX@%$U_HAVE_LIB_SUFFIX%g
4368 s%@ICULIBSUFFIXCNAME@%$ICULIBSUFFIXCNAME%g
4369 s%@TESTS_TRUE@%$TESTS_TRUE%g
4370 s%@SAMPLES_TRUE@%$SAMPLES_TRUE%g
4371 s%@ICUDATA_CHAR@%$ICUDATA_CHAR%g
4372 s%@platform@%$platform%g
4373 s%@platform_make_fragment_name@%$platform_make_fragment_name%g
4374 s%@platform_make_fragment@%$platform_make_fragment%g
4375 s%@ld_rpath_suf@%$ld_rpath_suf%g
4376 s%@AIX_SHLIB@%$AIX_SHLIB%g
4381 cat >> $CONFIG_STATUS <<\EOF
4383 # Split the substitutions into bite-sized pieces for seds with
4384 # small command number limits, like on Digital OSF/1 and HP-UX.
4385 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4386 ac_file
=1 # Number of current file.
4387 ac_beg
=1 # First line for current file.
4388 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4391 while $ac_more_lines; do
4392 if test $ac_beg -gt 1; then
4393 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4395 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4397 if test ! -s conftest.s
$ac_file; then
4399 rm -f conftest.s
$ac_file
4401 if test -z "$ac_sed_cmds"; then
4402 ac_sed_cmds
="sed -f conftest.s$ac_file"
4404 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4406 ac_file
=`expr $ac_file + 1`
4408 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4411 if test -z "$ac_sed_cmds"; then
4416 cat >> $CONFIG_STATUS <<EOF
4418 CONFIG_FILES=\${CONFIG_FILES-"icudefs.mk \
4421 config/Makefile.inc \
4430 extra/uconv/Makefile extra/scrptrun/Makefile \
4431 tools/Makefile tools/ctestfw/Makefile \
4432 tools/makeconv/Makefile \
4433 tools/genrb/Makefile \
4434 tools/genuca/Makefile \
4435 tools/genccode/Makefile \
4436 tools/gencmn/Makefile \
4437 tools/gencnval/Makefile \
4438 tools/gennames/Makefile \
4439 tools/gentest/Makefile \
4440 tools/gennorm/Makefile \
4441 tools/genprops/Makefile \
4442 tools/gencase/Makefile \
4443 tools/genpname/Makefile \
4444 tools/genbrk/Makefile \
4445 tools/gensprep/Makefile \
4446 tools/icuswap/Makefile \
4447 tools/pkgdata/Makefile \
4448 tools/toolutil/Makefile \
4449 tools/dumpce/Makefile \
4451 test/testdata/Makefile \
4452 test/testdata/pkgdata.inc \
4453 test/hdrtst/Makefile \
4454 test/intltest/Makefile \
4455 test/cintltst/Makefile \
4456 test/iotest/Makefile \
4457 test/thaitest/Makefile \
4458 test/testmap/Makefile \
4459 test/letest/Makefile \
4460 test/threadtest/Makefile \
4461 samples/Makefile samples/date/Makefile \
4462 samples/cal/Makefile samples/layout/Makefile \
4463 common/unicode/platform.h"}
4465 cat >> $CONFIG_STATUS <<\EOF
4466 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4469 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4470 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4471 *) ac_file_in
="${ac_file}.in" ;;
4474 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4476 # Remove last slash and all that follows it. Not all systems have dirname.
4477 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4478 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4479 # The file is in a subdirectory.
4480 test ! -d "$ac_dir" && mkdir "$ac_dir"
4481 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4482 # A "../" for each directory in $ac_dir_suffix.
4483 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4485 ac_dir_suffix
= ac_dots
=
4488 case "$ac_given_srcdir" in
4490 if test -z "$ac_dots"; then top_srcdir
=.
4491 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4492 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4494 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4495 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4498 case "$ac_given_INSTALL" in
4499 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4500 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4503 echo creating
"$ac_file"
4505 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4507 *Makefile
*) ac_comsub
="1i\\
4508 # $configure_input" ;;
4512 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4514 s%@configure_input@%$configure_input%g
4515 s%@srcdir@%$srcdir%g
4516 s%@top_srcdir@%$top_srcdir%g
4517 s%@INSTALL@%$INSTALL%g
4518 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4525 # ac_d sets the value in "#define NAME VALUE" lines.
4526 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4527 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4530 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4531 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4532 ac_uB
='\([ ]\)%\1#\2define\3'
4535 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4536 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4537 ac_eB
='$%\1#\2define\3'
4541 if test "${CONFIG_HEADERS+set}" != set; then
4543 cat >> $CONFIG_STATUS <<EOF
4544 CONFIG_HEADERS="common/icucfg.h"
4546 cat >> $CONFIG_STATUS <<\EOF
4548 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4551 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4552 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4553 *) ac_file_in
="${ac_file}.in" ;;
4556 echo creating
$ac_file
4558 rm -f conftest.frag conftest.
in conftest.out
4559 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4560 cat $ac_file_inputs > conftest.
in
4564 # Transform confdefs.h into a sed script conftest.vals that substitutes
4565 # the proper values into config.h.in to produce config.h. And first:
4566 # Protect against being on the right side of a sed subst in config.status.
4567 # Protect against being in an unquoted here document in config.status.
4569 cat > conftest.hdr
<<\EOF
4572 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4576 sed -n -f conftest.hdr confdefs.h > conftest.vals
4579 # This sed command replaces #undef with comments. This is necessary, for
4580 # example, in the case of _POSIX_SOURCE, which is predefined and required
4581 # on some systems where configure will not decide to define it.
4582 cat >> conftest.vals <<\EOF
4583 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4586 # Break up conftest.vals because some shells have a limit on
4587 # the size of here documents, and old seds have small limits too.
4592 ac_lines=`grep -c . conftest.vals
`
4593 # grep -c gives empty output for an empty file on some AIX systems.
4594 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4595 # Write a limited-size here document to conftest.frag.
4596 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4597 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4599 sed -f conftest.frag conftest.in > conftest.out
4601 mv conftest.out conftest.in
4603 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4605 mv conftest.tail conftest.vals
4609 cat >> $CONFIG_STATUS <<\EOF
4610 rm -f conftest.frag conftest.h
4611 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4612 cat conftest.in >> conftest.h
4614 if cmp -s $ac_file conftest.h 2>/dev/null; then
4615 echo "$ac_file is unchanged"
4618 # Remove last slash and all that follows it. Not all systems have dirname.
4619 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4620 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4621 # The file is in a subdirectory.
4622 test ! -d "$ac_dir" && mkdir "$ac_dir"
4625 mv conftest.h $ac_file
4630 cat >> $CONFIG_STATUS <<EOF
4633 cat >> $CONFIG_STATUS <<\EOF
4637 chmod +x $CONFIG_STATUS
4638 rm -fr confdefs* $ac_clean_files
4639 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4642 if test $ICU_USE_THREADS = 0; then
4643 echo " *** Note: configuring the ICU without pthread support or testing. If this isn't what you want, then run configure with --enable-threads=yes or check the messages above to see why we couldn't find pthread_create()" 1>&6
4646 echo "You must use $U_MAKE to build ICU."