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-dist-prefix=DIST_PREFIX
16 place build files in DIST_PREFIX [dist]"
18 --with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]"
20 --with-dist-includedir=DIR
21 build include files in DIR [DIST_PREFIX/include/nspr]"
23 --with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]"
25 --with-mozilla Compile NSPR with Mozilla support"
27 --enable-optimize(=val) Enable code optimizations (val, ie. -O2) "
29 --disable-debug Do not compile in debugging symbols
30 --enable-debug(=val) Enable debugging (debug flags val)"
32 --enable-win32-target=\$t
33 Specify win32 flavor. (WIN95 or WINNT)"
35 --enable-debug-rtl Use the MSVC debug runtime library"
37 --enable-n32 Enable n32 ABI support (IRIX only)"
39 --enable-64bit Enable 64-bit support (on certain platforms)"
41 --enable-mdupdate Enable use of certain compilers' mdupdate feature"
43 --enable-cplus Enable some c++ api routines"
45 --with-arm-kuser Use kuser helpers (Linux/ARM only)
46 (Requires kernel 2.6.13 or later)"
48 --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)"
50 --enable-macos-target=VER
51 Set the minimum MacOS version needed at runtime
52 [10.2 for ppc, 10.4 for x86]"
54 --disable-os2-high-mem Disable high-memory support on OS/2"
56 --enable-strip Enable stripping of shared libs and programs"
58 --with-pthreads Use system pthreads library as thread subsystem"
60 --enable-user-pthreads Build using userland pthreads"
62 --enable-nspr-threads Build using classic nspr threads"
64 --with-bthreads Use system bthreads library as thread subsystem
67 --enable-ipv6 Compile ipv6 support"
69 --enable-boehm Enable the Boehm Garbage Collector"
71 # Initialize some variables set by options.
72 # The variables have the same names as the options, with
73 # dashes changed to underlines.
75 cache_file
=.
/config.cache
84 program_transform_name
=s
,x
,x
,
92 bindir
='${exec_prefix}/bin'
93 sbindir
='${exec_prefix}/sbin'
94 libexecdir
='${exec_prefix}/libexec'
95 datadir
='${prefix}/share'
96 sysconfdir
='${prefix}/etc'
97 sharedstatedir
='${prefix}/com'
98 localstatedir
='${prefix}/var'
99 libdir
='${exec_prefix}/lib'
100 includedir
='${prefix}/include'
101 oldincludedir
='/usr/include'
102 infodir
='${prefix}/info'
103 mandir
='${prefix}/man'
105 # Initialize some other variables.
108 SHELL
=${CONFIG_SHELL-/bin/sh}
109 # Maximum number of lines to put in a shell here document.
116 # If the previous option needs an argument, assign it.
117 if test -n "$ac_prev"; then
118 eval "$ac_prev=\$ac_option"
124 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128 # Accept the important Cygnus configure options, so we can diagnose typos.
132 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
134 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
135 bindir
="$ac_optarg" ;;
137 -build |
--build |
--buil |
--bui |
--bu)
139 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
140 build
="$ac_optarg" ;;
142 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
143 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
144 ac_prev
=cache_file
;;
145 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
146 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
147 cache_file
="$ac_optarg" ;;
149 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
151 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
153 datadir
="$ac_optarg" ;;
155 -disable-* |
--disable-*)
156 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}=no" ;;
164 -enable-* |
--enable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}='$ac_optarg'" ;;
177 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
178 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
179 |
--exec |
--exe |
--ex)
180 ac_prev
=exec_prefix
;;
181 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
182 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
183 |
--exec=* |
--exe=* |
--ex=*)
184 exec_prefix
="$ac_optarg" ;;
186 -gas |
--gas |
--ga |
--g)
187 # Obsolete; use --with-gas.
190 -help |
--help |
--hel |
--he)
191 # Omit some internal or obsolete options to make the list less imposing.
192 # This message is too long to be a string in the A/UX 3.1 sh.
194 Usage: configure [options] [host]
195 Options: [defaults in brackets after descriptions]
197 --cache-file=FILE cache test results in FILE
198 --help print this message
199 --no-create do not create output files
200 --quiet, --silent do not print \`checking...' messages
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host |
--host |
--hos |
--ho)
247 -host=* |
--host=* |
--hos=* |
--ho=*)
250 -includedir |
--includedir |
--includedi |
--included |
--include \
251 |
--includ |
--inclu |
--incl |
--inc)
252 ac_prev
=includedir
;;
253 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
254 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
255 includedir
="$ac_optarg" ;;
257 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
259 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
260 infodir
="$ac_optarg" ;;
262 -libdir |
--libdir |
--libdi |
--libd)
264 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
265 libdir
="$ac_optarg" ;;
267 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
268 |
--libexe |
--libex |
--libe)
269 ac_prev
=libexecdir
;;
270 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
271 |
--libexe=* |
--libex=* |
--libe=*)
272 libexecdir
="$ac_optarg" ;;
274 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
275 |
--localstate |
--localstat |
--localsta |
--localst \
276 |
--locals |
--local |
--loca |
--loc |
--lo)
277 ac_prev
=localstatedir
;;
278 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
279 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
280 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
281 localstatedir
="$ac_optarg" ;;
283 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
285 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
286 mandir
="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
296 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
297 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
300 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
301 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
302 |
--oldin |
--oldi |
--old |
--ol |
--o)
303 ac_prev
=oldincludedir
;;
304 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
305 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
306 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
307 oldincludedir
="$ac_optarg" ;;
309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
312 prefix
="$ac_optarg" ;;
314 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
315 |
--program-pre |
--program-pr |
--program-p)
316 ac_prev
=program_prefix
;;
317 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
318 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
319 program_prefix
="$ac_optarg" ;;
321 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
322 |
--program-suf |
--program-su |
--program-s)
323 ac_prev
=program_suffix
;;
324 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
325 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
326 program_suffix
="$ac_optarg" ;;
328 -program-transform-name |
--program-transform-name \
329 |
--program-transform-nam |
--program-transform-na \
330 |
--program-transform-n |
--program-transform- \
331 |
--program-transform |
--program-transfor \
332 |
--program-transfo |
--program-transf \
333 |
--program-trans |
--program-tran \
334 |
--progr-tra |
--program-tr |
--program-t)
335 ac_prev
=program_transform_name
;;
336 -program-transform-name=* |
--program-transform-name=* \
337 |
--program-transform-nam=* |
--program-transform-na=* \
338 |
--program-transform-n=* |
--program-transform-=* \
339 |
--program-transform=* |
--program-transfor=* \
340 |
--program-transfo=* |
--program-transf=* \
341 |
--program-trans=* |
--program-tran=* \
342 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
343 program_transform_name
="$ac_optarg" ;;
345 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
346 |
-silent |
--silent |
--silen |
--sile |
--sil)
349 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
351 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
353 sbindir
="$ac_optarg" ;;
355 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
356 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
357 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
359 ac_prev
=sharedstatedir
;;
360 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
361 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
362 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
364 sharedstatedir
="$ac_optarg" ;;
366 -site |
--site |
--sit)
368 -site=* |
--site=* |
--sit=*)
371 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
373 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
374 srcdir
="$ac_optarg" ;;
376 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
377 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
378 ac_prev
=sysconfdir
;;
379 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
380 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
381 sysconfdir
="$ac_optarg" ;;
383 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
385 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
386 target
="$ac_optarg" ;;
388 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
391 -version |
--version |
--versio |
--versi |
--vers)
392 echo "configure generated by autoconf version 2.13"
396 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* |
--without-*)
409 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
422 |
--x-incl |
--x-inc |
--x-in |
--x-i)
423 ac_prev
=x_includes
;;
424 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
425 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
426 x_includes
="$ac_optarg" ;;
428 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
429 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
430 ac_prev
=x_libraries
;;
431 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
432 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
433 x_libraries
="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE
; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c) ;;
485 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
486 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
487 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest
* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file
=config
/libc_r.h
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted
=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted
=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$CONFIG_SITE"; then
537 if test "x$prefix" != xNONE
; then
538 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
540 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 for ac_site_file
in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp
='$CPP $CPPFLAGS'
561 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling
=$ac_cv_prog_cc_cross
567 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
568 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
569 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
576 ac_n
= ac_c
='\c' ac_t
=
582 for ac_dir
in ${srcdir}/build
/autoconf
$srcdir/${srcdir}/build
/autoconf
; do
583 if test -f $ac_dir/install-sh
; then
585 ac_install_sh
="$ac_aux_dir/install-sh -c"
587 elif test -f $ac_dir/install.sh
; then
589 ac_install_sh
="$ac_aux_dir/install.sh -c"
593 if test -z "$ac_aux_dir"; then
594 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
596 ac_config_guess=$ac_aux_dir/config.guess
597 ac_config_sub=$ac_aux_dir/config.sub
598 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
601 # Do some error checking and defaulting for the host and target type.
603 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
606 # 1. You are not allowed to specify --host, --target, and nonopt at the
608 # 2. Host defaults to nonopt.
609 # 3. If nonopt is not specified, then host defaults to the current host,
610 # as determined by config.guess.
611 # 4. Target and build default to nonopt.
612 # 5. If nonopt is not specified, then target and build default to host.
614 # The aliases save the names the user supplied, while $host etc.
615 # will get canonicalized.
616 case $host---$target---$nonopt in
617 NONE---*---* | *---NONE---* | *---*---NONE) ;;
618 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
622 # Make sure we can run config.sub.
623 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
624 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
627 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
628 echo "configure
:629: checking
host system
type" >&5
631 case "$host_alias" in
635 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
636 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
638 *) host_alias=$nonopt ;;
642 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
643 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$host" 1>&6
648 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
649 echo "configure
:650: checking target system
type" >&5
652 case "$target_alias" in
655 NONE) target_alias=$host_alias ;;
656 *) target_alias=$nonopt ;;
660 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
661 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$target" 1>&6
666 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
667 echo "configure
:668: checking build system
type" >&5
670 case "$build_alias" in
673 NONE) build_alias=$host_alias ;;
674 *) build_alias=$nonopt ;;
678 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
679 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682 echo "$ac_t""$build" 1>&6
684 test "$host_alias" != "$target_alias" &&
685 test "$program_prefix$program_suffix$program_transform_name" = \
687 program_prefix=${target_alias}-
703 _MACOSX_DEPLOYMENT_TARGET=
708 OBJDIR='$(OBJDIR_NAME)'
711 NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall'
712 NOSUCHFILE=/no-such-file
713 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)'
714 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
719 MOZ_OS2_HIGH_MEMORY=1
721 RESOLVE_LINK_SYMBOLS=
724 CXXFLAGS="${CXXFLAGS=}"
725 LDFLAGS="${LDFLAGS=}"
726 DLLFLAGS="${DLLFLAGS=}"
727 HOST_CFLAGS="${HOST_CFLAGS=}"
728 HOST_LDFLAGS="${HOST_LDFLAGS=}"
732 # Check to see if we are really running in a msvc environemnt
736 # Extract the first word of "$ac_prog", so it can be a program name with args.
737 set dummy $ac_prog; ac_word=$2
738 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
739 echo "configure
:740: checking
for $ac_word" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741 echo $ac_n "(cached
) $ac_c" 1>&6
743 if test -n "$CC"; then
744 ac_cv_prog_CC="$CC" # Let the user override the test.
746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
748 for ac_dir in $ac_dummy; do
749 test -z "$ac_dir" && ac_dir=.
750 if test -f $ac_dir/$ac_word; then
751 ac_cv_prog_CC="$ac_prog"
759 if test -n "$CC"; then
760 echo "$ac_t""$CC" 1>&6
762 echo "$ac_t""no
" 1>&6
765 test -n "$CC" && break
768 if test "$CC" = "cl
"; then
769 echo 'main() { return 0; }' > dummy.c
770 ${CC} -o dummy dummy.c >/dev/null 2>&1
775 echo "configure
: warning
: $
(CC
) test failed. Using normal feature tests
" 1>&2
777 rm -f dummy dummy.o dummy.obj dummy.exe dummy.c
788 if test -n "$_WIN32_MSVC"; then
790 SKIP_COMPILER_CHECKS=1
791 SKIP_LIBRARY_CHECKS=1
794 dist_prefix='${MOD_DEPTH}/dist'
795 dist_bindir='${dist_prefix}/bin'
796 dist_includedir='${dist_prefix}/include/nspr'
797 dist_libdir='${dist_prefix}/lib'
798 if test "${includedir}" = '${prefix}/include'; then
799 includedir='${prefix}/include/nspr'
802 # Check whether --with-dist-prefix or --without-dist-prefix was given.
803 if test "${with_dist_prefix+set}" = set; then
804 withval="$with_dist_prefix"
809 # Check whether --with-dist-bindir or --without-dist-bindir was given.
810 if test "${with_dist_bindir+set}" = set; then
811 withval="$with_dist_bindir"
816 # Check whether --with-dist-includedir or --without-dist-includedir was given.
817 if test "${with_dist_includedir+set}" = set; then
818 withval="$with_dist_includedir"
819 dist_includedir=$withval
823 # Check whether --with-dist-libdir or --without-dist-libdir was given.
824 if test "${with_dist_libdir+set}" = set; then
825 withval="$with_dist_libdir"
835 # Check whether --with-mozilla or --without-mozilla was given.
836 if test "${with_mozilla+set}" = set; then
837 withval="$with_mozilla"
838 if test "$withval" = "yes"; then
839 cat >> confdefs.h <<\EOF
840 #define MOZILLA_CLIENT 1
848 if test -n "$MOZILLA_CLIENT"; then
849 cat >> confdefs.h <<\EOF
850 #define MOZILLA_CLIENT 1
857 # Check whether --enable-optimize or --disable-optimize was given.
858 if test "${enable_optimize+set}" = set; then
859 enableval="$enable_optimize"
860 if test "$enableval" != "no
"; then
862 if test -n "$enableval" && test "$enableval" != "yes"; then
863 _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
864 _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
872 # Check whether --enable-debug or --disable-debug was given.
873 if test "${enable_debug+set}" = set; then
874 enableval="$enable_debug"
875 if test "$enableval" = "no
"; then
879 if test -n "$enableval" && test "$enableval" != "yes"; then
880 _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
881 _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS
887 # Check whether --enable-win32-target or --disable-win32-target was given.
888 if test "${enable_win32_target+set}" = set; then
889 enableval="$enable_win32_target"
890 OS_TARGET=`echo $enableval | tr a-z A-Z`
896 # Check whether --enable-debug-rtl or --disable-debug-rtl was given.
897 if test "${enable_debug_rtl+set}" = set; then
898 enableval="$enable_debug_rtl"
899 if test "$enableval" = "yes"; then
905 # Check whether --enable-n32 or --disable-n32 was given.
906 if test "${enable_n32+set}" = set; then
907 enableval="$enable_n32"
908 if test "$enableval" = "yes"; then
910 else if test "$enableval" = "no
"; then
917 # Check whether --enable-64bit or --disable-64bit was given.
918 if test "${enable_64bit+set}" = set; then
919 enableval="$enable_64bit"
920 if test "$enableval" = "yes"; then
926 # Check whether --enable-mdupdate or --disable-mdupdate was given.
927 if test "${enable_mdupdate+set}" = set; then
928 enableval="$enable_mdupdate"
929 if test "$enableval" = "yes"; then
935 # Check whether --enable-cplus or --disable-cplus was given.
936 if test "${enable_cplus+set}" = set; then
937 enableval="$enable_cplus"
938 if test "$enableval" = "yes"; then
944 # Check whether --with-arm-kuser or --without-arm-kuser was given.
945 if test "${with_arm_kuser+set}" = set; then
946 withval="$with_arm_kuser"
947 if test "$withval" = "yes"; then
948 cat >> confdefs.h <<\EOF
949 #define _PR_ARM_KUSER 1
956 # Check whether --with-macos-sdk or --without-macos-sdk was given.
957 if test "${with_macos_sdk+set}" = set; then
958 withval="$with_macos_sdk"
959 MACOS_SDK_DIR=$withval
963 # Check whether --enable-macos-target or --disable-macos-target was given.
964 if test "${enable_macos_target+set}" = set; then
965 enableval="$enable_macos_target"
966 _MACOSX_DEPLOYMENT_TARGET=$enableval
973 case "${target_os}" in
985 if test -z "$CC"; then
989 if test -z "$USE_NSPR_THREADS"; then
1019 if test -z "$CXX"; then
1023 if test -z "$USE_NSPR_THREADS"; then
1031 case "${target_os}" in
1063 if test -z "$SKIP_PATH_CHECKS"; then
1064 # Extract the first word of "$WHOAMI whoami
", so it can be a program name with args.
1065 set dummy $WHOAMI whoami; ac_word=$2
1066 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1067 echo "configure
:1068: checking
for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1069 echo $ac_n "(cached
) $ac_c" 1>&6
1073 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
1076 ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_path_WHOAMI="$ac_dir/$ac_word"
1089 test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami
"
1093 WHOAMI="$ac_cv_path_WHOAMI"
1094 if test -n "$WHOAMI"; then
1095 echo "$ac_t""$WHOAMI" 1>&6
1097 echo "$ac_t""no
" 1>&6
1102 if test -n "$MOZ_DEBUG"; then
1103 cat >> confdefs.h <<\EOF
1107 DEFINES="$DEFINES -UNDEBUG"
1109 case "${target_os}" in
1111 DEFINES="$DEFINES -DDEBUG_${USER}"
1113 msvc*|mks*|cygwin*|mingw*|wince*|os2*)
1114 DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
1117 DEFINES="$DEFINES -DDEBUG_`$WHOAMI`"
1121 cat >> confdefs.h <<\EOF
1125 DEFINES="$DEFINES -UDEBUG"
1128 if test -z "$SKIP_COMPILER_CHECKS"; then
1129 if test "$target" != "$host"; then
1130 echo "cross compiling from
$host to
$target"
1134 _SAVE_CFLAGS="$CFLAGS"
1135 _SAVE_LDFLAGS="$LDFLAGS"
1137 echo $ac_n "checking
for $host compiler
""...
$ac_c" 1>&6
1138 echo "configure
:1139: checking
for $host compiler
" >&5
1139 for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1141 # Extract the first word of "$ac_prog", so it can be a program name with args.
1142 set dummy $ac_prog; ac_word=$2
1143 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1144 echo "configure
:1145: checking
for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached
) $ac_c" 1>&6
1148 if test -n "$HOST_CC"; then
1149 ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_HOST_CC="$ac_prog"
1163 HOST_CC="$ac_cv_prog_HOST_CC"
1164 if test -n "$HOST_CC"; then
1165 echo "$ac_t""$HOST_CC" 1>&6
1167 echo "$ac_t""no
" 1>&6
1170 test -n "$HOST_CC" && break
1172 test -n "$HOST_CC" || HOST_CC=""""
1174 if test -z "$HOST_CC"; then
1175 { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1177 echo "$ac_t""$HOST_CC" 1>&6
1178 if test -z "$HOST_CFLAGS"; then
1179 HOST_CFLAGS="$CFLAGS"
1181 if test -z "$HOST_LDFLAGS"; then
1182 HOST_LDFLAGS="$LDFLAGS"
1186 CFLAGS="$HOST_CFLAGS"
1187 LDFLAGS="$HOST_LDFLAGS"
1189 echo $ac_n "checking whether the
$host compiler
($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works
""...
$ac_c" 1>&6
1190 echo "configure
:1191: checking whether the
$host compiler
($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works
" >&5
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure
"
1193 #include "confdefs.h
"
1199 if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1201 ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
1203 echo "configure
: failed program was
:" >&5
1204 cat conftest.$ac_ext >&5
1206 { echo "configure
: error
: installation or configuration problem
: $host compiler
$HOST_CC cannot create executables.
" 1>&2; exit 1; }
1211 CFLAGS=$_SAVE_CFLAGS
1212 LDFLAGS=$_SAVE_LDFLAGS
1214 case "$build:$target" in
1215 powerpc-apple-darwin8*:i?86-apple-darwin*)
1216 _SAVE_CFLAGS=$CFLAGS
1217 _SAVE_CXXFLAGS=$CXXLAGS
1218 CFLAGS="-isysroot /Developer
/SDKs
/MacOSX10.4u.sdk
$CFLAGS"
1219 CXXFLAGS="-isysroot /Developer
/SDKs
/MacOSX10.4u.sdk
$CXXFLAGS"
1223 for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
1225 # Extract the first word of "$ac_prog", so it can be a program name with args.
1226 set dummy $ac_prog; ac_word=$2
1227 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1228 echo "configure
:1229: checking
for $ac_word" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1230 echo $ac_n "(cached
) $ac_c" 1>&6
1232 if test -n "$CC"; then
1233 ac_cv_prog_CC="$CC" # Let the user override the test.
1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1237 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_prog_CC="$ac_prog"
1248 if test -n "$CC"; then
1249 echo "$ac_t""$CC" 1>&6
1251 echo "$ac_t""no
" 1>&6
1254 test -n "$CC" && break
1256 test -n "$CC" || CC="echo"
1259 # Extract the first word of "gcc
", so it can be a program name with args.
1260 set dummy gcc; ac_word=$2
1261 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1262 echo "configure
:1263: checking
for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1264 echo $ac_n "(cached
) $ac_c" 1>&6
1266 if test -n "$CC"; then
1267 ac_cv_prog_CC="$CC" # Let the user override the test.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1271 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1282 if test -n "$CC"; then
1283 echo "$ac_t""$CC" 1>&6
1285 echo "$ac_t""no
" 1>&6
1288 if test -z "$CC"; then
1289 # Extract the first word of "cc
", so it can be a program name with args.
1290 set dummy cc; ac_word=$2
1291 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1292 echo "configure
:1293: checking
for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1294 echo $ac_n "(cached
) $ac_c" 1>&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1302 for ac_dir in $ac_dummy; do
1303 test -z "$ac_dir" && ac_dir=.
1304 if test -f $ac_dir/$ac_word; then
1305 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1306 ac_prog_rejected=yes
1314 if test $ac_prog_rejected = yes; then
1315 # We found a bogon in the path, so make sure we never use it.
1316 set dummy $ac_cv_prog_CC
1318 if test $# -gt 0; then
1319 # We chose a different compiler from the bogus one.
1320 # However, it has the same basename, so the bogon will be chosen
1321 # first if we set CC to just the basename; use the full file name.
1323 set dummy "$ac_dir/$ac_word" "$@
"
1331 if test -n "$CC"; then
1332 echo "$ac_t""$CC" 1>&6
1334 echo "$ac_t""no
" 1>&6
1337 if test -z "$CC"; then
1338 case "`uname -s`" in
1340 # Extract the first word of "cl
", so it can be a program name with args.
1341 set dummy cl; ac_word=$2
1342 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1343 echo "configure
:1344: checking
for $ac_word" >&5
1344 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1345 echo $ac_n "(cached
) $ac_c" 1>&6
1347 if test -n "$CC"; then
1348 ac_cv_prog_CC="$CC" # Let the user override the test.
1350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352 for ac_dir in $ac_dummy; do
1353 test -z "$ac_dir" && ac_dir=.
1354 if test -f $ac_dir/$ac_word; then
1363 if test -n "$CC"; then
1364 echo "$ac_t""$CC" 1>&6
1366 echo "$ac_t""no
" 1>&6
1371 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1374 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
1375 echo "configure
:1376: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
1378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1379 ac_cpp='$CPP $CPPFLAGS'
1380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1382 cross_compiling=$ac_cv_prog_cc_cross
1384 cat > conftest.$ac_ext << EOF
1386 #line 1387 "configure
"
1387 #include "confdefs.h
"
1391 if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1392 ac_cv_prog_cc_works=yes
1393 # If we can't run a trivial program, we are probably using a cross compiler.
1394 if (./conftest; exit) 2>/dev/null; then
1395 ac_cv_prog_cc_cross=no
1397 ac_cv_prog_cc_cross=yes
1400 echo "configure
: failed program was
:" >&5
1401 cat conftest.$ac_ext >&5
1402 ac_cv_prog_cc_works=no
1406 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1407 ac_cpp='$CPP $CPPFLAGS'
1408 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1409 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1410 cross_compiling=$ac_cv_prog_cc_cross
1412 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1413 if test $ac_cv_prog_cc_works = no; then
1414 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
1416 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
1417 echo "configure
:1418: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
1418 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1419 cross_compiling=$ac_cv_prog_cc_cross
1421 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1422 echo "configure
:1423: checking whether we are using GNU C
" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1424 echo $ac_n "(cached
) $ac_c" 1>&6
1426 cat > conftest.c <<EOF
1431 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1438 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1440 if test $ac_cv_prog_gcc = yes; then
1446 ac_test_CFLAGS="${CFLAGS+set}"
1447 ac_save_CFLAGS="$CFLAGS"
1449 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1450 echo "configure
:1451: checking whether
${CC-cc} accepts
-g" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1452 echo $ac_n "(cached
) $ac_c" 1>&6
1454 echo 'void f(){}' > conftest.c
1455 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1464 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1465 if test "$ac_test_CFLAGS" = set; then
1466 CFLAGS="$ac_save_CFLAGS"
1467 elif test $ac_cv_prog_cc_g = yes; then
1468 if test "$GCC" = yes; then
1474 if test "$GCC" = yes; then
1481 if test -n "$USE_CPLUS"; then
1482 for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
1484 # Extract the first word of "$ac_prog", so it can be a program name with args.
1485 set dummy $ac_prog; ac_word=$2
1486 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1487 echo "configure
:1488: checking
for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1489 echo $ac_n "(cached
) $ac_c" 1>&6
1491 if test -n "$CXX"; then
1492 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1496 for ac_dir in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir=.
1498 if test -f $ac_dir/$ac_word; then
1499 ac_cv_prog_CXX="$ac_prog"
1506 CXX="$ac_cv_prog_CXX"
1507 if test -n "$CXX"; then
1508 echo "$ac_t""$CXX" 1>&6
1510 echo "$ac_t""no
" 1>&6
1513 test -n "$CXX" && break
1515 test -n "$CXX" || CXX="echo"
1517 unset ac_cv_prog_CXX
1518 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1520 # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1523 echo "configure
:1524: checking
for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1525 echo $ac_n "(cached
) $ac_c" 1>&6
1527 if test -n "$CXX"; then
1528 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1532 for ac_dir in $ac_dummy; do
1533 test -z "$ac_dir" && ac_dir=.
1534 if test -f $ac_dir/$ac_word; then
1535 ac_cv_prog_CXX="$ac_prog"
1542 CXX="$ac_cv_prog_CXX"
1543 if test -n "$CXX"; then
1544 echo "$ac_t""$CXX" 1>&6
1546 echo "$ac_t""no
" 1>&6
1549 test -n "$CXX" && break
1551 test -n "$CXX" || CXX="gcc
"
1554 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
1555 echo "configure
:1556: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
" >&5
1558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1559 ac_cpp='$CXXCPP $CPPFLAGS'
1560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1562 cross_compiling=$ac_cv_prog_cxx_cross
1564 cat > conftest.$ac_ext << EOF
1566 #line 1567 "configure
"
1567 #include "confdefs.h
"
1569 int main(){return(0);}
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1572 ac_cv_prog_cxx_works=yes
1573 # If we can't run a trivial program, we are probably using a cross compiler.
1574 if (./conftest; exit) 2>/dev/null; then
1575 ac_cv_prog_cxx_cross=no
1577 ac_cv_prog_cxx_cross=yes
1580 echo "configure
: failed program was
:" >&5
1581 cat conftest.$ac_ext >&5
1582 ac_cv_prog_cxx_works=no
1586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1587 ac_cpp='$CPP $CPPFLAGS'
1588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1590 cross_compiling=$ac_cv_prog_cc_cross
1592 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1593 if test $ac_cv_prog_cxx_works = no; then
1594 { echo "configure
: error
: installation or configuration problem
: C
++ compiler cannot create executables.
" 1>&2; exit 1; }
1596 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
1597 echo "configure
:1598: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
" >&5
1598 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1599 cross_compiling=$ac_cv_prog_cxx_cross
1601 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1602 echo "configure
:1603: checking whether we are using GNU C
++" >&5
1603 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1604 echo $ac_n "(cached
) $ac_c" 1>&6
1606 cat > conftest.C <<EOF
1611 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1618 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1620 if test $ac_cv_prog_gxx = yes; then
1626 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1627 ac_save_CXXFLAGS="$CXXFLAGS"
1629 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1630 echo "configure
:1631: checking whether
${CXX-g++} accepts
-g" >&5
1631 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1632 echo $ac_n "(cached
) $ac_c" 1>&6
1634 echo 'void f(){}' > conftest.cc
1635 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1636 ac_cv_prog_cxx_g=yes
1644 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1645 if test "$ac_test_CXXFLAGS" = set; then
1646 CXXFLAGS="$ac_save_CXXFLAGS"
1647 elif test $ac_cv_prog_cxx_g = yes; then
1648 if test "$GXX" = yes; then
1654 if test "$GXX" = yes; then
1663 case "$build:$target" in
1664 powerpc-apple-darwin8*:i?86-apple-darwin*)
1665 CFLAGS=$_SAVE_CFLAGS
1666 CXXFLAGS=$_SAVE_CXXFLAGS
1670 for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1675 echo "configure
:1676: checking
for $ac_word" >&5
1676 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1677 echo $ac_n "(cached
) $ac_c" 1>&6
1679 if test -n "$RANLIB"; then
1680 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1684 for ac_dir in $ac_dummy; do
1685 test -z "$ac_dir" && ac_dir=.
1686 if test -f $ac_dir/$ac_word; then
1687 ac_cv_prog_RANLIB="$ac_prog"
1694 RANLIB="$ac_cv_prog_RANLIB"
1695 if test -n "$RANLIB"; then
1696 echo "$ac_t""$RANLIB" 1>&6
1698 echo "$ac_t""no
" 1>&6
1701 test -n "$RANLIB" && break
1703 test -n "$RANLIB" || RANLIB="echo"
1705 for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
1707 # Extract the first word of "$ac_prog", so it can be a program name with args.
1708 set dummy $ac_prog; ac_word=$2
1709 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1710 echo "configure
:1711: checking
for $ac_word" >&5
1711 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1712 echo $ac_n "(cached
) $ac_c" 1>&6
1714 if test -n "$AR"; then
1715 ac_cv_prog_AR="$AR" # Let the user override the test.
1717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1719 for ac_dir in $ac_dummy; do
1720 test -z "$ac_dir" && ac_dir=.
1721 if test -f $ac_dir/$ac_word; then
1722 ac_cv_prog_AR="$ac_prog"
1730 if test -n "$AR"; then
1731 echo "$ac_t""$AR" 1>&6
1733 echo "$ac_t""no
" 1>&6
1736 test -n "$AR" && break
1738 test -n "$AR" || AR="echo"
1740 for ac_prog in $AS "${target_alias}-as" "${target}-as"
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_AS'+set}'`\" = set"; then
1747 echo $ac_n "(cached
) $ac_c" 1>&6
1749 if test -n "$AS"; then
1750 ac_cv_prog_AS="$AS" # 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_AS="$ac_prog"
1765 if test -n "$AS"; then
1766 echo "$ac_t""$AS" 1>&6
1768 echo "$ac_t""no
" 1>&6
1771 test -n "$AS" && break
1773 test -n "$AS" || AS="echo"
1775 for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
1777 # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1780 echo "configure
:1781: checking
for $ac_word" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1782 echo $ac_n "(cached
) $ac_c" 1>&6
1784 if test -n "$LD"; then
1785 ac_cv_prog_LD="$LD" # Let the user override the test.
1787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 for ac_dir in $ac_dummy; do
1790 test -z "$ac_dir" && ac_dir=.
1791 if test -f $ac_dir/$ac_word; then
1792 ac_cv_prog_LD="$ac_prog"
1800 if test -n "$LD"; then
1801 echo "$ac_t""$LD" 1>&6
1803 echo "$ac_t""no
" 1>&6
1806 test -n "$LD" && break
1808 test -n "$LD" || LD="echo"
1810 for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
1812 # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1815 echo "configure
:1816: checking
for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1817 echo $ac_n "(cached
) $ac_c" 1>&6
1819 if test -n "$STRIP"; then
1820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_STRIP="$ac_prog"
1834 STRIP="$ac_cv_prog_STRIP"
1835 if test -n "$STRIP"; then
1836 echo "$ac_t""$STRIP" 1>&6
1838 echo "$ac_t""no
" 1>&6
1841 test -n "$STRIP" && break
1843 test -n "$STRIP" || STRIP="echo"
1845 for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848 set dummy $ac_prog; ac_word=$2
1849 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1850 echo "configure
:1851: checking
for $ac_word" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1852 echo $ac_n "(cached
) $ac_c" 1>&6
1854 if test -n "$WINDRES"; then
1855 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1859 for ac_dir in $ac_dummy; do
1860 test -z "$ac_dir" && ac_dir=.
1861 if test -f $ac_dir/$ac_word; then
1862 ac_cv_prog_WINDRES="$ac_prog"
1869 WINDRES="$ac_cv_prog_WINDRES"
1870 if test -n "$WINDRES"; then
1871 echo "$ac_t""$WINDRES" 1>&6
1873 echo "$ac_t""no
" 1>&6
1876 test -n "$WINDRES" && break
1878 test -n "$WINDRES" || WINDRES="echo"
1882 # Extract the first word of "gcc
", so it can be a program name with args.
1883 set dummy gcc; ac_word=$2
1884 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1885 echo "configure
:1886: checking
for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached
) $ac_c" 1>&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 for ac_dir in $ac_dummy; do
1895 test -z "$ac_dir" && ac_dir=.
1896 if test -f $ac_dir/$ac_word; then
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1908 echo "$ac_t""no
" 1>&6
1911 if test -z "$CC"; then
1912 # Extract the first word of "cc
", so it can be a program name with args.
1913 set dummy cc; ac_word=$2
1914 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1915 echo "configure
:1916: checking
for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1917 echo $ac_n "(cached
) $ac_c" 1>&6
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1925 for ac_dir in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir=.
1927 if test -f $ac_dir/$ac_word; then
1928 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1929 ac_prog_rejected=yes
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy $ac_cv_prog_CC
1941 if test $# -gt 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1946 set dummy "$ac_dir/$ac_word" "$@
"
1954 if test -n "$CC"; then
1955 echo "$ac_t""$CC" 1>&6
1957 echo "$ac_t""no
" 1>&6
1960 if test -z "$CC"; then
1961 case "`uname -s`" in
1963 # Extract the first word of "cl
", so it can be a program name with args.
1964 set dummy cl; ac_word=$2
1965 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1966 echo "configure
:1967: checking
for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1968 echo $ac_n "(cached
) $ac_c" 1>&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1975 for ac_dir in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir=.
1977 if test -f $ac_dir/$ac_word; then
1986 if test -n "$CC"; then
1987 echo "$ac_t""$CC" 1>&6
1989 echo "$ac_t""no
" 1>&6
1994 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1997 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
1998 echo "configure
:1999: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling=$ac_cv_prog_cc_cross
2007 cat > conftest.$ac_ext << EOF
2009 #line 2010 "configure
"
2010 #include "confdefs.h
"
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2015 ac_cv_prog_cc_works=yes
2016 # If we can't run a trivial program, we are probably using a cross compiler.
2017 if (./conftest; exit) 2>/dev/null; then
2018 ac_cv_prog_cc_cross=no
2020 ac_cv_prog_cc_cross=yes
2023 echo "configure
: failed program was
:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_cv_prog_cc_works=no
2029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2033 cross_compiling=$ac_cv_prog_cc_cross
2035 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2036 if test $ac_cv_prog_cc_works = no; then
2037 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
2039 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
2040 echo "configure
:2041: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
2041 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2042 cross_compiling=$ac_cv_prog_cc_cross
2044 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
2045 echo "configure
:2046: checking whether we are using GNU C
" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2047 echo $ac_n "(cached
) $ac_c" 1>&6
2049 cat > conftest.c <<EOF
2054 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2061 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2063 if test $ac_cv_prog_gcc = yes; then
2069 ac_test_CFLAGS="${CFLAGS+set}"
2070 ac_save_CFLAGS="$CFLAGS"
2072 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
2073 echo "configure
:2074: checking whether
${CC-cc} accepts
-g" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2075 echo $ac_n "(cached
) $ac_c" 1>&6
2077 echo 'void f(){}' > conftest.c
2078 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2087 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2088 if test "$ac_test_CFLAGS" = set; then
2089 CFLAGS="$ac_save_CFLAGS"
2090 elif test $ac_cv_prog_cc_g = yes; then
2091 if test "$GCC" = yes; then
2097 if test "$GCC" = yes; then
2104 if test -n "$USE_CPLUS"; then
2105 if test "$CC" = "cl
" -a -z "$CXX"; then
2108 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2113 echo "configure
:2114: checking
for $ac_word" >&5
2114 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2115 echo $ac_n "(cached
) $ac_c" 1>&6
2117 if test -n "$CXX"; then
2118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2122 for ac_dir in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/$ac_word; then
2125 ac_cv_prog_CXX="$ac_prog"
2132 CXX="$ac_cv_prog_CXX"
2133 if test -n "$CXX"; then
2134 echo "$ac_t""$CXX" 1>&6
2136 echo "$ac_t""no
" 1>&6
2139 test -n "$CXX" && break
2141 test -n "$CXX" || CXX="gcc
"
2144 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
2145 echo "configure
:2146: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) works
" >&5
2148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2149 ac_cpp='$CXXCPP $CPPFLAGS'
2150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2152 cross_compiling=$ac_cv_prog_cxx_cross
2154 cat > conftest.$ac_ext << EOF
2156 #line 2157 "configure
"
2157 #include "confdefs.h
"
2159 int main(){return(0);}
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2162 ac_cv_prog_cxx_works=yes
2163 # If we can't run a trivial program, we are probably using a cross compiler.
2164 if (./conftest; exit) 2>/dev/null; then
2165 ac_cv_prog_cxx_cross=no
2167 ac_cv_prog_cxx_cross=yes
2170 echo "configure
: failed program was
:" >&5
2171 cat conftest.$ac_ext >&5
2172 ac_cv_prog_cxx_works=no
2176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2180 cross_compiling=$ac_cv_prog_cc_cross
2182 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2183 if test $ac_cv_prog_cxx_works = no; then
2184 { echo "configure
: error
: installation or configuration problem
: C
++ compiler cannot create executables.
" 1>&2; exit 1; }
2186 echo $ac_n "checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
2187 echo "configure
:2188: checking whether the C
++ compiler
($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler
" >&5
2188 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2189 cross_compiling=$ac_cv_prog_cxx_cross
2191 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
2192 echo "configure
:2193: checking whether we are using GNU C
++" >&5
2193 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2194 echo $ac_n "(cached
) $ac_c" 1>&6
2196 cat > conftest.C <<EOF
2201 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2208 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2210 if test $ac_cv_prog_gxx = yes; then
2216 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2217 ac_save_CXXFLAGS="$CXXFLAGS"
2219 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
2220 echo "configure
:2221: checking whether
${CXX-g++} accepts
-g" >&5
2221 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2222 echo $ac_n "(cached
) $ac_c" 1>&6
2224 echo 'void f(){}' > conftest.cc
2225 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2226 ac_cv_prog_cxx_g=yes
2234 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2235 if test "$ac_test_CXXFLAGS" = set; then
2236 CXXFLAGS="$ac_save_CXXFLAGS"
2237 elif test $ac_cv_prog_cxx_g = yes; then
2238 if test "$GXX" = yes; then
2244 if test "$GXX" = yes; then
2253 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2254 echo "configure
:2255: checking how to run the C preprocessor
" >&5
2255 # On Suns, sometimes $CPP names a directory.
2256 if test -n "$CPP" && test -d "$CPP"; then
2259 if test -z "$CPP"; then
2260 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2261 echo $ac_n "(cached
) $ac_c" 1>&6
2263 # This must be in double quotes, not single quotes, because CPP may get
2264 # substituted into the Makefile and "${CC-cc}" will confuse make.
2266 # On the NeXT, cc -E runs the code through the compiler's parser,
2267 # not just through cpp.
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure
"
2270 #include "confdefs.h
"
2274 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2277 if test -z "$ac_err"; then
2281 echo "configure
: failed program was
:" >&5
2282 cat conftest.$ac_ext >&5
2284 CPP="${CC-cc} -E -traditional-cpp"
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure
"
2287 #include "confdefs.h
"
2291 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2292 { (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2294 if test -z "$ac_err"; then
2298 echo "configure
: failed program was
:" >&5
2299 cat conftest.$ac_ext >&5
2301 CPP="${CC-cc} -nologo -E"
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure
"
2304 #include "confdefs.h
"
2308 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2311 if test -z "$ac_err"; then
2315 echo "configure
: failed program was
:" >&5
2316 cat conftest.$ac_ext >&5
2325 ac_cv_prog_CPP="$CPP"
2327 CPP="$ac_cv_prog_CPP"
2329 ac_cv_prog_CPP="$CPP"
2331 echo "$ac_t""$CPP" 1>&6
2333 # Extract the first word of "ranlib
", so it can be a program name with args.
2334 set dummy ranlib; ac_word=$2
2335 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2336 echo "configure
:2337: checking
for $ac_word" >&5
2337 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2338 echo $ac_n "(cached
) $ac_c" 1>&6
2340 if test -n "$RANLIB"; then
2341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2345 for ac_dir in $ac_dummy; do
2346 test -z "$ac_dir" && ac_dir=.
2347 if test -f $ac_dir/$ac_word; then
2348 ac_cv_prog_RANLIB="ranlib
"
2353 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2356 RANLIB="$ac_cv_prog_RANLIB"
2357 if test -n "$RANLIB"; then
2358 echo "$ac_t""$RANLIB" 1>&6
2360 echo "$ac_t""no
" 1>&6
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2368 echo "configure
:2369: checking
for $ac_word" >&5
2369 if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2370 echo $ac_n "(cached
) $ac_c" 1>&6
2374 ac_cv_path_AS="$AS" # Let the user override the test with a path.
2377 ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
2380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2382 for ac_dir in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_path_AS="$ac_dir/$ac_word"
2394 if test -n "$AS"; then
2395 echo "$ac_t""$AS" 1>&6
2397 echo "$ac_t""no
" 1>&6
2400 test -n "$AS" && break
2402 test -n "$AS" || AS="$CC"
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2409 echo "configure
:2410: checking
for $ac_word" >&5
2410 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2411 echo $ac_n "(cached
) $ac_c" 1>&6
2415 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2418 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
2421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2423 for ac_dir in $ac_dummy; do
2424 test -z "$ac_dir" && ac_dir=.
2425 if test -f $ac_dir/$ac_word; then
2426 ac_cv_path_AR="$ac_dir/$ac_word"
2435 if test -n "$AR"; then
2436 echo "$ac_t""$AR" 1>&6
2438 echo "$ac_t""no
" 1>&6
2441 test -n "$AR" && break
2443 test -n "$AR" || AR="echo not_ar
"
2445 for ac_prog in ld link
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2450 echo "configure
:2451: checking
for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2452 echo $ac_n "(cached
) $ac_c" 1>&6
2456 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2459 ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
2462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2464 for ac_dir in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_path_LD="$ac_dir/$ac_word"
2476 if test -n "$LD"; then
2477 echo "$ac_t""$LD" 1>&6
2479 echo "$ac_t""no
" 1>&6
2482 test -n "$LD" && break
2484 test -n "$LD" || LD="echo not_ld
"
2486 for ac_prog in strip
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2491 echo "configure
:2492: checking
for $ac_word" >&5
2492 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
2493 echo $ac_n "(cached
) $ac_c" 1>&6
2497 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
2500 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path.
2503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2505 for ac_dir in $ac_dummy; do
2506 test -z "$ac_dir" && ac_dir=.
2507 if test -f $ac_dir/$ac_word; then
2508 ac_cv_path_STRIP="$ac_dir/$ac_word"
2516 STRIP="$ac_cv_path_STRIP"
2517 if test -n "$STRIP"; then
2518 echo "$ac_t""$STRIP" 1>&6
2520 echo "$ac_t""no
" 1>&6
2523 test -n "$STRIP" && break
2525 test -n "$STRIP" || STRIP="echo not_strip
"
2527 for ac_prog in windres
2529 # Extract the first word of "$ac_prog", so it can be a program name with args.
2530 set dummy $ac_prog; ac_word=$2
2531 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2532 echo "configure
:2533: checking
for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
2534 echo $ac_n "(cached
) $ac_c" 1>&6
2538 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
2541 ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a dos path.
2544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2546 for ac_dir in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir=.
2548 if test -f $ac_dir/$ac_word; then
2549 ac_cv_path_WINDRES="$ac_dir/$ac_word"
2557 WINDRES="$ac_cv_path_WINDRES"
2558 if test -n "$WINDRES"; then
2559 echo "$ac_t""$WINDRES" 1>&6
2561 echo "$ac_t""no
" 1>&6
2564 test -n "$WINDRES" && break
2566 test -n "$WINDRES" || WINDRES="echo not_windres
"
2568 if test -z "$HOST_CC"; then
2571 if test -z "$HOST_CFLAGS"; then
2572 HOST_CFLAGS="$CFLAGS"
2576 if test "$GCC" = "yes"; then
2579 if test "$GXX" = "yes"; then
2582 if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
2587 case "$build:$target" in
2588 i?86-apple-darwin*:powerpc-apple-darwin*)
2593 if test "$cross_compiling" = "yes"; then
2599 echo $ac_n "checking
for gcc
-pipe support
""...
$ac_c" 1>&6
2600 echo "configure
:2601: checking
for gcc
-pipe support
" >&5
2601 if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
2602 echo '#include <stdio.h>' > dummy-hello.c
2603 echo 'int main() { printf("Hello World
\n"); return 0; }' >> dummy-hello.c
2604 ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
2605 cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5
2606 if test $? = 0; then
2611 if test "$_res_as_stdin" = "yes"; then
2612 _SAVE_CFLAGS=$CFLAGS
2613 CFLAGS="$CFLAGS -pipe"
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure
"
2616 #include "confdefs.h
"
2619 printf("Hello World
\n");
2622 if { (eval echo configure:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2626 echo "configure
: failed program was
:" >&5
2627 cat conftest.$ac_ext >&5
2632 CFLAGS=$_SAVE_CFLAGS
2634 if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then
2636 CFLAGS="$CFLAGS -pipe"
2637 CXXFLAGS="$CXXFLAGS -pipe"
2641 rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out
2642 echo "$ac_t""$_res" 1>&6
2644 echo "$ac_t""no
" 1>&6
2647 if test "$GNU_CC"; then
2648 echo $ac_n "checking
for visibility
(hidden
) attribute
""...
$ac_c" 1>&6
2649 echo "configure
:2650: checking
for visibility
(hidden
) attribute
" >&5
2650 if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
2651 echo $ac_n "(cached
) $ac_c" 1>&6
2653 cat > conftest.c <<EOF
2654 int foo __attribute__ ((visibility ("hidden
"))) = 1;
2656 ac_cv_visibility_hidden=no
2657 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2658 if grep '\.hidden.*foo' conftest.s >/dev/null; then
2659 ac_cv_visibility_hidden=yes
2666 echo "$ac_t""$ac_cv_visibility_hidden" 1>&6
2667 if test "$ac_cv_visibility_hidden" = "yes"; then
2668 cat >> confdefs.h <<\EOF
2669 #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
2672 echo $ac_n "checking
for visibility pragma support
""...
$ac_c" 1>&6
2673 echo "configure
:2674: checking
for visibility pragma support
" >&5
2674 if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
2675 echo $ac_n "(cached
) $ac_c" 1>&6
2677 cat > conftest.c <<EOF
2678 #pragma GCC visibility push(hidden)
2680 #pragma GCC visibility push(default)
2681 int foo_default = 1;
2683 ac_cv_visibility_pragma=no
2684 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2685 if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
2686 if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
2687 ac_cv_visibility_pragma=yes
2695 echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
2696 if test "$ac_cv_visibility_pragma" = "yes"; then
2697 cat >> confdefs.h <<\EOF
2698 #define HAVE_VISIBILITY_PRAGMA 1
2701 # To work around a build problem on Linux x86-64 (Bugzilla bug
2702 # 293438), we use the -fvisibility=hidden flag. This flag is less
2703 # optimal than #pragma GCC visibility push(hidden) because the flag
2704 # assumes that symbols defined outside the current source file have
2705 # the default visibility. This has the advantage that we don't need
2706 # to wrap system header files, but has the disadvantage that calls
2707 # to hidden symbols defined in other source files cannot be
2708 # optimized by the compiler. The -fvisibility=hidden flag does
2709 # hide and export symbols correctly.
2710 #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
2711 #WRAP_SYSTEM_INCLUDES=1
2712 VISIBILITY_FLAGS="-fvisibility=hidden
"
2713 WRAP_SYSTEM_INCLUDES=
2718 fi # SKIP_COMPILER_CHECKS
2720 if test -z "$SKIP_PATH_CHECKS"; then
2721 for ac_prog in perl5 perl
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2726 echo "configure
:2727: checking
for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2728 echo $ac_n "(cached
) $ac_c" 1>&6
2732 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2735 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2740 for ac_dir in $ac_dummy; do
2741 test -z "$ac_dir" && ac_dir=.
2742 if test -f $ac_dir/$ac_word; then
2743 ac_cv_path_PERL="$ac_dir/$ac_word"
2751 PERL="$ac_cv_path_PERL"
2752 if test -n "$PERL"; then
2753 echo "$ac_t""$PERL" 1>&6
2755 echo "$ac_t""no
" 1>&6
2758 test -n "$PERL" && break
2760 test -n "$PERL" || PERL="echo not_perl
"
2762 elif test -z "$PERL"; then
2770 MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
2778 if test -n "$CROSS_COMPILE"; then
2779 OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
2781 OS_TEST="${target_cpu}"
2782 case "${target_os}" in
2783 linux*) OS_ARCH=Linux ;;
2784 solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
2785 mingw*) OS_ARCH=WINNT ;;
2786 wince*) OS_ARCH=WINCE ;;
2787 darwin*) OS_ARCH=Darwin ;;
2790 OS_ARCH=`uname -s | sed -e 's|/|_|g'`
2791 OS_RELEASE=`uname -r`
2795 if test "$OS_ARCH" = "IRIX64
"; then
2799 if test "$OS_ARCH" = "AIX
"; then
2800 OS_RELEASE=`uname -v`.`uname -r`
2803 if test "$OS_ARCH" = "FreeBSD
"; then
2804 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
2807 if test "$OS_ARCH" = "Linux
"; then
2808 OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'`
2809 OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 ".
" $2 }'`
2812 if test "$OS_ARCH" = "OpenVMS
"; then
2813 OS_RELEASE=`uname -v`
2816 #######################################################################
2817 # Master "Core Components
" macros for getting the OS target #
2818 #######################################################################
2821 # Note: OS_TARGET should be specified on the command line for gmake.
2822 # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
2823 # The difference between the Win95 target and the WinNT target is that
2824 # the WinNT target uses Windows NT specific features not available
2825 # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
2826 # at lesser performance (the Win95 target uses threads; the WinNT target
2829 # When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target
2830 # is built. See: win16_3.11.mk for lots more about the Win16 target.
2832 # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
2833 # cross-compilation.
2837 # The following hack allows one to build on a WIN95 machine (as if
2838 # s/he were cross-compiling on a WINNT host for a WIN95 target).
2839 # It also accomodates for MKS's uname.exe. If you never intend
2840 # to do development on a WIN95 machine, you don't need this hack.
2855 CYGWIN_9*|CYGWIN_ME*)
2856 OS_ARCH='CYGWIN_NT-4.0'
2866 # On WIN32, we also define the variable CPU_ARCH.
2872 if test "$CPU_ARCH" = "I386
"; then
2878 # If uname -s returns "Windows_NT
", we assume that we are using
2879 # the uname.exe in MKS toolkit.
2881 # The -r option of MKS uname only returns the major version number.
2882 # So we need to use its -v option to get the minor version number.
2883 # Moreover, it doesn't have the -p option, so we need to use uname -m.
2886 OS_MINOR_RELEASE=`uname -v`
2887 if test "$OS_MINOR_RELEASE" = "00"; then
2890 OS_RELEASE="${OS_RELEASE}.
${OS_MINOR_RELEASE}"
2893 # MKS's uname -m returns "586" on a Pentium machine.
2895 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
2899 CYGWIN_NT*|MINGW*_NT*)
2901 # If uname -s returns "CYGWIN_NT-4.0
", we assume that we are using
2902 # the uname.exe in the Cygwin tools.
2903 # If uname -s returns MINGW32_NT-5.1, we assume that we are using
2904 # the uname.exe in the MSYS tools.
2906 OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
2910 # Cygwin's uname -m returns "i686
" on a Pentium Pro machine.
2912 if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then
2918 if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT
"; then
2920 if test -n "$MOZ_DEBUG"; then
2924 if test -z "$OS_TARGET"; then
2927 if test "$OS_TARGET" = "WIN95
"; then
2930 if test "$OS_TARGET" = "WIN16
"; then
2933 OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
2935 # Check whether --enable-os2-high-mem or --disable-os2-high-mem was given.
2936 if test "${enable_os2_high_mem+set}" = set; then
2937 enableval="$enable_os2_high_mem"
2938 if test "$enableval" = "no
"; then
2939 MOZ_OS2_HIGH_MEMORY=
2941 MOZ_OS2_HIGH_MEMORY=1
2950 *-cygwin*|*-msvc*|*-mks*|*-wince*)
2951 NSINSTALL='$(CYGWIN_WRAPPER) nsinstall'
2952 if test `echo "${PATH}" | grep -c \;` = 0; then
2953 CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper'
2957 HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE"
2962 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
2969 cat >> confdefs.h <<\EOF
2973 cat >> confdefs.h <<\EOF
2977 cat >> confdefs.h <<\EOF
2981 DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
2982 ac_safe=`echo "sys
/atomic_op.h
" | sed 'y%./+-%__p_%'`
2983 echo $ac_n "checking
for sys
/atomic_op.h
""...
$ac_c" 1>&6
2984 echo "configure
:2985: checking
for sys
/atomic_op.h
" >&5
2985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2986 echo $ac_n "(cached
) $ac_c" 1>&6
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure
"
2990 #include "confdefs.h
"
2991 #include <sys/atomic_op.h>
2993 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2994 { (eval echo configure:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2996 if test -z "$ac_err"; then
2998 eval "ac_cv_header_
$ac_safe=yes"
3001 echo "configure
: failed program was
:" >&5
3002 cat conftest.$ac_ext >&5
3004 eval "ac_cv_header_
$ac_safe=no
"
3008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3010 cat >> confdefs.h <<\EOF
3011 #define AIX_HAVE_ATOMIC_OP_H 1
3015 echo "$ac_t""no
" 1>&6
3018 case "${target_os}" in
3020 cat >> confdefs.h <<\EOF
3021 #define AIX_RENAME_SELECT 1
3024 cat >> confdefs.h <<\EOF
3025 #define _PR_NO_LARGE_FILES 1
3028 AIX_LINK_OPTS='-bnso -berok'
3029 PR_MD_ASFILES=os_AIX.s
3032 cat >> confdefs.h <<\EOF
3033 #define AIX_TIMERS 1
3036 cat >> confdefs.h <<\EOF
3037 #define _PR_NO_LARGE_FILES 1
3040 cat >> confdefs.h <<\EOF
3046 AIX_LINK_OPTS='-bnso -berok'
3047 LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr'
3048 LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr'
3051 cat >> confdefs.h <<\EOF
3052 #define AIX_TIMERS 1
3055 cat >> confdefs.h <<\EOF
3056 #define _PR_HAVE_OFF64_T 1
3059 AIX_LINK_OPTS='-brtl -bnso -berok'
3062 cat >> confdefs.h <<\EOF
3063 #define AIX_TIMERS 1
3066 cat >> confdefs.h <<\EOF
3067 #define _PR_HAVE_OFF64_T 1
3070 cat >> confdefs.h <<\EOF
3071 #define AIX4_3_PLUS 1
3074 cat >> confdefs.h <<\EOF
3075 #define HAVE_SOCKLEN_T 1
3078 cat >> confdefs.h <<\EOF
3079 #define HAVE_FCNTL_FILE_LOCKING 1
3083 AIX_LINK_OPTS='-brtl -bnso -berok'
3086 cat >> confdefs.h <<\EOF
3087 #define AIX_TIMERS 1
3090 cat >> confdefs.h <<\EOF
3091 #define _PR_HAVE_OFF64_T 1
3094 cat >> confdefs.h <<\EOF
3095 #define AIX4_3_PLUS 1
3098 cat >> confdefs.h <<\EOF
3099 #define HAVE_SOCKLEN_T 1
3102 cat >> confdefs.h <<\EOF
3103 #define HAVE_FCNTL_FILE_LOCKING 1
3107 AIX_LINK_OPTS='-brtl -bnso -berok'
3110 CFLAGS="$CFLAGS -qro -qroconst"
3111 AIX_WRAP='$(DIST)/lib/aixwrap.o'
3112 AIX_TMP='./_aix_tmp.o'
3113 if test -n "$USE_64"; then
3114 MDCPUCFG_H=_aix64.cfg
3117 MDCPUCFG_H=_aix32.cfg
3120 RESOLVE_LINK_SYMBOLS=1
3124 cat >> confdefs.h <<\EOF
3128 cat >> confdefs.h <<\EOF
3132 cat >> confdefs.h <<\EOF
3136 cat >> confdefs.h <<\EOF
3137 #define _POSIX_SOURCE 1
3141 MDCPUCFG_H=_beos.cfg
3144 RESOLVE_LINK_SYMBOLS=1
3145 case "${target_cpu}" in
3148 _DEBUG_FLAGS='-gdwarf-2 -O0'
3149 MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
3150 echo $ac_n "checking
for gethostbyaddr
in -lbind""...
$ac_c" 1>&6
3151 echo "configure
:3152: checking
for gethostbyaddr
in -lbind" >&5
3152 ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
3153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3154 echo $ac_n "(cached
) $ac_c" 1>&6
3156 ac_save_LIBS="$LIBS"
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure
"
3160 #include "confdefs.h
"
3161 /* Override any gcc2 internal prototype to avoid an error. */
3162 /* We use char because int might match the return type of a gcc2
3163 builtin and then its argument prototype would still apply. */
3164 char gethostbyaddr();
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3172 eval "ac_cv_lib_
$ac_lib_var=yes"
3174 echo "configure
: failed program was
:" >&5
3175 cat conftest.$ac_ext >&5
3177 eval "ac_cv_lib_
$ac_lib_var=no
"
3180 LIBS="$ac_save_LIBS"
3183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 OS_LIBS="$OS_LIBS -lbind -lsocket"
3187 echo "$ac_t""no
" 1>&6
3195 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'
3197 _DEBUG_FLAGS='-g -O0'
3203 cat >> confdefs.h <<\EOF
3207 cat >> confdefs.h <<\EOF
3211 cat >> confdefs.h <<\EOF
3212 #define NEED_BSDREGEX 1
3216 CFLAGS="$CFLAGS -Wall -Wno-format"
3217 CXXFLAGS="$CXXFLAGS -Wall -Wno-format"
3219 if echo "$OS_TEST" | grep -c 86 >/dev/null; then
3221 elif echo "$OS_TEST" | grep -c sparc >/dev/null; then
3225 MDCPUCFG_H=_bsdi.cfg
3230 case "$target_os" in
3232 cat >> confdefs.h <<\EOF
3233 #define _PR_BSDI_JMPBUF_IS_ARRAY 1
3236 cat >> confdefs.h <<\EOF
3237 #define _PR_STAT_HAS_ONLY_ST_ATIME 1
3240 cat >> confdefs.h <<\EOF
3241 #define _PR_NEED_H_ERRNO 1
3250 cat >> confdefs.h <<\EOF
3251 #define _PR_TIMESPEC_HAS_TS_SEC 1
3254 cat >> confdefs.h <<\EOF
3255 #define _PR_BSDI_JMPBUF_IS_ARRAY 1
3258 cat >> confdefs.h <<\EOF
3262 cat >> confdefs.h <<\EOF
3266 cat >> confdefs.h <<\EOF
3267 #define _PR_STAT_HAS_ST_ATIMESPEC 1
3270 PR_MD_ASFILES=os_BSD_OS_386_2.s
3274 cat >> confdefs.h <<\EOF
3275 #define _PR_SELECT_CONST_TIMEVAL 1
3278 cat >> confdefs.h <<\EOF
3279 #define _PR_BSDI_JMPBUF_IS_STRUCT 1
3282 cat >> confdefs.h <<\EOF
3286 cat >> confdefs.h <<\EOF
3290 cat >> confdefs.h <<\EOF
3291 #define _PR_STAT_HAS_ST_ATIMESPEC 1
3294 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
3296 DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
3298 case "$target_os" in
3299 bsdi4.2* | bsdi4.3* | bsdi5.*)
3300 cat >> confdefs.h <<\EOF
3301 #define _PR_HAVE_GETPROTO_R 1
3304 cat >> confdefs.h <<\EOF
3305 #define _PR_HAVE_GETPROTO_R_POINTER 1
3312 cat >> confdefs.h <<\EOF
3313 #define _PR_SELECT_CONST_TIMEVAL 1
3316 cat >> confdefs.h <<\EOF
3317 #define _PR_BSDI_JMPBUF_IS_STRUCT 1
3320 cat >> confdefs.h <<\EOF
3324 cat >> confdefs.h <<\EOF
3328 cat >> confdefs.h <<\EOF
3329 #define _PR_STAT_HAS_ST_ATIMESPEC 1
3338 cat >> confdefs.h <<\EOF
3342 cat >> confdefs.h <<\EOF
3346 cat >> confdefs.h <<\EOF
3347 #define HAVE_BSD_FLOCK 1
3350 cat >> confdefs.h <<\EOF
3351 #define HAVE_SOCKLEN_T 1
3354 CFLAGS="$CFLAGS -Wmost -fno-common"
3355 case "${target_cpu}" in
3357 if test -n "$USE_64"; then
3359 CC="$CC -arch x86_64
"
3369 DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
3370 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
3371 STRIP="$STRIP -x -S"
3374 MDCPUCFG_H=_darwin.cfg
3375 PR_MD_CSRCS=darwin.c
3376 PR_MD_ASFILES=os_Darwin.s
3378 # Add Mac OS X support for loading CFM & CFBundle plugins
3379 if test -f /System/Library/Frameworks/Carbon.framework/Carbon; then
3380 cat >> confdefs.h <<\EOF
3386 if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
3387 export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
3388 elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
3389 case "${target_cpu}" in
3391 export MACOSX_DEPLOYMENT_TARGET=10.2
3394 export MACOSX_DEPLOYMENT_TARGET=10.4
3400 if test "$MACOS_SDK_DIR"; then
3402 if test ! -d "$MACOS_SDK_DIR"; then
3403 { echo "configure
: error
: SDK not found. When using
--with-macos-sdk, you must
3404 specify a valid SDK. SDKs are installed when the optional cross-development
3405 tools are selected during the Xcode
/Developer Tools installation.
" 1>&2; exit 1; }
3409 CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
3410 GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
3411 GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
3413 GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
3414 if test "$GCC_VERSION_MAJOR" -lt "4" ; then
3415 SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System
/Library
/Frameworks
"
3416 if test -d "${MACOS_SDK_DIR}/Library
/Frameworks
" ; then
3417 SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library
/Frameworks
"
3420 SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}"
3422 CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
3424 CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"
3427 HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'`
3429 if test "$HOST_DARWIN_MAJOR" -lt 9 ; then
3430 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}"
3432 MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}"
3435 LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS"
3436 DSO_LDOPTS="${MACOS_SDK_LIBS} $DSO_LDOPTS"
3437 export NEXT_ROOT=$MACOS_SDK_DIR
3439 if test -n "$CROSS_COMPILE" ; then
3440 HOST_CC="NEXT_ROOT
= $HOST_CC"
3441 HOST_CXX="NEXT_ROOT
= $HOST_CXX"
3444 CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
3446 CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
3448 if test "$GCC_VERSION_FULL" != "4.0.0" ; then
3449 LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}"
3450 DSO_LDOPTS="$DSO_LDOPTS -isysroot ${MACOS_SDK_DIR}"
3452 LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
3453 DSO_LDOPTS="$DSO_LDOPTS -Wl,-syslibroot,${MACOS_SDK_DIR}"
3461 cat >> confdefs.h <<\EOF
3465 cat >> confdefs.h <<\EOF
3466 #define _PR_LOCAL_THREADS_ONLY 1
3469 cat >> confdefs.h <<\EOF
3473 cat >> confdefs.h <<\EOF
3477 cat >> confdefs.h <<\EOF
3481 cat >> confdefs.h <<\EOF
3482 #define _DGUX_SOURCE 1
3485 cat >> confdefs.h <<\EOF
3486 #define _POSIX4A_DRAFT6_SOURCE 1
3492 MDCPUCFG_H=_dgux.cfg
3497 if test -z "$USE_NSPR_THREADS"; then
3500 cat >> confdefs.h <<\EOF
3504 cat >> confdefs.h <<\EOF
3508 cat >> confdefs.h <<\EOF
3509 #define HAVE_BSD_FLOCK 1
3512 cat >> confdefs.h <<\EOF
3513 #define HAVE_SOCKLEN_T 1
3516 CFLAGS="$CFLAGS $
(DSO_CFLAGS
) -ansi -Wall"
3517 MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
3518 if test "$MOZ_OBJFORMAT" = "elf
"; then
3523 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
3525 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
3526 MDCPUCFG_H=_freebsd.cfg
3527 PR_MD_CSRCS=freebsd.c
3531 cat >> confdefs.h <<\EOF
3535 cat >> confdefs.h <<\EOF
3539 cat >> confdefs.h <<\EOF
3540 #define _HPUX_SOURCE 1
3543 # OSF1 and HPUX report the POLLHUP event for a socket when the
3544 # shutdown(SHUT_WR) operation is called for the remote end, even though
3545 # the socket is still writeable. Use select(), instead of poll(), to
3546 # workaround this problem.
3547 cat >> confdefs.h <<\EOF
3548 #define _PR_POLL_WITH_SELECT 1
3551 cat >> confdefs.h <<\EOF
3552 #define _USE_BIG_FDS 1
3555 DSO_LDOPTS='-b +h $(notdir $@)'
3557 if test "$OS_TEST" = "ia64
"; then
3559 DSO_LDOPTS="$DSO_LDOPTS +b
'\$\$ORIGIN'"
3560 CPU_ARCH_TAG=_$OS_TEST
3561 if test -z "$USE_64"; then
3564 PR_MD_ASFILES=os_HPUX_ia64.s
3566 cat >> confdefs.h <<\EOF
3571 PR_MD_ASFILES=os_HPUX.s
3573 if test -n "$USE_64"; then
3574 MDCPUCFG_H=_hpux64.cfg
3576 MDCPUCFG_H=_hpux32.cfg
3578 if test -z "$GNU_CC"; then
3586 if test -n "$MOZILLA_CLIENT"; then
3587 DEFAULT_IMPL_STRATEGY=_EMU
3590 if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then
3591 cat >> confdefs.h <<\EOF
3592 #define _PR_NEED_H_ERRNO 1
3595 cat >> confdefs.h <<\EOF
3599 DEFAULT_IMPL_STRATEGY=_EMU
3603 if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then
3604 cat >> confdefs.h <<\EOF
3605 #define _PR_NO_LARGE_FILES 1
3610 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
3611 cat >> confdefs.h <<\EOF
3612 #define _PR_NEED_H_ERRNO 1
3617 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
3618 cat >> confdefs.h <<\EOF
3619 #define HAVE_INT_LOCALTIME_R 1
3624 if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then
3625 cat >> confdefs.h <<\EOF
3626 #define HAVE_POINTER_LOCALTIME_R 1
3631 # HP-UX 11i v2 (B.11.23) or higher
3633 case "$OS_RELEASE" in
3634 [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*)
3640 if test "$OS_RELEASE" = "B
.10.01"; then
3641 cat >> confdefs.h <<\EOF
3645 DEFAULT_IMPL_STRATEGY=_EMU
3648 if test "$OS_RELEASE" = "B
.10.10"; then
3649 cat >> confdefs.h <<\EOF
3653 cat >> confdefs.h <<\EOF
3657 DEFAULT_IMPL_STRATEGY=_PTH
3660 if test "$OS_RELEASE" = "B
.10.20"; then
3661 cat >> confdefs.h <<\EOF
3665 cat >> confdefs.h <<\EOF
3669 if test -z "$GNU_CC"; then
3670 CFLAGS="$CFLAGS +DAportable
+DS1.1
"
3671 CXXFLAGS="$CXXFLAGS +DAportable
+DS1.1
"
3673 DEFAULT_IMPL_STRATEGY=_PTH
3676 if test "$OS_RELEASE" = "B
.10.30"; then
3677 cat >> confdefs.h <<\EOF
3681 cat >> confdefs.h <<\EOF
3685 if test -z "$GNU_CC"; then
3686 CFLAGS="$CFLAGS +DAportable
+DS1.1
"
3687 CXXFLAGS="$CXXFLAGS +DAportable
+DS1.1
"
3689 DEFAULT_IMPL_STRATEGY=_PTH
3692 if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then
3693 cat >> confdefs.h <<\EOF
3697 cat >> confdefs.h <<\EOF
3701 cat >> confdefs.h <<\EOF
3702 #define _LARGEFILE64_SOURCE 1
3705 cat >> confdefs.h <<\EOF
3706 #define _PR_HAVE_OFF64_T 1
3709 cat >> confdefs.h <<\EOF
3710 #define HAVE_FCNTL_FILE_LOCKING 1
3713 if test -z "$GNU_CC"; then
3714 if test -z "$USE_64"; then
3715 if test "$OS_TEST" = "ia64
"; then
3716 CFLAGS="$CFLAGS +DD32
"
3717 CXXFLAGS="$CXXFLAGS +DD32
"
3719 CFLAGS="$CFLAGS +DAportable
+DS2.0
"
3720 CXXFLAGS="$CXXFLAGS +DAportable
+DS2.0
"
3723 if test "$OS_TEST" = "ia64
"; then
3724 CFLAGS="$CFLAGS +DD64
"
3725 CXXFLAGS="$CXXFLAGS +DD64
"
3727 CFLAGS="$CFLAGS +DA2.0W
+DS2.0
"
3728 CXXFLAGS="$CXXFLAGS +DA2.0W
+DS2.0
"
3732 DEFAULT_IMPL_STRATEGY=_PTH
3735 if test "$DEFAULT_IMPL_STRATEGY" = "_EMU
"; then
3739 elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH
"; then
3741 if test "$USE_NSPR_THREADS"; then
3744 if test "$USE_USER_PTHREADS"; then
3751 cat >> confdefs.h <<\EOF
3755 cat >> confdefs.h <<\EOF
3759 cat >> confdefs.h <<\EOF
3763 cat >> confdefs.h <<\EOF
3764 #define _SGI_MP_SOURCE 1
3767 cat >> confdefs.h <<\EOF
3768 #define HAVE_FCNTL_FILE_LOCKING 1
3772 PR_MD_ASFILES=os_Irix.s
3773 MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@'
3775 RESOLVE_LINK_SYMBOLS=1
3776 if test -n "$USE_64"; then
3777 MDCPUCFG_H=_irix64.cfg
3779 MDCPUCFG_H=_irix32.cfg
3781 case "${target_os}" in
3783 cat >> confdefs.h <<\EOF
3793 cat >> confdefs.h <<\EOF
3804 if test "$GNU_CC"; then
3805 AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
3806 CFLAGS="$CFLAGS -Wall -Wno-format"
3807 _OPTIMIZE_FLAGS="-O6"
3809 if test -n "$USE_N32"; then
3810 AS='as -D_ASM $(INCLUDES) -n32'
3812 AS='as -D_ASM $(INCLUDES)'
3814 CFLAGS="$CFLAGS -fullwarn -xansi"
3815 if test "$USE_N32"; then
3816 _OPTIMIZE_FLAGS="-O -OPT:Olimit
=4000"
3818 _OPTIMIZE_FLAGS="-O -Olimit 4000"
3820 if test "$USE_MDUPDATE"; then
3821 CFLAGS="$CFLAGS -MDupdate \$
(DEPENDENCIES
)"
3825 CFLAGS="$CFLAGS -multigot"
3826 DSO_LDOPTS="-no_unresolved"
3827 if test "$USE_N32"; then
3828 CFLAGS="$CFLAGS -n32 -woff 1209"
3829 DSO_LDOPTS="$DSO_LDOPTS -n32"
3831 if test "$USE_64"; then
3832 CFLAGS="$CFLAGS -64"
3834 CFLAGS="$CFLAGS -32"
3839 CFLAGS="$CFLAGS -xgot"
3843 if test "${target_os}" = "irix5.3
"; then
3844 cat >> confdefs.h <<\EOF
3849 case "${target_os}" in
3851 if test -z "$GNU_CC"; then
3852 CFLAGS="$CFLAGS -mips3"
3854 cat >> confdefs.h <<\EOF
3855 #define _PR_HAVE_GETPROTO_R 1
3858 cat >> confdefs.h <<\EOF
3859 #define _PR_HAVE_GETPROTO_R_POINTER 1
3862 cat >> confdefs.h <<\EOF
3863 #define _PR_HAVE_SGI_PRDA_PROCMASK 1
3870 cat >> confdefs.h <<\EOF
3871 #define _PR_HAVE_SGI_PRDA_PROCMASK 1
3878 *-linux*|*-gnu*|*-k*bsd*-gnu)
3879 if test -z "$USE_NSPR_THREADS"; then
3883 cat >> confdefs.h <<\EOF
3887 cat >> confdefs.h <<\EOF
3888 #define _GNU_SOURCE 1
3891 cat >> confdefs.h <<\EOF
3892 #define HAVE_FCNTL_FILE_LOCKING 1
3895 case "${target_os}" in
3897 cat >> confdefs.h <<\EOF
3903 CFLAGS="$CFLAGS -Wall"
3904 CXXFLAGS="$CXXFLAGS -Wall"
3905 MDCPUCFG_H=_linux.cfg
3907 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
3909 DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
3911 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
3912 # combo is not yet good at debugging inlined
3913 # functions (even when using DWARF2 as the
3916 if echo "$OS_TEST" | grep -c 86 >/dev/null; then
3921 CPU_ARCH_TAG=_${CPU_ARCH}
3922 case "${target_cpu}" in
3924 cat >> confdefs.h <<\EOF
3928 cat >> confdefs.h <<\EOF
3932 CFLAGS="$CFLAGS -mieee"
3933 CXXFLAGS="$CXXFLAGS -mieee"
3936 cat >> confdefs.h <<\EOF
3940 PR_MD_ASFILES=os_Linux_x86.s
3943 PR_MD_ASFILES=os_Linux_ia64.s
3946 if test -n "$USE_64"; then
3947 PR_MD_ASFILES=os_Linux_x86_64.s
3949 cat >> confdefs.h <<\EOF
3953 PR_MD_ASFILES=os_Linux_x86.s
3959 PR_MD_ASFILES=os_Linux_ppc.s
3962 if test -n "$USE_64"; then
3966 PR_MD_ASFILES=os_Linux_ppc.s
3970 CFLAGS="$CFLAGS -m68020-60"
3971 CXXFLAGS="$CXXFLAGS -m68020-60"
3976 *-mingw*|*-cygwin*|*-msvc*|*-mks*)
3977 cat >> confdefs.h <<\EOF
3981 cat >> confdefs.h <<\EOF
3985 PR_MD_ARCH_DIR=windows
3986 RESOLVE_LINK_SYMBOLS=1
3988 if test -n "$GNU_CC"; then
3989 CC="$CC -mno-cygwin"
3990 CXX="$CXX -mno-cygwin"
3992 MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
3994 # Use temp file for windres (bug 213281)
3995 RCFLAGS='-O coff --use-temp-file'
4000 AR='lib -NOLOGO -OUT:"$@
"'
4002 RANLIB='echo not_ranlib'
4003 STRIP='echo not_strip'
4005 GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
4010 # Determine compiler version
4011 CC_VERSION=`"${CC}" -v 2>&1 | grep Version | sed -e 's|.* Version ||' -e 's| .*||'`
4012 _CC_MAJOR_VERSION=`echo $CC_VERSION | awk -F\. '{ print $1 }'`
4013 _CC_MINOR_VERSION=`echo $CC_VERSION | awk -F\. '{ print $2 }'`
4014 MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
4016 # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic
4017 # tape manipulation utility (or something else)
4018 if test "$MSC_VER" -ge "1400"; then
4020 _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
4023 MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
4024 if test -n "$MSMT_TOOL"; then
4025 MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
4026 if test -z "$MSMANIFEST_TOOL_VERSION"; then
4027 echo "configure
: warning
: Unknown version of the Microsoft
(R
) Manifest Tool.
" 1>&2
4032 { echo "configure
: error
: Microsoft
(R
) Manifest Tool must be
in your \
$PATH.
" 1>&2; exit 1; }
4036 CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
4037 DLLFLAGS="$DLLFLAGS -OUT:\"\$@
\""
4040 if test -z "$MOZ_OPTIMIZE"; then
4041 CFLAGS="$CFLAGS -Od"
4044 if test -n "$USE_DEBUG_RTL"; then
4045 CFLAGS="$CFLAGS -MDd"
4047 CFLAGS="$CFLAGS -MD"
4050 if test -n "$MOZ_DEBUG"; then
4051 cat >> confdefs.h <<\EOF
4056 DEFINES="$DEFINES -U_DEBUG"
4059 if test -n "$MOZ_OPTIMIZE"; then
4060 if test -n "$MOZ_PROFILE"; then
4061 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Z7"
4063 if test -n "$MOZ_DEBUG_SYMBOLS"; then
4064 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Zi"
4066 if test -n "$MOZ_PROFILE" -o -n "$MOZ_DEBUG_SYMBOLS"; then
4067 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF
"
4068 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF
"
4072 if test -n "$MOZ_DEBUG"; then
4073 DLLFLAGS="$DLLFLAGS -DEBUG"
4074 LDFLAGS="$LDFLAGS -DEBUG"
4077 OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS
"
4078 if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then
4079 OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE
"
4082 if test "$OS_TARGET" = "WINNT
"; then
4083 CFLAGS="$CFLAGS -GT"
4084 LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4085 LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4087 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4088 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4092 if test -n "$USE_STATIC_TLS"; then
4093 cat >> confdefs.h <<\EOF
4094 #define _PR_USE_STATIC_TLS 1
4099 if test "$OS_TARGET" = "WINNT
"; then
4100 cat >> confdefs.h <<\EOF
4105 cat >> confdefs.h <<\EOF
4109 # undefine WINNT as some versions of mingw gcc define it by default
4110 DEFINES="$DEFINES -UWINNT"
4111 cat >> confdefs.h <<\EOF
4112 #define _PR_GLOBAL_THREADS_ONLY 1
4117 if test "$CPU_ARCH" = "x86
"; then
4120 CPU_ARCH_TAG=$CPU_ARCH
4123 if test -n "$USE_DEBUG_RTL"; then
4127 case "$OS_TARGET" in
4129 MDCPUCFG_H=_winnt.cfg
4132 MDCPUCFG_H=_win95.cfg
4135 MDCPUCFG_H=_win16.cfg
4138 { echo "configure
: error
: Missing OS_TARGET
for ${target}. Use
--enable-win32-target to
set.
" 1>&2; exit 1; }
4142 case "$target_cpu" in
4144 if test -n "$USE_64"; then
4145 cat >> confdefs.h <<\EOF
4149 cat >> confdefs.h <<\EOF
4154 cat >> confdefs.h <<\EOF
4161 cat >> confdefs.h <<\EOF
4167 cat >> confdefs.h <<\EOF
4173 cat >> confdefs.h <<\EOF
4177 cat >> confdefs.h <<\EOF
4184 cat >> confdefs.h <<\EOF
4188 cat >> confdefs.h <<\EOF
4195 cat >> confdefs.h <<\EOF
4196 #define _CPU_ARCH_NOT_DEFINED 1
4202 if test "$USE_64"; then
4203 cat >> confdefs.h <<\EOF
4212 cat >> confdefs.h <<\EOF
4216 cat >> confdefs.h <<\EOF
4220 cat >> confdefs.h <<\EOF
4224 cat >> confdefs.h <<\EOF
4225 #define _PR_GLOBAL_THREADS_ONLY 1
4229 AR='lib -NOLOGO -OUT:"$@
"'
4235 MKSHLIB='$(LD) -DLL $(DSO_LDOPTS) -OUT:$@'
4237 PR_MD_ARCH_DIR=windows
4238 RESOLVE_LINK_SYMBOLS=1
4240 MDCPUCFG_H=_win95.cfg
4241 LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4242 LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
4244 DLLFLAGS='-OUT:"$@
"'
4249 cat >> confdefs.h <<\EOF
4253 cat >> confdefs.h <<\EOF
4257 cat >> confdefs.h <<\EOF
4261 cat >> confdefs.h <<\EOF
4266 if test "$OS_RELEASE" = "2.03"; then
4267 cat >> confdefs.h <<\EOF
4268 #define _PR_STAT_HAS_ST_ATIM 1
4272 cat >> confdefs.h <<\EOF
4273 #define _PR_STAT_HAS_ST_ATIM_UNION 1
4278 if test -z "$GNU_CC"; then
4279 CFLAGS="$CFLAGS -Hnocopyr"
4280 CXXFLAGS="$CXXFLAGS -Hnocopyr"
4282 CFLAGS="$CFLAGS -fPIC -Wall"
4283 CXXFLAGS="$CXXFLAGS -fPIC -Wall"
4291 cat >> confdefs.h <<\EOF
4295 cat >> confdefs.h <<\EOF
4299 cat >> confdefs.h <<\EOF
4303 cat >> confdefs.h <<\EOF
4307 cat >> confdefs.h <<\EOF
4312 if test -z "$GNU_CC"; then
4313 CC='$(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000'
4316 OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl"
4323 cat >> confdefs.h <<\EOF
4327 cat >> confdefs.h <<\EOF
4331 cat >> confdefs.h <<\EOF
4332 #define HAVE_BSD_FLOCK 1
4335 if test -z "$USE_NSPR_THREADS"; then
4338 MDCPUCFG_H=_netbsd.cfg
4339 PR_MD_CSRCS=netbsd.c
4341 DSO_CFLAGS='-fPIC -DPIC'
4342 CFLAGS="$CFLAGS -ansi -Wall"
4343 CXXFLAGS="$CXXFLAGS -ansi -Wall"
4344 MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
4346 if test -z "$OBJECT_FMT"; then
4347 if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then
4350 DSO_LDOPTS='-shared'
4354 DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)'
4358 if test "$LIBRUNPATH"; then
4359 DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
4364 cat >> confdefs.h <<\EOF
4368 cat >> confdefs.h <<\EOF
4372 cat >> confdefs.h <<\EOF
4376 cat >> confdefs.h <<\EOF
4380 cat >> confdefs.h <<\EOF
4384 cat >> confdefs.h <<\EOF
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_SVID_GETTOD 1
4393 CFLAGS="$CFLAGS -Xa -fullwarn"
4394 CXXFLAGS="$CXXFLAGS -Xa -fullwarn"
4396 MDCPUCFG_H=_sony.cfg
4400 *-nextstep*|*-openstep*)
4401 cat >> confdefs.h <<\EOF
4405 cat >> confdefs.h <<\EOF
4409 cat >> confdefs.h <<\EOF
4410 #define HAVE_BSD_FLOCK 1
4413 cat >> confdefs.h <<\EOF
4414 #define _POSIX_SOURCE 1
4417 CFLAGS="$CFLAGS -Wall -fno-common -traditional-cpp -posix"
4418 CXXFLAGS="$CXXFLAGS -Wall -fno-common -traditional-cpp -posix"
4421 MDCPUCFG_H=_nextstep.cfg
4422 PR_MD_CSRCS=nextstep.c
4427 cat >> confdefs.h <<\EOF
4431 cat >> confdefs.h <<\EOF
4435 cat >> confdefs.h <<\EOF
4436 #define _QNX_SOURCE 1
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_POINTER_LOCALTIME_R 1
4445 MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@'
4448 OS_LIBS="$OS_LIBS -lsocket"
4449 _OPTIMIZE_FLAGS="-O1"
4450 _DEBUG_FLAGS="-gstabs"
4454 cat >> confdefs.h <<\EOF
4458 cat >> confdefs.h <<\EOF
4462 cat >> confdefs.h <<\EOF
4463 #define HAVE_BSD_FLOCK 1
4466 cat >> confdefs.h <<\EOF
4467 #define HAVE_SOCKLEN_T 1
4470 CFLAGS="$CFLAGS -ansi -Wall"
4471 CXXFLAGS="$CXXFLAGS -ansi -Wall"
4474 MDCPUCFG_H=_openbsd.cfg
4475 PR_MD_CSRCS=openbsd.c
4477 if test -z "$USE_NSPR_THREADS"; then
4480 DSO_LDOPTS='-shared -fPIC'
4481 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4485 cat >> confdefs.h <<\EOF
4489 cat >> confdefs.h <<\EOF
4493 cat >> confdefs.h <<\EOF
4494 #define PR_GETIPNODE_NOT_THREADSAFE 1
4497 RESOLVE_LINK_SYMBOLS=1
4499 MDCPUCFG_H=_openvms.cfg
4500 PR_MD_CSRCS=openvms.c
4501 DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS)'
4502 if test -n "$MOZ_DEBUG"; then
4503 DSO_LDOPTS="$DSO_LDOPTS $_DEBUG_FLAGS"
4505 DSO_LDOPTS="$DSO_LDOPTS $_OPTIMIZE_FLAGS"
4510 SHELL_OVERRIDE="SHELL
= /usr
/bin
/ksh
"
4511 cat >> confdefs.h <<\EOF
4515 cat >> confdefs.h <<\EOF
4519 cat >> confdefs.h <<\EOF
4520 #define _REENTRANT 1
4523 # OSF1 and HPUX report the POLLHUP event for a socket when the
4524 # shutdown(SHUT_WR) operation is called for the remote end, even though
4525 # the socket is still writeable. Use select(), instead of poll(), to
4526 # workaround this problem.
4527 cat >> confdefs.h <<\EOF
4528 #define _PR_POLL_WITH_SELECT 1
4532 if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then
4536 if test -z "$GNU_CC"; then
4537 CC="$CC -std1 -ieee_with_inexact"
4538 if test "$OS_RELEASE" != "V2.0
"; then
4539 CC="$CC -readonly_strings"
4541 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4542 ac_safe=`echo "machine
/builtins.h
" | sed 'y%./+-%__p_%'`
4543 echo $ac_n "checking
for machine
/builtins.h
""...
$ac_c" 1>&6
4544 echo "configure
:4545: checking
for machine
/builtins.h
" >&5
4545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4546 echo $ac_n "(cached
) $ac_c" 1>&6
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure
"
4550 #include "confdefs.h
"
4551 #include <machine/builtins.h>
4553 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4554 { (eval echo configure:4555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4556 if test -z "$ac_err"; then
4558 eval "ac_cv_header_
$ac_safe=yes"
4561 echo "configure
: failed program was
:" >&5
4562 cat conftest.$ac_ext >&5
4564 eval "ac_cv_header_
$ac_safe=no
"
4568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4569 echo "$ac_t""yes" 1>&6
4570 cat >> confdefs.h <<\EOF
4571 #define OSF1_HAVE_MACHINE_BUILTINS_H 1
4575 echo "$ac_t""no
" 1>&6
4579 CFLAGS="$CFLAGS -mieee"
4580 CXXFLAGS="$CXXFLAGS -mieee"
4583 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
4584 cat >> confdefs.h <<\EOF
4585 #define HAVE_INT_LOCALTIME_R 1
4589 cat >> confdefs.h <<\EOF
4590 #define HAVE_FCNTL_FILE_LOCKING 1
4593 cat >> confdefs.h <<\EOF
4594 #define HAVE_POINTER_LOCALTIME_R 1
4598 if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then
4599 cat >> confdefs.h <<\EOF
4600 #define OSF1V4_MAP_PRIVATE_BUG 1
4604 DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)'
4605 MDCPUCFG_H=_osf1.cfg
4610 cat >> confdefs.h <<\EOF
4614 cat >> confdefs.h <<\EOF
4618 cat >> confdefs.h <<\EOF
4619 #define _PR_NEED_H_ERRNO 1
4628 cat >> confdefs.h <<\EOF
4632 cat >> confdefs.h <<\EOF
4636 cat >> confdefs.h <<\EOF
4637 #define _PR_NEED_H_ERRNO 1
4641 MDCPUCFG_H=_riscos.cfg
4642 PR_MD_CSRCS=riscos.c
4644 LD="/home
/riscos
/env
/ro-ar cr
"
4648 cat >> confdefs.h <<\EOF
4652 cat >> confdefs.h <<\EOF
4656 cat >> confdefs.h <<\EOF
4660 cat >> confdefs.h <<\EOF
4664 cat >> confdefs.h <<\EOF
4668 cat >> confdefs.h <<\EOF
4669 #define _PR_NEED_H_ERRNO 1
4672 CC='cc -b elf -KPIC'
4673 CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w'
4676 DSO_LDOPTS='-b elf -G'
4677 MDCPUCFG_H=_scoos.cfg
4682 cat >> confdefs.h <<\EOF
4686 cat >> confdefs.h <<\EOF
4690 cat >> confdefs.h <<\EOF
4694 cat >> confdefs.h <<\EOF
4695 #define RELIANTUNIX 1
4698 cat >> confdefs.h <<\EOF
4702 cat >> confdefs.h <<\EOF
4703 #define HAVE_SVID_GETTOD 1
4706 if echo "$OS_TEST" | grep -c 86 2>/dev/null; then
4707 cat >> confdefs.h <<\EOF
4716 if test "$GNU_CC"; then
4717 AS='$(CC) -x assembler-with-cpp'
4718 if test "$CPU_ARCH" = "mips
"; then
4721 CFLAGS="$CFLAGS -Wall -Wno-format"
4724 _OPTIMIZE_FLAGS='-O -F Olimit,4000'
4727 DSO_LDOPTS='-G -z defs -h $(@:$(OBJDIR)/%.so=%.so)'
4729 if test "$OS_RELEASE" = "5.43"; then
4730 cat >> confdefs.h <<\EOF
4731 #define IP_MULTICAST 1
4736 OS_LIBS="$OS_LIBS -lsocket -lnsl -lresolv -ldl -lc"
4738 MDCPUCFG_H=_reliantunix.cfg
4739 PR_MD_CSRCS=reliantunix.c
4740 if test "${OS_ARCH}" = "mips
"; then
4741 PR_MD_ASFILES=os_ReliantUNIX.s
4746 cat >> confdefs.h <<\EOF
4750 cat >> confdefs.h <<\EOF
4754 CFLAGS="$CFLAGS -Wall -Wno-format"
4755 if test "$USE_MDUPDATE"; then
4756 CFLAGS="$CFLAGS -MDupdate \$
(DEPENDENCIES
)"
4763 if test "$OS_RELEASE" = "4.1.3_U1
"; then
4765 OS_LIBS="$OS_LIBS -lm"
4767 MDCPUCFG_H=_sunos4.cfg
4768 PR_MD_CSRCS=sunos4.c
4772 if test -z "$USE_NSPR_THREADS"; then
4775 cat >> confdefs.h <<\EOF
4779 cat >> confdefs.h <<\EOF
4783 cat >> confdefs.h <<\EOF
4787 cat >> confdefs.h <<\EOF
4791 cat >> confdefs.h <<\EOF
4795 cat >> confdefs.h <<\EOF
4799 cat >> confdefs.h <<\EOF
4800 #define HAVE_FCNTL_FILE_LOCKING 1
4804 MDCPUCFG_H=_solaris.cfg
4805 PR_MD_CSRCS=solaris.c
4807 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
4808 RESOLVE_LINK_SYMBOLS=1
4809 case "${OS_RELEASE}" in
4813 # It is safe to use the -Bdirect linker flag on Solaris 10 or later.
4817 if test -n "$GNU_CC"; then
4819 if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
4822 DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore'
4823 if test -n "$USE_B_DIRECT"; then
4824 DSO_LDOPTS="$DSO_LDOPTS,-Bdirect"
4828 DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore'
4829 if test -n "$USE_B_DIRECT"; then
4830 DSO_LDOPTS="$DSO_LDOPTS -Bdirect"
4833 if test -n "$GNU_CC"; then
4834 CFLAGS="$CFLAGS -Wall"
4835 CXXFLAGS="$CXXFLAGS -Wall"
4836 if test -n "$USE_MDUPDATE"; then
4837 CFLAGS="$CFLAGS -MDupdate \$
(DEPENDENCIES
)"
4838 CXXFLAGS="$CXXFLAGS -MDupdate \$
(DEPENDENCIES
)"
4840 GCC_AS=`$CC -print-prog-name=as`
4841 if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then
4845 CFLAGS="$CFLAGS -xstrconst"
4846 CXXFLAGS="$CXXFLAGS -Qoption cg
-xstrconst -features=tmplife
"
4847 if test -z "$MOZ_OPTIMIZE"; then
4848 CFLAGS="$CFLAGS -xs"
4849 CXXFLAGS="$CXXFLAGS -xs"
4851 _OPTIMIZE_FLAGS=-xO4
4853 if test -z "$GNU_AS"; then
4854 ASFLAGS="$ASFLAGS -Wa,-P"
4856 if test -n "$USE_64"; then
4857 if test -n "$GNU_CC"; then
4861 if test "$OS_TEST" = "i86pc
"; then
4862 CC="$CC -xarch=amd64
"
4863 CXX="$CXX -xarch=amd64
"
4866 CXX="$CXX -xarch=v9
"
4870 if test "$OS_TEST" = "i86pc
"; then
4871 if test -z "$USE_64"; then
4872 cat >> confdefs.h <<\EOF
4877 CPU_ARCH_TAG=_$OS_TEST
4878 # The default debug format, DWARF (-g), is not supported by gcc
4879 # on i386-ANY-sysv4/solaris, but the stabs format is. It is
4880 # assumed that the Solaris assembler /usr/ccs/bin/as is used.
4881 # If your gcc uses GNU as, you do not need the -Wa,-s option.
4882 if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then
4883 _DEBUG_FLAGS=-gstabs
4884 if test -z "$GNU_AS"; then
4885 _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s"
4889 case "${target_os}" in
4891 cat >> confdefs.h <<\EOF
4892 #define _PR_NO_LARGE_FILES 1
4897 cat >> confdefs.h <<\EOF
4898 #define _PR_NO_LARGE_FILES 1
4903 cat >> confdefs.h <<\EOF
4904 #define SOLARIS2_5 1
4909 cat >> confdefs.h <<\EOF
4910 #define _PR_HAVE_OFF64_T 1
4913 # The lfcompile64(5) man page on Solaris 2.6 says:
4914 # For applications that do not wish to conform to the POSIX or
4915 # X/Open specifications, the 64-bit transitional interfaces
4916 # are available by default. No compile-time flags need to be
4918 # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
4919 # The native compiler, gcc 2.8.x, and egcs don't have this problem.
4920 if test -n "$GNU_CC"; then
4921 cat >> confdefs.h <<\EOF
4922 #define _LARGEFILE64_SOURCE 1
4928 case "${target_os}" in
4940 # Solaris 8 or higher has IPv6.
4941 cat >> confdefs.h <<\EOF
4947 if test "$CPU_ARCH" = "sparc
"; then
4948 # 64-bit Solaris SPARC requires V9 architecture, so the following
4950 if test -z "$USE_64"; then
4951 ULTRASPARC_LIBRARY=nspr_flt
4954 # Purify requires that binaries linked against nspr also
4955 # be linked against -lrt (or -lposix4) so add it to OS_LIBS
4957 _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'`
4958 OS_LIBS="$OS_LIBS $_librt"
4962 cat >> confdefs.h <<\EOF
4966 cat >> confdefs.h <<\EOF
4970 cat >> confdefs.h <<\EOF
4974 cat >> confdefs.h <<\EOF
4979 if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then
4980 cat >> confdefs.h <<\EOF
4981 #define _PR_NO_LARGE_FILES 1
4984 CC='$(NSDEPTH)/build/hcc cc'
4985 CXX='$(NSDEPTH)/build/hcpp CC'
4986 MDCPUCFG_H=_unixware.cfg
4988 cat >> confdefs.h <<\EOF
4989 #define _LARGEFILE64_SOURCE 1
4992 cat >> confdefs.h <<\EOF
4993 #define _PR_HAVE_OFF64_T 1
4996 cat >> confdefs.h <<\EOF
4997 #define _PR_HAVE_SOCKADDR_LEN 1
5000 MDCPUCFG_H=_unixware7.cfg
5002 PR_MD_CSRCS=unixware.c
5008 cat >> confdefs.h <<\EOF
5012 cat >> confdefs.h <<\EOF
5016 cat >> confdefs.h <<\EOF
5017 #define BSD_SELECT 1
5020 cat >> confdefs.h <<\EOF
5021 #define TCPV40HDRS 1
5031 RESOLVE_LINK_SYMBOLS=1
5033 cat >> confdefs.h <<\EOF
5039 CFLAGS="$CFLAGS -Wall -Zomf"
5040 CXXFLAGS="$CFLAGS -Wall -Zomf"
5041 MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
5043 DSO_LDOPTS='-Zomf -Zdll -Zmap'
5045 _OPTIMIZE_FLAGS="-O2 -s"
5046 _DEBUG_FLAGS="-g -fno-inline"
5047 if test -n "$MOZ_OPTIMIZE"; then
5048 DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK
:2 -Zlinker /PACKCODE
-Zlinker /PACKDATA
"
5053 if test -n "$MOZ_OS2_HIGH_MEMORY"; then
5054 DSO_LDOPTS="$DSO_LDOPTS -Zhigh-mem"
5055 LDFLAGS="$LDFLAGS -Zhigh-mem"
5056 cat >> confdefs.h <<\EOF
5057 #define MOZ_OS2_HIGH_MEMORY 1
5062 # GCC for OS/2 currently predefines these, but we don't want them
5063 DEFINES="$DEFINES -Uunix -U__unix -U__unix__"
5067 cat >> confdefs.h <<\EOF
5075 if test -z "$SKIP_LIBRARY_CHECKS"; then
5083 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
5084 echo "configure
:5085: checking
for dlopen
in -ldl" >&5
5085 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5087 echo $ac_n "(cached
) $ac_c" 1>&6
5089 ac_save_LIBS="$LIBS"
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure
"
5093 #include "confdefs.h
"
5094 /* Override any gcc2 internal prototype to avoid an error. */
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105 eval "ac_cv_lib_
$ac_lib_var=yes"
5107 echo "configure
: failed program was
:" >&5
5108 cat conftest.$ac_ext >&5
5110 eval "ac_cv_lib_
$ac_lib_var=no
"
5113 LIBS="$ac_save_LIBS"
5116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5117 echo "$ac_t""yes" 1>&6
5118 ac_safe=`echo "dlfcn.h
" | sed 'y%./+-%__p_%'`
5119 echo $ac_n "checking
for dlfcn.h
""...
$ac_c" 1>&6
5120 echo "configure
:5121: checking
for dlfcn.h
" >&5
5121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5122 echo $ac_n "(cached
) $ac_c" 1>&6
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure
"
5126 #include "confdefs.h
"
5129 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5130 { (eval echo configure:5131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5132 if test -z "$ac_err"; then
5134 eval "ac_cv_header_
$ac_safe=yes"
5137 echo "configure
: failed program was
:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_header_
$ac_safe=no
"
5144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 OS_LIBS="-ldl $OS_LIBS"
5148 echo "$ac_t""no
" 1>&6
5152 echo "$ac_t""no
" 1>&6
5161 if test $ac_cv_prog_gcc = yes; then
5162 echo $ac_n "checking whether
${CC-cc} needs
-traditional""...
$ac_c" 1>&6
5163 echo "configure
:5164: checking whether
${CC-cc} needs
-traditional" >&5
5164 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5165 echo $ac_n "(cached
) $ac_c" 1>&6
5167 ac_pattern="Autoconf.
*'x'"
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure
"
5170 #include "confdefs.h
"
5174 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5175 egrep "$ac_pattern" >/dev/null 2>&1; then
5177 ac_cv_prog_gcc_traditional=yes
5180 ac_cv_prog_gcc_traditional=no
5185 if test $ac_cv_prog_gcc_traditional = no; then
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure
"
5188 #include "confdefs.h
"
5192 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5193 egrep "$ac_pattern" >/dev/null 2>&1; then
5195 ac_cv_prog_gcc_traditional=yes
5202 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5203 if test $ac_cv_prog_gcc_traditional = yes; then
5204 CC="$CC -traditional"
5208 for ac_func in lchown strerror
5210 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5211 echo "configure
:5212: checking
for $ac_func" >&5
5212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5213 echo $ac_n "(cached
) $ac_c" 1>&6
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure
"
5217 #include "confdefs.h
"
5218 /* System header to define __stub macros and hopefully few prototypes,
5219 which can conflict with char $ac_func(); below. */
5221 /* Override any gcc2 internal prototype to avoid an error. */
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5228 /* The GNU C library defines this for functions which it implements
5229 to always fail with ENOSYS. Some functions are actually named
5230 something starting with __ and the normal name is an alias. */
5231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 eval "ac_cv_func_
$ac_func=yes"
5243 echo "configure
: failed program was
:" >&5
5244 cat conftest.$ac_ext >&5
5246 eval "ac_cv_func_
$ac_func=no
"
5251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5254 cat >> confdefs.h <<EOF
5255 #define $ac_tr_func 1
5259 echo "$ac_t""no
" 1>&6
5266 # Check whether --enable-strip or --disable-strip was given.
5267 if test "${enable_strip+set}" = set; then
5268 enableval="$enable_strip"
5269 if test "$enableval" = "yes"; then
5275 case "${target_os}" in
5277 if test -z "$GNU_CC"; then
5279 echo $ac_n "checking
for +Olit support
""...
$ac_c" 1>&6
5280 echo "configure
:5281: checking
for +Olit support
" >&5
5281 if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
5282 echo $ac_n "(cached
) $ac_c" 1>&6
5284 ac_cv_hpux_usable_olit_option=no
5286 echo 'int main() { return 0; }' | cat > conftest.c
5287 ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1
5288 if test $? -eq 0; then
5289 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then
5290 ac_cv_hpux_usable_olit_option=yes
5297 echo "$ac_t""$ac_cv_hpux_usable_olit_option" 1>&6
5299 if test "$ac_cv_hpux_usable_olit_option" = "yes"; then
5300 CFLAGS="$CFLAGS +Olit
=all
"
5301 CXXFLAGS="$CXXFLAGS +Olit
=all
"
5303 CFLAGS="$CFLAGS +ESlit
"
5304 CXXFLAGS="$CXXFLAGS +ESlit
"
5312 case "$target_os" in
5318 echo $ac_n "checking
for pthread_create
in -lpthreads""...
$ac_c" 1>&6
5319 echo "configure
:5320: checking
for pthread_create
in -lpthreads" >&5
5321 #include <pthread.h>
5322 void
*foo
(void
*v
) { return v
; }
5325 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5330 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5;
5331 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5;
5333 rm -f dummy.c dummy${ac_exeext} ;
5334 if test "$_res" = "0"; then
5335 echo "$ac_t""yes" 1>&6
5336 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
5338 echo "$ac_t""no
" 1>&6
5340 echo $ac_n "checking
for pthread_create
in -lpthread""...
$ac_c" 1>&6
5341 echo "configure
:5342: checking
for pthread_create
in -lpthread" >&5
5343 #include <pthread.h>
5344 void
*foo
(void
*v
) { return v
; }
5347 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5352 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5;
5353 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5;
5355 rm -f dummy.c dummy${ac_exeext} ;
5356 if test "$_res" = "0"; then
5357 echo "$ac_t""yes" 1>&6
5358 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
5360 echo "$ac_t""no
" 1>&6
5362 echo $ac_n "checking
for pthread_create
in -lc_r""...
$ac_c" 1>&6
5363 echo "configure
:5364: checking
for pthread_create
in -lc_r" >&5
5365 #include <pthread.h>
5366 void
*foo
(void
*v
) { return v
; }
5369 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5374 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5;
5375 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5;
5377 rm -f dummy.c dummy${ac_exeext} ;
5378 if test "$_res" = "0"; then
5379 echo "$ac_t""yes" 1>&6
5380 _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
5382 echo "$ac_t""no
" 1>&6
5384 echo $ac_n "checking
for pthread_create
in -lc""...
$ac_c" 1>&6
5385 echo "configure
:5386: checking
for pthread_create
in -lc" >&5
5387 #include <pthread.h>
5388 void
*foo
(void
*v
) { return v
; }
5391 if (!pthread_create
(&t
, 0, &foo
, 0)) {
5396 echo "${CC-cc} -o dummy
${ac_exeext} dummy.c
$CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5;
5397 ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5;
5399 rm -f dummy.c dummy${ac_exeext} ;
5400 if test "$_res" = "0"; then
5401 echo "$ac_t""yes" 1>&6
5405 echo "$ac_t""no
" 1>&6
5421 # Check whether --with-pthreads or --without-pthreads was given.
5422 if test "${with_pthreads+set}" = set; then
5423 withval="$with_pthreads"
5424 if test "$withval" = "yes"; then
5425 if test -n "$_HAVE_PTHREADS"; then
5430 { echo "configure
: error
: --with-pthreads specified
for a system without pthread support
" 1>&2; exit 1; };
5437 if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then
5445 # Check whether --enable-user-pthreads or --disable-user-pthreads was given.
5446 if test "${enable_user_pthreads+set}" = set; then
5447 enableval="$enable_user_pthreads"
5448 if test "$enableval" = "yes"; then
5449 if test -n "$_HAVE_PTHREADS"; then
5454 { echo "configure
: error
: --enable-user-pthreads specified
for a system without pthread support
" 1>&2; exit 1; };
5460 # Check whether --enable-nspr-threads or --disable-nspr-threads was given.
5461 if test "${enable_nspr_threads+set}" = set; then
5462 enableval="$enable_nspr_threads"
5463 if test "$enableval" = "yes"; then
5473 # Check whether --with-bthreads or --without-bthreads was given.
5474 if test "${with_bthreads+set}" = set; then
5475 withval="$with_bthreads"
5476 if test "$withval" = "yes"; then
5486 fi # SKIP_LIBRARY_CHECKS
5488 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5489 if test "${enable_ipv6+set}" = set; then
5490 enableval="$enable_ipv6"
5491 if test "$enableval" = "yes"; then
5500 # Check whether --enable-boehm or --disable-boehm was given.
5501 if test "${enable_boehm+set}" = set; then
5502 enableval="$enable_boehm"
5503 if test "$enableval" = "yes"; then
5504 cat >> confdefs.h <<\EOF
5505 #define GC_LEAK_DETECTOR 1
5513 if test -n "$USE_PTHREADS"; then
5515 ac_cv_have_dash_pthread=no
5516 echo $ac_n "checking whether
${CC-cc} accepts
-pthread""...
$ac_c" 1>&6
5517 echo "configure
:5518: checking whether
${CC-cc} accepts
-pthread" >&5
5518 echo 'int main() { return 0; }' | cat > conftest.c
5519 ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
5520 if test $? -eq 0; then
5521 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
5522 ac_cv_have_dash_pthread=yes
5523 case "$target_os" in
5525 # Freebsd doesn't use -pthread for compiles, it uses them for linking
5528 CFLAGS="$CFLAGS -pthread"
5529 CXXFLAGS="$CXXFLAGS -pthread"
5535 echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
5537 ac_cv_have_dash_pthreads=no
5538 if test "$ac_cv_have_dash_pthread" = "no
"; then
5539 echo $ac_n "checking whether
${CC-cc} accepts
-pthreads""...
$ac_c" 1>&6
5540 echo "configure
:5541: checking whether
${CC-cc} accepts
-pthreads" >&5
5541 echo 'int main() { return 0; }' | cat > conftest.c
5542 ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
5543 if test $? -eq 0; then
5544 if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
5545 ac_cv_have_dash_pthreads=yes
5546 CFLAGS="$CFLAGS -pthreads"
5547 CXXFLAGS="$CXXFLAGS -pthreads"
5551 echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6
5556 if test "$ac_cv_have_dash_pthreads" = "yes"; then
5561 cat >> confdefs.h <<\EOF
5562 #define _REENTRANT 1
5565 cat >> confdefs.h <<\EOF
5566 #define _THREAD_SAFE 1
5569 if test "$ac_cv_have_dash_pthread" = "yes"; then
5570 _PTHREAD_LDFLAGS="-pthread"
5572 _PTHREAD_LDFLAGS="-lc_r"
5576 if test "$ac_cv_have_dash_pthread" = "yes"; then
5577 _PTHREAD_LDFLAGS="-pthread"
5581 cat >> confdefs.h <<\EOF
5582 #define _THREAD_SAFE 1
5585 if test "$ac_cv_have_dash_pthread" = "yes"; then
5590 if test "$ac_cv_have_dash_pthread" = "yes"; then
5591 _PTHREAD_LDFLAGS=-pthread
5594 *-linux*|*-gnu*|*-k*bsd*-gnu)
5595 cat >> confdefs.h <<\EOF
5596 #define _REENTRANT 1
5603 if test -n "$USE_USER_PTHREADS"; then
5613 if test -n "$USE_NSPR_THREADS"; then
5614 cat >> confdefs.h <<\EOF
5615 #define _PR_LOCAL_THREADS_ONLY 1
5619 case "$target_os" in
5621 if test -z "$USE_PTHREADS"; then
5622 cat >> confdefs.h <<\EOF
5623 #define AIX_RENAME_SELECT 1
5629 if test -z "$USE_NSPR_THREADS"; then
5630 cat >> confdefs.h <<\EOF
5631 #define HAVE_POINTER_LOCALTIME_R 1
5637 if test -z "$USE_NSPR_THREADS"; then
5638 cat >> confdefs.h <<\EOF
5639 #define HAVE_POINTER_LOCALTIME_R 1
5643 if test -n "$USE_PTHREADS"; then
5644 cat >> confdefs.h <<\EOF
5645 #define _PR_HAVE_THREADSAFE_GETHOST 1
5651 if test -z "$USE_NSPR_THREADS"; then
5652 cat >> confdefs.h <<\EOF
5653 #define HAVE_POINTER_LOCALTIME_R 1
5657 if test -n "$USE_PTHREADS"; then
5658 cat >> confdefs.h <<\EOF
5659 #define _PR_HAVE_THREADSAFE_GETHOST 1
5667 if test -n "$USE_PTHREADS"; then
5668 cat >> confdefs.h <<\EOF
5669 #define _PR_NEED_PTHREAD_INIT 1
5675 if test -n "$USE_NSPR_THREADS"; then
5676 cat >> confdefs.h <<\EOF
5677 #define _PR_LOCAL_THREADS_ONLY 1
5683 if test -n "$USE_NSPR_THREADS"; then
5684 cat >> confdefs.h <<\EOF
5685 #define _PR_LOCAL_THREADS_ONLY 1
5689 if test "$USE_PTHREADS"; then
5690 if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then
5691 cat >> confdefs.h <<\EOF
5692 #define _REENTRANT 1
5695 cat >> confdefs.h <<\EOF
5696 #define _PR_DCETHREADS 1
5700 cat >> confdefs.h <<EOF
5701 #define _POSIX_C_SOURCE 199506L
5704 cat >> confdefs.h <<\EOF
5705 #define _PR_HAVE_THREADSAFE_GETHOST 1
5710 if test "$USE_USER_PTHREADS"; then
5711 cat >> confdefs.h <<EOF
5712 #define _POSIX_C_SOURCE 199506L
5718 if test "${target_os}" = "irix6.5
"; then
5719 if test -n "$USE_PTHREADS"; then
5720 cat >> confdefs.h <<\EOF
5721 #define _PR_HAVE_GETHOST_R 1
5724 cat >> confdefs.h <<\EOF
5725 #define _PR_HAVE_GETHOST_R_POINTER 1
5731 *-linux*|*-gnu*|*-k*bsd*-gnu)
5732 if test -n "$USE_NSPR_THREADS"; then
5733 cat >> confdefs.h <<\EOF
5734 #define _PR_LOCAL_THREADS_ONLY 1
5739 *-mingw*|*-cygwin*|*-msvc*|*-mks*|*-wince*|*-os2*|*-beos*)
5744 *-netbsd*|*-openbsd*)
5745 if test -n "$USE_NSPR_THREADS"; then
5746 cat >> confdefs.h <<\EOF
5747 #define _PR_LOCAL_THREADS_ONLY 1
5753 if test -n "$USE_NSPR_THREADS"; then
5754 cat >> confdefs.h <<\EOF
5755 #define _PR_LOCAL_THREADS_ONLY 1
5759 if test -n "$USE_PTHREADS"; then
5760 if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then
5763 cat >> confdefs.h <<\EOF
5764 #define _PR_HAVE_THREADSAFE_GETHOST 1
5771 if test -n "$USE_NSPR_THREADS"; then
5772 cat >> confdefs.h <<\EOF
5773 #define _PR_LOCAL_THREADS_ONLY 1
5777 if test -n "$USE_PTHREADS"; then
5778 cat >> confdefs.h <<\EOF
5779 #define _REENTRANT 1
5782 cat >> confdefs.h <<\EOF
5783 #define HAVE_POINTER_LOCALTIME_R 1
5786 if test "$OS_TEST" = "i86pc
"; then
5787 if test -n "$USE_64"; then
5788 PR_MD_ASFILES=os_SunOS_x86_64.s
5790 PR_MD_ASFILES=os_SunOS_x86.s
5793 if test -n "$USE_64"; then
5794 PR_MD_ASFILES=os_SunOS_sparcv9.s
5800 if test -n "$USE_PTHREADS"; then
5801 cat >> confdefs.h <<\EOF
5802 #define _PR_HAVE_GETHOST_R 1
5805 cat >> confdefs.h <<\EOF
5806 #define _PR_HAVE_GETHOST_R_POINTER 1
5813 OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS"
5815 if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
5816 _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS"
5819 if test -n "$_SAVE_DEBUG_FLAGS"; then
5820 _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS"
5823 if test -n "$MOZ_OPTIMIZE"; then
5824 CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS"
5825 CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS"
5828 if test -n "$MOZ_DEBUG"; then
5829 CFLAGS="$CFLAGS $_DEBUG_FLAGS"
5830 CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS"
5833 if test -n "$MOZ_OPTIMIZE"; then
5839 if test -n "$USE_64"; then
5843 RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
5845 case "$target_os" in
5847 CC="\$
(CYGWIN_WRAPPER
) $CC"
5848 CXX="\$
(CYGWIN_WRAPPER
) $CXX"
5849 RC="\$
(CYGWIN_WRAPPER
) $RC"
5959 lib
/libc
/include
/Makefile
5960 lib
/libc
/src
/Makefile
5964 pkg
/solaris
/Makefile
5965 pkg
/solaris
/SUNWpr
/Makefile
5966 pkg
/solaris
/SUNWprd
/Makefile
5969 pr
/include
/md
/Makefile
5970 pr
/include
/obsolete
/Makefile
5971 pr
/include
/private
/Makefile
5974 pr
/src
/linking
/Makefile
5975 pr
/src
/malloc
/Makefile
5977 pr
/src
/md
/${PR_MD_ARCH_DIR}/Makefile
5978 pr
/src
/memory
/Makefile
5979 pr
/src
/misc
/Makefile
5980 pr
/src
/threads
/Makefile
5982 pr
/tests
/dll
/Makefile
5986 if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
5987 MAKEFILES="$MAKEFILES pr
/src
/threads
/combined
/Makefile
"
5988 elif test -n "$USE_PTHREADS"; then
5989 MAKEFILES="$MAKEFILES pr
/src
/pthreads
/Makefile
"
5990 elif test -n "$USE_BTHREADS"; then
5991 MAKEFILES="$MAKEFILES pr
/src
/bthreads
/Makefile
"
5994 if test -n "$USE_CPLUS"; then
5995 MAKEFILES="$MAKEFILES pr
/src
/cplus
/Makefile pr
/src
/cplus
/tests
/Makefile
"
5998 echo $MAKEFILES > unallmakefiles
6001 cat > confcache <<\EOF
6002 # This file is a shell script that caches the results of configure
6003 # tests run on this system so they can be shared between configure
6004 # scripts and configure runs. It is not useful on other systems.
6005 # If it contains results you don't want to keep, you may remove or edit it.
6007 # By default, configure uses ./config.cache as the cache file,
6008 # creating it if it does not exist already. You can give configure
6009 # the --cache-file=FILE option to use a different cache file; that is
6010 # what configure does when it calls configure scripts in
6011 # subdirectories, so they share the cache.
6012 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6013 # config.status only pays attention to the cache file if you give it the
6014 # --recheck option to rerun configure.
6017 # The following way of writing the cache mishandles newlines in values,
6018 # but we know of no workaround that is simple, portable, and efficient.
6019 # So, don't put newlines in cache variables' values.
6020 # Ultrix sh set writes to stderr and can't be redirected directly,
6021 # and sets the high bit in the cache file unless we assign to the vars.
6023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6025 # `set' does not quote correctly, so add quotes (double-quote substitution
6026 # turns \\\\ into \\, and sed turns \\ into \).
6028 -e "s
/'/'\\\\''/g
" \
6029 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
6032 # `set' quotes correctly as required by POSIX, so do not add quotes.
6033 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6036 if cmp -s $cache_file confcache; then
6039 if test -w $cache_file; then
6040 echo "updating cache
$cache_file"
6041 cat confcache > $cache_file
6043 echo "not updating unwritable cache
$cache_file"
6048 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6050 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
6051 # Let make expand exec_prefix.
6052 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
6054 # Any assignment to VPATH causes Sun make to only execute
6055 # the first set of double-colon rules, so remove it if not needed.
6056 # If there is a colon in the path, we need to keep it.
6057 if test "x
$srcdir" = x.; then
6058 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6061 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6063 # Transform confdefs.h into DEFS.
6064 # Protect against shell expansion while executing Makefile rules.
6065 # Protect against Makefile macro expansion.
6066 cat > conftest.defs <<\EOF
6067 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6068 s%[ `~#$^&*(){}\\|;'"<>?
]%\\&%g
6073 DEFS
=`sed -f conftest.defs confdefs.h | tr '\012' ' ' | tr '\015' ' '`
6077 # Without the "./", some shells look in PATH for config.status.
6078 : ${CONFIG_STATUS=./config.status}
6080 echo creating
$CONFIG_STATUS
6081 rm -f $CONFIG_STATUS
6082 cat > $CONFIG_STATUS <<EOF
6084 # Generated automatically by configure.
6085 # Run this file to recreate the current configuration.
6086 # This directory was configured as follows,
6087 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6089 # $0 $ac_configure_args
6091 # Compiler output produced by configure, useful for debugging
6092 # configure, is in ./config.log if it exists.
6094 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6097 case "\$ac_option" in
6098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6099 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6100 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6101 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6102 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6104 -help | --help | --hel | --he | --h)
6105 echo "\$ac_cs_usage"; exit 0 ;;
6106 *) echo "\$ac_cs_usage"; exit 1 ;;
6110 ac_given_srcdir=$srcdir
6112 trap 'rm -fr `echo "$MAKEFILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6114 cat >> $CONFIG_STATUS <<EOF
6116 # Protect against being on the right side of a sed subst in config.status.
6117 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6118 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6122 s%@CFLAGS@%$CFLAGS%g
6123 s%@CPPFLAGS@%$CPPFLAGS%g
6124 s%@CXXFLAGS@%$CXXFLAGS%g
6125 s%@FFLAGS@%$FFLAGS%g
6127 s%@LDFLAGS@%$LDFLAGS%g
6129 s%@exec_prefix@%$exec_prefix%g
6130 s%@prefix@%$prefix%g
6131 s%@program_transform_name@%$program_transform_name%g
6132 s%@bindir@%$bindir%g
6133 s%@sbindir@%$sbindir%g
6134 s%@libexecdir@%$libexecdir%g
6135 s%@datadir@%$datadir%g
6136 s%@sysconfdir@%$sysconfdir%g
6137 s%@sharedstatedir@%$sharedstatedir%g
6138 s%@localstatedir@%$localstatedir%g
6139 s%@libdir@%$libdir%g
6140 s%@includedir@%$includedir%g
6141 s%@oldincludedir@%$oldincludedir%g
6142 s%@infodir@%$infodir%g
6143 s%@mandir@%$mandir%g
6145 s%@host_alias@%$host_alias%g
6146 s%@host_cpu@%$host_cpu%g
6147 s%@host_vendor@%$host_vendor%g
6148 s%@host_os@%$host_os%g
6149 s%@target@%$target%g
6150 s%@target_alias@%$target_alias%g
6151 s%@target_cpu@%$target_cpu%g
6152 s%@target_vendor@%$target_vendor%g
6153 s%@target_os@%$target_os%g
6155 s%@build_alias@%$build_alias%g
6156 s%@build_cpu@%$build_cpu%g
6157 s%@build_vendor@%$build_vendor%g
6158 s%@build_os@%$build_os%g
6160 s%@dist_prefix@%$dist_prefix%g
6161 s%@dist_bindir@%$dist_bindir%g
6162 s%@dist_includedir@%$dist_includedir%g
6163 s%@dist_libdir@%$dist_libdir%g
6164 s%@WHOAMI@%$WHOAMI%g
6165 s%@HOST_CC@%$HOST_CC%g
6167 s%@RANLIB@%$RANLIB%g
6172 s%@WINDRES@%$WINDRES%g
6175 s%@SHELL_OVERRIDE@%$SHELL_OVERRIDE%g
6176 s%@MOZILLA_CLIENT@%$MOZILLA_CLIENT%g
6177 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
6178 s%@HOST_LDFLAGS@%$HOST_LDFLAGS%g
6179 s%@GNU_CC@%$GNU_CC%g
6180 s%@GCC_USE_GNU_LD@%$GCC_USE_GNU_LD%g
6181 s%@MSC_VER@%$MSC_VER%g
6182 s%@CROSS_COMPILE@%$CROSS_COMPILE%g
6183 s%@MOZ_OPTIMIZE@%$MOZ_OPTIMIZE%g
6184 s%@USE_CPLUS@%$USE_CPLUS%g
6185 s%@USE_IPV6@%$USE_IPV6%g
6186 s%@USE_N32@%$USE_N32%g
6187 s%@USE_64@%$USE_64%g
6188 s%@OBJECT_MODE@%$OBJECT_MODE%g
6189 s%@GC_LEAK_DETECTOR@%$GC_LEAK_DETECTOR%g
6190 s%@ENABLE_STRIP@%$ENABLE_STRIP%g
6191 s%@USE_PTHREADS@%$USE_PTHREADS%g
6192 s%@USE_BTHREADS@%$USE_BTHREADS%g
6193 s%@USE_USER_PTHREADS@%$USE_USER_PTHREADS%g
6194 s%@USE_NSPR_THREADS@%$USE_NSPR_THREADS%g
6195 s%@LIBNSPR@%$LIBNSPR%g
6196 s%@LIBPLC@%$LIBPLC%g
6197 s%@MOD_MAJOR_VERSION@%$MOD_MAJOR_VERSION%g
6198 s%@MOD_MINOR_VERSION@%$MOD_MINOR_VERSION%g
6199 s%@MOD_PATCH_VERSION@%$MOD_PATCH_VERSION%g
6200 s%@NSPR_MODNAME@%$NSPR_MODNAME%g
6201 s%@MDCPUCFG_H@%$MDCPUCFG_H%g
6202 s%@PR_MD_CSRCS@%$PR_MD_CSRCS%g
6203 s%@PR_MD_ASFILES@%$PR_MD_ASFILES%g
6204 s%@PR_MD_ARCH_DIR@%$PR_MD_ARCH_DIR%g
6205 s%@CPU_ARCH@%$CPU_ARCH%g
6206 s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g
6207 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
6208 s%@DLL_SUFFIX@%$DLL_SUFFIX%g
6209 s%@ASM_SUFFIX@%$ASM_SUFFIX%g
6210 s%@MKSHLIB@%$MKSHLIB%g
6211 s%@DSO_CFLAGS@%$DSO_CFLAGS%g
6212 s%@DSO_LDOPTS@%$DSO_LDOPTS%g
6213 s%@OS_TARGET@%$OS_TARGET%g
6214 s%@OS_ARCH@%$OS_ARCH%g
6215 s%@OS_RELEASE@%$OS_RELEASE%g
6216 s%@OS_TEST@%$OS_TEST%g
6217 s%@MACOSX_DEPLOYMENT_TARGET@%$MACOSX_DEPLOYMENT_TARGET%g
6218 s%@DEFINES@%$DEFINES%g
6219 s%@AR_FLAGS@%$AR_FLAGS%g
6220 s%@ASFLAGS@%$ASFLAGS%g
6221 s%@FILTER@%$FILTER%g
6222 s%@IMPLIB@%$IMPLIB%g
6223 s%@OS_LIBS@%$OS_LIBS%g
6224 s%@RESOLVE_LINK_SYMBOLS@%$RESOLVE_LINK_SYMBOLS%g
6225 s%@AIX_LINK_OPTS@%$AIX_LINK_OPTS%g
6226 s%@NOSUCHFILE@%$NOSUCHFILE%g
6227 s%@MOZ_OBJFORMAT@%$MOZ_OBJFORMAT%g
6228 s%@ULTRASPARC_LIBRARY@%$ULTRASPARC_LIBRARY%g
6229 s%@OBJDIR@%$OBJDIR%g
6230 s%@OBJDIR_NAME@%$OBJDIR_NAME%g
6231 s%@RELEASE_OBJDIR_NAME@%$RELEASE_OBJDIR_NAME%g
6232 s%@NSINSTALL@%$NSINSTALL%g
6233 s%@OPTIMIZER@%$OPTIMIZER%g
6235 s%@RCFLAGS@%$RCFLAGS%g
6236 s%@DLLFLAGS@%$DLLFLAGS%g
6237 s%@EXEFLAGS@%$EXEFLAGS%g
6238 s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g
6239 s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g
6240 s%@VISIBILITY_FLAGS@%$VISIBILITY_FLAGS%g
6241 s%@WRAP_SYSTEM_INCLUDES@%$WRAP_SYSTEM_INCLUDES%g
6242 s%@MACOS_SDK_DIR@%$MACOS_SDK_DIR%g
6243 s%@NEXT_ROOT@%$NEXT_ROOT%g
6249 cat >> $CONFIG_STATUS <<\EOF
6251 # Split the substitutions into bite-sized pieces for seds with
6252 # small command number limits, like on Digital OSF/1 and HP-UX.
6253 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6254 ac_file
=1 # Number of current file.
6255 ac_beg
=1 # First line for current file.
6256 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6259 while $ac_more_lines; do
6260 if test $ac_beg -gt 1; then
6261 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6263 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6265 if test ! -s conftest.s
$ac_file; then
6267 rm -f conftest.s
$ac_file
6269 if test -z "$ac_sed_cmds"; then
6270 ac_sed_cmds
="sed -f conftest.s$ac_file"
6272 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6274 ac_file
=`expr $ac_file + 1`
6276 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6279 if test -z "$ac_sed_cmds"; then
6284 cat >> $CONFIG_STATUS <<EOF
6286 CONFIG_FILES=\${CONFIG_FILES-"$MAKEFILES"}
6288 cat >> $CONFIG_STATUS <<\EOF
6289 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6292 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6293 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6294 *) ac_file_in
="${ac_file}.in" ;;
6297 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6299 # Remove last slash and all that follows it. Not all systems have dirname.
6300 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6301 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6302 # The file is in a subdirectory.
6303 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6304 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6305 # A "../" for each directory in $ac_dir_suffix.
6306 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6308 ac_dir_suffix
= ac_dots
=
6311 case "$ac_given_srcdir" in
6313 if test -z "$ac_dots"; then top_srcdir
=.
6314 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6315 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6317 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6318 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6322 echo creating
"$ac_file"
6324 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6326 *Makefile
*) ac_comsub
="1i\\
6327 # $configure_input" ;;
6331 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6333 s%@configure_input@%$configure_input%g
6334 s%@srcdir@%$srcdir%g
6335 s%@top_srcdir@%$top_srcdir%g
6336 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6341 cat >> $CONFIG_STATUS <<EOF
6344 cat >> $CONFIG_STATUS <<\EOF
6345 chmod +x config
/nspr-config
6348 chmod +x
$CONFIG_STATUS
6349 rm -fr confdefs
* $ac_clean_files
6350 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1