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 --with-android-ndk=DIR
16 location where the Android NDK can be found"
18 --with-android-toolchain=DIR
19 location of the Android toolchain"
21 --with-android-version=VER
22 Android platform version, default 5 for arm, 9 for x86/mips"
24 --with-android-platform=DIR
25 location of platform dir"
27 --with-gonk=DIR location of gonk dir"
29 --with-dist-prefix=DIST_PREFIX
30 place build files in DIST_PREFIX [dist]"
32 --with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]"
34 --with-dist-includedir=DIR
35 build include files in DIR [DIST_PREFIX/include/nspr]"
37 --with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]"
39 --with-mozilla Compile NSPR with Mozilla support"
41 --enable-optimize[=OPT] Enable code optimizations (ie. -O2) "
43 --enable-debug[=DBG] Enable debugging (using compiler flags DBG)"
45 --enable-debug-symbols[=DBG] Enable debugging symbols
46 (using compiler flags DBG)"
48 --enable-win32-target=\$t
49 Specify win32 flavor. (WIN95 or WINNT)"
51 --enable-symbian-target=\$t
52 Specify symbian flavor. (WINSCW or GCCE)"
54 --enable-debug-rtl Use the MSVC debug runtime library"
56 --enable-n32 Enable n32 ABI support (IRIX only)"
58 --enable-64bit Enable 64-bit support (on certain platforms)"
60 --enable-mdupdate Enable use of certain compilers' mdupdate feature"
62 --enable-cplus Enable some c++ api routines"
64 --with-arm-kuser Use kuser helpers (Linux/ARM only)
65 (Requires kernel 2.6.13 or later)"
67 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)"
69 --enable-macos-target=VER
70 Set the minimum MacOS version needed at runtime
71 [10.2 for ppc, 10.4 for x86]"
73 --disable-os2-high-mem Disable high-memory support on OS/2"
77 --with-thumb[[=yes|no|toolchain-default]]
78 Use Thumb instruction set (-mthumb)"
80 --with-thumb-interwork[[=yes|no|toolchain-default]]
81 Use Thumb/ARM instuctions interwork (-mthumb-interwork)"
83 --with-arch=[[type|toolchain-default]]
84 Use specific CPU features (-march=type)"
86 --with-fpu=[[type|toolchain-default]]
87 Use specific FPU type (-mfpu=type)"
89 --with-float-abi=[[type|toolchain-default]]
90 Use specific arm float ABI (-mfloat-abi=type)"
92 --with-soft-float[[=yes|no|toolchain-default]]
93 Use soft float library (-msoft-float)"
95 --with-symbian-sdk=SYMBIAN_SDK_DIR
96 The path to the Symbian SDK"
98 --with-ccache[=path/to/ccache]
99 Enable compiling with ccache"
101 --enable-strip Enable stripping of shared libs and programs"
103 --with-pthreads Use system pthreads library as thread subsystem"
105 --enable-user-pthreads Build using userland pthreads"
107 --enable-nspr-threads Build using classic nspr threads"
109 --with-bthreads Use system bthreads library as thread subsystem
112 --enable-ipv6 Compile ipv6 support"
114 --enable-wrap-malloc Wrap malloc calls (gnu linker only)"
116 --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library"
118 # Initialize some variables set by options.
119 # The variables have the same names as the options, with
120 # dashes changed to underlines.
122 cache_file
=.
/config.cache
131 program_transform_name
=s
,x
,x
,
139 bindir
='${exec_prefix}/bin'
140 sbindir
='${exec_prefix}/sbin'
141 libexecdir
='${exec_prefix}/libexec'
142 datadir
='${prefix}/share'
143 sysconfdir
='${prefix}/etc'
144 sharedstatedir
='${prefix}/com'
145 localstatedir
='${prefix}/var'
146 libdir
='${exec_prefix}/lib'
147 includedir
='${prefix}/include'
148 oldincludedir
='/usr/include'
149 infodir
='${prefix}/info'
150 mandir
='${prefix}/man'
152 # Initialize some other variables.
155 SHELL
=${CONFIG_SHELL-/bin/sh}
156 # Maximum number of lines to put in a shell here document.
163 # If the previous option needs an argument, assign it.
164 if test -n "$ac_prev"; then
165 eval "$ac_prev=\$ac_option"
171 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
175 # Accept the important Cygnus configure options, so we can diagnose typos.
179 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
181 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
182 bindir
="$ac_optarg" ;;
184 -build |
--build |
--buil |
--bui |
--bu)
186 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
187 build
="$ac_optarg" ;;
189 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
190 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
191 ac_prev
=cache_file
;;
192 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
193 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
194 cache_file
="$ac_optarg" ;;
196 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
198 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
200 datadir
="$ac_optarg" ;;
202 -disable-* |
--disable-*)
203 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}=no" ;;
211 -enable-* |
--enable-*)
212 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
213 # Reject names that are not valid shell variable names.
214 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
217 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}='$ac_optarg'" ;;
224 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
225 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
226 |
--exec |
--exe |
--ex)
227 ac_prev
=exec_prefix
;;
228 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
229 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
230 |
--exec=* |
--exe=* |
--ex=*)
231 exec_prefix
="$ac_optarg" ;;
233 -gas |
--gas |
--ga |
--g)
234 # Obsolete; use --with-gas.
237 -help |
--help |
--hel |
--he)
238 # Omit some internal or obsolete options to make the list less imposing.
239 # This message is too long to be a string in the A/UX 3.1 sh.
241 Usage: configure [options] [host]
242 Options: [defaults in brackets after descriptions]
244 --cache-file=FILE cache test results in FILE
245 --help print this message
246 --no-create do not create output files
247 --quiet, --silent do not print \`checking...' messages
248 --version print the version of autoconf that created configure
249 Directory and file names:
250 --prefix=PREFIX install architecture-independent files in PREFIX
252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
254 --bindir=DIR user executables in DIR [EPREFIX/bin]
255 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
256 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
257 --datadir=DIR read-only architecture-independent data in DIR
259 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
260 --sharedstatedir=DIR modifiable architecture-independent data in DIR
262 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
263 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
264 --includedir=DIR C header files in DIR [PREFIX/include]
265 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
266 --infodir=DIR info documentation in DIR [PREFIX/info]
267 --mandir=DIR man documentation in DIR [PREFIX/man]
268 --srcdir=DIR find the sources in DIR [configure dir or ..]
269 --program-prefix=PREFIX prepend PREFIX to installed program names
270 --program-suffix=SUFFIX append SUFFIX to installed program names
271 --program-transform-name=PROGRAM
272 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
279 Features and packages:
280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
282 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
283 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
284 --x-includes=DIR X include files are in DIR
285 --x-libraries=DIR X library files are in DIR
287 if test -n "$ac_help"; then
288 echo "--enable and --with options recognized:$ac_help"
292 -host |
--host |
--hos |
--ho)
294 -host=* |
--host=* |
--hos=* |
--ho=*)
297 -includedir |
--includedir |
--includedi |
--included |
--include \
298 |
--includ |
--inclu |
--incl |
--inc)
299 ac_prev
=includedir
;;
300 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
301 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
302 includedir
="$ac_optarg" ;;
304 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
306 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
307 infodir
="$ac_optarg" ;;
309 -libdir |
--libdir |
--libdi |
--libd)
311 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
312 libdir
="$ac_optarg" ;;
314 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
315 |
--libexe |
--libex |
--libe)
316 ac_prev
=libexecdir
;;
317 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
318 |
--libexe=* |
--libex=* |
--libe=*)
319 libexecdir
="$ac_optarg" ;;
321 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
322 |
--localstate |
--localstat |
--localsta |
--localst \
323 |
--locals |
--local |
--loca |
--loc |
--lo)
324 ac_prev
=localstatedir
;;
325 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
326 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
327 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
328 localstatedir
="$ac_optarg" ;;
330 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
332 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
333 mandir
="$ac_optarg" ;;
336 # Obsolete; use --without-fp.
339 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
343 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
344 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
347 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
348 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
349 |
--oldin |
--oldi |
--old |
--ol |
--o)
350 ac_prev
=oldincludedir
;;
351 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
352 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
353 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
354 oldincludedir
="$ac_optarg" ;;
356 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
358 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
359 prefix
="$ac_optarg" ;;
361 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
362 |
--program-pre |
--program-pr |
--program-p)
363 ac_prev
=program_prefix
;;
364 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
365 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
366 program_prefix
="$ac_optarg" ;;
368 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
369 |
--program-suf |
--program-su |
--program-s)
370 ac_prev
=program_suffix
;;
371 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
372 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
373 program_suffix
="$ac_optarg" ;;
375 -program-transform-name |
--program-transform-name \
376 |
--program-transform-nam |
--program-transform-na \
377 |
--program-transform-n |
--program-transform- \
378 |
--program-transform |
--program-transfor \
379 |
--program-transfo |
--program-transf \
380 |
--program-trans |
--program-tran \
381 |
--progr-tra |
--program-tr |
--program-t)
382 ac_prev
=program_transform_name
;;
383 -program-transform-name=* |
--program-transform-name=* \
384 |
--program-transform-nam=* |
--program-transform-na=* \
385 |
--program-transform-n=* |
--program-transform-=* \
386 |
--program-transform=* |
--program-transfor=* \
387 |
--program-transfo=* |
--program-transf=* \
388 |
--program-trans=* |
--program-tran=* \
389 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
390 program_transform_name
="$ac_optarg" ;;
392 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
393 |
-silent |
--silent |
--silen |
--sile |
--sil)
396 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
398 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
400 sbindir
="$ac_optarg" ;;
402 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
403 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
404 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
406 ac_prev
=sharedstatedir
;;
407 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
408 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
409 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
411 sharedstatedir
="$ac_optarg" ;;
413 -site |
--site |
--sit)
415 -site=* |
--site=* |
--sit=*)
418 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
420 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
421 srcdir
="$ac_optarg" ;;
423 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
424 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
425 ac_prev
=sysconfdir
;;
426 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
427 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
428 sysconfdir
="$ac_optarg" ;;
430 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
432 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
433 target
="$ac_optarg" ;;
435 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
438 -version |
--version |
--versio |
--versi |
--vers)
439 echo "configure generated by autoconf version 2.13"
443 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package
=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}='$ac_optarg'" ;;
455 -without-* |
--without-*)
456 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package
=`echo $ac_package| sed 's/-/_/g'`
462 eval "with_${ac_package}=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
469 |
--x-incl |
--x-inc |
--x-in |
--x-i)
470 ac_prev
=x_includes
;;
471 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
472 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
473 x_includes
="$ac_optarg" ;;
475 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
476 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
477 ac_prev
=x_libraries
;;
478 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
479 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
480 x_libraries
="$ac_optarg" ;;
482 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
486 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
487 echo "configure: warning: $ac_option: invalid host type" 1>&2
489 if test "x$nonopt" != xNONE
; then
490 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
498 if test -n "$ac_prev"; then
499 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
504 # File descriptor usage:
507 # 2 errors and warnings
508 # 3 some systems may open it to /dev/tty
509 # 4 used on the Kubota Titan
510 # 6 checking for... messages and results
511 # 5 compiler messages saved in config.log
512 if test "$silent" = yes; then
520 This file contains any messages produced by compilers while
521 running configure, to aid debugging if configure makes a mistake.
524 # Strip out --no-create and --no-recursion so they do not pile up.
525 # Also quote any args containing shell metacharacters.
530 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
531 |
--no-cr |
--no-c) ;;
532 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
533 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
534 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
535 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
536 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
541 # Only set these to C if already set. These must not be set unconditionally
542 # because not all systems understand e.g. LANG=C (notably SCO).
543 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
544 # Non-C LC_CTYPE values break the ctype check.
545 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
546 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
547 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
548 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
551 rm -rf conftest
* confdefs.h
552 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
555 # A filename unique to this package, relative to the directory that
556 # configure is in, which we can look for to find out if srcdir is correct.
557 ac_unique_file
=config
/libc_r.h
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted
=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted
=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
577 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
580 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
582 # Prefer explicitly selected file to automatically selected ones.
583 if test -z "$CONFIG_SITE"; then
584 if test "x$prefix" != xNONE
; then
585 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
587 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
590 for ac_site_file
in $CONFIG_SITE; do
591 if test -r "$ac_site_file"; then
592 echo "loading site script $ac_site_file"
597 if test -r "$cache_file"; then
598 echo "loading cache $cache_file"
601 echo "creating cache $cache_file"
606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
607 ac_cpp
='$CPP $CPPFLAGS'
608 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
609 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
610 cross_compiling
=$ac_cv_prog_cc_cross
614 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
615 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
616 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
623 ac_n
= ac_c
='\c' ac_t
=
629 for ac_dir
in ${srcdir}/build
/autoconf
$srcdir/${srcdir}/build
/autoconf
; do
630 if test -f $ac_dir/install-sh
; then
632 ac_install_sh
="$ac_aux_dir/install-sh -c"
634 elif test -f $ac_dir/install.sh
; then
636 ac_install_sh
="$ac_aux_dir/install.sh -c"
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
648 # Do some error checking and defaulting for the host and target type.
650 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
653 # 1. You are not allowed to specify --host, --target, and nonopt at the
655 # 2. Host defaults to nonopt.
656 # 3. If nonopt is not specified, then host defaults to the current host,
657 # as determined by config.guess.
658 # 4. Target and build default to nonopt.
659 # 5. If nonopt is not specified, then target and build default to host.
661 # The aliases save the names the user supplied, while $host etc.
662 # will get canonicalized.
663 case $host---$target---$nonopt in
664 NONE---*---* | *---NONE---* | *---*---NONE) ;;
665 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
669 # Make sure we can run config.sub.
670 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
671 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
674 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
675 echo "configure
:676: checking
host system
type" >&5
678 case "$host_alias" in
682 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
683 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
685 *) host_alias=$nonopt ;;
689 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
690 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
693 echo "$ac_t""$host" 1>&6
695 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
696 echo "configure
:697: checking target system
type" >&5
699 case "$target_alias" in
702 NONE) target_alias=$host_alias ;;
703 *) target_alias=$nonopt ;;
707 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
708 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
711 echo "$ac_t""$target" 1>&6
713 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
714 echo "configure
:715: checking build system
type" >&5
717 case "$build_alias" in
720 NONE) build_alias=$host_alias ;;
721 *) build_alias=$nonopt ;;
725 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
726 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$build" 1>&6
731 test "$host_alias" != "$target_alias" &&
732 test "$program_prefix$program_suffix$program_transform_name" = \
734 program_prefix=${target_alias}-
750 _MACOSX_DEPLOYMENT_TARGET=
755 OBJDIR='$(OBJDIR_NAME)'
758 NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
759 NOSUCHFILE=/no-such-file
760 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
761 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
766 MOZ_OS2_HIGH_MEMORY=1
772 RESOLVE_LINK_SYMBOLS=
775 CXXFLAGS="${CXXFLAGS=}"
776 LDFLAGS="${LDFLAGS=}"
777 DLLFLAGS="${DLLFLAGS=}"
778 HOST_CFLAGS="${HOST_CFLAGS=}"
779 HOST_LDFLAGS="${HOST_LDFLAGS=}"
783 # Check to see if we are really running in a msvc environemnt
787 # Extract the first word of "$ac_prog", so it can be a program name with args.
788 set dummy $ac_prog; ac_word=$2
789 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
790 echo "configure
:791: checking
for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached
) $ac_c" 1>&6
794 if test -n "$CC"; then
795 ac_cv_prog_CC="$CC" # Let the user override the test.
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
799 for ac_dir in $ac_dummy; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
802 ac_cv_prog_CC="$ac_prog"
810 if test -n "$CC"; then
811 echo "$ac_t""$CC" 1>&6
813 echo "$ac_t""no
" 1>&6
816 test -n "$CC" && break
819 if test "$CC" = "cl
"; then
820 echo 'main() { return 0; }' > dummy.c
821 ${CC} -o dummy dummy.c >/dev/null 2>&1
826 echo "configure
: warning
: $
(CC
) test failed. Using normal feature tests
" 1>&2
828 rm -f dummy dummy.o dummy.obj dummy.exe dummy.c
839 if test -n "$_WIN32_MSVC"; then
841 SKIP_COMPILER_CHECKS=1
842 SKIP_LIBRARY_CHECKS=1
846 # Check whether --with-android-ndk or --without-android-ndk was given.
847 if test "${with_android_ndk+set}" = set; then
848 withval="$with_android_ndk"
853 # Check whether --with-android-toolchain or --without-android-toolchain was given.
854 if test "${with_android_toolchain+set}" = set; then
855 withval="$with_android_toolchain"
856 android_toolchain=$withval
860 case "$target_cpu" in
869 # Check whether --with-android-version or --without-android-version was given.
870 if test "${with_android_version+set}" = set; then
871 withval="$with_android_version"
872 android_version=$withval
876 # Check whether --with-android-platform or --without-android-platform was given.
877 if test "${with_android_platform+set}" = set; then
878 withval="$with_android_platform"
879 android_platform=$withval
884 arm-linux*-android*|*-linuxandroid*)
885 android_tool_prefix="arm-linux-androideabi
"
888 android_tool_prefix="i686-linux-android
"
891 android_tool_prefix="mipsel-linux-android
"
894 android_tool_prefix="$target_os"
899 # Check whether --with-gonk or --without-gonk was given.
900 if test "${with_gonk+set}" = set; then
906 if test -n "$gonkdir" ; then
908 if test -z "$HOST_CPPFLAGS" ; then
911 if test -z "$HOST_CFLAGS" ; then
914 if test -z "$HOST_CXXFLAGS" ; then
917 if test -z "$HOST_LDFLAGS" ; then
921 cat >> confdefs.h <<\EOF
927 *-android*|*-linuxandroid*)
928 if test -z "$android_ndk" ; then
929 { echo "configure
: error
: You must specify
--with-android-ndk=/path
/to
/ndk when targeting Android.
" 1>&2; exit 1; }
932 if test -z "$android_toolchain" ; then
933 echo $ac_n "checking
for android toolchain directory
""...
$ac_c" 1>&6
934 echo "configure
:935: checking
for android toolchain directory
" >&5
936 kernel_name=`uname -s | tr "[:upper
:]" "[:lower
:]"`
938 case "$target_cpu" in
940 target_name=arm-linux-androideabi-4.4.3
943 target_name=x86-4.4.3
946 target_name=mipsel-linux-android-4.4.3
949 android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86
951 if test -d "$android_toolchain" ; then
952 echo "$ac_t""$android_toolchain" 1>&6
954 { echo "configure
: error
: not found. You have to specify
--with-android-toolchain=/path
/to
/ndk
/toolchain.
" 1>&2; exit 1; }
958 if test -z "$android_platform" ; then
959 echo $ac_n "checking
for android platform directory
""...
$ac_c" 1>&6
960 echo "configure
:961: checking
for android platform directory
" >&5
962 case "$target_cpu" in
974 android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name"
976 if test -d "$android_platform" ; then
977 echo "$ac_t""$android_platform" 1>&6
979 { echo "configure
: error
: not found. You have to specify
--with-android-platform=/path
/to
/ndk
/platform.
" 1>&2; exit 1; }
983 case "$target_cpu" in
985 if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then
986 android_tool_prefix="i686-android-linux
"
991 AS="$android_toolchain"/bin/"$android_tool_prefix"-as
992 CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc
993 CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++
994 CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp
995 LD="$android_toolchain"/bin/"$android_tool_prefix"-ld
996 AR="$android_toolchain"/bin/"$android_tool_prefix"-ar
997 RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib
998 STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip
1000 CPPFLAGS="-I$android_platform/usr
/include
$CPPFLAGS"
1001 CFLAGS="-mandroid -I$android_platform/usr
/include
-fno-short-enums -fno-exceptions $CFLAGS"
1002 CXXFLAGS="-mandroid -I$android_platform/usr
/include
-fpic -fno-short-enums -fno-exceptions $CXXFLAGS"
1003 LDFLAGS="-mandroid -L$android_platform/usr
/lib
-Wl,-rpath-link=$android_platform/usr
/lib
--sysroot=$android_platform $LDFLAGS"
1005 if test -z "$HOST_CPPFLAGS" ; then
1008 if test -z "$HOST_CFLAGS" ; then
1011 if test -z "$HOST_CXXFLAGS" ; then
1014 if test -z "$HOST_LDFLAGS" ; then
1018 cat >> confdefs.h <<\EOF
1026 dist_prefix='${MOD_DEPTH}/dist'
1027 dist_bindir='${dist_prefix}/bin'
1028 dist_includedir='${dist_prefix}/include/nspr'
1029 dist_libdir='${dist_prefix}/lib'
1030 if test "${includedir}" = '${prefix}/include'; then
1031 includedir='${prefix}/include/nspr'
1034 # Check whether --with-dist-prefix or --without-dist-prefix was given.
1035 if test "${with_dist_prefix+set}" = set; then
1036 withval="$with_dist_prefix"
1037 dist_prefix=$withval
1041 # Check whether --with-dist-bindir or --without-dist-bindir was given.
1042 if test "${with_dist_bindir+set}" = set; then
1043 withval="$with_dist_bindir"
1044 dist_bindir=$withval
1048 # Check whether --with-dist-includedir or --without-dist-includedir was given.
1049 if test "${with_dist_includedir+set}" = set; then
1050 withval="$with_dist_includedir"
1051 dist_includedir=$withval
1055 # Check whether --with-dist-libdir or --without-dist-libdir was given.
1056 if test "${with_dist_libdir+set}" = set; then
1057 withval="$with_dist_libdir"
1058 dist_libdir=$withval
1067 # Check whether --with-mozilla or --without-mozilla was given.
1068 if test "${with_mozilla+set}" = set; then
1069 withval="$with_mozilla"
1070 if test "$withval" = "yes"; then
1071 cat >> confdefs.h <<\EOF
1072 #define MOZILLA_CLIENT 1
1080 if test -n "$MOZILLA_CLIENT"; then
1081 cat >> confdefs.h <<\EOF
1082 #define MOZILLA_CLIENT 1
1089 # Check whether --enable-optimize or --disable-optimize was given.
1090 if test "${enable_optimize+set}" = set; then
1091 enableval="$enable_optimize"
1092 if test "$enableval" != "no
"; then
1094 if test -n "$enableval" -a "$enableval" != "yes"; then
1095 _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
1096 _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
1104 # Check whether --enable-debug or --disable-debug was given.
1105 if test "${enable_debug+set}" = set; then
1106 enableval="$enable_debug"
1107 if test "$enableval" != "no
"; then
1110 if test -n "$enableval" -a "$enableval" != "yes"; then
1111 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
1112 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
1122 # Check whether --enable-debug-symbols or --disable-debug-symbols was given.
1123 if test "${enable_debug_symbols+set}" = set; then
1124 enableval="$enable_debug_symbols"
1125 if test "$enableval" != "no
"; then
1127 if test -n "$enableval" -a "$enableval" != "yes"; then
1128 if test -z "$_SAVE_DEBUG_FLAGS"; then
1129 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
1130 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
1132 { echo "configure
: error
: --enable-debug-symbols flags cannot be used with
--enable-debug flags
" 1>&2; exit 1; }
1141 # Check whether --enable-win32-target or --disable-win32-target was given.
1142 if test "${enable_win32_target+set}" = set; then
1143 enableval="$enable_win32_target"
1144 OS_TARGET=`echo $enableval | tr a-z A-Z`
1148 # Check whether --enable-symbian-target or --disable-symbian-target was given.
1149 if test "${enable_symbian_target+set}" = set; then
1150 enableval="$enable_symbian_target"
1151 OS_TARGET=`echo $enableval | tr a-z A-Z`
1155 # Check whether --enable-debug-rtl or --disable-debug-rtl was given.
1156 if test "${enable_debug_rtl+set}" = set; then
1157 enableval="$enable_debug_rtl"
1158 if test "$enableval" = "yes"; then
1164 # Check whether --enable-n32 or --disable-n32 was given.
1165 if test "${enable_n32+set}" = set; then
1166 enableval="$enable_n32"
1167 if test "$enableval" = "yes"; then
1169 else if test "$enableval" = "no
"; then
1176 # Check whether --enable-64bit or --disable-64bit was given.
1177 if test "${enable_64bit+set}" = set; then
1178 enableval="$enable_64bit"
1179 if test "$enableval" = "yes"; then
1185 # Check whether --enable-mdupdate or --disable-mdupdate was given.
1186 if test "${enable_mdupdate+set}" = set; then
1187 enableval="$enable_mdupdate"
1188 if test "$enableval" = "yes"; then
1194 # Check whether --enable-cplus or --disable-cplus was given.
1195 if test "${enable_cplus+set}" = set; then
1196 enableval="$enable_cplus"
1197 if test "$enableval" = "yes"; then
1203 # Check whether --with-arm-kuser or --without-arm-kuser was given.
1204 if test "${with_arm_kuser+set}" = set; then
1205 withval="$with_arm_kuser"
1206 if test "$withval" = "yes"; then
1207 cat >> confdefs.h <<\EOF
1208 #define _PR_ARM_KUSER 1
1215 # Check whether --with-macos-sdk or --without-macos-sdk was given.
1216 if test "${with_macos_sdk+set}" = set; then
1217 withval="$with_macos_sdk"
1218 MACOS_SDK_DIR=$withval
1222 # Check whether --enable-macos-target or --disable-macos-target was given.
1223 if test "${enable_macos_target+set}" = set; then
1224 enableval="$enable_macos_target"
1225 _MACOSX_DEPLOYMENT_TARGET=$enableval
1232 case "${target_os}" in
1244 if test -z "$CC"; then
1248 if test -z "$USE_NSPR_THREADS"; then
1274 if test -z "$CXX"; then
1278 if test -z "$USE_NSPR_THREADS"; then
1286 case "${target_os}" in
1314 if test -z "$SKIP_PATH_CHECKS"; then
1315 # Extract the first word of "$WHOAMI whoami
", so it can be a program name with args.
1316 set dummy $WHOAMI whoami; ac_word=$2
1317 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1318 echo "configure
:1319: checking
for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1320 echo $ac_n "(cached
) $ac_c" 1>&6
1324 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
1327 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
1330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1332 for ac_dir in $ac_dummy; do
1333 test -z "$ac_dir" && ac_dir=.
1334 if test -f $ac_dir/$ac_word; then
1335 ac_cv_path_WHOAMI="$ac_dir/$ac_word"
1340 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami
"
1344 WHOAMI="$ac_cv_path_WHOAMI"
1345 if test -n "$WHOAMI"; then
1346 echo "$ac_t""$WHOAMI" 1>&6
1348 echo "$ac_t""no
" 1>&6
1353 if test -n "$MOZ_DEBUG"; then
1354 cat >> confdefs.h <<\EOF
1358 DEFINES="$DEFINES -UNDEBUG"
1360 case "${target_os}" in
1362 DEFINES="$DEFINES -DDEBUG_${USER}"
1364 msvc*|mks*|cygwin*|mingw*|wince*|winmo*|os2*)
1365 DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
1368 DEFINES="$DEFINES -DDEBUG_`$WHOAMI`"
1372 cat >> confdefs.h <<\EOF
1376 DEFINES="$DEFINES -UDEBUG"
1379 if test -z "$SKIP_COMPILER_CHECKS"; then
1381 if test "$target" != "$host" -o -n "$CROSS_COMPILE"; then
1382 echo "cross compiling from
$host to
$target"
1386 _SAVE_CFLAGS="$CFLAGS"
1387 _SAVE_LDFLAGS="$LDFLAGS"
1389 echo $ac_n "checking
for $host compiler
""...
$ac_c" 1>&6
1390 echo "configure
:1391: checking
for $host compiler
" >&5
1391 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1393 # Extract the first word of "$ac_prog", so it can be a program name with args.
1394 set dummy $ac_prog; ac_word=$2
1395 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1396 echo "configure
:1397: checking
for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1398 echo $ac_n "(cached
) $ac_c" 1>&6
1400 if test -n "$HOST_CC"; then
1401 ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_HOST_CC="$ac_prog"
1415 HOST_CC="$ac_cv_prog_HOST_CC"
1416 if test -n "$HOST_CC"; then
1417 echo "$ac_t""$HOST_CC" 1>&6
1419 echo "$ac_t""no
" 1>&6
1422 test -n "$HOST_CC" && break
1424 test -n "$HOST_CC" || HOST_CC=""""
1426 if test -z "$HOST_CC"; then
1427 { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1429 echo "$ac_t""$HOST_CC" 1>&6
1430 if test -z "$HOST_CFLAGS"; then
1431 HOST_CFLAGS="$CFLAGS"
1433 if test -z "$HOST_LDFLAGS"; then
1434 HOST_LDFLAGS="$LDFLAGS"
1438 CFLAGS="$HOST_CFLAGS"
1439 LDFLAGS="$HOST_LDFLAGS"
1441 echo $ac_n "checking whether the
$host compiler
($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works
""...
$ac_c" 1>&6
1442 echo "configure
:1443: checking whether the
$host compiler
($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works
" >&5
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure
"
1445 #include "confdefs.h
"
1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453 echo "$ac_t""yes" 1>&6
1455 echo "configure
: failed program was
:" >&5
1456 cat conftest.$ac_ext >&5
1458 { echo "configure
: error
: installation or configuration problem
: $host compiler
$HOST_CC cannot create executables.
" 1>&2; exit 1; }
1463 CFLAGS=$_SAVE_CFLAGS
1464 LDFLAGS=$_SAVE_LDFLAGS
1466 case "$build:$target" in
1467 powerpc-apple-darwin8*:i?86-apple-darwin*)
1468 _SAVE_CFLAGS=$CFLAGS
1469 _SAVE_CXXFLAGS=$CXXFLAGS
1470 CFLAGS="-isysroot /Developer
/SDKs
/MacOSX10.4u.sdk
$CFLAGS"
1471 CXXFLAGS="-isysroot /Developer
/SDKs
/MacOSX10.4u.sdk
$CXXFLAGS"
1473 *:arm*-apple-darwin*)
1474 _SAVE_CFLAGS=$CFLAGS
1475 _SAVE_CXXFLAGS=$CXXFLAGS
1476 CFLAGS="-isysroot $MACOS_SDK_DIR $CFLAGS"
1477 CXXFLAGS="-isysroot $MACOS_SDK_DIR $CXXFLAGS"
1481 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
1483 # Extract the first word of "$ac_prog", so it can be a program name with args.
1484 set dummy $ac_prog; ac_word=$2
1485 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1486 echo "configure
:1487: checking
for $ac_word" >&5
1487 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1488 echo $ac_n "(cached
) $ac_c" 1>&6
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1495 for ac_dir in $ac_dummy; do
1496 test -z "$ac_dir" && ac_dir=.
1497 if test -f $ac_dir/$ac_word; then
1498 ac_cv_prog_CC="$ac_prog"
1506 if test -n "$CC"; then
1507 echo "$ac_t""$CC" 1>&6
1509 echo "$ac_t""no
" 1>&6
1512 test -n "$CC" && break
1514 test -n "$CC" || CC="echo"
1517 # Extract the first word of "gcc
", so it can be a program name with args.
1518 set dummy gcc; ac_word=$2
1519 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1520 echo "configure
:1521: checking
for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1522 echo $ac_n "(cached
) $ac_c" 1>&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1540 if test -n "$CC"; then
1541 echo "$ac_t""$CC" 1>&6
1543 echo "$ac_t""no
" 1>&6
1546 if test -z "$CC"; then
1547 # Extract the first word of "cc
", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1550 echo "configure
:1551: checking
for $ac_word" >&5
1551 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1552 echo $ac_n "(cached
) $ac_c" 1>&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1560 for ac_dir in $ac_dummy; do
1561 test -z "$ac_dir" && ac_dir=.
1562 if test -f $ac_dir/$ac_word; then
1563 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1564 ac_prog_rejected=yes
1572 if test $ac_prog_rejected = yes; then
1573 # We found a bogon in the path, so make sure we never use it.
1574 set dummy $ac_cv_prog_CC
1576 if test $# -gt 0; then
1577 # We chose a different compiler from the bogus one.
1578 # However, it has the same basename, so the bogon will be chosen
1579 # first if we set CC to just the basename; use the full file name.
1581 set dummy "$ac_dir/$ac_word" "$@
"
1589 if test -n "$CC"; then
1590 echo "$ac_t""$CC" 1>&6
1592 echo "$ac_t""no
" 1>&6
1595 if test -z "$CC"; then
1596 case "`uname -s`" in
1598 # Extract the first word of "cl
", so it can be a program name with args.
1599 set dummy cl; ac_word=$2
1600 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1601 echo "configure
:1602: checking
for $ac_word" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1603 echo $ac_n "(cached
) $ac_c" 1>&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1610 for ac_dir in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir=.
1612 if test -f $ac_dir/$ac_word; then
1621 if test -n "$CC"; then
1622 echo "$ac_t""$CC" 1>&6
1624 echo "$ac_t""no
" 1>&6
1629 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1632 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
1633 echo "configure
:1634: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
1636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1637 ac_cpp='$CPP $CPPFLAGS'
1638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1640 cross_compiling=$ac_cv_prog_cc_cross
1642 cat > conftest.$ac_ext << EOF
1644 #line 1645 "configure
"
1645 #include "confdefs.h
"
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650 ac_cv_prog_cc_works=yes
1651 # If we can't run a trivial program, we are probably using a cross compiler.
1652 if (./conftest; exit) 2>/dev/null; then
1653 ac_cv_prog_cc_cross=no
1655 ac_cv_prog_cc_cross=yes
1658 echo "configure
: failed program was
:" >&5
1659 cat conftest.$ac_ext >&5
1660 ac_cv_prog_cc_works=no
1664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1665 ac_cpp='$CPP $CPPFLAGS'
1666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1668 cross_compiling=$ac_cv_prog_cc_cross
1670 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1671 if test $ac_cv_prog_cc_works = no; then
1672 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
1674 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
1675 echo "configure
:1676: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
1676 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1677 cross_compiling=$ac_cv_prog_cc_cross
1679 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1680 echo "configure
:1681: checking whether we are using GNU C
" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1682 echo $ac_n "(cached
) $ac_c" 1>&6
1684 cat > conftest.c <<EOF
1689 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1696 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1698 if test $ac_cv_prog_gcc = yes; then
1704 ac_test_CFLAGS="${CFLAGS+set}"
1705 ac_save_CFLAGS="$CFLAGS"
1707 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1708 echo "configure
:1709: checking whether
${CC-cc} accepts
-g" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1710 echo $ac_n "(cached
) $ac_c" 1>&6
1712 echo 'void f(){}' > conftest.c
1713 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1722 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1723 if test "$ac_test_CFLAGS" = set; then
1724 CFLAGS="$ac_save_CFLAGS"
1725 elif test $ac_cv_prog_cc_g = yes; then
1726 if test "$GCC" = yes; then
1732 if test "$GCC" = yes; then
1739 if test -n "$USE_CPLUS"; then
1740 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
1742 # Extract the first word of "$ac_prog", so it can be a program name with args.
1743 set dummy $ac_prog; ac_word=$2
1744 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1745 echo "configure
:1746: checking
for $ac_word" >&5
1746 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1747 echo $ac_n "(cached
) $ac_c" 1>&6
1749 if test -n "$CXX"; then
1750 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 for ac_dir in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/$ac_word; then
1757 ac_cv_prog_CXX="$ac_prog"
1764 CXX="$ac_cv_prog_CXX"
1765 if test -n "$CXX"; then
1766 echo "$ac_t""$CXX" 1>&6
1768 echo "$ac_t""no
" 1>&6
1771 test -n "$CXX" && break
1773 test -n "$CXX" || CXX="echo"
1775 unset ac_cv_prog_CXX
1776 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy $ac_prog; ac_word=$2
1780 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1781 echo "configure
:1782: checking
for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1783 echo $ac_n "(cached
) $ac_c" 1>&6
1785 if test -n "$CXX"; then
1786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_CXX="$ac_prog"
1800 CXX="$ac_cv_prog_CXX"
1801 if test -n "$CXX"; then
1802 echo "$ac_t""$CXX" 1>&6
1804 echo "$ac_t""no
" 1>&6
1807 test -n "$CXX" && break
1809 test -n "$CXX" || CXX="gcc
"
1812 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
1813 echo "configure
:1814: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
" >&5
1816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1817 ac_cpp='$CXXCPP $CPPFLAGS'
1818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1820 cross_compiling=$ac_cv_prog_cxx_cross
1822 cat > conftest.$ac_ext << EOF
1824 #line 1825 "configure
"
1825 #include "confdefs.h
"
1827 int main(){return(0);}
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1830 ac_cv_prog_cxx_works=yes
1831 # If we can't run a trivial program, we are probably using a cross compiler.
1832 if (./conftest; exit) 2>/dev/null; then
1833 ac_cv_prog_cxx_cross=no
1835 ac_cv_prog_cxx_cross=yes
1838 echo "configure
: failed program was
:" >&5
1839 cat conftest.$ac_ext >&5
1840 ac_cv_prog_cxx_works=no
1844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1848 cross_compiling=$ac_cv_prog_cc_cross
1850 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1851 if test $ac_cv_prog_cxx_works = no; then
1852 { echo "configure
: error
: installation or configuration problem
: C
++ compiler cannot create executables.
" 1>&2; exit 1; }
1854 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
1855 echo "configure
:1856: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
" >&5
1856 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1857 cross_compiling=$ac_cv_prog_cxx_cross
1859 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1860 echo "configure
:1861: checking whether we are using GNU C
++" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1862 echo $ac_n "(cached
) $ac_c" 1>&6
1864 cat > conftest.C <<EOF
1869 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1876 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1878 if test $ac_cv_prog_gxx = yes; then
1884 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1885 ac_save_CXXFLAGS="$CXXFLAGS"
1887 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1888 echo "configure
:1889: checking whether
${CXX-g++} accepts
-g" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1890 echo $ac_n "(cached
) $ac_c" 1>&6
1892 echo 'void f(){}' > conftest.cc
1893 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1894 ac_cv_prog_cxx_g=yes
1902 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1903 if test "$ac_test_CXXFLAGS" = set; then
1904 CXXFLAGS="$ac_save_CXXFLAGS"
1905 elif test $ac_cv_prog_cxx_g = yes; then
1906 if test "$GXX" = yes; then
1912 if test "$GXX" = yes; then
1921 case "$build:$target" in
1922 powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*)
1923 CFLAGS=$_SAVE_CFLAGS
1924 CXXFLAGS=$_SAVE_CXXFLAGS
1928 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
1930 # Extract the first word of "$ac_prog", so it can be a program name with args.
1931 set dummy $ac_prog; ac_word=$2
1932 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1933 echo "configure
:1934: checking
for $ac_word" >&5
1934 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1935 echo $ac_n "(cached
) $ac_c" 1>&6
1937 if test -n "$RANLIB"; then
1938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1942 for ac_dir in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_prog_RANLIB="$ac_prog"
1952 RANLIB="$ac_cv_prog_RANLIB"
1953 if test -n "$RANLIB"; then
1954 echo "$ac_t""$RANLIB" 1>&6
1956 echo "$ac_t""no
" 1>&6
1959 test -n "$RANLIB" && break
1961 test -n "$RANLIB" || RANLIB="echo"
1963 for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
1965 # Extract the first word of "$ac_prog", so it can be a program name with args.
1966 set dummy $ac_prog; ac_word=$2
1967 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1968 echo "configure
:1969: checking
for $ac_word" >&5
1969 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1970 echo $ac_n "(cached
) $ac_c" 1>&6
1972 if test -n "$AR"; then
1973 ac_cv_prog_AR="$AR" # Let the user override the test.
1975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1977 for ac_dir in $ac_dummy; do
1978 test -z "$ac_dir" && ac_dir=.
1979 if test -f $ac_dir/$ac_word; then
1980 ac_cv_prog_AR="$ac_prog"
1988 if test -n "$AR"; then
1989 echo "$ac_t""$AR" 1>&6
1991 echo "$ac_t""no
" 1>&6
1994 test -n "$AR" && break
1996 test -n "$AR" || AR="echo"
1998 for ac_prog in $AS "${target_alias}-as" "${target}-as"
2000 # Extract the first word of "$ac_prog", so it can be a program name with args.
2001 set dummy $ac_prog; ac_word=$2
2002 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2003 echo "configure
:2004: checking
for $ac_word" >&5
2004 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2005 echo $ac_n "(cached
) $ac_c" 1>&6
2007 if test -n "$AS"; then
2008 ac_cv_prog_AS="$AS" # Let the user override the test.
2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2012 for ac_dir in $ac_dummy; do
2013 test -z "$ac_dir" && ac_dir=.
2014 if test -f $ac_dir/$ac_word; then
2015 ac_cv_prog_AS="$ac_prog"
2023 if test -n "$AS"; then
2024 echo "$ac_t""$AS" 1>&6
2026 echo "$ac_t""no
" 1>&6
2029 test -n "$AS" && break
2031 test -n "$AS" || AS="echo"
2033 for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2038 echo "configure
:2039: checking
for $ac_word" >&5
2039 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2040 echo $ac_n "(cached
) $ac_c" 1>&6
2042 if test -n "$LD"; then
2043 ac_cv_prog_LD="$LD" # Let the user override the test.
2045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2047 for ac_dir in $ac_dummy; do
2048 test -z "$ac_dir" && ac_dir=.
2049 if test -f $ac_dir/$ac_word; then
2050 ac_cv_prog_LD="$ac_prog"
2058 if test -n "$LD"; then
2059 echo "$ac_t""$LD" 1>&6
2061 echo "$ac_t""no
" 1>&6
2064 test -n "$LD" && break
2066 test -n "$LD" || LD="echo"
2068 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2073 echo "configure
:2074: checking
for $ac_word" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2075 echo $ac_n "(cached
) $ac_c" 1>&6
2077 if test -n "$STRIP"; then
2078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2082 for ac_dir in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir=.
2084 if test -f $ac_dir/$ac_word; then
2085 ac_cv_prog_STRIP="$ac_prog"
2092 STRIP="$ac_cv_prog_STRIP"
2093 if test -n "$STRIP"; then
2094 echo "$ac_t""$STRIP" 1>&6
2096 echo "$ac_t""no
" 1>&6
2099 test -n "$STRIP" && break
2101 test -n "$STRIP" || STRIP="echo"
2103 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
2105 # Extract the first word of "$ac_prog", so it can be a program name with args.
2106 set dummy $ac_prog; ac_word=$2
2107 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2108 echo "configure
:2109: checking
for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
2110 echo $ac_n "(cached
) $ac_c" 1>&6
2112 if test -n "$WINDRES"; then
2113 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2117 for ac_dir in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir=.
2119 if test -f $ac_dir/$ac_word; then
2120 ac_cv_prog_WINDRES="$ac_prog"
2127 WINDRES="$ac_cv_prog_WINDRES"
2128 if test -n "$WINDRES"; then
2129 echo "$ac_t""$WINDRES" 1>&6
2131 echo "$ac_t""no
" 1>&6
2134 test -n "$WINDRES" && break
2136 test -n "$WINDRES" || WINDRES="echo"
2140 # Extract the first word of "gcc
", so it can be a program name with args.
2141 set dummy gcc; ac_word=$2
2142 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2143 echo "configure
:2144: checking
for $ac_word" >&5
2144 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2145 echo $ac_n "(cached
) $ac_c" 1>&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2152 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/$ac_word; then
2163 if test -n "$CC"; then
2164 echo "$ac_t""$CC" 1>&6
2166 echo "$ac_t""no
" 1>&6
2169 if test -z "$CC"; then
2170 # Extract the first word of "cc
", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2173 echo "configure
:2174: checking
for $ac_word" >&5
2174 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2175 echo $ac_n "(cached
) $ac_c" 1>&6
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2183 for ac_dir in $ac_dummy; do
2184 test -z "$ac_dir" && ac_dir=.
2185 if test -f $ac_dir/$ac_word; then
2186 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
2187 ac_prog_rejected=yes
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2199 if test $# -gt 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2204 set dummy "$ac_dir/$ac_word" "$@
"
2212 if test -n "$CC"; then
2213 echo "$ac_t""$CC" 1>&6
2215 echo "$ac_t""no
" 1>&6
2218 if test -z "$CC"; then
2219 case "`uname -s`" in
2221 # Extract the first word of "cl
", so it can be a program name with args.
2222 set dummy cl; ac_word=$2
2223 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2224 echo "configure
:2225: checking
for $ac_word" >&5
2225 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2226 echo $ac_n "(cached
) $ac_c" 1>&6
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2233 for ac_dir in $ac_dummy; do
2234 test -z "$ac_dir" && ac_dir=.
2235 if test -f $ac_dir/$ac_word; then
2244 if test -n "$CC"; then
2245 echo "$ac_t""$CC" 1>&6
2247 echo "$ac_t""no
" 1>&6
2252 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
2255 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
2256 echo "configure
:2257: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
2259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2263 cross_compiling=$ac_cv_prog_cc_cross
2265 cat > conftest.$ac_ext << EOF
2267 #line 2268 "configure
"
2268 #include "confdefs.h
"
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2273 ac_cv_prog_cc_works=yes
2274 # If we can't run a trivial program, we are probably using a cross compiler.
2275 if (./conftest; exit) 2>/dev/null; then
2276 ac_cv_prog_cc_cross=no
2278 ac_cv_prog_cc_cross=yes
2281 echo "configure
: failed program was
:" >&5
2282 cat conftest.$ac_ext >&5
2283 ac_cv_prog_cc_works=no
2287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2291 cross_compiling=$ac_cv_prog_cc_cross
2293 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2294 if test $ac_cv_prog_cc_works = no; then
2295 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
2297 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
2298 echo "configure
:2299: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
2299 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2300 cross_compiling=$ac_cv_prog_cc_cross
2302 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
2303 echo "configure
:2304: checking whether we are using GNU C
" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2305 echo $ac_n "(cached
) $ac_c" 1>&6
2307 cat > conftest.c <<EOF
2312 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2319 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2321 if test $ac_cv_prog_gcc = yes; then
2327 ac_test_CFLAGS="${CFLAGS+set}"
2328 ac_save_CFLAGS="$CFLAGS"
2330 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
2331 echo "configure
:2332: checking whether
${CC-cc} accepts
-g" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2333 echo $ac_n "(cached
) $ac_c" 1>&6
2335 echo 'void f(){}' > conftest.c
2336 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2345 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2346 if test "$ac_test_CFLAGS" = set; then
2347 CFLAGS="$ac_save_CFLAGS"
2348 elif test $ac_cv_prog_cc_g = yes; then
2349 if test "$GCC" = yes; then
2355 if test "$GCC" = yes; then
2362 if test -n "$USE_CPLUS"; then
2363 if test "$CC" = "cl
" -a -z "$CXX"; then
2366 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2368 # Extract the first word of "$ac_prog", so it can be a program name with args.
2369 set dummy $ac_prog; ac_word=$2
2370 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2371 echo "configure
:2372: checking
for $ac_word" >&5
2372 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2373 echo $ac_n "(cached
) $ac_c" 1>&6
2375 if test -n "$CXX"; then
2376 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2380 for ac_dir in $ac_dummy; do
2381 test -z "$ac_dir" && ac_dir=.
2382 if test -f $ac_dir/$ac_word; then
2383 ac_cv_prog_CXX="$ac_prog"
2390 CXX="$ac_cv_prog_CXX"
2391 if test -n "$CXX"; then
2392 echo "$ac_t""$CXX" 1>&6
2394 echo "$ac_t""no
" 1>&6
2397 test -n "$CXX" && break
2399 test -n "$CXX" || CXX="gcc
"
2402 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
2403 echo "configure
:2404: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
" >&5
2406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2407 ac_cpp='$CXXCPP $CPPFLAGS'
2408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2410 cross_compiling=$ac_cv_prog_cxx_cross
2412 cat > conftest.$ac_ext << EOF
2414 #line 2415 "configure
"
2415 #include "confdefs.h
"
2417 int main(){return(0);}
2419 if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 ac_cv_prog_cxx_works=yes
2421 # If we can't run a trivial program, we are probably using a cross compiler.
2422 if (./conftest; exit) 2>/dev/null; then
2423 ac_cv_prog_cxx_cross=no
2425 ac_cv_prog_cxx_cross=yes
2428 echo "configure
: failed program was
:" >&5
2429 cat conftest.$ac_ext >&5
2430 ac_cv_prog_cxx_works=no
2434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 cross_compiling=$ac_cv_prog_cc_cross
2440 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2441 if test $ac_cv_prog_cxx_works = no; then
2442 { echo "configure
: error
: installation or configuration problem
: C
++ compiler cannot create executables.
" 1>&2; exit 1; }
2444 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
2445 echo "configure
:2446: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
" >&5
2446 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2447 cross_compiling=$ac_cv_prog_cxx_cross
2449 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
2450 echo "configure
:2451: checking whether we are using GNU C
++" >&5
2451 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2452 echo $ac_n "(cached
) $ac_c" 1>&6
2454 cat > conftest.C <<EOF
2459 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2466 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2468 if test $ac_cv_prog_gxx = yes; then
2474 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2475 ac_save_CXXFLAGS="$CXXFLAGS"
2477 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
2478 echo "configure
:2479: checking whether
${CXX-g++} accepts
-g" >&5
2479 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2480 echo $ac_n "(cached
) $ac_c" 1>&6
2482 echo 'void f(){}' > conftest.cc
2483 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2484 ac_cv_prog_cxx_g=yes
2492 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2493 if test "$ac_test_CXXFLAGS" = set; then
2494 CXXFLAGS="$ac_save_CXXFLAGS"
2495 elif test $ac_cv_prog_cxx_g = yes; then
2496 if test "$GXX" = yes; then
2502 if test "$GXX" = yes; then
2511 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2512 echo "configure
:2513: checking how to run the C preprocessor
" >&5
2513 # On Suns, sometimes $CPP names a directory.
2514 if test -n "$CPP" && test -d "$CPP"; then
2517 if test -z "$CPP"; then
2518 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2519 echo $ac_n "(cached
) $ac_c" 1>&6
2521 # This must be in double quotes, not single quotes, because CPP may get
2522 # substituted into the Makefile and "${CC-cc}" will confuse make.
2524 # On the NeXT, cc -E runs the code through the compiler's parser,
2525 # not just through cpp.
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure
"
2528 #include "confdefs.h
"
2532 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2535 if test -z "$ac_err"; then
2539 echo "configure
: failed program was
:" >&5
2540 cat conftest.$ac_ext >&5
2542 CPP="${CC-cc} -E -traditional-cpp"
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure
"
2545 #include "confdefs.h
"
2549 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2552 if test -z "$ac_err"; then
2556 echo "configure
: failed program was
:" >&5
2557 cat conftest.$ac_ext >&5
2559 CPP="${CC-cc} -nologo -E"
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure
"
2562 #include "confdefs.h
"
2566 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2567 { (eval echo configure:2568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2569 if test -z "$ac_err"; then
2573 echo "configure
: failed program was
:" >&5
2574 cat conftest.$ac_ext >&5
2583 ac_cv_prog_CPP="$CPP"
2585 CPP="$ac_cv_prog_CPP"
2587 ac_cv_prog_CPP="$CPP"
2589 echo "$ac_t""$CPP" 1>&6
2591 # Extract the first word of "ranlib
", so it can be a program name with args.
2592 set dummy ranlib; ac_word=$2
2593 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2594 echo "configure
:2595: checking
for $ac_word" >&5
2595 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2596 echo $ac_n "(cached
) $ac_c" 1>&6
2598 if test -n "$RANLIB"; then
2599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2603 for ac_dir in $ac_dummy; do
2604 test -z "$ac_dir" && ac_dir=.
2605 if test -f $ac_dir/$ac_word; then
2606 ac_cv_prog_RANLIB="ranlib
"
2611 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2614 RANLIB="$ac_cv_prog_RANLIB"
2615 if test -n "$RANLIB"; then
2616 echo "$ac_t""$RANLIB" 1>&6
2618 echo "$ac_t""no
" 1>&6
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2626 echo "configure
:2627: checking
for $ac_word" >&5
2627 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2628 echo $ac_n "(cached
) $ac_c" 1>&6
2632 ac_cv_path_AS="$AS" # Let the user override the test with a path.
2635 ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2643 ac_cv_path_AS="$ac_dir/$ac_word"
2652 if test -n "$AS"; then
2653 echo "$ac_t""$AS" 1>&6
2655 echo "$ac_t""no
" 1>&6
2658 test -n "$AS" && break
2660 test -n "$AS" || AS="$CC"
2664 # Extract the first word of "$ac_prog", so it can be a program name with args.
2665 set dummy $ac_prog; ac_word=$2
2666 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2667 echo "configure
:2668: checking
for $ac_word" >&5
2668 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2669 echo $ac_n "(cached
) $ac_c" 1>&6
2673 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2676 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
2679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2681 for ac_dir in $ac_dummy; do
2682 test -z "$ac_dir" && ac_dir=.
2683 if test -f $ac_dir/$ac_word; then
2684 ac_cv_path_AR="$ac_dir/$ac_word"
2693 if test -n "$AR"; then
2694 echo "$ac_t""$AR" 1>&6
2696 echo "$ac_t""no
" 1>&6
2699 test -n "$AR" && break
2701 test -n "$AR" || AR="echo not_ar
"
2703 for ac_prog in ld link
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2708 echo "configure
:2709: checking
for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2710 echo $ac_n "(cached
) $ac_c" 1>&6
2714 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2717 ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2722 for ac_dir in $ac_dummy; do
2723 test -z "$ac_dir" && ac_dir=.
2724 if test -f $ac_dir/$ac_word; then
2725 ac_cv_path_LD="$ac_dir/$ac_word"
2734 if test -n "$LD"; then
2735 echo "$ac_t""$LD" 1>&6
2737 echo "$ac_t""no
" 1>&6
2740 test -n "$LD" && break
2742 test -n "$LD" || LD="echo not_ld
"
2744 for ac_prog in strip
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2749 echo "configure
:2750: checking
for $ac_word" >&5
2750 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
2751 echo $ac_n "(cached
) $ac_c" 1>&6
2755 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
2758 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
2761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2763 for ac_dir in $ac_dummy; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f $ac_dir/$ac_word; then
2766 ac_cv_path_STRIP="$ac_dir/$ac_word"
2774 STRIP="$ac_cv_path_STRIP"
2775 if test -n "$STRIP"; then
2776 echo "$ac_t""$STRIP" 1>&6
2778 echo "$ac_t""no
" 1>&6
2781 test -n "$STRIP" && break
2783 test -n "$STRIP" || STRIP="echo not_strip
"
2785 for ac_prog in windres
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2790 echo "configure
:2791: checking
for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
2792 echo $ac_n "(cached
) $ac_c" 1>&6
2796 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
2799 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a dos path.
2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2804 for ac_dir in $ac_dummy; do
2805 test -z "$ac_dir" && ac_dir=.
2806 if test -f $ac_dir/$ac_word; then
2807 ac_cv_path_WINDRES="$ac_dir/$ac_word"
2815 WINDRES="$ac_cv_path_WINDRES"
2816 if test -n "$WINDRES"; then
2817 echo "$ac_t""$WINDRES" 1>&6
2819 echo "$ac_t""no
" 1>&6
2822 test -n "$WINDRES" && break
2824 test -n "$WINDRES" || WINDRES="echo not_windres
"
2826 if test -z "$HOST_CC"; then
2829 if test -z "$HOST_CFLAGS"; then
2830 HOST_CFLAGS="$CFLAGS"
2834 if test "$GCC" = "yes"; then
2837 if test "$GXX" = "yes"; then
2840 if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
2845 case "$build:$target" in
2846 i?86-apple-darwin*:powerpc-apple-darwin*)
2851 if test "$cross_compiling" = "yes"; then
2857 echo $ac_n "checking
for gcc
-pipe support
""...
$ac_c" 1>&6
2858 echo "configure
:2859: checking
for gcc
-pipe support
" >&5
2859 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
2860 echo '#include <stdio.h>' > dummy-hello.c
2861 echo 'int main() { printf("Hello World
\n"); return 0; }' >> dummy-hello.c
2862 ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
2863 cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5
2864 if test $? = 0; then
2869 if test "$_res_as_stdin" = "yes"; then
2870 _SAVE_CFLAGS=$CFLAGS
2871 CFLAGS="$CFLAGS -pipe"
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure
"
2874 #include "confdefs.h
"
2877 printf("Hello World
\n");
2880 if { (eval echo configure:2881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2884 echo "configure
: failed program was
:" >&5
2885 cat conftest.$ac_ext >&5
2890 CFLAGS=$_SAVE_CFLAGS
2892 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
2894 CFLAGS="$CFLAGS -pipe"
2895 CXXFLAGS="$CXXFLAGS -pipe"
2899 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
2900 echo "$ac_t""$_res" 1>&6
2902 echo "$ac_t""no
" 1>&6
2906 _SAVE_CFLAGS="$CFLAGS"
2907 CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
2909 echo $ac_n "checking whether C compiler supports
-fprofile-generate""...
$ac_c" 1>&6
2910 echo "configure
:2911: checking whether C compiler supports
-fprofile-generate" >&5
2911 cat > conftest.$ac_ext <<EOF
2912 #line 2913 "configure
"
2913 #include "confdefs.h
"
2919 if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2921 PROFILE_GEN_CFLAGS="-fprofile-generate"
2924 echo "configure
: failed program was
:" >&5
2925 cat conftest.$ac_ext >&5
2930 echo "$ac_t""$result" 1>&6
2932 if test $result = "yes"; then
2933 PROFILE_GEN_LDFLAGS="-fprofile-generate"
2934 PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
2935 PROFILE_USE_LDFLAGS="-fprofile-use"
2938 CFLAGS="$_SAVE_CFLAGS"
2940 if test "$GNU_CC"; then
2941 echo $ac_n "checking
for visibility
(hidden
) attribute
""...
$ac_c" 1>&6
2942 echo "configure
:2943: checking
for visibility
(hidden
) attribute
" >&5
2943 if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
2944 echo $ac_n "(cached
) $ac_c" 1>&6
2946 cat > conftest.c <<EOF
2947 int foo __attribute__ ((visibility ("hidden
"))) = 1;
2949 ac_cv_visibility_hidden=no
2950 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2951 if grep '\.hidden.*foo' conftest.s >/dev/null; then
2952 ac_cv_visibility_hidden=yes
2959 echo "$ac_t""$ac_cv_visibility_hidden" 1>&6
2960 if test "$ac_cv_visibility_hidden" = "yes"; then
2961 cat >> confdefs.h <<\EOF
2962 #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
2965 echo $ac_n "checking
for visibility pragma support
""...
$ac_c" 1>&6
2966 echo "configure
:2967: checking
for visibility pragma support
" >&5
2967 if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
2968 echo $ac_n "(cached
) $ac_c" 1>&6
2970 cat > conftest.c <<EOF
2971 #pragma GCC visibility push(hidden)
2973 #pragma GCC visibility push(default)
2974 int foo_default = 1;
2976 ac_cv_visibility_pragma=no
2977 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2978 if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
2979 if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
2980 ac_cv_visibility_pragma=yes
2988 echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
2989 if test "$ac_cv_visibility_pragma" = "yes"; then
2990 cat >> confdefs.h <<\EOF
2991 #define HAVE_VISIBILITY_PRAGMA 1
2994 # To work around a build problem on Linux x86-64 (Bugzilla bug
2995 # 293438), we use the -fvisibility=hidden flag. This flag is less
2996 # optimal than #pragma GCC visibility push(hidden) because the flag
2997 # assumes that symbols defined outside the current source file have
2998 # the default visibility. This has the advantage that we don't need
2999 # to wrap system header files, but has the disadvantage that calls
3000 # to hidden symbols defined in other source files cannot be
3001 # optimized by the compiler. The -fvisibility=hidden flag does
3002 # hide and export symbols correctly.
3003 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
3004 #WRAP_SYSTEM_INCLUDES=1
3005 VISIBILITY_FLAGS="-fvisibility=hidden
"
3006 WRAP_SYSTEM_INCLUDES=
3011 fi # SKIP_COMPILER_CHECKS
3013 if test -z "$SKIP_PATH_CHECKS"; then
3014 for ac_prog in perl5 perl
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3019 echo "configure
:3020: checking
for $ac_word" >&5
3020 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3021 echo $ac_n "(cached
) $ac_c" 1>&6
3025 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3028 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_path_PERL="$ac_dir/$ac_word"
3044 PERL="$ac_cv_path_PERL"
3045 if test -n "$PERL"; then
3046 echo "$ac_t""$PERL" 1>&6
3048 echo "$ac_t""no
" 1>&6
3051 test -n "$PERL" && break
3053 test -n "$PERL" || PERL="echo not_perl
"
3055 elif test -z "$PERL"; then
3063 MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
3071 if test -n "$CROSS_COMPILE"; then
3072 OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
3074 OS_TEST="${target_cpu}"
3075 case "${target_os}" in
3076 linux*) OS_ARCH=Linux ;;
3077 solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
3078 mingw*) OS_ARCH=WINNT ;;
3079 wince*) OS_ARCH=WINCE ;;
3080 winmo*) OS_ARCH=WINCE ;;
3081 darwin*) OS_ARCH=Darwin ;;
3082 riscos*) OS_ARCH=RISCOS ;;
3085 OS_ARCH=`uname -s | sed -e 's|/|_|g'`
3086 OS_RELEASE=`uname -r`
3090 if test "$OS_ARCH" = "IRIX64
"; then
3094 if test "$OS_ARCH" = "AIX
"; then
3095 OS_RELEASE=`uname -v`.`uname -r`
3098 if test "$OS_ARCH" = "FreeBSD
"; then
3099 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
3102 if test "$OS_ARCH" = "Linux
"; then
3103 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
3104 OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 ".
" $2 }'`
3107 #######################################################################
3108 # Master "Core Components
" macros for getting the OS target #
3109 #######################################################################
3112 # Note: OS_TARGET should be specified on the command line for gmake.
3113 # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
3114 # The difference between the Win95 target and the WinNT target is that
3115 # the WinNT target uses Windows NT specific features not available
3116 # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
3117 # at lesser performance (the Win95 target uses threads; the WinNT target
3120 # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
3121 # cross-compilation.
3125 # The following hack allows one to build on a WIN95 machine (as if
3126 # s/he were cross-compiling on a WINNT host for a WIN95 target).
3127 # It also accomodates for MKS's uname.exe. If you never intend
3128 # to do development on a WIN95 machine, you don't need this hack.
3143 CYGWIN_9*|CYGWIN_ME*)
3144 OS_ARCH='CYGWIN_NT-4.0'
3154 # On WIN32, we also define the variable CPU_ARCH.
3160 if test "$CPU_ARCH" = "I386
"; then
3166 # If uname -s returns "Windows_NT
", we assume that we are using
3167 # the uname.exe in MKS toolkit.
3169 # The -r option of MKS uname only returns the major version number.
3170 # So we need to use its -v option to get the minor version number.
3171 # Moreover, it doesn't have the -p option, so we need to use uname -m.
3174 OS_MINOR_RELEASE=`uname -v`
3175 if test "$OS_MINOR_RELEASE" = "00"; then
3178 OS_RELEASE="${OS_RELEASE}.
${OS_MINOR_RELEASE}"
3181 # MKS's uname -m returns "586" on a Pentium machine.
3183 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
3187 CYGWIN_NT*|MINGW*_NT*)
3189 # If uname -s returns "CYGWIN_NT-4.0
", we assume that we are using
3190 # the uname.exe in the Cygwin tools.
3191 # If uname -s returns MINGW32_NT-5.1, we assume that we are using
3192 # the uname.exe in the MSYS tools.
3194 OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
3198 # Cygwin's uname -m returns "i686
" on a Pentium Pro machine.
3200 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
3206 if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT
"; then
3208 if test -n "$MOZ_DEBUG"; then
3212 if test -z "$OS_TARGET"; then
3215 if test "$OS_TARGET" = "WIN95
"; then
3218 OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
3220 # Check whether --enable-os2-high-mem or --disable-os2-high-mem was given.
3221 if test "${enable_os2_high_mem+set}" = set; then
3222 enableval="$enable_os2_high_mem"
3223 if test "$enableval" = "no
"; then
3224 MOZ_OS2_HIGH_MEMORY=
3226 MOZ_OS2_HIGH_MEMORY=1
3233 arm*-android*|arm*-linuxandroid*)
3237 MOZ_FLOAT_ABI=softfp
3241 if test -n "$MOZ_PLATFORM_MAEMO"; then
3244 MOZ_FLOAT_ABI=softfp
3246 if test "$MOZ_PLATFORM_MAEMO" = 6; then
3252 # Check whether --enable-thumb2 or --disable-thumb2 was given.
3253 if test "${enable_thumb2+set}" = set; then
3254 enableval="$enable_thumb2"
3255 MOZ_THUMB=$enableval
3259 # Check whether --with-thumb or --without-thumb was given.
3260 if test "${with_thumb+set}" = set; then
3261 withval="$with_thumb"
3262 if test -z "$GNU_CC"; then
3263 { echo "configure
: error
: --with-thumb is not supported on non-GNU toolchain-defaults
" 1>&2; exit 1; }
3269 # Check whether --with-thumb-interwork or --without-thumb-interwork was given.
3270 if test "${with_thumb_interwork+set}" = set; then
3271 withval="$with_thumb_interwork"
3272 if test -z "$GNU_CC"; then
3273 { echo "configure
: error
: --with-thumb-interwork is not supported on non-GNU toolchain-defaults
" 1>&2; exit 1; }
3275 MOZ_THUMB_INTERWORK=$withval
3279 # Check whether --with-arch or --without-arch was given.
3280 if test "${with_arch+set}" = set; then
3281 withval="$with_arch"
3282 if test -z "$GNU_CC"; then
3283 { echo "configure
: error
: --with-arch is not supported on non-GNU toolchain-defaults
" 1>&2; exit 1; }
3289 # Check whether --with-fpu or --without-fpu was given.
3290 if test "${with_fpu+set}" = set; then
3292 if test -z "$GNU_CC"; then
3293 { echo "configure
: error
: --with-fpu is not supported on non-GNU toolchain-defaults
" 1>&2; exit 1; }
3299 # Check whether --with-float-abi or --without-float-abi was given.
3300 if test "${with_float_abi+set}" = set; then
3301 withval="$with_float_abi"
3302 if test -z "$GNU_CC"; then
3303 { echo "configure
: error
: --with-float-abi is not supported on non-GNU toolchain-defaults
" 1>&2; exit 1; }
3305 MOZ_FLOAT_ABI=$withval
3309 # Check whether --with-soft-float or --without-soft-float was given.
3310 if test "${with_soft_float+set}" = set; then
3311 withval="$with_soft_float"
3312 if test -z "$GNU_CC"; then
3313 { echo "configure
: error
: --with-soft-float is not supported on non-GNU toolchain-defaults
" 1>&2; exit 1; }
3315 MOZ_SOFT_FLOAT=$withval
3320 toolchain-default|"")
3324 arch_flag="-march=$MOZ_ARCH"
3328 case "$MOZ_THUMB" in
3331 thumb_flag="-mthumb"
3338 _SAVE_CFLAGS="$CFLAGS"
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure
"
3342 #include "confdefs.h
"
3345 return sizeof(__thumb2__);
3348 if { (eval echo configure:3349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3352 echo "configure
: failed program was
:" >&5
3353 cat conftest.$ac_ext >&5
3358 CFLAGS="$_SAVE_CFLAGS"
3363 case "$MOZ_THUMB_INTERWORK" in
3365 thumb_interwork_flag="-mthumb-interwork"
3368 thumb_interwork_flag="-mno-thumb-interwork"
3370 *) # toolchain-default
3371 thumb_interwork_flag=""
3376 toolchain-default|"")
3380 fpu_flag="-mfpu=$MOZ_FPU"
3384 case "$MOZ_FLOAT_ABI" in
3385 toolchain-default|"")
3389 float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI"
3393 case "$MOZ_SOFT_FLOAT" in
3395 soft_float_flag="-msoft-float"
3398 soft_float_flag="-mno-soft-float"
3400 *) # toolchain-default
3405 all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag`
3406 if test -n "$all_flags"; then
3407 _SAVE_CFLAGS="$CFLAGS"
3409 echo $ac_n "checking whether the chosen combination of compiler flags
($all_flags) works
""...
$ac_c" 1>&6
3410 echo "configure
:3411: checking whether the chosen combination of compiler flags
($all_flags) works
" >&5
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure
"
3413 #include "confdefs.h
"
3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 echo "$ac_t""yes" 1>&6
3423 echo "configure
: failed program was
:" >&5
3424 cat conftest.$ac_ext >&5
3426 { echo "configure
: error
: no
" 1>&2; exit 1; }
3430 CFLAGS="$_SAVE_CFLAGS $all_flags"
3431 CXXFLAGS="$CXXFLAGS $all_flags"
3432 ASFLAGS="$ASFLAGS $all_flags"
3433 if test -n "$thumb_flag"; then
3434 LDFLAGS="$LDFLAGS $thumb_flag"
3442 *-cygwin*|*-msvc*|*-mks*|*-wince*|*-winmo*)
3443 NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
3444 if test `echo "${PATH}" | grep -c \;` = 0; then
3445 CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
3449 HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE"
3454 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
3461 cat >> confdefs.h <<\EOF
3465 cat >> confdefs.h <<\EOF
3469 cat >> confdefs.h <<\EOF
3473 DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
3474 ac_safe=`echo "sys
/atomic_op.h
" | sed 'y%./+-%__p_%'`
3475 echo $ac_n "checking
for sys
/atomic_op.h
""...
$ac_c" 1>&6
3476 echo "configure
:3477: checking
for sys
/atomic_op.h
" >&5
3477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3478 echo $ac_n "(cached
) $ac_c" 1>&6
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure
"
3482 #include "confdefs.h
"
3483 #include <sys/atomic_op.h>
3485 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3486 { (eval echo configure:3487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3488 if test -z "$ac_err"; then
3490 eval "ac_cv_header_
$ac_safe=yes"
3493 echo "configure
: failed program was
:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_header_
$ac_safe=no
"
3500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 cat >> confdefs.h <<\EOF
3503 #define AIX_HAVE_ATOMIC_OP_H 1
3507 echo "$ac_t""no
" 1>&6
3510 case "${target_os}" in
3512 cat >> confdefs.h <<\EOF
3513 #define AIX_RENAME_SELECT 1
3516 cat >> confdefs.h <<\EOF
3517 #define _PR_NO_LARGE_FILES 1
3520 AIX_LINK_OPTS='-bnso -berok'
3521 PR_MD_ASFILES=os_AIX.s
3524 cat >> confdefs.h <<\EOF
3525 #define AIX_TIMERS 1
3528 cat >> confdefs.h <<\EOF
3529 #define _PR_NO_LARGE_FILES 1
3532 cat >> confdefs.h <<\EOF
3538 AIX_LINK_OPTS='-bnso -berok'
3539 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
3540 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
3543 cat >> confdefs.h <<\EOF
3544 #define AIX_TIMERS 1
3547 cat >> confdefs.h <<\EOF
3548 #define _PR_HAVE_OFF64_T 1
3551 AIX_LINK_OPTS='-brtl -bnso -berok'
3554 cat >> confdefs.h <<\EOF
3555 #define AIX_TIMERS 1
3558 cat >> confdefs.h <<\EOF
3559 #define _PR_HAVE_OFF64_T 1
3562 cat >> confdefs.h <<\EOF
3563 #define AIX4_3_PLUS 1
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_SOCKLEN_T 1
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_FCNTL_FILE_LOCKING 1
3575 AIX_LINK_OPTS='-brtl -bnso -berok'
3578 cat >> confdefs.h <<\EOF
3579 #define AIX_TIMERS 1
3582 cat >> confdefs.h <<\EOF
3583 #define _PR_HAVE_OFF64_T 1
3586 cat >> confdefs.h <<\EOF
3587 #define AIX4_3_PLUS 1
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_SOCKLEN_T 1
3594 cat >> confdefs.h <<\EOF
3595 #define HAVE_FCNTL_FILE_LOCKING 1
3599 AIX_LINK_OPTS='-brtl -bnso -berok'
3602 CFLAGS="$CFLAGS -qro -qroconst"
3603 AIX_WRAP='$(DIST)/lib/aixwrap.o'
3604 AIX_TMP='./_aix_tmp.o'
3605 if test -n "$USE_64"; then
3606 MDCPUCFG_H=_aix64.cfg
3609 MDCPUCFG_H=_aix32.cfg
3612 RESOLVE_LINK_SYMBOLS=1
3616 cat >> confdefs.h <<\EOF
3620 cat >> confdefs.h <<\EOF
3624 cat >> confdefs.h <<\EOF
3628 cat >> confdefs.h <<\EOF
3629 #define _POSIX_SOURCE 1
3633 MDCPUCFG_H=_beos.cfg
3636 RESOLVE_LINK_SYMBOLS=1
3637 case "${target_cpu}" in
3640 _DEBUG_FLAGS='-gdwarf-2 -O0'
3641 MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
3642 echo $ac_n "checking
for gethostbyaddr
in -lbind""...
$ac_c" 1>&6
3643 echo "configure
:3644: checking
for gethostbyaddr
in -lbind" >&5
3644 ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
3645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3646 echo $ac_n "(cached
) $ac_c" 1>&6
3648 ac_save_LIBS="$LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure
"
3652 #include "confdefs.h
"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3656 char gethostbyaddr();
3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 eval "ac_cv_lib_
$ac_lib_var=yes"
3666 echo "configure
: failed program was
:" >&5
3667 cat conftest.$ac_ext >&5
3669 eval "ac_cv_lib_
$ac_lib_var=no
"
3672 LIBS="$ac_save_LIBS"
3675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 OS_LIBS="$OS_LIBS -lbind -lsocket"
3679 echo "$ac_t""no
" 1>&6
3687 DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o'
3689 _DEBUG_FLAGS='-g -O0'
3695 cat >> confdefs.h <<\EOF
3699 cat >> confdefs.h <<\EOF
3703 cat >> confdefs.h <<\EOF
3704 #define NEED_BSDREGEX 1
3708 CFLAGS="$CFLAGS -Wall -Wno-format"
3709 CXXFLAGS="$CXXFLAGS -Wall -Wno-format"
3711 if echo "$OS_TEST" | grep -c 86 >/dev/null; then
3713 elif echo "$OS_TEST" | grep -c sparc >/dev/null; then
3717 MDCPUCFG_H=_bsdi.cfg
3722 case "$target_os" in
3724 cat >> confdefs.h <<\EOF
3725 #define _PR_BSDI_JMPBUF_IS_ARRAY 1
3728 cat >> confdefs.h <<\EOF
3729 #define _PR_STAT_HAS_ONLY_ST_ATIME 1
3732 cat >> confdefs.h <<\EOF
3733 #define _PR_NEED_H_ERRNO 1
3742 cat >> confdefs.h <<\EOF
3743 #define _PR_TIMESPEC_HAS_TS_SEC 1
3746 cat >> confdefs.h <<\EOF
3747 #define _PR_BSDI_JMPBUF_IS_ARRAY 1
3750 cat >> confdefs.h <<\EOF
3754 cat >> confdefs.h <<\EOF
3758 cat >> confdefs.h <<\EOF
3759 #define _PR_STAT_HAS_ST_ATIMESPEC 1
3762 PR_MD_ASFILES=os_BSD_OS_386_2.s
3766 cat >> confdefs.h <<\EOF
3767 #define _PR_SELECT_CONST_TIMEVAL 1
3770 cat >> confdefs.h <<\EOF
3771 #define _PR_BSDI_JMPBUF_IS_STRUCT 1
3774 cat >> confdefs.h <<\EOF
3778 cat >> confdefs.h <<\EOF
3782 cat >> confdefs.h <<\EOF
3783 #define _PR_STAT_HAS_ST_ATIMESPEC 1
3786 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
3788 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
3790 case "$target_os" in
3791 bsdi4.2* | bsdi4.3* | bsdi5.*)
3792 cat >> confdefs.h <<\EOF
3793 #define _PR_HAVE_GETPROTO_R 1
3796 cat >> confdefs.h <<\EOF
3797 #define _PR_HAVE_GETPROTO_R_POINTER 1
3804 cat >> confdefs.h <<\EOF
3805 #define _PR_SELECT_CONST_TIMEVAL 1
3808 cat >> confdefs.h <<\EOF
3809 #define _PR_BSDI_JMPBUF_IS_STRUCT 1
3812 cat >> confdefs.h <<\EOF
3816 cat >> confdefs.h <<\EOF
3820 cat >> confdefs.h <<\EOF
3821 #define _PR_STAT_HAS_ST_ATIMESPEC 1
3830 cat >> confdefs.h <<\EOF
3834 cat >> confdefs.h <<\EOF
3838 cat >> confdefs.h <<\EOF
3839 #define HAVE_BSD_FLOCK 1
3842 cat >> confdefs.h <<\EOF
3843 #define HAVE_SOCKLEN_T 1
3846 AS='$(CC) -x assembler-with-cpp'
3847 CFLAGS="$CFLAGS -Wall -fno-common"
3848 case "${target_cpu}" in
3853 if test -n "$USE_64"; then
3866 if test "`echo $CC | grep -c '\-arch '`" = "0"; then
3867 CC="$CC -arch $CPU_ARCH"
3869 ac_safe=`echo "crt_externs.h
" | sed 'y%./+-%__p_%'`
3870 echo $ac_n "checking
for crt_externs.h
""...
$ac_c" 1>&6
3871 echo "configure
:3872: checking
for crt_externs.h
" >&5
3872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3873 echo $ac_n "(cached
) $ac_c" 1>&6
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure
"
3877 #include "confdefs.h
"
3878 #include <crt_externs.h>
3880 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3881 { (eval echo configure:3882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3883 if test -z "$ac_err"; then
3885 eval "ac_cv_header_
$ac_safe=yes"
3888 echo "configure
: failed program was
:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_header_
$ac_safe=no
"
3895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3899 echo "$ac_t""no
" 1>&6
3903 DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
3905 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
3906 STRIP="$STRIP -x -S"
3909 MDCPUCFG_H=_darwin.cfg
3910 PR_MD_CSRCS=darwin.c
3911 PR_MD_ASFILES=os_Darwin.s
3913 # Add Mac OS X support for loading CFM & CFBundle plugins
3914 if test -f "${MACOS_SDK_DIR}/System
/Library
/Frameworks
/Carbon.framework
/Carbon
"; then
3915 cat >> confdefs.h <<\EOF
3921 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
3922 export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
3923 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
3924 case "${target_cpu}" in
3926 export MACOSX_DEPLOYMENT_TARGET=10.2
3929 export MACOSX_DEPLOYMENT_TARGET=10.4
3935 if test "$MACOS_SDK_DIR"; then
3937 if test ! -d "$MACOS_SDK_DIR"; then
3938 { echo "configure
: error
: SDK not found. When using
--with-macos-sdk, you must
3939 specify a valid SDK. SDKs are installed when the optional cross-development
3940 tools are selected during the Xcode
/Developer Tools installation.
" 1>&2; exit 1; }
3944 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
3945 GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
3946 GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
3948 GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
3949 if test "$GCC_VERSION_MAJOR" -lt "4" ; then
3950 SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System
/Library
/Frameworks
"
3951 if test -d "${MACOS_SDK_DIR}/Library
/Frameworks
" ; then
3952 SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library
/Frameworks
"
3955 SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}"
3957 CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
3959 CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"
3962 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
3964 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then
3965 MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}"
3967 MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}"
3970 LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
3971 export NEXT_ROOT=$MACOS_SDK_DIR
3973 if test -n "$CROSS_COMPILE" ; then
3974 HOST_CC="NEXT_ROOT
= $HOST_CC"
3975 HOST_CXX="NEXT_ROOT
= $HOST_CXX"
3978 CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
3980 CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
3982 if test "$GCC_VERSION_FULL" != "4.0.0" ; then
3983 LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
3985 LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
3993 cat >> confdefs.h <<\EOF
3997 cat >> confdefs.h <<\EOF
3998 #define _PR_LOCAL_THREADS_ONLY 1
4001 cat >> confdefs.h <<\EOF
4005 cat >> confdefs.h <<\EOF
4009 cat >> confdefs.h <<\EOF
4013 cat >> confdefs.h <<\EOF
4014 #define _DGUX_SOURCE 1
4017 cat >> confdefs.h <<\EOF
4018 #define _POSIX4A_DRAFT6_SOURCE 1
4024 MDCPUCFG_H=_dgux.cfg
4029 if test -z "$USE_NSPR_THREADS"; then
4032 cat >> confdefs.h <<\EOF
4036 cat >> confdefs.h <<\EOF
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_BSD_FLOCK 1
4044 cat >> confdefs.h <<\EOF
4045 #define HAVE_SOCKLEN_T 1
4048 CFLAGS="$CFLAGS $
(DSO_CFLAGS
) -ansi -Wall"
4049 MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
4050 if test "$MOZ_OBJFORMAT" = "elf
"; then
4055 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4057 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
4058 MDCPUCFG_H=_freebsd.cfg
4059 PR_MD_CSRCS=freebsd.c
4063 cat >> confdefs.h <<\EOF
4067 cat >> confdefs.h <<\EOF
4071 cat >> confdefs.h <<\EOF
4072 #define _HPUX_SOURCE 1
4075 # OSF1 and HPUX report the POLLHUP event for a socket when the
4076 # shutdown(SHUT_WR) operation is called for the remote end, even though
4077 # the socket is still writeable. Use select(), instead of poll(), to
4078 # workaround this problem.
4079 cat >> confdefs.h <<\EOF
4080 #define _PR_POLL_WITH_SELECT 1
4083 cat >> confdefs.h <<\EOF
4084 #define _USE_BIG_FDS 1
4087 DSO_LDOPTS='-b +h $(notdir $@)'
4089 if test "$OS_TEST" = "ia64
"; then
4091 DSO_LDOPTS="$DSO_LDOPTS +b
'\$\$ORIGIN'"
4092 CPU_ARCH_TAG=_$OS_TEST
4093 if test -z "$USE_64"; then
4096 PR_MD_ASFILES=os_HPUX_ia64.s
4098 cat >> confdefs.h <<\EOF
4103 PR_MD_ASFILES=os_HPUX.s
4105 if test -n "$USE_64"; then
4106 MDCPUCFG_H=_hpux64.cfg
4108 MDCPUCFG_H=_hpux32.cfg
4110 if test -z "$GNU_CC"; then
4116 ASFLAGS="$ASFLAGS -x assembler-with-cpp
"
4119 if test -n "$MOZILLA_CLIENT"; then
4120 DEFAULT_IMPL_STRATEGY=_EMU
4123 if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then
4124 cat >> confdefs.h <<\EOF
4125 #define _PR_NEED_H_ERRNO 1
4128 cat >> confdefs.h <<\EOF
4132 DEFAULT_IMPL_STRATEGY=_EMU
4136 if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then
4137 cat >> confdefs.h <<\EOF
4138 #define _PR_NO_LARGE_FILES 1
4143 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
4144 cat >> confdefs.h <<\EOF
4145 #define _PR_NEED_H_ERRNO 1
4150 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
4151 cat >> confdefs.h <<\EOF
4152 #define HAVE_INT_LOCALTIME_R 1
4157 if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_POINTER_LOCALTIME_R 1
4164 # HP-UX 11i v2 (B.11.23) or higher
4166 case "$OS_RELEASE" in
4167 [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
4173 if test "$OS_RELEASE" = "B
.10.01"; then
4174 cat >> confdefs.h <<\EOF
4178 DEFAULT_IMPL_STRATEGY=_EMU
4181 if test "$OS_RELEASE" = "B
.10.10"; then
4182 cat >> confdefs.h <<\EOF
4186 cat >> confdefs.h <<\EOF
4190 DEFAULT_IMPL_STRATEGY=_PTH
4193 if test "$OS_RELEASE" = "B
.10.20"; then
4194 cat >> confdefs.h <<\EOF
4198 cat >> confdefs.h <<\EOF
4202 if test -z "$GNU_CC"; then
4203 CFLAGS="$CFLAGS +DAportable
+DS1.1
"
4204 CXXFLAGS="$CXXFLAGS +DAportable
+DS1.1
"
4206 DEFAULT_IMPL_STRATEGY=_PTH
4209 if test "$OS_RELEASE" = "B
.10.30"; then
4210 cat >> confdefs.h <<\EOF
4214 cat >> confdefs.h <<\EOF
4218 if test -z "$GNU_CC"; then
4219 CFLAGS="$CFLAGS +DAportable
+DS1.1
"
4220 CXXFLAGS="$CXXFLAGS +DAportable
+DS1.1
"
4222 DEFAULT_IMPL_STRATEGY=_PTH
4225 if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then
4226 cat >> confdefs.h <<\EOF
4230 cat >> confdefs.h <<\EOF
4234 cat >> confdefs.h <<\EOF
4235 #define _LARGEFILE64_SOURCE 1
4238 cat >> confdefs.h <<\EOF
4239 #define _PR_HAVE_OFF64_T 1
4242 cat >> confdefs.h <<\EOF
4243 #define HAVE_FCNTL_FILE_LOCKING 1
4246 if test -z "$GNU_CC"; then
4247 if test -z "$USE_64"; then
4248 if test "$OS_TEST" = "ia64
"; then
4249 CFLAGS="$CFLAGS +DD32
"
4250 CXXFLAGS="$CXXFLAGS +DD32
"
4252 CFLAGS="$CFLAGS +DAportable
+DS2.0
"
4253 CXXFLAGS="$CXXFLAGS +DAportable
+DS2.0
"
4256 if test "$OS_TEST" = "ia64
"; then
4257 CFLAGS="$CFLAGS +DD64
"
4258 CXXFLAGS="$CXXFLAGS +DD64
"
4260 CFLAGS="$CFLAGS +DA2.0W
+DS2.0
"
4261 CXXFLAGS="$CXXFLAGS +DA2.0W
+DS2.0
"
4265 DEFAULT_IMPL_STRATEGY=_PTH
4268 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU
"; then
4272 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH
"; then
4274 if test "$USE_NSPR_THREADS"; then
4277 if test "$USE_USER_PTHREADS"; then
4284 cat >> confdefs.h <<\EOF
4288 cat >> confdefs.h <<\EOF
4292 cat >> confdefs.h <<\EOF
4296 cat >> confdefs.h <<\EOF
4297 #define _SGI_MP_SOURCE 1
4300 cat >> confdefs.h <<\EOF
4301 #define HAVE_FCNTL_FILE_LOCKING 1
4305 PR_MD_ASFILES=os_Irix.s
4306 MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@'
4308 RESOLVE_LINK_SYMBOLS=1
4309 if test -n "$USE_64"; then
4310 MDCPUCFG_H=_irix64.cfg
4312 MDCPUCFG_H=_irix32.cfg
4314 case "${target_os}" in
4316 cat >> confdefs.h <<\EOF
4326 cat >> confdefs.h <<\EOF
4337 if test "$GNU_CC"; then
4338 AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
4339 CFLAGS="$CFLAGS -Wall -Wno-format"
4340 _OPTIMIZE_FLAGS="-O6"
4342 if test -n "$USE_N32"; then
4343 AS='as -D_ASM $(INCLUDES) -n32'
4345 AS='as -D_ASM $(INCLUDES)'
4347 CFLAGS="$CFLAGS -fullwarn -xansi"
4348 if test "$USE_N32"; then
4349 _OPTIMIZE_FLAGS="-O -OPT:Olimit
=4000"
4351 _OPTIMIZE_FLAGS="-O -Olimit 4000"
4353 if test "$USE_MDUPDATE"; then
4354 CFLAGS="$CFLAGS -MDupdate \$
(DEPENDENCIES
)"
4358 CFLAGS="$CFLAGS -multigot"
4359 DSO_LDOPTS="-no_unresolved"
4360 if test "$USE_N32"; then
4361 CFLAGS="$CFLAGS -n32 -woff 1209"
4362 DSO_LDOPTS="$DSO_LDOPTS -n32"
4364 if test "$USE_64"; then
4365 CFLAGS="$CFLAGS -64"
4367 CFLAGS="$CFLAGS -32"
4372 CFLAGS="$CFLAGS -xgot"
4376 if test "${target_os}" = "irix5.3
"; then
4377 cat >> confdefs.h <<\EOF
4382 case "${target_os}" in
4384 if test -z "$GNU_CC"; then
4385 CFLAGS="$CFLAGS -mips3"
4387 cat >> confdefs.h <<\EOF
4388 #define _PR_HAVE_GETPROTO_R 1
4391 cat >> confdefs.h <<\EOF
4392 #define _PR_HAVE_GETPROTO_R_POINTER 1
4395 cat >> confdefs.h <<\EOF
4396 #define _PR_HAVE_SGI_PRDA_PROCMASK 1
4403 cat >> confdefs.h <<\EOF
4404 #define _PR_HAVE_SGI_PRDA_PROCMASK 1
4411 *-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*)
4412 if test -z "$USE_NSPR_THREADS"; then
4416 cat >> confdefs.h <<\EOF
4420 cat >> confdefs.h <<\EOF
4421 #define _GNU_SOURCE 1
4424 cat >> confdefs.h <<\EOF
4425 #define HAVE_FCNTL_FILE_LOCKING 1
4429 *-android*|*-linuxandroid*)
4431 cat >> confdefs.h <<\EOF
4437 cat >> confdefs.h <<\EOF
4443 CFLAGS="$CFLAGS -Wall"
4444 CXXFLAGS="$CXXFLAGS -Wall"
4445 MDCPUCFG_H=_linux.cfg
4447 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4449 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
4451 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
4452 # combo is not yet good at debugging inlined
4453 # functions (even when using DWARF2 as the
4456 if echo "$OS_TEST" | grep -c 86 >/dev/null; then
4461 CPU_ARCH_TAG=_${CPU_ARCH}
4462 case "${target_cpu}" in
4464 cat >> confdefs.h <<\EOF
4468 cat >> confdefs.h <<\EOF
4472 CFLAGS="$CFLAGS -mieee"
4473 CXXFLAGS="$CXXFLAGS -mieee"
4476 cat >> confdefs.h <<\EOF
4480 PR_MD_ASFILES=os_Linux_x86.s
4483 PR_MD_ASFILES=os_Linux_ia64.s
4486 if test -n "$USE_64"; then
4487 PR_MD_ASFILES=os_Linux_x86_64.s
4489 cat >> confdefs.h <<\EOF
4493 PR_MD_ASFILES=os_Linux_x86.s
4499 PR_MD_ASFILES=os_Linux_ppc.s
4502 if test -n "$USE_64"; then
4506 PR_MD_ASFILES=os_Linux_ppc.s
4510 CFLAGS="$CFLAGS -m68020-60"
4511 CXXFLAGS="$CXXFLAGS -m68020-60"
4516 *-mingw*|*-cygwin*|*-msvc*|*-mks*)
4517 cat >> confdefs.h <<\EOF
4521 cat >> confdefs.h <<\EOF
4525 PR_MD_ARCH_DIR=windows
4526 RESOLVE_LINK_SYMBOLS=1
4528 if test -n "$GNU_CC"; then
4530 CXX="$CXX -mwindows"
4532 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
4534 # Use temp file for windres (bug 213281)
4535 RCFLAGS='-O coff --use-temp-file'
4540 AR='lib -NOLOGO -OUT:"$@
"'
4542 RANLIB='echo not_ranlib'
4543 STRIP='echo not_strip'
4545 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
4550 # Determine compiler version
4552 _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p'
4554 CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"`
4555 _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'`
4556 _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'`
4557 _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'`
4558 _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'`
4559 MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
4561 if test "$_CC_MAJOR_VERSION" -eq "14"; then
4562 if test $_CC_RELEASE -gt 50727; then
4564 elif test $_CC_BUILD -ge 762; then
4567 cat >> confdefs.h <<\EOF
4568 #define _CRT_SECURE_NO_DEPRECATE 1
4571 cat >> confdefs.h <<\EOF
4572 #define _CRT_NONSTDC_NO_DEPRECATE 1
4575 elif test $_CC_MAJOR_VERSION -ge 15; then
4577 cat >> confdefs.h <<\EOF
4578 #define _CRT_SECURE_NO_WARNINGS 1
4581 cat >> confdefs.h <<\EOF
4582 #define _CRT_NONSTDC_NO_WARNINGS 1
4587 if test -n "$_USE_DYNAMICBASE"; then
4588 DLLFLAGS="$DLLFLAGS -DYNAMICBASE"
4591 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic
4592 # tape manipulation utility (or something else)
4593 if test "$MSC_VER" -ge "1400"; then
4595 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
4598 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
4599 if test -n "$MSMT_TOOL"; then
4600 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
4601 if test -z "$MSMANIFEST_TOOL_VERSION"; then
4602 echo "configure
: warning
: Unknown version of the Microsoft
(R
) Manifest Tool.
" 1>&2
4607 { echo "configure
: error
: Microsoft
(R
) Manifest Tool must be
in your \
$PATH.
" 1>&2; exit 1; }
4611 CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
4612 DLLFLAGS="$DLLFLAGS -OUT:\"\$@
\""
4616 PROFILE_GEN_CFLAGS="-GL"
4617 PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT
"
4618 PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
4619 PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE
"
4621 if test -z "$MOZ_OPTIMIZE"; then
4622 CFLAGS="$CFLAGS -Od"
4625 if test -n "$USE_DEBUG_RTL"; then
4626 CFLAGS="$CFLAGS -MDd"
4628 CFLAGS="$CFLAGS -MD"
4631 if test -n "$MOZ_DEBUG"; then
4632 cat >> confdefs.h <<\EOF
4637 DEFINES="$DEFINES -U_DEBUG"
4640 if test -n "$MOZ_DEBUG_SYMBOLS"; then
4641 if test -n "$MOZ_OPTIMIZE"; then
4642 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF
"
4643 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF
"
4645 DLLFLAGS="$DLLFLAGS -DEBUG"
4646 LDFLAGS="$LDFLAGS -DEBUG"
4650 OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS
"
4651 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
4652 OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE
"
4655 if test "$OS_TARGET" = "WINNT
"; then
4656 CFLAGS="$CFLAGS -GT"
4657 LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4658 LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4660 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4661 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4665 if test -n "$USE_STATIC_TLS"; then
4666 cat >> confdefs.h <<\EOF
4667 #define _PR_USE_STATIC_TLS 1
4672 if test "$OS_TARGET" = "WINNT
"; then
4673 cat >> confdefs.h <<\EOF
4678 cat >> confdefs.h <<\EOF
4682 # undefine WINNT as some versions of mingw gcc define it by default
4683 DEFINES="$DEFINES -UWINNT"
4684 cat >> confdefs.h <<\EOF
4685 #define _PR_GLOBAL_THREADS_ONLY 1
4690 if test "$CPU_ARCH" = "x86
"; then
4693 CPU_ARCH_TAG=$CPU_ARCH
4696 if test -n "$USE_DEBUG_RTL"; then
4700 case "$OS_TARGET" in
4702 MDCPUCFG_H=_winnt.cfg
4705 MDCPUCFG_H=_win95.cfg
4708 { echo "configure
: error
: Missing OS_TARGET
for ${target}. Use
--enable-win32-target to
set.
" 1>&2; exit 1; }
4712 case "$target_cpu" in
4714 if test -n "$USE_64"; then
4715 cat >> confdefs.h <<\EOF
4720 cat >> confdefs.h <<\EOF
4727 cat >> confdefs.h <<\EOF
4734 cat >> confdefs.h <<\EOF
4741 cat >> confdefs.h <<\EOF
4742 #define _CPU_ARCH_NOT_DEFINED 1
4750 cat >> confdefs.h <<\EOF
4754 cat >> confdefs.h <<\EOF
4758 cat >> confdefs.h <<\EOF
4762 cat >> confdefs.h <<\EOF
4763 #define _PR_GLOBAL_THREADS_ONLY 1
4767 AR_FLAGS='-NOLOGO -OUT:"$@
"'
4772 MKSHLIB='$(LD) -DLL $(DSO_LDOPTS) -OUT:$@'
4774 PR_MD_ARCH_DIR=windows
4775 RESOLVE_LINK_SYMBOLS=1
4777 MDCPUCFG_H=_win95.cfg
4778 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4779 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4781 DLLFLAGS='-OUT:"$@
"'
4782 if test -n "$MOZ_DEBUG_SYMBOLS"; then
4783 OS_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
4784 OS_DLLFLAGS='-DEBUG -DEBUGTYPE:CV'
4785 DSO_LDOPTS='-DEBUG -DEBUGTYPE:CV'
4792 cat >> confdefs.h <<\EOF
4796 cat >> confdefs.h <<\EOF
4800 cat >> confdefs.h <<\EOF
4801 #define HAVE_BSD_FLOCK 1
4804 if test -z "$USE_NSPR_THREADS"; then
4807 MDCPUCFG_H=_netbsd.cfg
4808 PR_MD_CSRCS=netbsd.c
4810 DSO_CFLAGS='-fPIC -DPIC'
4811 CFLAGS="$CFLAGS -ansi -Wall"
4812 CXXFLAGS="$CXXFLAGS -ansi -Wall"
4813 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
4815 if test -z "$OBJECT_FMT"; then
4816 if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
4819 DSO_LDOPTS='-shared'
4823 DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
4827 if test "$LIBRUNPATH"; then
4828 DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
4833 cat >> confdefs.h <<\EOF
4837 cat >> confdefs.h <<\EOF
4841 cat >> confdefs.h <<\EOF
4842 #define _QNX_SOURCE 1
4845 cat >> confdefs.h <<\EOF
4846 #define HAVE_POINTER_LOCALTIME_R 1
4851 MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
4854 OS_LIBS="$OS_LIBS -lsocket"
4855 _OPTIMIZE_FLAGS="-O1"
4856 _DEBUG_FLAGS="-gstabs"
4860 cat >> confdefs.h <<\EOF
4864 cat >> confdefs.h <<\EOF
4868 cat >> confdefs.h <<\EOF
4869 #define HAVE_BSD_FLOCK 1
4872 cat >> confdefs.h <<\EOF
4873 #define HAVE_SOCKLEN_T 1
4876 CFLAGS="$CFLAGS -ansi -Wall"
4877 CXXFLAGS="$CXXFLAGS -ansi -Wall"
4880 MDCPUCFG_H=_openbsd.cfg
4881 PR_MD_CSRCS=openbsd.c
4883 if test -z "$USE_NSPR_THREADS"; then
4886 DSO_LDOPTS='-shared -fPIC'
4887 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4891 SHELL_OVERRIDE="SHELL
= /usr
/bin
/ksh
"
4892 cat >> confdefs.h <<\EOF
4896 cat >> confdefs.h <<\EOF
4900 cat >> confdefs.h <<\EOF
4901 #define _REENTRANT 1
4904 # OSF1 and HPUX report the POLLHUP event for a socket when the
4905 # shutdown(SHUT_WR) operation is called for the remote end, even though
4906 # the socket is still writeable. Use select(), instead of poll(), to
4907 # workaround this problem.
4908 cat >> confdefs.h <<\EOF
4909 #define _PR_POLL_WITH_SELECT 1
4913 if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then
4917 if test -z "$GNU_CC"; then
4918 CC="$CC -std1 -ieee_with_inexact"
4919 if test "$OS_RELEASE" != "V2.0
"; then
4920 CC="$CC -readonly_strings"
4922 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4923 ac_safe=`echo "machine
/builtins.h
" | sed 'y%./+-%__p_%'`
4924 echo $ac_n "checking
for machine
/builtins.h
""...
$ac_c" 1>&6
4925 echo "configure
:4926: checking
for machine
/builtins.h
" >&5
4926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4927 echo $ac_n "(cached
) $ac_c" 1>&6
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure
"
4931 #include "confdefs.h
"
4932 #include <machine/builtins.h>
4934 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4935 { (eval echo configure:4936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4937 if test -z "$ac_err"; then
4939 eval "ac_cv_header_
$ac_safe=yes"
4942 echo "configure
: failed program was
:" >&5
4943 cat conftest.$ac_ext >&5
4945 eval "ac_cv_header_
$ac_safe=no
"
4949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4950 echo "$ac_t""yes" 1>&6
4951 cat >> confdefs.h <<\EOF
4952 #define OSF1_HAVE_MACHINE_BUILTINS_H 1
4956 echo "$ac_t""no
" 1>&6
4960 CFLAGS="$CFLAGS -mieee"
4961 CXXFLAGS="$CXXFLAGS -mieee"
4964 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
4965 cat >> confdefs.h <<\EOF
4966 #define HAVE_INT_LOCALTIME_R 1
4970 cat >> confdefs.h <<\EOF
4971 #define HAVE_FCNTL_FILE_LOCKING 1
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_POINTER_LOCALTIME_R 1
4979 if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then
4980 cat >> confdefs.h <<\EOF
4981 #define OSF1V4_MAP_PRIVATE_BUG 1
4985 DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)'
4986 MDCPUCFG_H=_osf1.cfg
4991 cat >> confdefs.h <<\EOF
4995 cat >> confdefs.h <<\EOF
4999 cat >> confdefs.h <<\EOF
5000 #define _PR_NEED_H_ERRNO 1
5009 cat >> confdefs.h <<\EOF
5013 cat >> confdefs.h <<\EOF
5017 cat >> confdefs.h <<\EOF
5018 #define _PR_NEED_H_ERRNO 1
5022 MDCPUCFG_H=_riscos.cfg
5023 PR_MD_CSRCS=riscos.c
5025 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
5026 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5030 cat >> confdefs.h <<\EOF
5034 cat >> confdefs.h <<\EOF
5038 cat >> confdefs.h <<\EOF
5042 cat >> confdefs.h <<\EOF
5046 cat >> confdefs.h <<\EOF
5050 cat >> confdefs.h <<\EOF
5051 #define _PR_NEED_H_ERRNO 1
5054 CC='cc -b elf -KPIC'
5055 CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w'
5058 DSO_LDOPTS='-b elf -G'
5059 MDCPUCFG_H=_scoos.cfg
5064 if test -z "$USE_NSPR_THREADS"; then
5067 cat >> confdefs.h <<\EOF
5071 cat >> confdefs.h <<\EOF
5075 cat >> confdefs.h <<\EOF
5079 cat >> confdefs.h <<\EOF
5083 cat >> confdefs.h <<\EOF
5087 cat >> confdefs.h <<\EOF
5091 cat >> confdefs.h <<\EOF
5092 #define HAVE_FCNTL_FILE_LOCKING 1
5096 MDCPUCFG_H=_solaris.cfg
5097 PR_MD_CSRCS=solaris.c
5099 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5100 RESOLVE_LINK_SYMBOLS=1
5101 case "${OS_RELEASE}" in
5105 # It is safe to use the -Bdirect linker flag on Solaris 10 or later.
5109 if test -n "$GNU_CC"; then
5111 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
5114 DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore'
5115 if test -n "$USE_B_DIRECT"; then
5116 DSO_LDOPTS="$DSO_LDOPTS,-Bdirect"
5120 DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore'
5121 if test -n "$USE_B_DIRECT"; then
5122 DSO_LDOPTS="$DSO_LDOPTS -Bdirect"
5125 if test -n "$GNU_CC"; then
5126 CFLAGS="$CFLAGS -Wall"
5127 CXXFLAGS="$CXXFLAGS -Wall"
5128 if test -n "$USE_MDUPDATE"; then
5129 CFLAGS="$CFLAGS -MDupdate \$
(DEPENDENCIES
)"
5130 CXXFLAGS="$CXXFLAGS -MDupdate \$
(DEPENDENCIES
)"
5132 GCC_AS=`$CC -print-prog-name=as`
5133 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then
5137 CFLAGS="$CFLAGS -xstrconst"
5138 CXXFLAGS="$CXXFLAGS -Qoption cg
-xstrconst -features=tmplife
"
5139 if test -z "$MOZ_OPTIMIZE"; then
5140 CFLAGS="$CFLAGS -xs"
5141 CXXFLAGS="$CXXFLAGS -xs"
5143 _OPTIMIZE_FLAGS=-xO4
5145 if test -z "$GNU_AS"; then
5146 ASFLAGS="$ASFLAGS -Wa,-P"
5148 if test -n "$USE_64"; then
5149 if test -n "$GNU_CC"; then
5153 if test "$OS_TEST" = "i86pc
"; then
5154 CC="$CC -xarch=amd64
"
5155 CXX="$CXX -xarch=amd64
"
5158 CXX="$CXX -xarch=v9
"
5162 if test "$OS_TEST" = "i86pc
"; then
5163 if test -z "$USE_64"; then
5164 cat >> confdefs.h <<\EOF
5169 CPU_ARCH_TAG=_$OS_TEST
5170 # The default debug format, DWARF (-g), is not supported by gcc
5171 # on i386-ANY-sysv4/solaris, but the stabs format is. It is
5172 # assumed that the Solaris assembler /usr/ccs/bin/as is used.
5173 # If your gcc uses GNU as, you do not need the -Wa,-s option.
5174 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
5175 _DEBUG_FLAGS=-gstabs
5176 if test -z "$GNU_AS"; then
5177 _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
5181 case "${target_os}" in
5183 cat >> confdefs.h <<\EOF
5184 #define _PR_NO_LARGE_FILES 1
5189 cat >> confdefs.h <<\EOF
5190 #define _PR_NO_LARGE_FILES 1
5195 cat >> confdefs.h <<\EOF
5196 #define SOLARIS2_5 1
5201 cat >> confdefs.h <<\EOF
5202 #define _PR_HAVE_OFF64_T 1
5205 # The lfcompile64(5) man page on Solaris 2.6 says:
5206 # For applications that do not wish to conform to the POSIX or
5207 # X/Open specifications, the 64-bit transitional interfaces
5208 # are available by default. No compile-time flags need to be
5210 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
5211 # The native compiler, gcc 2.8.x, and egcs don't have this problem.
5212 if test -n "$GNU_CC"; then
5213 cat >> confdefs.h <<\EOF
5214 #define _LARGEFILE64_SOURCE 1
5220 case "${target_os}" in
5232 # Solaris 8 or higher has IPv6.
5233 cat >> confdefs.h <<\EOF
5239 if test "$CPU_ARCH" = "sparc
"; then
5240 # 64-bit Solaris SPARC requires V9 architecture, so the following
5242 if test -z "$USE_64"; then
5243 ULTRASPARC_LIBRARY=nspr_flt
5246 # Purify requires that binaries linked against nspr also
5247 # be linked against -lrt (or -lposix4) so add it to OS_LIBS
5249 _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'`
5250 OS_LIBS="$OS_LIBS $_librt"
5254 cat >> confdefs.h <<\EOF
5258 cat >> confdefs.h <<\EOF
5262 cat >> confdefs.h <<\EOF
5266 cat >> confdefs.h <<\EOF
5271 if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then
5272 cat >> confdefs.h <<\EOF
5273 #define _PR_NO_LARGE_FILES 1
5276 CC='$(NSDEPTH)/build/hcc cc'
5277 CXX='$(NSDEPTH)/build/hcpp CC'
5278 MDCPUCFG_H=_unixware.cfg
5280 cat >> confdefs.h <<\EOF
5281 #define _LARGEFILE64_SOURCE 1
5284 cat >> confdefs.h <<\EOF
5285 #define _PR_HAVE_OFF64_T 1
5288 cat >> confdefs.h <<\EOF
5289 #define _PR_HAVE_SOCKADDR_LEN 1
5292 MDCPUCFG_H=_unixware7.cfg
5294 PR_MD_CSRCS=unixware.c
5300 # Check whether --with-symbian-sdk or --without-symbian-sdk was given.
5301 if test "${with_symbian_sdk+set}" = set; then
5302 withval="$with_symbian_sdk"
5303 SYMBIAN_SDK_DIR=$withval
5307 echo -----------------------------------------------------------------------------
5308 echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR
5309 echo -----------------------------------------------------------------------------
5311 cat >> confdefs.h <<\EOF
5315 cat >> confdefs.h <<\EOF
5319 cat >> confdefs.h <<\EOF
5323 cat >> confdefs.h <<\EOF
5324 #define __SYMBIAN32__ 1
5327 cat >> confdefs.h <<\EOF
5331 cat >> confdefs.h <<\EOF
5335 cat >> confdefs.h <<\EOF
5336 #define __SUPPORT_CPP_EXCEPTIONS__ 1
5339 cat >> confdefs.h <<\EOF
5340 #define MOZ_STDERR_TO_STDOUT 1
5343 cat >> confdefs.h <<\EOF
5344 #define HAVE_FCNTL_FILE_LOCKING 1
5347 cat >> confdefs.h <<\EOF
5348 #define HAVE_SOCKLEN_T 1
5358 MDCPUCFG_H=_symbian.cfg
5359 PR_MD_CSRCS=symbian.c
5361 RANLIB='echo no ranlib '
5364 OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__"
5365 CFLAGS="$CFLAGS -MD -nostdinc"
5366 SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32
/include
/variant
-I$SYMBIAN_SDK_DIR/Epoc32
/include
-I$SYMBIAN_SDK_DIR/Epoc32
/include
/stdapis
"
5367 echo -------------------------------------------------------
5368 echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE
5369 echo -------------------------------------------------------
5370 case "$OS_TARGET" in
5376 WINSCW_LD_DIR="\$
(SYMBIAN_SDK_DIR
)/EPOC32
/RELEASE
/WINSCW
/UDEB
"
5377 CFLAGS="$CFLAGS -O0 -inline off
-wchar_t off
-align 4 -warnings on
-w nohidevirtual
,nounusedexpr
-msgstyle gcc
-enum int
-str pool
-exc ms
-trigraphs on
-nostderr -gccdep -cwd source -i- -I\$
(VPATH
)"
5378 SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh
"
5379 AR_FLAGS="-library -msgstyle gcc
-stdlib -subsystem windows
-noimplib -o \$@
"
5380 cat >> confdefs.h <<\EOF
5384 cat >> confdefs.h <<\EOF
5388 cat >> confdefs.h <<\EOF
5392 cat >> confdefs.h <<\EOF
5393 #define __WINSCW__ 1
5396 DEFINES="$DEFINES -U_WIN32"
5399 CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t
-mapcs -pipe -x c
-msoft-float"
5400 CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy"
5401 SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32
/INCLUDE
/GCCE
/GCCE.h
"
5402 cat >> confdefs.h <<\EOF
5406 cat >> confdefs.h <<\EOF
5410 DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32
/include
/variant
/Symbian_OS_v9.2.hrh
"
5413 { echo "configure
: error
: Missing OS_TARGET
for ${target}. Set
--enable-symbian-target to with
'WINSCW' or
'GCCE'.
" 1>&2; exit 1; }
5416 CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}"
5420 cat >> confdefs.h <<\EOF
5424 cat >> confdefs.h <<\EOF
5428 cat >> confdefs.h <<\EOF
5429 #define BSD_SELECT 1
5432 cat >> confdefs.h <<\EOF
5433 #define TCPV40HDRS 1
5443 RESOLVE_LINK_SYMBOLS=1
5445 cat >> confdefs.h <<\EOF
5451 CFLAGS="$CFLAGS -Wall -Zomf"
5452 CXXFLAGS="$CFLAGS -Wall -Zomf"
5453 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5455 DSO_LDOPTS='-Zomf -Zdll'
5457 _OPTIMIZE_FLAGS="-O2 -s"
5458 _DEBUG_FLAGS="-g -fno-inline"
5459 if test -n "$MOZ_OPTIMIZE"; then
5460 DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK
:2 -Zlinker /PACKCODE
-Zlinker /PACKDATA
"
5464 if test -n "$MOZ_OS2_HIGH_MEMORY"; then
5465 LDFLAGS="$LDFLAGS -Zhigh-mem"
5466 cat >> confdefs.h <<\EOF
5467 #define MOZ_OS2_HIGH_MEMORY 1
5472 # GCC for OS/2 currently predefines these, but we don't want them
5473 DEFINES="$DEFINES -Uunix -U__unix -U__unix__"
5477 cat >> confdefs.h <<\EOF
5485 if test -z "$SKIP_LIBRARY_CHECKS"; then
5490 *-darwin*|*-beos*|*-os2*)
5493 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
5494 echo "configure
:5495: checking
for dlopen
in -ldl" >&5
5495 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5497 echo $ac_n "(cached
) $ac_c" 1>&6
5499 ac_save_LIBS="$LIBS"
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure
"
5503 #include "confdefs.h
"
5504 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 eval "ac_cv_lib_
$ac_lib_var=yes"
5517 echo "configure
: failed program was
:" >&5
5518 cat conftest.$ac_ext >&5
5520 eval "ac_cv_lib_
$ac_lib_var=no
"
5523 LIBS="$ac_save_LIBS"
5526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5527 echo "$ac_t""yes" 1>&6
5528 ac_safe=`echo "dlfcn.h
" | sed 'y%./+-%__p_%'`
5529 echo $ac_n "checking
for dlfcn.h
""...
$ac_c" 1>&6
5530 echo "configure
:5531: checking
for dlfcn.h
" >&5
5531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5532 echo $ac_n "(cached
) $ac_c" 1>&6
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure
"
5536 #include "confdefs.h
"
5539 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5540 { (eval echo configure:5541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5542 if test -z "$ac_err"; then
5544 eval "ac_cv_header_
$ac_safe=yes"
5547 echo "configure
: failed program was
:" >&5
5548 cat conftest.$ac_ext >&5
5550 eval "ac_cv_header_
$ac_safe=no
"
5554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5556 OS_LIBS="-ldl $OS_LIBS"
5558 echo "$ac_t""no
" 1>&6
5562 echo "$ac_t""no
" 1>&6
5571 if test $ac_cv_prog_gcc = yes; then
5572 echo $ac_n "checking whether
${CC-cc} needs
-traditional""...
$ac_c" 1>&6
5573 echo "configure
:5574: checking whether
${CC-cc} needs
-traditional" >&5
5574 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5575 echo $ac_n "(cached
) $ac_c" 1>&6
5577 ac_pattern="Autoconf.
*'x'"
5578 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure
"
5580 #include "confdefs.h
"
5584 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5585 egrep "$ac_pattern" >/dev/null 2>&1; then
5587 ac_cv_prog_gcc_traditional=yes
5590 ac_cv_prog_gcc_traditional=no
5595 if test $ac_cv_prog_gcc_traditional = no; then
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure
"
5598 #include "confdefs.h
"
5602 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5603 egrep "$ac_pattern" >/dev/null 2>&1; then
5605 ac_cv_prog_gcc_traditional=yes
5612 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5613 if test $ac_cv_prog_gcc_traditional = yes; then
5614 CC="$CC -traditional"
5619 LIBS="$LIBS $OS_LIBS"
5620 for ac_func in dladdr gettid lchown setpriority strerror syscall
5622 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5623 echo "configure
:5624: checking
for $ac_func" >&5
5624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5625 echo $ac_n "(cached
) $ac_c" 1>&6
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure
"
5629 #include "confdefs.h
"
5630 /* System header to define __stub macros and hopefully few prototypes,
5631 which can conflict with char $ac_func(); below. */
5633 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */
5640 /* The GNU C library defines this for functions which it implements
5641 to always fail with ENOSYS. Some functions are actually named
5642 something starting with __ and the normal name is an alias. */
5643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5653 eval "ac_cv_func_
$ac_func=yes"
5655 echo "configure
: failed program was
:" >&5
5656 cat conftest.$ac_ext >&5
5658 eval "ac_cv_func_
$ac_func=no
"
5663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5664 echo "$ac_t""yes" 1>&6
5665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5666 cat >> confdefs.h <<EOF
5667 #define $ac_tr_func 1
5671 echo "$ac_t""no
" 1>&6
5679 # Check whether --with-ccache or --without-ccache was given.
5680 if test "${with_ccache+set}" = set; then
5681 withval="$with_ccache"
5688 if test "$CCACHE" != "no
"; then
5689 if test -n "$CCACHE"; then
5690 if test "$CCACHE" = "yes"; then
5693 if test ! -e "$CCACHE"; then
5694 { echo "configure
: error
: $CCACHE not found
" 1>&2; exit 1; }
5698 for ac_prog in $CCACHE ccache
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701 set dummy $ac_prog; ac_word=$2
5702 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5703 echo "configure
:5704: checking
for $ac_word" >&5
5704 if eval "test \"`echo '$''{'ac_cv_path_CCACHE'+set}'`\" = set"; then
5705 echo $ac_n "(cached
) $ac_c" 1>&6
5709 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
5712 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a dos path.
5715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5717 for ac_dir in $ac_dummy; do
5718 test -z "$ac_dir" && ac_dir=.
5719 if test -f $ac_dir/$ac_word; then
5720 ac_cv_path_CCACHE="$ac_dir/$ac_word"
5728 CCACHE="$ac_cv_path_CCACHE"
5729 if test -n "$CCACHE"; then
5730 echo "$ac_t""$CCACHE" 1>&6
5732 echo "$ac_t""no
" 1>&6
5735 test -n "$CCACHE" && break
5738 if test -z "$CCACHE" -o "$CCACHE" = ":"; then
5739 { echo "configure
: error
: ccache not found
" 1>&2; exit 1; }
5740 elif test -x "$CCACHE"; then
5744 { echo "configure
: error
: $CCACHE is not executable
" 1>&2; exit 1; }
5748 # Check whether --enable-strip or --disable-strip was given.
5749 if test "${enable_strip+set}" = set; then
5750 enableval="$enable_strip"
5751 if test "$enableval" = "yes"; then
5757 case "${target_os}" in
5759 if test -z "$GNU_CC"; then
5761 echo $ac_n "checking
for +Olit support
""...
$ac_c" 1>&6
5762 echo "configure
:5763: checking
for +Olit support
" >&5
5763 if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
5764 echo $ac_n "(cached
) $ac_c" 1>&6
5766 ac_cv_hpux_usable_olit_option=no
5768 echo 'int main() { return 0; }' | cat > conftest.c
5769 ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1
5770 if test $? -eq 0; then
5771 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then
5772 ac_cv_hpux_usable_olit_option=yes
5779 echo "$ac_t""$ac_cv_hpux_usable_olit_option" 1>&6
5781 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
5782 CFLAGS="$CFLAGS +Olit
=all
"
5783 CXXFLAGS="$CXXFLAGS +Olit
=all
"
5785 CFLAGS="$CFLAGS +ESlit
"
5786 CXXFLAGS="$CXXFLAGS +ESlit
"
5794 case "$target_os" in
5803 echo $ac_n "checking
for pthread_create
in -lpthreads""...
$ac_c" 1>&6
5804 echo "configure
:5805: checking
for pthread_create
in -lpthreads" >&5
5806 #include <pthread.h>
5807 void
*foo
(void
*v
) { return v
; }
5810 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5815 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5;
5816 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5;
5818 rm -f dummy.c dummy${ac_exeext} ;
5819 if test "$_res" = "0"; then
5820 echo "$ac_t""yes" 1>&6
5821 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
5823 echo "$ac_t""no
" 1>&6
5825 echo $ac_n "checking
for pthread_create
in -lpthread""...
$ac_c" 1>&6
5826 echo "configure
:5827: checking
for pthread_create
in -lpthread" >&5
5828 #include <pthread.h>
5829 void
*foo
(void
*v
) { return v
; }
5832 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5837 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5;
5838 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5;
5840 rm -f dummy.c dummy${ac_exeext} ;
5841 if test "$_res" = "0"; then
5842 echo "$ac_t""yes" 1>&6
5843 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
5845 echo "$ac_t""no
" 1>&6
5847 echo $ac_n "checking
for pthread_create
in -lc_r""...
$ac_c" 1>&6
5848 echo "configure
:5849: checking
for pthread_create
in -lc_r" >&5
5850 #include <pthread.h>
5851 void
*foo
(void
*v
) { return v
; }
5854 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5859 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5;
5860 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5;
5862 rm -f dummy.c dummy${ac_exeext} ;
5863 if test "$_res" = "0"; then
5864 echo "$ac_t""yes" 1>&6
5865 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
5867 echo "$ac_t""no
" 1>&6
5869 echo $ac_n "checking
for pthread_create
in -lc""...
$ac_c" 1>&6
5870 echo "configure
:5871: checking
for pthread_create
in -lc" >&5
5872 #include <pthread.h>
5873 void
*foo
(void
*v
) { return v
; }
5876 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5881 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5;
5882 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5;
5884 rm -f dummy.c dummy${ac_exeext} ;
5885 if test "$_res" = "0"; then
5886 echo "$ac_t""yes" 1>&6
5890 echo "$ac_t""no
" 1>&6
5906 # Check whether --with-pthreads or --without-pthreads was given.
5907 if test "${with_pthreads+set}" = set; then
5908 withval="$with_pthreads"
5909 if test "$withval" = "yes"; then
5910 if test -n "$_HAVE_PTHREADS"; then
5915 { echo "configure
: error
: --with-pthreads specified
for a system without pthread support
" 1>&2; exit 1; };
5922 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
5930 # Check whether --enable-user-pthreads or --disable-user-pthreads was given.
5931 if test "${enable_user_pthreads+set}" = set; then
5932 enableval="$enable_user_pthreads"
5933 if test "$enableval" = "yes"; then
5934 if test -n "$_HAVE_PTHREADS"; then
5939 { echo "configure
: error
: --enable-user-pthreads specified
for a system without pthread support
" 1>&2; exit 1; };
5945 # Check whether --enable-nspr-threads or --disable-nspr-threads was given.
5946 if test "${enable_nspr_threads+set}" = set; then
5947 enableval="$enable_nspr_threads"
5948 if test "$enableval" = "yes"; then
5958 # Check whether --with-bthreads or --without-bthreads was given.
5959 if test "${with_bthreads+set}" = set; then
5960 withval="$with_bthreads"
5961 if test "$withval" = "yes"; then
5971 fi # SKIP_LIBRARY_CHECKS
5973 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5974 if test "${enable_ipv6+set}" = set; then
5975 enableval="$enable_ipv6"
5976 if test "$enableval" = "yes"; then
5984 if test -n "$USE_PTHREADS"; then
5986 ac_cv_have_dash_pthread=no
5987 echo $ac_n "checking whether
${CC-cc} accepts
-pthread""...
$ac_c" 1>&6
5988 echo "configure
:5989: checking whether
${CC-cc} accepts
-pthread" >&5
5989 echo 'int main() { return 0; }' | cat > conftest.c
5990 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
5991 if test $? -eq 0; then
5992 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
5993 ac_cv_have_dash_pthread=yes
5994 case "$target_os" in
5996 # Freebsd doesn't use -pthread for compiles, it uses them for linking
5999 CFLAGS="$CFLAGS -pthread"
6000 CXXFLAGS="$CXXFLAGS -pthread"
6006 echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
6008 ac_cv_have_dash_pthreads=no
6009 if test "$ac_cv_have_dash_pthread" = "no
"; then
6010 echo $ac_n "checking whether
${CC-cc} accepts
-pthreads""...
$ac_c" 1>&6
6011 echo "configure
:6012: checking whether
${CC-cc} accepts
-pthreads" >&5
6012 echo 'int main() { return 0; }' | cat > conftest.c
6013 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
6014 if test $? -eq 0; then
6015 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
6016 ac_cv_have_dash_pthreads=yes
6017 CFLAGS="$CFLAGS -pthreads"
6018 CXXFLAGS="$CXXFLAGS -pthreads"
6022 echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6
6027 if test "$ac_cv_have_dash_pthreads" = "yes"; then
6032 cat >> confdefs.h <<\EOF
6033 #define _REENTRANT 1
6036 cat >> confdefs.h <<\EOF
6037 #define _THREAD_SAFE 1
6040 if test "$ac_cv_have_dash_pthread" = "yes"; then
6041 _PTHREAD_LDFLAGS="-pthread"
6043 _PTHREAD_LDFLAGS="-lc_r"
6047 if test "$ac_cv_have_dash_pthread" = "yes"; then
6048 _PTHREAD_LDFLAGS="-pthread"
6052 cat >> confdefs.h <<\EOF
6053 #define _THREAD_SAFE 1
6056 if test "$ac_cv_have_dash_pthread" = "yes"; then
6061 if test "$ac_cv_have_dash_pthread" = "yes"; then
6062 _PTHREAD_LDFLAGS=-pthread
6065 *-linux*|*-gnu*|*-k*bsd*-gnu)
6066 cat >> confdefs.h <<\EOF
6067 #define _REENTRANT 1
6074 if test -n "$USE_USER_PTHREADS"; then
6084 if test -n "$USE_NSPR_THREADS"; then
6085 cat >> confdefs.h <<\EOF
6086 #define _PR_LOCAL_THREADS_ONLY 1
6090 case "$target_os" in
6092 if test -z "$USE_PTHREADS"; then
6093 cat >> confdefs.h <<\EOF
6094 #define AIX_RENAME_SELECT 1
6100 if test -z "$USE_NSPR_THREADS"; then
6101 cat >> confdefs.h <<\EOF
6102 #define HAVE_POINTER_LOCALTIME_R 1
6108 if test -z "$USE_NSPR_THREADS"; then
6109 cat >> confdefs.h <<\EOF
6110 #define HAVE_POINTER_LOCALTIME_R 1
6114 if test -n "$USE_PTHREADS"; then
6115 cat >> confdefs.h <<\EOF
6116 #define _PR_HAVE_THREADSAFE_GETHOST 1
6122 if test -z "$USE_NSPR_THREADS"; then
6123 cat >> confdefs.h <<\EOF
6124 #define HAVE_POINTER_LOCALTIME_R 1
6128 if test -n "$USE_PTHREADS"; then
6129 cat >> confdefs.h <<\EOF
6130 #define _PR_HAVE_THREADSAFE_GETHOST 1
6138 if test -n "$USE_PTHREADS"; then
6139 cat >> confdefs.h <<\EOF
6140 #define _PR_NEED_PTHREAD_INIT 1
6146 if test -n "$USE_NSPR_THREADS"; then
6147 cat >> confdefs.h <<\EOF
6148 #define _PR_LOCAL_THREADS_ONLY 1
6154 if test -n "$USE_NSPR_THREADS"; then
6155 cat >> confdefs.h <<\EOF
6156 #define _PR_LOCAL_THREADS_ONLY 1
6160 if test "$USE_PTHREADS"; then
6161 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
6162 cat >> confdefs.h <<\EOF
6163 #define _REENTRANT 1
6166 cat >> confdefs.h <<\EOF
6167 #define _PR_DCETHREADS 1
6171 cat >> confdefs.h <<EOF
6172 #define _POSIX_C_SOURCE 199506L
6175 cat >> confdefs.h <<\EOF
6176 #define _PR_HAVE_THREADSAFE_GETHOST 1
6181 if test "$USE_USER_PTHREADS"; then
6182 cat >> confdefs.h <<EOF
6183 #define _POSIX_C_SOURCE 199506L
6189 if test "${target_os}" = "irix6.5
"; then
6190 if test -n "$USE_PTHREADS"; then
6191 cat >> confdefs.h <<\EOF
6192 #define _PR_HAVE_GETHOST_R 1
6195 cat >> confdefs.h <<\EOF
6196 #define _PR_HAVE_GETHOST_R_POINTER 1
6202 *-linux*|*-gnu*|*-k*bsd*-gnu)
6203 if test -n "$USE_NSPR_THREADS"; then
6204 cat >> confdefs.h <<\EOF
6205 #define _PR_LOCAL_THREADS_ONLY 1
6210 *-mingw*|*-cygwin*|*-msvc*|*-mks*|*-wince*|*-winmo*|*-os2*|*-beos*)
6215 *-netbsd*|*-openbsd*)
6216 if test -n "$USE_NSPR_THREADS"; then
6217 cat >> confdefs.h <<\EOF
6218 #define _PR_LOCAL_THREADS_ONLY 1
6224 if test -n "$USE_NSPR_THREADS"; then
6225 cat >> confdefs.h <<\EOF
6226 #define _PR_LOCAL_THREADS_ONLY 1
6230 if test -n "$USE_PTHREADS"; then
6231 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
6234 cat >> confdefs.h <<\EOF
6235 #define _PR_HAVE_THREADSAFE_GETHOST 1
6242 if test -n "$USE_NSPR_THREADS"; then
6243 cat >> confdefs.h <<\EOF
6244 #define _PR_LOCAL_THREADS_ONLY 1
6248 if test -n "$USE_PTHREADS"; then
6249 cat >> confdefs.h <<\EOF
6250 #define _REENTRANT 1
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE_POINTER_LOCALTIME_R 1
6257 if test "$OS_TEST" = "i86pc
"; then
6258 if test -n "$USE_64"; then
6259 PR_MD_ASFILES=os_SunOS_x86_64.s
6261 PR_MD_ASFILES=os_SunOS_x86.s
6264 if test -n "$USE_64"; then
6265 PR_MD_ASFILES=os_SunOS_sparcv9.s
6271 if test -n "$USE_PTHREADS"; then
6272 cat >> confdefs.h <<\EOF
6273 #define _PR_HAVE_GETHOST_R 1
6276 cat >> confdefs.h <<\EOF
6277 #define _PR_HAVE_GETHOST_R_POINTER 1
6284 OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
6286 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
6287 _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
6290 if test -n "$_SAVE_DEBUG_FLAGS"; then
6291 _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS"
6294 if test -n "$MOZ_OPTIMIZE"; then
6295 CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS"
6296 CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS"
6299 if test -n "$MOZ_DEBUG_SYMBOLS"; then
6300 CFLAGS="$CFLAGS $_DEBUG_FLAGS"
6301 CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS"
6304 if test -n "$MOZ_OPTIMIZE"; then
6310 if test -n "$USE_64"; then
6314 RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
6316 case "$target_os" in
6318 CC="\$
(CYGWIN_WRAPPER
) $CC"
6319 CXX="\$
(CYGWIN_WRAPPER
) $CXX"
6320 RC="\$
(CYGWIN_WRAPPER
) $RC"
6324 # Check whether --enable-wrap-malloc or --disable-wrap-malloc was given.
6325 if test "${enable_wrap_malloc+set}" = set; then
6326 enableval="$enable_wrap_malloc"
6327 if test "$enableval" = "yes"; then
6333 if test -n "$_WRAP_MALLOC"; then
6334 if test -n "$GNU_CC"; then
6335 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc
,--wrap=calloc
,--wrap=valloc
,--wrap=free
,--wrap=realloc
,--wrap=memalign
"
6336 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new
,--wrap=__builtin_vec_new
,--wrap=__builtin_delete
,--wrap=__builtin_vec_delete
"
6337 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup
,--wrap=strndup
"
6338 WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign
,--wrap=malloc_usable_size
"
6340 { echo "configure
: error
: --enable-wrap-malloc is not supported
for non-GNU toolchains
" 1>&2; exit 1; }
6344 # Check whether --with-wrap-malloc or --without-wrap-malloc was given.
6345 if test "${with_wrap_malloc+set}" = set; then
6346 withval="$with_wrap_malloc"
6347 WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval"
6466 lib
/libc
/include
/Makefile
6467 lib
/libc
/src
/Makefile
6472 pr
/include
/md
/Makefile
6473 pr
/include
/obsolete
/Makefile
6474 pr
/include
/private
/Makefile
6477 pr
/src
/linking
/Makefile
6478 pr
/src
/malloc
/Makefile
6480 pr
/src
/md
/${PR_MD_ARCH_DIR}/Makefile
6481 pr
/src
/memory
/Makefile
6482 pr
/src
/misc
/Makefile
6483 pr
/src
/threads
/Makefile
6485 pr
/tests
/dll
/Makefile
6488 if test "$OS_TARGET" = "Linux
"; then
6489 MAKEFILES="$MAKEFILES
6492 elif test "$OS_TARGET" = "SunOS
"; then
6493 MAKEFILES="$MAKEFILES
6494 pkg
/solaris
/Makefile
6495 pkg
/solaris
/SUNWpr
/Makefile
6496 pkg
/solaris
/SUNWprd
/Makefile
6500 if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
6501 MAKEFILES="$MAKEFILES
6502 pr
/src
/threads
/combined
/Makefile
6504 elif test -n "$USE_PTHREADS"; then
6505 MAKEFILES="$MAKEFILES
6506 pr
/src
/pthreads
/Makefile
6508 elif test -n "$USE_BTHREADS"; then
6509 MAKEFILES="$MAKEFILES
6510 pr
/src
/bthreads
/Makefile
6514 if test -n "$USE_CPLUS"; then
6515 MAKEFILES="$MAKEFILES
6516 pr
/src
/cplus
/Makefile
6517 pr
/src
/cplus
/tests
/Makefile
6521 echo $MAKEFILES > unallmakefiles
6524 cat > confcache <<\EOF
6525 # This file is a shell script that caches the results of configure
6526 # tests run on this system so they can be shared between configure
6527 # scripts and configure runs. It is not useful on other systems.
6528 # If it contains results you don't want to keep, you may remove or edit it.
6530 # By default, configure uses ./config.cache as the cache file,
6531 # creating it if it does not exist already. You can give configure
6532 # the --cache-file=FILE option to use a different cache file; that is
6533 # what configure does when it calls configure scripts in
6534 # subdirectories, so they share the cache.
6535 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6536 # config.status only pays attention to the cache file if you give it the
6537 # --recheck option to rerun configure.
6540 # The following way of writing the cache mishandles newlines in values,
6541 # but we know of no workaround that is simple, portable, and efficient.
6542 # So, don't put newlines in cache variables' values.
6543 # Ultrix sh set writes to stderr and can't be redirected directly,
6544 # and sets the high bit in the cache file unless we assign to the vars.
6546 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6548 # `set' does not quote correctly, so add quotes (double-quote substitution
6549 # turns \\\\ into \\, and sed turns \\ into \).
6551 -e "s
/'/'\\\\''/g
" \
6552 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
6555 # `set' quotes correctly as required by POSIX, so do not add quotes.
6556 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6559 if cmp -s $cache_file confcache; then
6562 if test -w $cache_file; then
6563 echo "updating cache
$cache_file"
6564 cat confcache > $cache_file
6566 echo "not updating unwritable cache
$cache_file"
6571 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6573 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
6574 # Let make expand exec_prefix.
6575 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
6577 # Any assignment to VPATH causes Sun make to only execute
6578 # the first set of double-colon rules, so remove it if not needed.
6579 # If there is a colon in the path, we need to keep it.
6580 if test "x
$srcdir" = x.; then
6581 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6584 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6586 # Transform confdefs.h into DEFS.
6587 # Protect against shell expansion while executing Makefile rules.
6588 # Protect against Makefile macro expansion.
6589 cat > conftest.defs <<\EOF
6590 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6591 s%[ `~#$^&*(){}\\|;'"<>?
]%\\&%g
6596 DEFS
=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6600 # Without the "./", some shells look in PATH for config.status.
6601 : ${CONFIG_STATUS=./config.status}
6603 echo creating
$CONFIG_STATUS
6604 rm -f $CONFIG_STATUS
6605 cat > $CONFIG_STATUS <<EOF
6607 # Generated automatically by configure.
6608 # Run this file to recreate the current configuration.
6609 # This directory was configured as follows,
6610 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6612 # $0 $ac_configure_args
6614 # Compiler output produced by configure, useful for debugging
6615 # configure, is in ./config.log if it exists.
6617 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6620 case "\$ac_option" in
6621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6622 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6623 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6624 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6625 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6627 -help | --help | --hel | --he | --h)
6628 echo "\$ac_cs_usage"; exit 0 ;;
6629 *) echo "\$ac_cs_usage"; exit 1 ;;
6633 ac_given_srcdir=$srcdir
6635 trap 'rm -fr `echo "$MAKEFILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6637 cat >> $CONFIG_STATUS <<EOF
6641 # Protect against being on the right side of a sed subst in config.status.
6642 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6647 s%@CFLAGS@%$CFLAGS%g
6648 s%@CPPFLAGS@%$CPPFLAGS%g
6649 s%@CXXFLAGS@%$CXXFLAGS%g
6650 s%@FFLAGS@%$FFLAGS%g
6652 s%@LDFLAGS@%$LDFLAGS%g
6654 s%@exec_prefix@%$exec_prefix%g
6655 s%@prefix@%$prefix%g
6656 s%@program_transform_name@%$program_transform_name%g
6657 s%@bindir@%$bindir%g
6658 s%@sbindir@%$sbindir%g
6659 s%@libexecdir@%$libexecdir%g
6660 s%@datadir@%$datadir%g
6661 s%@sysconfdir@%$sysconfdir%g
6662 s%@sharedstatedir@%$sharedstatedir%g
6663 s%@localstatedir@%$localstatedir%g
6664 s%@libdir@%$libdir%g
6665 s%@includedir@%$includedir%g
6666 s%@oldincludedir@%$oldincludedir%g
6667 s%@infodir@%$infodir%g
6668 s%@mandir@%$mandir%g
6670 s%@host_alias@%$host_alias%g
6671 s%@host_cpu@%$host_cpu%g
6672 s%@host_vendor@%$host_vendor%g
6673 s%@host_os@%$host_os%g
6674 s%@target@%$target%g
6675 s%@target_alias@%$target_alias%g
6676 s%@target_cpu@%$target_cpu%g
6677 s%@target_vendor@%$target_vendor%g
6678 s%@target_os@%$target_os%g
6680 s%@build_alias@%$build_alias%g
6681 s%@build_cpu@%$build_cpu%g
6682 s%@build_vendor@%$build_vendor%g
6683 s%@build_os@%$build_os%g
6685 s%@dist_prefix@%$dist_prefix%g
6686 s%@dist_bindir@%$dist_bindir%g
6687 s%@dist_includedir@%$dist_includedir%g
6688 s%@dist_libdir@%$dist_libdir%g
6689 s%@WHOAMI@%$WHOAMI%g
6690 s%@HOST_CC@%$HOST_CC%g
6692 s%@RANLIB@%$RANLIB%g
6697 s%@WINDRES@%$WINDRES%g
6700 s%@CCACHE@%$CCACHE%g
6701 s%@SHELL_OVERRIDE@%$SHELL_OVERRIDE%g
6702 s%@MOZILLA_CLIENT@%$MOZILLA_CLIENT%g
6703 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
6704 s%@HOST_LDFLAGS@%$HOST_LDFLAGS%g
6705 s%@GNU_CC@%$GNU_CC%g
6706 s%@GCC_USE_GNU_LD@%$GCC_USE_GNU_LD%g
6707 s%@MSC_VER@%$MSC_VER%g
6708 s%@CROSS_COMPILE@%$CROSS_COMPILE%g
6709 s%@MOZ_OPTIMIZE@%$MOZ_OPTIMIZE%g
6710 s%@MOZ_DEBUG@%$MOZ_DEBUG%g
6711 s%@MOZ_DEBUG_SYMBOLS@%$MOZ_DEBUG_SYMBOLS%g
6712 s%@USE_CPLUS@%$USE_CPLUS%g
6713 s%@USE_IPV6@%$USE_IPV6%g
6714 s%@USE_N32@%$USE_N32%g
6715 s%@USE_64@%$USE_64%g
6716 s%@OBJECT_MODE@%$OBJECT_MODE%g
6717 s%@ENABLE_STRIP@%$ENABLE_STRIP%g
6718 s%@USE_PTHREADS@%$USE_PTHREADS%g
6719 s%@USE_BTHREADS@%$USE_BTHREADS%g
6720 s%@USE_USER_PTHREADS@%$USE_USER_PTHREADS%g
6721 s%@USE_NSPR_THREADS@%$USE_NSPR_THREADS%g
6722 s%@LIBNSPR@%$LIBNSPR%g
6723 s%@LIBPLC@%$LIBPLC%g
6724 s%@MOD_MAJOR_VERSION@%$MOD_MAJOR_VERSION%g
6725 s%@MOD_MINOR_VERSION@%$MOD_MINOR_VERSION%g
6726 s%@MOD_PATCH_VERSION@%$MOD_PATCH_VERSION%g
6727 s%@NSPR_MODNAME@%$NSPR_MODNAME%g
6728 s%@MDCPUCFG_H@%$MDCPUCFG_H%g
6729 s%@PR_MD_CSRCS@%$PR_MD_CSRCS%g
6730 s%@PR_MD_ASFILES@%$PR_MD_ASFILES%g
6731 s%@PR_MD_ARCH_DIR@%$PR_MD_ARCH_DIR%g
6732 s%@CPU_ARCH@%$CPU_ARCH%g
6733 s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g
6734 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
6735 s%@DLL_SUFFIX@%$DLL_SUFFIX%g
6736 s%@ASM_SUFFIX@%$ASM_SUFFIX%g
6737 s%@WRAP_LDFLAGS@%$WRAP_LDFLAGS%g
6738 s%@MKSHLIB@%$MKSHLIB%g
6739 s%@DSO_CFLAGS@%$DSO_CFLAGS%g
6740 s%@DSO_LDOPTS@%$DSO_LDOPTS%g
6741 s%@OS_TARGET@%$OS_TARGET%g
6742 s%@OS_ARCH@%$OS_ARCH%g
6743 s%@OS_RELEASE@%$OS_RELEASE%g
6744 s%@OS_TEST@%$OS_TEST%g
6745 s%@MACOSX_DEPLOYMENT_TARGET@%$MACOSX_DEPLOYMENT_TARGET%g
6746 s%@DEFINES@%$DEFINES%g
6747 s%@AR_FLAGS@%$AR_FLAGS%g
6748 s%@ASFLAGS@%$ASFLAGS%g
6749 s%@FILTER@%$FILTER%g
6750 s%@IMPLIB@%$IMPLIB%g
6751 s%@PROFILE_GEN_CFLAGS@%$PROFILE_GEN_CFLAGS%g
6752 s%@PROFILE_GEN_LDFLAGS@%$PROFILE_GEN_LDFLAGS%g
6753 s%@PROFILE_USE_CFLAGS@%$PROFILE_USE_CFLAGS%g
6754 s%@PROFILE_USE_LDFLAGS@%$PROFILE_USE_LDFLAGS%g
6755 s%@OS_LIBS@%$OS_LIBS%g
6756 s%@RESOLVE_LINK_SYMBOLS@%$RESOLVE_LINK_SYMBOLS%g
6757 s%@AIX_LINK_OPTS@%$AIX_LINK_OPTS%g
6758 s%@NOSUCHFILE@%$NOSUCHFILE%g
6759 s%@MOZ_OBJFORMAT@%$MOZ_OBJFORMAT%g
6760 s%@ULTRASPARC_LIBRARY@%$ULTRASPARC_LIBRARY%g
6761 s%@OBJDIR@%$OBJDIR%g
6762 s%@OBJDIR_NAME@%$OBJDIR_NAME%g
6763 s%@RELEASE_OBJDIR_NAME@%$RELEASE_OBJDIR_NAME%g
6764 s%@NSINSTALL@%$NSINSTALL%g
6765 s%@OPTIMIZER@%$OPTIMIZER%g
6767 s%@RCFLAGS@%$RCFLAGS%g
6768 s%@DLLFLAGS@%$DLLFLAGS%g
6769 s%@EXEFLAGS@%$EXEFLAGS%g
6770 s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g
6771 s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g
6772 s%@VISIBILITY_FLAGS@%$VISIBILITY_FLAGS%g
6773 s%@WRAP_SYSTEM_INCLUDES@%$WRAP_SYSTEM_INCLUDES%g
6774 s%@MACOS_SDK_DIR@%$MACOS_SDK_DIR%g
6775 s%@SYMBIAN_SDK_DIR@%$SYMBIAN_SDK_DIR%g
6776 s%@NEXT_ROOT@%$NEXT_ROOT%g
6782 cat >> $CONFIG_STATUS <<\EOF
6784 # Split the substitutions into bite-sized pieces for seds with
6785 # small command number limits, like on Digital OSF/1 and HP-UX.
6786 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6787 ac_file
=1 # Number of current file.
6788 ac_beg
=1 # First line for current file.
6789 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6792 while $ac_more_lines; do
6793 if test $ac_beg -gt 1; then
6794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6796 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6798 if test ! -s conftest.s
$ac_file; then
6800 rm -f conftest.s
$ac_file
6802 if test -z "$ac_sed_cmds"; then
6803 ac_sed_cmds
="sed -f conftest.s$ac_file"
6805 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6807 ac_file
=`expr $ac_file + 1`
6809 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6812 if test -z "$ac_sed_cmds"; then
6817 cat >> $CONFIG_STATUS <<EOF
6819 CONFIG_FILES=\${CONFIG_FILES-"$MAKEFILES"}
6821 cat >> $CONFIG_STATUS <<\EOF
6822 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6825 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6826 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6827 *) ac_file_in
="${ac_file}.in" ;;
6830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6832 # Remove last slash and all that follows it. Not all systems have dirname.
6833 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6834 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6835 # The file is in a subdirectory.
6836 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6837 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6838 # A "../" for each directory in $ac_dir_suffix.
6839 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6841 ac_dir_suffix
= ac_dots
=
6844 case "$ac_given_srcdir" in
6846 if test -z "$ac_dots"; then top_srcdir
=.
6847 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6848 /* | ?
:/*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6850 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6851 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6855 echo creating
"$ac_file"
6857 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6859 *Makefile
*) ac_comsub
="1i\\
6860 # $configure_input" ;;
6864 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" `
6866 s%@configure_input@%$configure_input%g
6867 s%@srcdir@%$srcdir%g
6868 s%@top_srcdir@%$top_srcdir%g
6869 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6876 cat >> $CONFIG_STATUS <<EOF
6879 cat >> $CONFIG_STATUS <<\EOF
6880 chmod +x config
/nspr-config
6883 chmod +x
$CONFIG_STATUS
6884 rm -fr confdefs
* $ac_clean_files
6885 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1