configure revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
0N/A# Any additions from configure.in:
--with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]"
build include files in DIR [DIST_PREFIX/include/nspr]"
--with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]"
program_transform_name=s,x,x,
site=
for ac_option
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
*) ac_optarg= ;;
| --da=*)
eval "enable_${ac_feature}='$ac_optarg'" ;;
cat << EOF
cat << EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
eval "with_${ac_package}='$ac_optarg'" ;;
if test -n "$ac_prev"; then
# 5 compiler messages saved in config.log
for ac_arg
# because not all systems understand e.g. LANG=C (notably SCO).
# confdefs.h avoids OS command line length limits that DEFS can exceed.
echo > confdefs.h
if test -z "$srcdir"; then
srcdir=..
if test -z "$CONFIG_SITE"; then
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
. "$ac_site_file"
if test -r "$cache_file"; then
echo "loading cache $cache_file"
echo "creating cache $cache_file"
ac_ext=c
if test -z "$ac_aux_dir"; then
{ echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
# as determined by config.guess.
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
# Make sure we can run config.sub.
NONE)
NONE)
NONE)
NONE)
NONENONEs,x,x, &&
_DEBUG_FLAGS=-g
OBJDIR=.
if test -n "$CC"; then
if test -n "$CC"; then
test -n "$CC" && break
*-msvc*)
*-mks*)
if test -n "$_WIN32_MSVC"; then
if test -n "$MOZILLA_CLIENT"; then
*-aix*)
if test -z "$CC"; then
*-aix*)
if test -z "$USE_NSPR_THREADS"; then
*-hpux*)
*-irix*)
*-openvms*)
*-osf*)
*-solaris*)
if test -z "$CXX"; then
*-aix*)
if test -z "$USE_NSPR_THREADS"; then
*-hpux*)
hpux11.*)
*-irix*)
*-openvms*)
*-osf*)
*-solaris*)
if test -z "$SKIP_PATH_CHECKS"; then
if test -n "$WHOAMI"; then
if test -n "$MOZ_DEBUG"; then
beos*)
if test -z "$SKIP_COMPILER_CHECKS"; then
if test -n "$HOST_CC"; then
if test -n "$HOST_CC"; then
test -n "$HOST_CC" && break
if test -z "$HOST_CC"; then
if test -z "$HOST_CFLAGS"; then
if test -z "$HOST_LDFLAGS"; then
echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1148: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
{ echo "configure: error: installation or configuration problem: $host compiler $HOST_CC cannot create executables." 1>&2; exit 1; }
if test -n "$CC"; then
if test -n "$CC"; then
test -n "$CC" && break
unset ac_cv_prog_CC
if test -n "$CC"; then
if test -n "$CC"; then
if test -z "$CC"; then
if test -n "$CC"; then
if test -n "$CC"; then
if test -z "$CC"; then
if test -n "$CC"; then
if test -n "$CC"; then
ac_ext=c
if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_ext=c
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1366: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
GCC=
if test "$ac_test_CFLAGS" = set; then
if test -n "$CXX"; then
if test -n "$CXX"; then
test -n "$CXX" && break
unset ac_cv_prog_CXX
if test -n "$CXX"; then
if test -n "$CXX"; then
test -n "$CXX" && break
ac_ext=C
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_ext=c
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1545: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
GXX=
if test "$ac_test_CXXFLAGS" = set; then
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
test -n "$RANLIB" && break
if test -n "$AR"; then
if test -n "$AR"; then
test -n "$AR" && break
if test -n "$AS"; then
if test -n "$AS"; then
test -n "$AS" && break
if test -n "$LD"; then
if test -n "$LD"; then
test -n "$LD" && break
if test -n "$STRIP"; then
if test -n "$STRIP"; then
test -n "$STRIP" && break
if test -n "$WINDRES"; then
if test -n "$WINDRES"; then
test -n "$WINDRES" && break
if test -n "$CXX"; then
if test -n "$CXX"; then
test -n "$CXX" && break
ac_ext=C
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_ext=c
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1900: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
GXX=
if test "$ac_test_CXXFLAGS" = set; then
if test -n "$CC"; then
if test -n "$CC"; then
if test -z "$CC"; then
if test -n "$CC"; then
if test -n "$CC"; then
if test -z "$CC"; then
if test -n "$CC"; then
if test -n "$CC"; then
ac_ext=c
if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_ext=c
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:2125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
GCC=
if test "$ac_test_CFLAGS" = set; then
CPP=
if test -z "$CPP"; then
if test -z "$ac_err"; then
if test -z "$ac_err"; then
if test -z "$ac_err"; then
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
if test -n "$AS"; then
test -n "$AS" && break
if test -n "$AR"; then
test -n "$AR" && break
if test -n "$LD"; then
test -n "$LD" && break
if test -n "$STRIP"; then
test -n "$STRIP" && break
if test -n "$WINDRES"; then
test -n "$WINDRES" && break
if test -z "$HOST_CC"; then
if test -z "$HOST_CFLAGS"; then
if test -z "$SKIP_PATH_CHECKS"; then
if test -n "$PERL"; then
test -n "$PERL" && break
elif test -z "$PERL"; then
if test -n "$CROSS_COMPILE"; then
# is built. See: win16_3.11.mk for lots more about the Win16 target.
# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
# It also accomodates for MKS's uname.exe. If you never intend
# the uname.exe in MKS toolkit.
# the uname.exe in the Cygwin tools.
# the uname.exe in the GNU-Win32 tools.
if test -n "$MOZ_DEBUG"; then
if test -z "$OS_TARGET"; then
*-beos*)
*os2*)
*-aix*)
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
if test -n "$USE_64"; then
*-beos*)
if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
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'
*-bsdi*)
DSO_LDOPTS=-r
*-darwin*)
DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
if test -z "$MACOS_VERSION_MINOR"; then
if test -z "$MACOS_VERSION_MICRO"; then
MACOS_DEPLOYMENT_TARGET=`printf "%02d%02d%02d" "$MACOS_VERSION_MAJOR" "$MACOS_VERSION_MINOR" "$MACOS_VERSION_MICRO"`
if test "$NEXT_ROOT"; then
*-dgux*)
DSO_LDOPTS=-G
*-freebsd*)
if test -z "$USE_NSPR_THREADS"; then
*-hpux*)
if test -n "$USE_64"; then
if test -z "$GNU_CC"; then
DSO_CFLAGS=+Z
if test -n "$MOZILLA_CLIENT"; then
if test -z "$GNU_CC"; then
if test -z "$GNU_CC"; then
if test -z "$GNU_CC"; then
if test -z "$USE_64"; then
if test "$USE_NSPR_THREADS"; then
if test "$USE_USER_PTHREADS"; then
*-irix*)
if test -n "$USE_64"; then
irix6*)
irix5*)
if test "$GNU_CC"; then
if test -n "$USE_N32"; then
if test "$USE_N32"; then
if test "$USE_MDUPDATE"; then
*-irix6.*)
if test "$USE_N32"; then
if test "$USE_64"; then
if test -z "$GNU_CC"; then
irix5*)
*-linux*)
if test -z "$USE_NSPR_THREADS"; then
ia64)
m68k)
if test -n "$GNU_CC"; then
MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))'
if test -z "$MOZ_OPTIMIZE"; then
if test -n "$USE_DEBUG_RTL"; then
if test -n "$MOZ_DEBUG"; then
if test -n "$MOZ_OPTIMIZE"; then
if test -n "$MOZ_PROFILE"; then
if test -n "$MOZ_DEBUG_SYMBOLS"; then
if test -n "$MOZ_DEBUG"; then
if test -n "$USE_STATIC_TLS"; then
if test -n "$USE_DEBUG_RTL"; then
{ echo "configure: error: Missing OS_TARGET for ${target}. Use --enable-win32-target to set." 1>&2; exit 1; }
mips)
if test -z "$GNU_CC"; then
DSO_LDOPTS=-G
if test -z "$GNU_CC"; then
CXX=g++
DSO_LDOPTS=-G
*-netbsd*)
if test -z "$OBJECT_FMT"; then
if test "$LIBRUNPATH"; then
DSO_LDOPTS=-G
*-nto*)
*-openbsd*)
*-openvms*)
if test -n "$MOZ_DEBUG"; then
*-osf*)
if test -z "$GNU_CC"; then
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
*-qnx*)
*-*-sco*)
*-sinix*)
if test "$GNU_CC"; then
*-sunos*)
if test "$USE_MDUPDATE"; then
*-solaris*)
if test -n "$USE_64"; then
if test -n "$GNU_CC"; then
if test -z "$GNU_AS"; then
if test -n "$GNU_CC"; then
if test -n "$USE_MDUPDATE"; then
if test -z "$MOZ_OPTIMIZE"; then
if test -n "$USE_64"; then
if test -n "$GNU_CC"; then
# on i386-ANY-sysv4/solaris, but the stabs format is. It is
if test -z "$GNU_AS"; then
# But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.
# The native compiler, gcc 2.8.x, and egcs don't have this problem.
if test -n "$GNU_CC"; then
if test -z "$USE_64"; then
DSO_LDOPTS=-G
*-os2*)
if test -n "$GNU_CC"; then
if test -n "$MOZ_OPTIMIZE"; then
if test -n "$MOZ_DEBUG"; then
if test -n "$MOZ_OPTIMIZE"; then
if test -z "$SKIP_LIBRARY_CHECKS"; then
*-darwin*)
if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_func_$ac_func=yes"
eval "ac_cv_func_$ac_func=no"
hpux*)
if test -z "$GNU_CC"; then
#include <pthread.h>
_res=$? ;
#include <pthread.h>
_res=$? ;
#include <pthread.h>
_res=$? ;
#include <pthread.h>
_res=$? ;
if test -n "$_HAVE_PTHREADS"; then
{ echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; exit 1; };
if test -n "$_HAVE_PTHREADS"; then
{ echo "configure: error: --enable-user-pthreads specified for a system without pthread support " 1>&2; exit 1; };
*-beos*)
*-solaris*)
if test -n "$USE_PTHREADS"; then
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
freebsd*)
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
*-solaris*)
*-freebsd*)
*-netbsd*)
*-bsdi*)
*-openbsd*)
*-linux*)
if test -n "$USE_USER_PTHREADS"; then
*-aix*)
if test -n "$USE_NSPR_THREADS"; then
if test -z "$USE_PTHREADS"; then
if test -z "$USE_NSPR_THREADS"; then
if test -z "$USE_NSPR_THREADS"; then
if test -n "$USE_PTHREADS"; then
if test -z "$USE_NSPR_THREADS"; then
if test -n "$USE_PTHREADS"; then
*-bsdi*)
if test -n "$USE_PTHREADS"; then
*-freebsd*)
if test -n "$USE_NSPR_THREADS"; then
*-hpux*)
if test -n "$USE_NSPR_THREADS"; then
if test "$USE_PTHREADS"; then
if test "$USE_USER_PTHREADS"; then
*-irix*)
if test -n "$USE_PTHREADS"; then
*-linux*)
if test -n "$USE_NSPR_THREADS"; then
if test -n "$USE_NSPR_THREADS"; then
*-osf*)
if test -n "$USE_NSPR_THREADS"; then
if test -n "$USE_PTHREADS"; then
*-solaris*)
if test -n "$USE_NATIVE_THREADS"; then
if test -n "$USE_NSPR_THREADS"; then
if test -z "$USE_NSPR_THREADS"; then
if test -n "$USE_64"; then
*-nto*)
if test -n "$USE_PTHREADS"; then
if test -n "$_SAVE_OPTIMIZE_FLAGS"; then
if test -n "$MOZ_OPTIMIZE"; then
if test -n "$MOZ_DEBUG"; then
if test -n "$MOZ_OPTIMIZE"; then
if test -n "$USE_64"; then
RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}"
elif test -n "$USE_PTHREADS"; then
elif test -n "$USE_BTHREADS"; then
if test -n "$USE_CPLUS"; then
# By default, configure uses ./config.cache as the cache file,
# config.status only pays attention to the cache file if you give it the
*ac_space=\ *)
sed -n \
esac >> confcache
if test -w $cache_file; then
echo "updating cache $cache_file"
echo "not updating unwritable cache $cache_file"
if test "x$srcdir" = x.; then
# Transform confdefs.h into DEFS.
rm -f conftest.defs
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<\EOF
while $ac_more_lines; do
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
cat >> $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<\EOF
.) srcdir=.
*) ac_comsub= ;;
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
rm -f conftest.s*
cat >> $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<\EOF