| #! /bin/sh |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then |
| msyshost=1 |
| fi |
| |
| # Guess values for system-dependent variables and create Makefiles. |
| # Generated automatically using autoconf version 2.13 |
| # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| # |
| # This configure script is free software; the Free Software Foundation |
| # gives unlimited permission to copy, distribute and modify it. |
| |
| # Defaults: |
| ac_help= |
| ac_default_prefix=/usr/local |
| # Any additions from configure.in: |
| ac_help="$ac_help |
| --with-dist-dir=DIR Use DIR as 'dist' staging area. DIR may be |
| relative to the top of SpiderMonkey build tree, |
| or absolute." |
| ac_help="$ac_help |
| --disable-compile-environment |
| Disable compiler/library checks." |
| ac_help="$ac_help |
| --disable-shared-js |
| Do not create a shared library." |
| ac_help="$ac_help |
| --with-gonk=DIR |
| location of gonk dir" |
| ac_help="$ac_help |
| --with-gonk-toolchain-prefix=DIR |
| prefix to gonk toolchain commands" |
| ac_help="$ac_help |
| --with-android-ndk=DIR |
| location where the Android NDK can be found" |
| ac_help="$ac_help |
| --with-android-toolchain=DIR |
| location of the android toolchain" |
| ac_help="$ac_help |
| --with-android-gnu-compiler-version=VER |
| gnu compiler version to use" |
| ac_help="$ac_help |
| --enable-android-libstdcxx |
| use GNU libstdc++ instead of STLPort" |
| ac_help="$ac_help |
| --with-android-version=VER |
| android platform version, default 9" |
| ac_help="$ac_help |
| --with-android-platform=DIR |
| location of platform dir" |
| ac_help="$ac_help |
| --enable-metro Enable Windows Metro build targets" |
| ac_help="$ac_help |
| --with-windows-version=WINSDK_TARGETVER |
| Windows SDK version to target. Lowest version |
| currently allowed is 601, highest is 602" |
| ac_help="$ac_help |
| --enable-macos-target=VER (default=10.6) |
| Set the minimum MacOS version needed at runtime" |
| ac_help="$ac_help |
| --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)" |
| ac_help="$ac_help |
| --with-x use the X Window System" |
| ac_help="$ac_help |
| --with-arch=[[type|toolchain-default]] |
| Use specific CPU features (-march=type). Resets |
| thumb, fpu, float-abi, etc. defaults when set" |
| ac_help="$ac_help |
| --with-thumb[[=yes|no|toolchain-default]] |
| Use Thumb instruction set (-mthumb)" |
| ac_help="$ac_help |
| --with-thumb-interwork[[=yes|no|toolchain-default]] |
| Use Thumb/ARM instuctions interwork (-mthumb-interwork)" |
| ac_help="$ac_help |
| --with-fpu=[[type|toolchain-default]] |
| Use specific FPU type (-mfpu=type)" |
| ac_help="$ac_help |
| --with-float-abi=[[type|toolchain-default]] |
| Use specific arm float ABI (-mfloat-abi=type)" |
| ac_help="$ac_help |
| --with-soft-float[[=yes|no|toolchain-default]] |
| Use soft float library (-msoft-float)" |
| ac_help="$ac_help |
| --enable-address-sanitizer Enable Address Sanitizer (default=no)" |
| ac_help="$ac_help |
| --enable-llvm-hacks Enable workarounds required for several LLVM instrumentations (default=no)" |
| ac_help="$ac_help |
| --disable-os2-high-mem Disable high-memory support on OS/2" |
| ac_help="$ac_help |
| --enable-profiling Set compile flags necessary for using sampling profilers (e.g. shark, perf)" |
| ac_help="$ac_help |
| --disable-ion Disable use of the IonMonkey JIT" |
| ac_help="$ac_help |
| --disable-yarr-jit Disable YARR JIT support" |
| ac_help="$ac_help |
| --enable-cpp-rtti Enable C++ RTTI " |
| ac_help="$ac_help |
| --disable-icf Disable Identical Code Folding" |
| ac_help="$ac_help |
| --enable-dtrace build with dtrace support if available (default=no)" |
| ac_help="$ac_help |
| --with-linux-headers=DIR |
| location where the Linux kernel headers can be found" |
| ac_help="$ac_help |
| --with-pthreads Force use of system pthread library with NSPR " |
| ac_help="$ac_help |
| --enable-update-channel=CHANNEL |
| Select application update channel (default=default)" |
| ac_help="$ac_help |
| --with-system-nspr Use an NSPR that is already built and installed. |
| Use the 'nspr-config' script in the current path, |
| or look for the script in the directories given with |
| --with-nspr-exec-prefix or --with-nspr-prefix. |
| (Those flags are only checked if you specify |
| --with-system-nspr.)" |
| ac_help="$ac_help |
| --with-nspr-cflags=FLAGS |
| Pass FLAGS to CC when building code that uses NSPR. |
| Use this when there's no accurate nspr-config |
| script available. This is the case when building |
| SpiderMonkey as part of the Mozilla tree: the |
| top-level configure script computes NSPR flags |
| that accomodate the quirks of that environment." |
| ac_help="$ac_help |
| --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR. |
| See --with-nspr-cflags for more details." |
| ac_help="$ac_help |
| --with-nspr-prefix=PFX Prefix where NSPR is installed" |
| ac_help="$ac_help |
| --with-nspr-exec-prefix=PFX |
| Exec prefix where NSPR is installed" |
| ac_help="$ac_help |
| --with-system-zlib[=PFX] |
| Use system libz [installed at prefix PFX]" |
| ac_help="$ac_help |
| --enable-system-ffi Use system libffi (located with pkgconfig)" |
| ac_help="$ac_help |
| --with-arm-kuser Use kuser helpers (Linux/ARM only -- requires kernel 2.6.13 or later)" |
| ac_help="$ac_help |
| --enable-ui-locale=ab-CD |
| Select the user interface locale (default: en-US)" |
| ac_help="$ac_help |
| --disable-tests Do not build test libraries & programs" |
| ac_help="$ac_help |
| --enable-debug[=DBG] Enable building with developer debug info |
| (using compiler flags DBG)" |
| ac_help="$ac_help |
| --with-debug-label=LABELS |
| Define DEBUG_<value> for each comma-separated |
| value given." |
| ac_help="$ac_help |
| --disable-optimize Disable compiler optimization |
| --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]" |
| ac_help="$ac_help |
| --enable-debug-symbols[=DBG] |
| Enable debugging symbols (using compiler flags DBG)" |
| ac_help="$ac_help |
| --enable-trace-logging Enable trace logging" |
| ac_help="$ac_help |
| --enable-warnings-as-errors |
| Enable treating of warnings as errors" |
| ac_help="$ac_help |
| --enable-sm-fail-on-warnings |
| Enable warnings as errors" |
| ac_help="$ac_help |
| --enable-trace-malloc Enable malloc tracing" |
| ac_help="$ac_help |
| --enable-dmd Enable DMD; also enables jemalloc and replace-malloc" |
| ac_help="$ac_help |
| --enable-jemalloc Replace memory allocator with jemalloc" |
| ac_help="$ac_help |
| --enable-wrap-malloc Wrap malloc calls (gnu linker only)" |
| ac_help="$ac_help |
| --with-wrap-malloc=DIR Location of malloc wrapper library" |
| ac_help="$ac_help |
| --enable-trace-jscalls Enable JS call enter/exit callback (default=no)" |
| ac_help="$ac_help |
| --disable-gcincremental Disable incremental GC" |
| ac_help="$ac_help |
| --enable-gcgenerational Enable generational GC" |
| ac_help="$ac_help |
| --enable-root-analysis Enable moving GC stack root analysis" |
| ac_help="$ac_help |
| --enable-exact-rooting Enable use of exact stack roots for GC" |
| ac_help="$ac_help |
| --enable-valgrind Enable Valgrind integration hooks (default=no)" |
| ac_help="$ac_help |
| --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof). Implies --enable-profiling." |
| ac_help="$ac_help |
| --enable-shark Enable shark remote profiling. Implies --enable-profiling." |
| ac_help="$ac_help |
| --enable-instruments Enable instruments remote profiling. Implies --enable-profiling." |
| ac_help="$ac_help |
| --enable-callgrind Enable callgrind profiling. Implies --enable-profiling." |
| ac_help="$ac_help |
| --enable-vtune Enable vtune profiling. Implies --enable-profiling." |
| ac_help="$ac_help |
| --enable-gczeal Enable zealous GCing" |
| ac_help="$ac_help |
| --enable-perf Enable Linux perf integration" |
| ac_help="$ac_help |
| --enable-js-diagnostics |
| Enable JS diagnostic assertions and breakpad data" |
| ac_help="$ac_help |
| --enable-more-deterministic |
| Enable changes that make the shell more deterministic" |
| ac_help="$ac_help |
| --enable-oom-backtrace |
| Enable output of backtraces on artificial OOMs (-A)" |
| ac_help="$ac_help |
| --with-ccache[=path/to/ccache] |
| Enable compiling with ccache" |
| ac_help="$ac_help |
| --with-compiler-wrapper[=path/to/wrapper] |
| Enable compiling with wrappers such as distcc and ccache" |
| ac_help="$ac_help |
| --with-static-checking=path/to/gcc_dehydra.so |
| Enable static checking of code using GCC-dehydra" |
| ac_help="$ac_help |
| --enable-clang-plugin Enable building with the mozilla clang plugin " |
| ac_help="$ac_help |
| --with-sixgill=path/to/sixgill |
| Enable static checking of code using sixgill" |
| ac_help="$ac_help |
| --enable-strip Enable stripping of libs & executables " |
| ac_help="$ac_help |
| --enable-install-strip Enable stripping of libs & executables when packaging " |
| ac_help="$ac_help |
| --jitreport-granularity=N |
| Default granularity at which to report JIT code |
| to external tools |
| 0 - no info |
| 1 - code ranges for whole functions only |
| 2 - per-line information |
| 3 - per-op information" |
| ac_help="$ac_help |
| --enable-xterm-updates Update XTERM titles with current command." |
| ac_help="$ac_help |
| --enable-readline Link js shell to system readline library" |
| ac_help="$ac_help |
| --enable-ctypes Enable js-ctypes (default=no)" |
| ac_help="$ac_help |
| --with-qemu-exe=path Use path as an arm emulator on host platforms" |
| ac_help="$ac_help |
| --with-cross-lib=dir Use dir as the location for arm libraries" |
| ac_help="$ac_help |
| --enable-threadsafe Enable support for multiple threads." |
| ac_help="$ac_help |
| --enable-intl-api Enable ECMAScript Internationalization API (default=yes for standalone JS)" |
| |
| # Initialize some variables set by options. |
| # The variables have the same names as the options, with |
| # dashes changed to underlines. |
| build=NONE |
| cache_file=./config.cache |
| exec_prefix=NONE |
| host=NONE |
| no_create= |
| nonopt=NONE |
| no_recursion= |
| prefix=NONE |
| program_prefix=NONE |
| program_suffix=NONE |
| program_transform_name=s,x,x, |
| silent= |
| site= |
| srcdir= |
| target=NONE |
| verbose= |
| x_includes=NONE |
| x_libraries=NONE |
| bindir='${exec_prefix}/bin' |
| sbindir='${exec_prefix}/sbin' |
| libexecdir='${exec_prefix}/libexec' |
| datadir='${prefix}/share' |
| sysconfdir='${prefix}/etc' |
| sharedstatedir='${prefix}/com' |
| localstatedir='${prefix}/var' |
| libdir='${exec_prefix}/lib' |
| includedir='${prefix}/include' |
| oldincludedir='/usr/include' |
| infodir='${prefix}/info' |
| mandir='${prefix}/man' |
| |
| # Initialize some other variables. |
| subdirs= |
| MFLAGS= MAKEFLAGS= |
| SHELL=${CONFIG_SHELL-/bin/sh} |
| # Maximum number of lines to put in a shell here document. |
| ac_max_here_lines=12 |
| |
| ac_prev= |
| for ac_option |
| do |
| |
| # If the previous option needs an argument, assign it. |
| if test -n "$ac_prev"; then |
| eval "$ac_prev=\$ac_option" |
| ac_prev= |
| continue |
| fi |
| |
| case "$ac_option" in |
| -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| *) ac_optarg= ;; |
| esac |
| |
| # Accept the important Cygnus configure options, so we can diagnose typos. |
| |
| case "$ac_option" in |
| |
| -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| ac_prev=bindir ;; |
| -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| bindir="$ac_optarg" ;; |
| |
| -build | --build | --buil | --bui | --bu) |
| ac_prev=build ;; |
| -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| build="$ac_optarg" ;; |
| |
| -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| ac_prev=cache_file ;; |
| -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| cache_file="$ac_optarg" ;; |
| |
| -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| ac_prev=datadir ;; |
| -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| | --da=*) |
| datadir="$ac_optarg" ;; |
| |
| -disable-* | --disable-*) |
| ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| # Reject names that are not valid shell variable names. |
| if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| fi |
| ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| eval "enable_${ac_feature}=no" ;; |
| |
| -enable-* | --enable-*) |
| ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| # Reject names that are not valid shell variable names. |
| if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| fi |
| ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| case "$ac_option" in |
| *=*) ;; |
| *) ac_optarg=yes ;; |
| esac |
| eval "enable_${ac_feature}='$ac_optarg'" ;; |
| |
| -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| | --exec | --exe | --ex) |
| ac_prev=exec_prefix ;; |
| -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| | --exec=* | --exe=* | --ex=*) |
| exec_prefix="$ac_optarg" ;; |
| |
| -gas | --gas | --ga | --g) |
| # Obsolete; use --with-gas. |
| with_gas=yes ;; |
| |
| -help | --help | --hel | --he) |
| # Omit some internal or obsolete options to make the list less imposing. |
| # This message is too long to be a string in the A/UX 3.1 sh. |
| cat << EOF |
| Usage: configure [options] [host] |
| Options: [defaults in brackets after descriptions] |
| Configuration: |
| --cache-file=FILE cache test results in FILE |
| --help print this message |
| --no-create do not create output files |
| --quiet, --silent do not print \`checking...' messages |
| --version print the version of autoconf that created configure |
| Directory and file names: |
| --prefix=PREFIX install architecture-independent files in PREFIX |
| [$ac_default_prefix] |
| --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| [same as prefix] |
| --bindir=DIR user executables in DIR [EPREFIX/bin] |
| --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| --datadir=DIR read-only architecture-independent data in DIR |
| [PREFIX/share] |
| --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| [PREFIX/com] |
| --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| --includedir=DIR C header files in DIR [PREFIX/include] |
| --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| --infodir=DIR info documentation in DIR [PREFIX/info] |
| --mandir=DIR man documentation in DIR [PREFIX/man] |
| --srcdir=DIR find the sources in DIR [configure dir or ..] |
| --program-prefix=PREFIX prepend PREFIX to installed program names |
| --program-suffix=SUFFIX append SUFFIX to installed program names |
| --program-transform-name=PROGRAM |
| run sed PROGRAM on installed program names |
| EOF |
| cat << EOF |
| Host type: |
| --build=BUILD configure for building on BUILD [BUILD=HOST] |
| --host=HOST configure for HOST [guessed] |
| --target=TARGET configure for TARGET [TARGET=HOST] |
| Features and packages: |
| --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| --x-includes=DIR X include files are in DIR |
| --x-libraries=DIR X library files are in DIR |
| EOF |
| if test -n "$ac_help"; then |
| echo "--enable and --with options recognized:$ac_help" |
| fi |
| exit 0 ;; |
| |
| -host | --host | --hos | --ho) |
| ac_prev=host ;; |
| -host=* | --host=* | --hos=* | --ho=*) |
| host="$ac_optarg" ;; |
| |
| -includedir | --includedir | --includedi | --included | --include \ |
| | --includ | --inclu | --incl | --inc) |
| ac_prev=includedir ;; |
| -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| | --includ=* | --inclu=* | --incl=* | --inc=*) |
| includedir="$ac_optarg" ;; |
| |
| -infodir | --infodir | --infodi | --infod | --info | --inf) |
| ac_prev=infodir ;; |
| -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| infodir="$ac_optarg" ;; |
| |
| -libdir | --libdir | --libdi | --libd) |
| ac_prev=libdir ;; |
| -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| libdir="$ac_optarg" ;; |
| |
| -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| | --libexe | --libex | --libe) |
| ac_prev=libexecdir ;; |
| -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| | --libexe=* | --libex=* | --libe=*) |
| libexecdir="$ac_optarg" ;; |
| |
| -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| | --localstate | --localstat | --localsta | --localst \ |
| | --locals | --local | --loca | --loc | --lo) |
| ac_prev=localstatedir ;; |
| -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| localstatedir="$ac_optarg" ;; |
| |
| -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| ac_prev=mandir ;; |
| -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| mandir="$ac_optarg" ;; |
| |
| -nfp | --nfp | --nf) |
| # Obsolete; use --without-fp. |
| with_fp=no ;; |
| |
| -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| | --no-cr | --no-c) |
| no_create=yes ;; |
| |
| -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| no_recursion=yes ;; |
| |
| -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| | --oldin | --oldi | --old | --ol | --o) |
| ac_prev=oldincludedir ;; |
| -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| oldincludedir="$ac_optarg" ;; |
| |
| -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| ac_prev=prefix ;; |
| -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| prefix="$ac_optarg" ;; |
| |
| -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| | --program-pre | --program-pr | --program-p) |
| ac_prev=program_prefix ;; |
| -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| program_prefix="$ac_optarg" ;; |
| |
| -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| | --program-suf | --program-su | --program-s) |
| ac_prev=program_suffix ;; |
| -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| program_suffix="$ac_optarg" ;; |
| |
| -program-transform-name | --program-transform-name \ |
| | --program-transform-nam | --program-transform-na \ |
| | --program-transform-n | --program-transform- \ |
| | --program-transform | --program-transfor \ |
| | --program-transfo | --program-transf \ |
| | --program-trans | --program-tran \ |
| | --progr-tra | --program-tr | --program-t) |
| ac_prev=program_transform_name ;; |
| -program-transform-name=* | --program-transform-name=* \ |
| | --program-transform-nam=* | --program-transform-na=* \ |
| | --program-transform-n=* | --program-transform-=* \ |
| | --program-transform=* | --program-transfor=* \ |
| | --program-transfo=* | --program-transf=* \ |
| | --program-trans=* | --program-tran=* \ |
| | --progr-tra=* | --program-tr=* | --program-t=*) |
| program_transform_name="$ac_optarg" ;; |
| |
| -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| | -silent | --silent | --silen | --sile | --sil) |
| silent=yes ;; |
| |
| -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| ac_prev=sbindir ;; |
| -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| | --sbi=* | --sb=*) |
| sbindir="$ac_optarg" ;; |
| |
| -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| | --sharedst | --shareds | --shared | --share | --shar \ |
| | --sha | --sh) |
| ac_prev=sharedstatedir ;; |
| -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| | --sha=* | --sh=*) |
| sharedstatedir="$ac_optarg" ;; |
| |
| -site | --site | --sit) |
| ac_prev=site ;; |
| -site=* | --site=* | --sit=*) |
| site="$ac_optarg" ;; |
| |
| -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| ac_prev=srcdir ;; |
| -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| srcdir="$ac_optarg" ;; |
| |
| -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| | --syscon | --sysco | --sysc | --sys | --sy) |
| ac_prev=sysconfdir ;; |
| -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| sysconfdir="$ac_optarg" ;; |
| |
| -target | --target | --targe | --targ | --tar | --ta | --t) |
| ac_prev=target ;; |
| -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| target="$ac_optarg" ;; |
| |
| -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| verbose=yes ;; |
| |
| -version | --version | --versio | --versi | --vers) |
| echo "configure generated by autoconf version 2.13" |
| exit 0 ;; |
| |
| -with-* | --with-*) |
| ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| # Reject names that are not valid shell variable names. |
| if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| fi |
| ac_package=`echo $ac_package| sed 's/-/_/g'` |
| case "$ac_option" in |
| *=*) ;; |
| *) ac_optarg=yes ;; |
| esac |
| eval "with_${ac_package}='$ac_optarg'" ;; |
| |
| -without-* | --without-*) |
| ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| # Reject names that are not valid shell variable names. |
| if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| fi |
| ac_package=`echo $ac_package| sed 's/-/_/g'` |
| eval "with_${ac_package}=no" ;; |
| |
| --x) |
| # Obsolete; use --with-x. |
| with_x=yes ;; |
| |
| -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| | --x-incl | --x-inc | --x-in | --x-i) |
| ac_prev=x_includes ;; |
| -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| x_includes="$ac_optarg" ;; |
| |
| -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| ac_prev=x_libraries ;; |
| -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| x_libraries="$ac_optarg" ;; |
| |
| -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| ;; |
| |
| *) |
| if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| fi |
| if test "x$nonopt" != xNONE; then |
| { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| fi |
| nonopt="$ac_option" |
| ;; |
| |
| esac |
| done |
| |
| if test -n "$ac_prev"; then |
| { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| fi |
| |
| trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| |
| # File descriptor usage: |
| # 0 standard input |
| # 1 file creation |
| # 2 errors and warnings |
| # 3 some systems may open it to /dev/tty |
| # 4 used on the Kubota Titan |
| # 6 checking for... messages and results |
| # 5 compiler messages saved in config.log |
| if test "$silent" = yes; then |
| exec 6>/dev/null |
| else |
| exec 6>&1 |
| fi |
| exec 5>./config.log |
| |
| echo "\ |
| This file contains any messages produced by compilers while |
| running configure, to aid debugging if configure makes a mistake. |
| " 1>&5 |
| |
| # Strip out --no-create and --no-recursion so they do not pile up. |
| # Also quote any args containing shell metacharacters. |
| ac_configure_args= |
| for ac_arg |
| do |
| case "$ac_arg" in |
| -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| | --no-cr | --no-c) ;; |
| -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| esac |
| done |
| |
| # NLS nuisances. |
| # Only set these to C if already set. These must not be set unconditionally |
| # because not all systems understand e.g. LANG=C (notably SCO). |
| # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| # Non-C LC_CTYPE values break the ctype check. |
| if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| |
| # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| rm -rf conftest* confdefs.h |
| # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| echo > confdefs.h |
| |
| # A filename unique to this package, relative to the directory that |
| # configure is in, which we can look for to find out if srcdir is correct. |
| ac_unique_file=jsapi.h |
| |
| # Find the source files, if location was not specified. |
| if test -z "$srcdir"; then |
| ac_srcdir_defaulted=yes |
| # Try the directory containing this script, then its parent. |
| ac_prog=$0 |
| ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| srcdir=$ac_confdir |
| if test ! -r $srcdir/$ac_unique_file; then |
| srcdir=.. |
| fi |
| else |
| ac_srcdir_defaulted=no |
| fi |
| if test ! -r $srcdir/$ac_unique_file; then |
| if test "$ac_srcdir_defaulted" = yes; then |
| { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| else |
| { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| fi |
| fi |
| srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| |
| # Prefer explicitly selected file to automatically selected ones. |
| if test -z "$CONFIG_SITE"; then |
| if test "x$prefix" != xNONE; then |
| CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| else |
| CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| fi |
| fi |
| for ac_site_file in $CONFIG_SITE; do |
| if test -r "$ac_site_file"; then |
| echo "loading site script $ac_site_file" |
| . "$ac_site_file" |
| fi |
| done |
| |
| if test -r "$cache_file"; then |
| echo "loading cache $cache_file" |
| . $cache_file |
| else |
| echo "creating cache $cache_file" |
| > $cache_file |
| fi |
| |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| ac_exeext= |
| ac_objext=o |
| if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| ac_n= ac_c=' |
| ' ac_t=' ' |
| else |
| ac_n=-n ac_c= ac_t= |
| fi |
| else |
| ac_n= ac_c='\c' ac_t= |
| fi |
| |
| |
| trap '[ "$?" != 0 ] && echo "------ config.log ------" && tail -n 25 config.log' EXIT |
| |
| |
| ac_aux_dir= |
| for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do |
| if test -f $ac_dir/install-sh; then |
| ac_aux_dir=$ac_dir |
| ac_install_sh="$ac_aux_dir/install-sh -c" |
| break |
| elif test -f $ac_dir/install.sh; then |
| ac_aux_dir=$ac_dir |
| ac_install_sh="$ac_aux_dir/install.sh -c" |
| break |
| fi |
| done |
| 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; } |
| fi |
| ac_config_guess=$ac_aux_dir/config.guess |
| ac_config_sub=$ac_aux_dir/config.sub |
| ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| |
| |
| |
| # Do some error checking and defaulting for the host and target type. |
| # The inputs are: |
| # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
| # |
| # The rules are: |
| # 1. You are not allowed to specify --host, --target, and nonopt at the |
| # same time. |
| # 2. Host defaults to nonopt. |
| # 3. If nonopt is not specified, then host defaults to the current host, |
| # as determined by config.guess. |
| # 4. Target and build default to nonopt. |
| # 5. If nonopt is not specified, then target and build default to host. |
| |
| # The aliases save the names the user supplied, while $host etc. |
| # will get canonicalized. |
| case $host---$target---$nonopt in |
| NONE---*---* | *---NONE---* | *---*---NONE) ;; |
| *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
| esac |
| |
| |
| # Make sure we can run config.sub. |
| if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| fi |
| |
| echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| echo "configure:861: checking host system type" >&5 |
| |
| host_alias=$host |
| case "$host_alias" in |
| NONE) |
| case $nonopt in |
| NONE) |
| if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| fi ;; |
| *) host_alias=$nonopt ;; |
| esac ;; |
| esac |
| |
| host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| echo "$ac_t""$host" 1>&6 |
| |
| echo $ac_n "checking target system type""... $ac_c" 1>&6 |
| echo "configure:882: checking target system type" >&5 |
| |
| target_alias=$target |
| case "$target_alias" in |
| NONE) |
| case $nonopt in |
| NONE) target_alias=$host_alias ;; |
| *) target_alias=$nonopt ;; |
| esac ;; |
| esac |
| |
| target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
| target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| echo "$ac_t""$target" 1>&6 |
| |
| echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| echo "configure:900: checking build system type" >&5 |
| |
| build_alias=$build |
| case "$build_alias" in |
| NONE) |
| case $nonopt in |
| NONE) build_alias=$host_alias ;; |
| *) build_alias=$nonopt ;; |
| esac ;; |
| esac |
| |
| build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| echo "$ac_t""$build" 1>&6 |
| |
| test "$host_alias" != "$target_alias" && |
| test "$program_prefix$program_suffix$program_transform_name" = \ |
| NONENONEs,x,x, && |
| program_prefix=${target_alias}- |
| |
| TARGET_CPU="${target_cpu}" |
| TARGET_VENDOR="${target_vendor}" |
| TARGET_OS="${target_os}" |
| |
| CFLAGS="${CFLAGS=}" |
| CPPFLAGS="${CPPFLAGS=}" |
| CXXFLAGS="${CXXFLAGS=}" |
| LDFLAGS="${LDFLAGS=}" |
| HOST_CFLAGS="${HOST_CFLAGS=}" |
| HOST_CXXFLAGS="${HOST_CXXFLAGS=}" |
| HOST_LDFLAGS="${HOST_LDFLAGS=}" |
| |
| _SUBDIR_CC="$CC" |
| _SUBDIR_CXX="$CXX" |
| _SUBDIR_CFLAGS="$CFLAGS" |
| _SUBDIR_CPPFLAGS="$CPPFLAGS" |
| _SUBDIR_CXXFLAGS="$CXXFLAGS" |
| _SUBDIR_LDFLAGS="$LDFLAGS" |
| _SUBDIR_HOST_CC="$HOST_CC" |
| _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS" |
| _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS" |
| _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS" |
| _SUBDIR_CONFIG_ARGS="$ac_configure_args" |
| |
| NSPR_VERSION=4 |
| NSPR_MINVER=4.9.2 |
| |
| PERL_VERSION=5.006 |
| WINDRES_VERSION=2.14.90 |
| W32API_VERSION=3.14 |
| |
| MSMANIFEST_TOOL= |
| |
| MISSING_X= |
| for ac_prog in gawk mawk nawk awk |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:961: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$AWK"; then |
| ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_AWK="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| AWK="$ac_cv_prog_AWK" |
| if test -n "$AWK"; then |
| echo "$ac_t""$AWK" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$AWK" && break |
| done |
| |
| |
| USE_PTHREADS= |
| _PTHREAD_LDFLAGS="" |
| |
| _topsrcdir=`cd \`dirname $0\`; pwd` |
| _objdir=`pwd` |
| |
| if test "$_topsrcdir" != "$_objdir" |
| then |
| # Check for a couple representative files in the source tree |
| _conflict_files= |
| for file in $_topsrcdir/Makefile $_topsrcdir/config/autoconf.mk; do |
| if test -f $file; then |
| _conflict_files="$_conflict_files $file" |
| fi |
| done |
| if test "$_conflict_files"; then |
| echo "***" |
| echo "* Your source tree contains these files:" |
| for file in $_conflict_files; do |
| echo "* $file" |
| done |
| cat 1>&2 <<-EOF |
| * This indicates that you previously built in the source tree. |
| * A source tree build can confuse the separate objdir build. |
| * |
| * To clean up the source tree: |
| * 1. cd $_topsrcdir |
| * 2. gmake distclean |
| *** |
| EOF |
| exit 1 |
| break |
| fi |
| fi |
| MOZ_BUILD_ROOT=`pwd` |
| |
| |
| # Check whether --with-dist-dir or --without-dist-dir was given. |
| if test "${with_dist_dir+set}" = set; then |
| withval="$with_dist_dir" |
| TOP_DIST=$withval |
| else |
| TOP_DIST=dist |
| fi |
| |
| |
| |
| |
| if test -z "$CROSS_COMPILE"; then |
| case "$target" in |
| *-mingw*) |
| if test -z "$CC"; then CC=cl; fi |
| if test -z "$CXX"; then CXX=cl; fi |
| if test -z "$CPP"; then CPP="cl -E -nologo"; fi |
| if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi |
| if test -z "$LD"; then LD=link; fi |
| if test -z "$AS"; then |
| case "${target_cpu}" in |
| i*86) |
| AS=ml; |
| ;; |
| x86_64) |
| AS=ml64; |
| ;; |
| esac |
| fi |
| if test -z "$MIDL"; then MIDL=midl; fi |
| |
| # need override this flag since we don't use $(LDFLAGS) for this. |
| if test -z "$HOST_LDFLAGS" ; then |
| HOST_LDFLAGS=" " |
| fi |
| ;; |
| *-darwin*) |
| # GCC on darwin is based on gcc 4.2 and we don't support it anymore. |
| if test -z "$CC"; then |
| for ac_prog in clang |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1072: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$CC" in |
| /*) |
| ac_cv_path_CC="$CC" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_CC="$CC" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_CC="$ac_dir/$ac_word" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| ;; |
| esac |
| fi |
| CC="$ac_cv_path_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$CC" && break |
| done |
| |
| if test "$msyshost"; then |
| case "$CC" in |
| /*) |
| tmp_DIRNAME=`dirname "$CC"` |
| tmp_BASENAME=`basename "$CC"` |
| tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` |
| CC="$tmp_PWD/$tmp_BASENAME" |
| if test -e "$CC.exe"; then |
| CC="$CC.exe" |
| fi |
| esac |
| fi |
| |
| fi |
| if test -z "$CXX"; then |
| for ac_prog in clang++ |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1127: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$CXX" in |
| /*) |
| ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_CXX="$CXX" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_CXX="$ac_dir/$ac_word" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| ;; |
| esac |
| fi |
| CXX="$ac_cv_path_CXX" |
| if test -n "$CXX"; then |
| echo "$ac_t""$CXX" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$CXX" && break |
| done |
| |
| if test "$msyshost"; then |
| case "$CXX" in |
| /*) |
| tmp_DIRNAME=`dirname "$CXX"` |
| tmp_BASENAME=`basename "$CXX"` |
| tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` |
| CXX="$tmp_PWD/$tmp_BASENAME" |
| if test -e "$CXX.exe"; then |
| CXX="$CXX.exe" |
| fi |
| esac |
| fi |
| |
| fi |
| IS_GCC=$($CC -v 2>&1 | grep gcc) |
| if test -n "$IS_GCC" |
| then |
| echo gcc is known to be broken on OS X, please use clang. |
| echo see http://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites |
| echo for more information. |
| exit 1 |
| fi |
| ;; |
| esac |
| fi |
| |
| |
| COMPILE_ENVIRONMENT=1 |
| # Check whether --enable-compile-environment or --disable-compile-environment was given. |
| if test "${enable_compile_environment+set}" = set; then |
| enableval="$enable_compile_environment" |
| if test "$enableval" = "no"; then |
| COMPILE_ENVIRONMENT= |
| elif test "$enableval" = "yes"; then |
| : |
| else |
| { echo "configure: error: Option, compile-environment, does not take an argument ($enableval)." 1>&2; exit 1; } |
| fi |
| fi |
| |
| |
| for ac_prog in $PERL perl5 perl |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1208: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$PERL" in |
| /*) |
| ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_PERL="$ac_dir/$ac_word" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| ;; |
| esac |
| fi |
| PERL="$ac_cv_path_PERL" |
| if test -n "$PERL"; then |
| echo "$ac_t""$PERL" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$PERL" && break |
| done |
| |
| if test "$msyshost"; then |
| case "$PERL" in |
| /*) |
| tmp_DIRNAME=`dirname "$PERL"` |
| tmp_BASENAME=`basename "$PERL"` |
| tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` |
| PERL="$tmp_PWD/$tmp_BASENAME" |
| if test -e "$PERL.exe"; then |
| PERL="$PERL.exe" |
| fi |
| esac |
| fi |
| |
| if test -z "$PERL" -o "$PERL" = ":"; then |
| { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; } |
| fi |
| |
| # Check whether --enable-shared-js or --disable-shared-js was given. |
| if test "${enable_shared_js+set}" = set; then |
| enableval="$enable_shared_js" |
| if test "$enableval" = "yes"; then |
| DISABLE_SHARED_JS=0 |
| elif test "$enableval" = "no"; then |
| DISABLE_SHARED_JS=1 |
| else |
| { echo "configure: error: Option, shared-js, does not take an argument ($enableval)." 1>&2; exit 1; } |
| fi |
| fi |
| |
| |
| if test "$DISABLE_SHARED_JS" = "1" ; then |
| cat >> confdefs.pytmp <<\EOF |
| (''' STATIC_EXPORTABLE_JS_API ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define STATIC_EXPORTABLE_JS_API 1 |
| EOF |
| |
| else |
| JS_SHARED_LIBRARY=1 |
| fi |
| |
| |
| if test "$JS_STANDALONE" = no; then |
| JS_STANDALONE= |
| else |
| JS_STANDALONE=1 |
| fi |
| |
| |
| # Check whether --with-gonk or --without-gonk was given. |
| if test "${with_gonk+set}" = set; then |
| withval="$with_gonk" |
| gonkdir=$withval |
| fi |
| |
| |
| # Check whether --with-gonk-toolchain-prefix or --without-gonk-toolchain-prefix was given. |
| if test "${with_gonk_toolchain_prefix+set}" = set; then |
| withval="$with_gonk_toolchain_prefix" |
| gonk_toolchain_prefix=$withval |
| fi |
| |
| |
| if test -n "$gonkdir" ; then |
| kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` |
| |
| AS="$gonk_toolchain_prefix"as |
| CC="$gonk_toolchain_prefix"gcc |
| CXX="$gonk_toolchain_prefix"g++ |
| CPP="$gonk_toolchain_prefix"cpp |
| LD="$gonk_toolchain_prefix"ld |
| AR="$gonk_toolchain_prefix"ar |
| RANLIB="$gonk_toolchain_prefix"ranlib |
| STRIP="$gonk_toolchain_prefix"strip |
| OBJCOPY="$gonk_toolchain_prefix"objcopy |
| |
| STLPORT_CPPFLAGS="-I$gonkdir/external/stlport/stlport" |
| STLPORT_LIBS="-lstlport" |
| |
| case "$target_cpu" in |
| arm) |
| ARCH_DIR=arch-arm |
| ;; |
| i?86) |
| ARCH_DIR=arch-x86 |
| ;; |
| esac |
| |
| CPPFLAGS="-DANDROID -isystem $gonkdir/bionic/libc/$ARCH_DIR/include -isystem $gonkdir/bionic/libc/include/ -isystem $gonkdir/bionic/libc/kernel/common -isystem $gonkdir/bionic/libc/kernel/$ARCH_DIR -isystem $gonkdir/bionic/libm/include -I$gonkdir/frameworks/base/native/include -I$gonkdir/system/core/include -isystem $gonkdir/bionic $CPPFLAGS -I$gonkdir/external/valgrind/fxos-include" |
| CFLAGS="-mandroid -fno-short-enums -fno-exceptions $CFLAGS" |
| CXXFLAGS="-mandroid -fno-short-enums -fno-exceptions -Wno-psabi $CXXFLAGS $STLPORT_CPPFLAGS" |
| LIBS="$LIBS $STLPORT_LIBS" |
| |
| LDFLAGS="-mandroid -L$gonkdir/out/target/product/$GONK_PRODUCT/obj/lib -Wl,-rpath-link=$gonkdir/out/target/product/$GONK_PRODUCT/obj/lib --sysroot=$gonkdir/out/target/product/$GONK_PRODUCT/obj/ -llog $LDFLAGS" |
| |
| if test -z "$HOST_CPPFLAGS" ; then |
| HOST_CPPFLAGS=" " |
| fi |
| if test -z "$HOST_CFLAGS" ; then |
| HOST_CFLAGS=" " |
| fi |
| if test -z "$HOST_CXXFLAGS" ; then |
| HOST_CXXFLAGS=" " |
| fi |
| if test -z "$HOST_LDFLAGS" ; then |
| HOST_LDFLAGS=" " |
| fi |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' ANDROID ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define ANDROID 1 |
| EOF |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' GONK ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define GONK 1 |
| EOF |
| |
| CROSS_COMPILE=1 |
| else |
| |
| |
| # Check whether --with-android-ndk or --without-android-ndk was given. |
| if test "${with_android_ndk+set}" = set; then |
| withval="$with_android_ndk" |
| android_ndk=$withval |
| fi |
| |
| |
| # Check whether --with-android-toolchain or --without-android-toolchain was given. |
| if test "${with_android_toolchain+set}" = set; then |
| withval="$with_android_toolchain" |
| android_toolchain=$withval |
| fi |
| |
| |
| # Check whether --with-android-gnu-compiler-version or --without-android-gnu-compiler-version was given. |
| if test "${with_android_gnu_compiler_version+set}" = set; then |
| withval="$with_android_gnu_compiler_version" |
| android_gnu_compiler_version=$withval |
| fi |
| |
| |
| # Check whether --enable-android-libstdcxx or --disable-android-libstdcxx was given. |
| if test "${enable_android_libstdcxx+set}" = set; then |
| enableval="$enable_android_libstdcxx" |
| if test "$enableval" = "yes"; then |
| MOZ_ANDROID_LIBSTDCXX=1 |
| elif test "$enableval" = "no"; then |
| MOZ_ANDROID_LIBSTDCXX= |
| else |
| { echo "configure: error: Option, android-libstdcxx, does not take an argument ($enableval)." 1>&2; exit 1; } |
| fi |
| fi |
| |
| |
| |
| android_version=9 |
| |
| # Check whether --with-android-version or --without-android-version was given. |
| if test "${with_android_version+set}" = set; then |
| withval="$with_android_version" |
| android_version=$withval |
| fi |
| |
| |
| if test $android_version -lt 9 ; then |
| { echo "configure: error: --with-android-version must be at least 9." 1>&2; exit 1; } |
| fi |
| |
| # Check whether --with-android-platform or --without-android-platform was given. |
| if test "${with_android_platform+set}" = set; then |
| withval="$with_android_platform" |
| android_platform=$withval |
| fi |
| |
| |
| case "$target" in |
| arm-linux*-android*|*-linuxandroid*) |
| android_tool_prefix="arm-linux-androideabi" |
| ;; |
| i?86-*android*) |
| android_tool_prefix="i686-linux-android" |
| ;; |
| mipsel-*android*) |
| android_tool_prefix="mipsel-linux-android" |
| ;; |
| *) |
| android_tool_prefix="$target_os" |
| ;; |
| esac |
| |
| case "$target" in |
| *-android*|*-linuxandroid*) |
| if test -z "$android_ndk" ; then |
| { echo "configure: error: You must specify --with-android-ndk=/path/to/ndk when targeting Android." 1>&2; exit 1; } |
| fi |
| |
| if test -z "$android_toolchain" ; then |
| echo $ac_n "checking for android toolchain directory""... $ac_c" 1>&6 |
| echo "configure:1448: checking for android toolchain directory" >&5 |
| |
| kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` |
| |
| for version in $android_gnu_compiler_version 4.6 4.4.3 ; do |
| case "$target_cpu" in |
| arm) |
| target_name=arm-linux-androideabi-$version |
| ;; |
| i?86) |
| target_name=x86-$version |
| ;; |
| mipsel) |
| target_name=mipsel-linux-android-$version |
| ;; |
| *) |
| { echo "configure: error: target cpu is not supported" 1>&2; exit 1; } |
| ;; |
| esac |
| case "$host_cpu" in |
| i*86) |
| android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 |
| ;; |
| x86_64) |
| android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86_64 |
| if ! test -d "$android_toolchain" ; then |
| android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 |
| fi |
| ;; |
| *) |
| { echo "configure: error: No known toolchain for your host cpu" 1>&2; exit 1; } |
| ;; |
| esac |
| if test -d "$android_toolchain" ; then |
| android_gnu_compiler_version=$version |
| break |
| elif test -n "$android_gnu_compiler_version" ; then |
| { echo "configure: error: not found. Your --with-android-gnu-compiler-version may be wrong." 1>&2; exit 1; } |
| fi |
| done |
| |
| if test -z "$android_gnu_compiler_version" ; then |
| { echo "configure: error: not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." 1>&2; exit 1; } |
| else |
| echo "$ac_t""$android_toolchain" 1>&6 |
| fi |
| NSPR_CONFIGURE_ARGS="$NSPR_CONFIGURE_ARGS --with-android-toolchain=$android_toolchain" |
| fi |
| |
| NSPR_CONFIGURE_ARGS="$NSPR_CONFIGURE_ARGS --with-android-version=$android_version" |
| |
| if test -z "$android_platform" ; then |
| echo $ac_n "checking for android platform directory""... $ac_c" 1>&6 |
| echo "configure:1501: checking for android platform directory" >&5 |
| |
| case "$target_cpu" in |
| arm) |
| target_name=arm |
| ;; |
| i?86) |
| target_name=x86 |
| ;; |
| mipsel) |
| target_name=mips |
| ;; |
| esac |
| |
| android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name" |
| |
| if test -d "$android_platform" ; then |
| echo "$ac_t""$android_platform" 1>&6 |
| else |
| { echo "configure: error: not found. You have to specify --with-android-platform=/path/to/ndk/platform." 1>&2; exit 1; } |
| fi |
| NSPR_CONFIGURE_ARGS="$NSPR_CONFIGURE_ARGS --with-android-platform=$android_platform" |
| fi |
| |
| case "$target_cpu" in |
| i?86) |
| if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then |
| android_tool_prefix="i686-android-linux" |
| fi |
| ;; |
| esac |
| |
| TOOLCHAIN_PREFIX="$android_toolchain/bin/$android_tool_prefix-" |
| AS="$android_toolchain"/bin/"$android_tool_prefix"-as |
| CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc |
| CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++ |
| CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp |
| LD="$android_toolchain"/bin/"$android_tool_prefix"-ld |
| AR="$android_toolchain"/bin/"$android_tool_prefix"-ar |
| RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib |
| STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip |
| OBJCOPY="$android_toolchain"/bin/"$android_tool_prefix"-objcopy |
| |
| CPPFLAGS="-isystem $android_platform/usr/include $CPPFLAGS" |
| CFLAGS="-mandroid -fno-short-enums -fno-exceptions $CFLAGS" |
| CXXFLAGS="-mandroid -fno-short-enums -fno-exceptions -Wno-psabi $CXXFLAGS" |
| ASFLAGS="-isystem $android_platform/usr/include -DANDROID $ASFLAGS" |
| |
| LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform -llog -Wl,--allow-shlib-undefined $LDFLAGS" |
| if test -z "$HOST_CPPFLAGS" ; then |
| HOST_CPPFLAGS=" " |
| fi |
| if test -z "$HOST_CFLAGS" ; then |
| HOST_CFLAGS=" " |
| fi |
| if test -z "$HOST_CXXFLAGS" ; then |
| HOST_CXXFLAGS=" " |
| fi |
| if test -z "$HOST_LDFLAGS" ; then |
| HOST_LDFLAGS=" " |
| fi |
| |
| ANDROID_NDK="${android_ndk}" |
| ANDROID_TOOLCHAIN="${android_toolchain}" |
| ANDROID_PLATFORM="${android_platform}" |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' ANDROID ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define ANDROID 1 |
| EOF |
| |
| CROSS_COMPILE=1 |
| |
| |
| |
| |
| ;; |
| esac |
| |
| |
| fi |
| |
| MOZILLA_VERSION=`$PERL $srcdir/config/milestone.pl -topsrcdir $srcdir` |
| MOZILLA_UAVERSION=`$PERL $srcdir/config/milestone.pl -topsrcdir $srcdir -uaversion` |
| MOZILLA_SYMBOLVERSION=`$PERL $srcdir/config/milestone.pl -topsrcdir $srcdir -symbolversion` |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZILLA_VERSION ''', r''' "$MOZILLA_VERSION" ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZILLA_VERSION "$MOZILLA_VERSION" |
| EOF |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZILLA_VERSION_U ''', r''' $MOZILLA_VERSION ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZILLA_VERSION_U $MOZILLA_VERSION |
| EOF |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZILLA_UAVERSION ''', r''' "$MOZILLA_UAVERSION" ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZILLA_UAVERSION "$MOZILLA_UAVERSION" |
| EOF |
| |
| |
| |
| # Separate version into components for use in shared object naming etc |
| |
| MOZJS_MAJOR_VERSION=`echo $MOZILLA_VERSION | sed "s|\(^[0-9]*\)\.[0-9]*.*|\1|"` |
| MOZJS_MINOR_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.\([0-9]*\).*|\1|"` |
| MOZJS_PATCH_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9]*[^0-9]*||"` |
| IS_ALPHA=`echo $MOZILLA_VERSION | grep [ab]` |
| |
| if test -n "$JS_STANDALONE"; then |
| JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION |
| JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config |
| else |
| JS_SHELL_NAME=js |
| JS_CONFIG_NAME=js-config |
| fi |
| |
| |
| if test -n "$IS_ALPHA"; then |
| |
| MOZJS_ALPHA=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9\.]*\([^0-9]\).*|\1|"` |
| |
| fi |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZJS_MAJOR_VERSION ''', r''' $MOZJS_MAJOR_VERSION ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZJS_MAJOR_VERSION $MOZJS_MAJOR_VERSION |
| EOF |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZJS_MINOR_VERSION ''', r''' $MOZJS_MINOR_VERSION ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZJS_MINOR_VERSION $MOZJS_MINOR_VERSION |
| EOF |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| AR_FLAGS='cr $@' |
| |
| if test "$COMPILE_ENVIRONMENT"; then |
| |
| # Note: |
| # In Mozilla, we use the names $target, $host and $build incorrectly, but are |
| # too far gone to back out now. See Bug 475488: |
| # - When we say $target, we mean $host, that is, the system on which |
| # Mozilla will be run. |
| # - When we say $host, we mean $build, that is, the system on which Mozilla |
| # is built. |
| # - $target (in its correct usage) is for compilers who generate code for a |
| # different platform than $host, so it would not be used by Mozilla. |
| if test "$target" != "$host"; then |
| echo "cross compiling from $host to $target" |
| |
| _SAVE_CC="$CC" |
| _SAVE_CFLAGS="$CFLAGS" |
| _SAVE_LDFLAGS="$LDFLAGS" |
| |
| echo $ac_n "checking for host c compiler""... $ac_c" 1>&6 |
| echo "configure:1676: checking for host c compiler" >&5 |
| for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1682: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$HOST_CC"; then |
| ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_HOST_CC="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| HOST_CC="$ac_cv_prog_HOST_CC" |
| if test -n "$HOST_CC"; then |
| echo "$ac_t""$HOST_CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$HOST_CC" && break |
| done |
| test -n "$HOST_CC" || HOST_CC="""" |
| |
| if test -z "$HOST_CC"; then |
| { echo "configure: error: no acceptable c compiler found in \$PATH" 1>&2; exit 1; } |
| fi |
| echo "$ac_t""$HOST_CC" 1>&6 |
| echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6 |
| echo "configure:1717: checking for host c++ compiler" >&5 |
| for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1723: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$HOST_CXX"; then |
| ac_cv_prog_HOST_CXX="$HOST_CXX" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_HOST_CXX="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| HOST_CXX="$ac_cv_prog_HOST_CXX" |
| if test -n "$HOST_CXX"; then |
| echo "$ac_t""$HOST_CXX" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$HOST_CXX" && break |
| done |
| test -n "$HOST_CXX" || HOST_CXX="""" |
| |
| if test -z "$HOST_CXX"; then |
| { echo "configure: error: no acceptable c++ compiler found in \$PATH" 1>&2; exit 1; } |
| fi |
| echo "$ac_t""$HOST_CXX" 1>&6 |
| |
| if test -z "$HOST_CFLAGS"; then |
| HOST_CFLAGS="$CFLAGS" |
| fi |
| if test -z "$HOST_CXXFLAGS"; then |
| HOST_CXXFLAGS="$CXXFLAGS" |
| fi |
| if test -z "$HOST_LDFLAGS"; then |
| HOST_LDFLAGS="$LDFLAGS" |
| fi |
| if test -z "$HOST_AR_FLAGS"; then |
| HOST_AR_FLAGS="$AR_FLAGS" |
| fi |
| for ac_prog in $HOST_RANLIB ranlib |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1775: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$HOST_RANLIB"; then |
| ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy=":" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_HOST_RANLIB="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| HOST_RANLIB="$ac_cv_prog_HOST_RANLIB" |
| if test -n "$HOST_RANLIB"; then |
| echo "$ac_t""$HOST_RANLIB" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$HOST_RANLIB" && break |
| done |
| test -n "$HOST_RANLIB" || HOST_RANLIB="ranlib" |
| |
| for ac_prog in $HOST_AR ar |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1810: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$HOST_AR"; then |
| ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy=":" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_HOST_AR="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| HOST_AR="$ac_cv_prog_HOST_AR" |
| if test -n "$HOST_AR"; then |
| echo "$ac_t""$HOST_AR" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$HOST_AR" && break |
| done |
| test -n "$HOST_AR" || HOST_AR="ar" |
| |
| CC="$HOST_CC" |
| CFLAGS="$HOST_CFLAGS" |
| LDFLAGS="$HOST_LDFLAGS" |
| |
| echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6 |
| echo "configure:1845: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 |
| cat > conftest.$ac_ext <<EOF |
| #line 1847 "configure" |
| #include "confdefs.h" |
| |
| int main() { |
| return(0); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| rm -rf conftest* |
| ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6 |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| { echo "configure: error: installation or configuration problem: host compiler $HOST_CC cannot create executables." 1>&2; exit 1; } |
| fi |
| rm -f conftest* |
| |
| CC="$HOST_CXX" |
| CFLAGS="$HOST_CXXFLAGS" |
| |
| echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6 |
| echo "configure:1869: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5 |
| cat > conftest.$ac_ext <<EOF |
| #line 1871 "configure" |
| #include "confdefs.h" |
| |
| int main() { |
| return(0); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:1878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| rm -rf conftest* |
| ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6 |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| { echo "configure: error: installation or configuration problem: host compiler $HOST_CXX cannot create executables." 1>&2; exit 1; } |
| fi |
| rm -f conftest* |
| |
| CC=$_SAVE_CC |
| CFLAGS=$_SAVE_CFLAGS |
| LDFLAGS=$_SAVE_LDFLAGS |
| |
| for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1898: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CC="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$CC" && break |
| done |
| test -n "$CC" || CC=":" |
| |
| unset ac_cv_prog_CC |
| # Extract the first word of "gcc", so it can be a program name with args. |
| set dummy gcc; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1932: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CC="gcc" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| if test -z "$CC"; then |
| # Extract the first word of "cc", so it can be a program name with args. |
| set dummy cc; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:1962: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_prog_rejected=no |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| ac_prog_rejected=yes |
| continue |
| fi |
| ac_cv_prog_CC="cc" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| if test $ac_prog_rejected = yes; then |
| # We found a bogon in the path, so make sure we never use it. |
| set dummy $ac_cv_prog_CC |
| shift |
| if test $# -gt 0; then |
| # We chose a different compiler from the bogus one. |
| # However, it has the same basename, so the bogon will be chosen |
| # first if we set CC to just the basename; use the full file name. |
| shift |
| set dummy "$ac_dir/$ac_word" "$@" |
| shift |
| ac_cv_prog_CC="$@" |
| fi |
| fi |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| if test -z "$CC"; then |
| case "`uname -s`" in |
| *win32* | *WIN32*) |
| # Extract the first word of "cl", so it can be a program name with args. |
| set dummy cl; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2013: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CC="cl" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| ;; |
| esac |
| fi |
| test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| fi |
| |
| echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| echo "configure:2045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| cat > conftest.$ac_ext << EOF |
| |
| #line 2056 "configure" |
| #include "confdefs.h" |
| |
| main(){return(0);} |
| EOF |
| if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| ac_cv_prog_cc_works=yes |
| # If we can't run a trivial program, we are probably using a cross compiler. |
| if (./conftest; exit) 2>/dev/null; then |
| ac_cv_prog_cc_cross=no |
| else |
| ac_cv_prog_cc_cross=yes |
| fi |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| ac_cv_prog_cc_works=no |
| fi |
| rm -fr conftest* |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| if test $ac_cv_prog_cc_works = no; then |
| { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| fi |
| echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| echo "configure:2087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| echo "configure:2092: checking whether we are using GNU C" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| cat > conftest.c <<EOF |
| #ifdef __GNUC__ |
| yes; |
| #endif |
| EOF |
| if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| ac_cv_prog_gcc=yes |
| else |
| ac_cv_prog_gcc=no |
| fi |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| |
| if test $ac_cv_prog_gcc = yes; then |
| GCC=yes |
| else |
| GCC= |
| fi |
| |
| ac_test_CFLAGS="${CFLAGS+set}" |
| ac_save_CFLAGS="$CFLAGS" |
| CFLAGS= |
| echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| echo "configure:2120: checking whether ${CC-cc} accepts -g" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| echo 'void f(){}' > conftest.c |
| if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| ac_cv_prog_cc_g=yes |
| else |
| ac_cv_prog_cc_g=no |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| if test "$ac_test_CFLAGS" = set; then |
| CFLAGS="$ac_save_CFLAGS" |
| elif test $ac_cv_prog_cc_g = yes; then |
| if test "$GCC" = yes; then |
| CFLAGS="-g -O2" |
| else |
| CFLAGS="-g" |
| fi |
| else |
| if test "$GCC" = yes; then |
| CFLAGS="-O2" |
| else |
| CFLAGS= |
| fi |
| fi |
| |
| for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2156: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CXX"; then |
| ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CXX="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CXX="$ac_cv_prog_CXX" |
| if test -n "$CXX"; then |
| echo "$ac_t""$CXX" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$CXX" && break |
| done |
| test -n "$CXX" || CXX=":" |
| |
| unset ac_cv_prog_CXX |
| for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2192: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CXX"; then |
| ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CXX="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CXX="$ac_cv_prog_CXX" |
| if test -n "$CXX"; then |
| echo "$ac_t""$CXX" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$CXX" && break |
| done |
| test -n "$CXX" || CXX="gcc" |
| |
| |
| echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| echo "configure:2224: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
| |
| ac_ext=C |
| # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CXXCPP $CPPFLAGS' |
| ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cxx_cross |
| |
| cat > conftest.$ac_ext << EOF |
| |
| #line 2235 "configure" |
| #include "confdefs.h" |
| |
| int main(){return(0);} |
| EOF |
| if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| ac_cv_prog_cxx_works=yes |
| # If we can't run a trivial program, we are probably using a cross compiler. |
| if (./conftest; exit) 2>/dev/null; then |
| ac_cv_prog_cxx_cross=no |
| else |
| ac_cv_prog_cxx_cross=yes |
| fi |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| ac_cv_prog_cxx_works=no |
| fi |
| rm -fr conftest* |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| if test $ac_cv_prog_cxx_works = no; then |
| { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| fi |
| echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| echo "configure:2266: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| cross_compiling=$ac_cv_prog_cxx_cross |
| |
| echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
| echo "configure:2271: checking whether we are using GNU C++" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| cat > conftest.C <<EOF |
| #ifdef __GNUC__ |
| yes; |
| #endif |
| EOF |
| if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| ac_cv_prog_gxx=yes |
| else |
| ac_cv_prog_gxx=no |
| fi |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
| |
| if test $ac_cv_prog_gxx = yes; then |
| GXX=yes |
| else |
| GXX= |
| fi |
| |
| ac_test_CXXFLAGS="${CXXFLAGS+set}" |
| ac_save_CXXFLAGS="$CXXFLAGS" |
| CXXFLAGS= |
| echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
| echo "configure:2299: checking whether ${CXX-g++} accepts -g" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| echo 'void f(){}' > conftest.cc |
| if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
| ac_cv_prog_cxx_g=yes |
| else |
| ac_cv_prog_cxx_g=no |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
| if test "$ac_test_CXXFLAGS" = set; then |
| CXXFLAGS="$ac_save_CXXFLAGS" |
| elif test $ac_cv_prog_cxx_g = yes; then |
| if test "$GXX" = yes; then |
| CXXFLAGS="-g -O2" |
| else |
| CXXFLAGS="-g" |
| fi |
| else |
| if test "$GXX" = yes; then |
| CXXFLAGS="-O2" |
| else |
| CXXFLAGS= |
| fi |
| fi |
| |
| for ac_declaration in \ |
| ''\ |
| '#include <stdlib.h>' \ |
| 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 'extern "C" void std::exit (int); using std::exit;' \ |
| 'extern "C" void exit (int) throw ();' \ |
| 'extern "C" void exit (int);' \ |
| 'void exit (int);' |
| do |
| cat > conftest.$ac_ext <<EOF |
| #line 2340 "configure" |
| #include "confdefs.h" |
| #include <stdlib.h> |
| $ac_declaration |
| int main() { |
| exit (42); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:2348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| : |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| continue |
| fi |
| rm -f conftest* |
| cat > conftest.$ac_ext <<EOF |
| #line 2358 "configure" |
| #include "confdefs.h" |
| $ac_declaration |
| int main() { |
| exit (42); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:2365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| rm -rf conftest* |
| break |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| fi |
| rm -f conftest* |
| done |
| if test -n "$ac_declaration"; then |
| echo '#ifdef __cplusplus' >>confdefs.h |
| echo $ac_declaration >>confdefs.h |
| echo '#endif' >>confdefs.h |
| fi |
| |
| |
| |
| for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2387: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$RANLIB"; then |
| ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_RANLIB="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| RANLIB="$ac_cv_prog_RANLIB" |
| if test -n "$RANLIB"; then |
| echo "$ac_t""$RANLIB" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$RANLIB" && break |
| done |
| test -n "$RANLIB" || RANLIB=":" |
| |
| for ac_prog in $AR "${target_alias}-ar" "${target}-ar" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2422: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$AR"; then |
| ac_cv_prog_AR="$AR" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_AR="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| AR="$ac_cv_prog_AR" |
| if test -n "$AR"; then |
| echo "$ac_t""$AR" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$AR" && break |
| done |
| test -n "$AR" || AR=":" |
| |
| for ac_prog in $AS "${target_alias}-as" "${target}-as" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2457: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$AS" in |
| /*) |
| ac_cv_path_AS="$AS" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_AS="$AS" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_AS="$ac_dir/$ac_word" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| ;; |
| esac |
| fi |
| AS="$ac_cv_path_AS" |
| if test -n "$AS"; then |
| echo "$ac_t""$AS" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$AS" && break |
| done |
| test -n "$AS" || AS=":" |
| |
| if test "$msyshost"; then |
| case "$AS" in |
| /*) |
| tmp_DIRNAME=`dirname "$AS"` |
| tmp_BASENAME=`basename "$AS"` |
| tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` |
| AS="$tmp_PWD/$tmp_BASENAME" |
| if test -e "$AS.exe"; then |
| AS="$AS.exe" |
| fi |
| esac |
| fi |
| |
| for ac_prog in $LD "${target_alias}-ld" "${target}-ld" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2511: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$LD"; then |
| ac_cv_prog_LD="$LD" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_LD="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| LD="$ac_cv_prog_LD" |
| if test -n "$LD"; then |
| echo "$ac_t""$LD" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$LD" && break |
| done |
| test -n "$LD" || LD=":" |
| |
| for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2546: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$STRIP"; then |
| ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_STRIP="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| STRIP="$ac_cv_prog_STRIP" |
| if test -n "$STRIP"; then |
| echo "$ac_t""$STRIP" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$STRIP" && break |
| done |
| test -n "$STRIP" || STRIP=":" |
| |
| for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2581: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$WINDRES"; then |
| ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_WINDRES="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| WINDRES="$ac_cv_prog_WINDRES" |
| if test -n "$WINDRES"; then |
| echo "$ac_t""$WINDRES" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$WINDRES" && break |
| done |
| test -n "$WINDRES" || WINDRES=":" |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' CROSS_COMPILE ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define CROSS_COMPILE 1 |
| EOF |
| |
| |
| cross_compiling=yes |
| else |
| # Extract the first word of "gcc", so it can be a program name with args. |
| set dummy gcc; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2624: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CC="gcc" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| if test -z "$CC"; then |
| # Extract the first word of "cc", so it can be a program name with args. |
| set dummy cc; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2654: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_prog_rejected=no |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| ac_prog_rejected=yes |
| continue |
| fi |
| ac_cv_prog_CC="cc" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| if test $ac_prog_rejected = yes; then |
| # We found a bogon in the path, so make sure we never use it. |
| set dummy $ac_cv_prog_CC |
| shift |
| if test $# -gt 0; then |
| # We chose a different compiler from the bogus one. |
| # However, it has the same basename, so the bogon will be chosen |
| # first if we set CC to just the basename; use the full file name. |
| shift |
| set dummy "$ac_dir/$ac_word" "$@" |
| shift |
| ac_cv_prog_CC="$@" |
| fi |
| fi |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| if test -z "$CC"; then |
| case "`uname -s`" in |
| *win32* | *WIN32*) |
| # Extract the first word of "cl", so it can be a program name with args. |
| set dummy cl; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2705: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CC="cl" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| ;; |
| esac |
| fi |
| test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| fi |
| |
| echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| echo "configure:2737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| cat > conftest.$ac_ext << EOF |
| |
| #line 2748 "configure" |
| #include "confdefs.h" |
| |
| main(){return(0);} |
| EOF |
| if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| ac_cv_prog_cc_works=yes |
| # If we can't run a trivial program, we are probably using a cross compiler. |
| if (./conftest; exit) 2>/dev/null; then |
| ac_cv_prog_cc_cross=no |
| else |
| ac_cv_prog_cc_cross=yes |
| fi |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| ac_cv_prog_cc_works=no |
| fi |
| rm -fr conftest* |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| if test $ac_cv_prog_cc_works = no; then |
| { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| fi |
| echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| echo "configure:2779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| echo "configure:2784: checking whether we are using GNU C" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| cat > conftest.c <<EOF |
| #ifdef __GNUC__ |
| yes; |
| #endif |
| EOF |
| if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| ac_cv_prog_gcc=yes |
| else |
| ac_cv_prog_gcc=no |
| fi |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| |
| if test $ac_cv_prog_gcc = yes; then |
| GCC=yes |
| else |
| GCC= |
| fi |
| |
| ac_test_CFLAGS="${CFLAGS+set}" |
| ac_save_CFLAGS="$CFLAGS" |
| CFLAGS= |
| echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| echo "configure:2812: checking whether ${CC-cc} accepts -g" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| echo 'void f(){}' > conftest.c |
| if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| ac_cv_prog_cc_g=yes |
| else |
| ac_cv_prog_cc_g=no |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| if test "$ac_test_CFLAGS" = set; then |
| CFLAGS="$ac_save_CFLAGS" |
| elif test $ac_cv_prog_cc_g = yes; then |
| if test "$GCC" = yes; then |
| CFLAGS="-g -O2" |
| else |
| CFLAGS="-g" |
| fi |
| else |
| if test "$GCC" = yes; then |
| CFLAGS="-O2" |
| else |
| CFLAGS= |
| fi |
| fi |
| |
| for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:2848: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$CXX"; then |
| ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CXX="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| CXX="$ac_cv_prog_CXX" |
| if test -n "$CXX"; then |
| echo "$ac_t""$CXX" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$CXX" && break |
| done |
| test -n "$CXX" || CXX="gcc" |
| |
| |
| echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| echo "configure:2880: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
| |
| ac_ext=C |
| # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CXXCPP $CPPFLAGS' |
| ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cxx_cross |
| |
| cat > conftest.$ac_ext << EOF |
| |
| #line 2891 "configure" |
| #include "confdefs.h" |
| |
| int main(){return(0);} |
| EOF |
| if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| ac_cv_prog_cxx_works=yes |
| # If we can't run a trivial program, we are probably using a cross compiler. |
| if (./conftest; exit) 2>/dev/null; then |
| ac_cv_prog_cxx_cross=no |
| else |
| ac_cv_prog_cxx_cross=yes |
| fi |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| ac_cv_prog_cxx_works=no |
| fi |
| rm -fr conftest* |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| if test $ac_cv_prog_cxx_works = no; then |
| { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| fi |
| echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| echo "configure:2922: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| cross_compiling=$ac_cv_prog_cxx_cross |
| |
| echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
| echo "configure:2927: checking whether we are using GNU C++" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| cat > conftest.C <<EOF |
| #ifdef __GNUC__ |
| yes; |
| #endif |
| EOF |
| if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| ac_cv_prog_gxx=yes |
| else |
| ac_cv_prog_gxx=no |
| fi |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
| |
| if test $ac_cv_prog_gxx = yes; then |
| GXX=yes |
| else |
| GXX= |
| fi |
| |
| ac_test_CXXFLAGS="${CXXFLAGS+set}" |
| ac_save_CXXFLAGS="$CXXFLAGS" |
| CXXFLAGS= |
| echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
| echo "configure:2955: checking whether ${CXX-g++} accepts -g" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| echo 'void f(){}' > conftest.cc |
| if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
| ac_cv_prog_cxx_g=yes |
| else |
| ac_cv_prog_cxx_g=no |
| fi |
| rm -f conftest* |
| |
| fi |
| |
| echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
| if test "$ac_test_CXXFLAGS" = set; then |
| CXXFLAGS="$ac_save_CXXFLAGS" |
| elif test $ac_cv_prog_cxx_g = yes; then |
| if test "$GXX" = yes; then |
| CXXFLAGS="-g -O2" |
| else |
| CXXFLAGS="-g" |
| fi |
| else |
| if test "$GXX" = yes; then |
| CXXFLAGS="-O2" |
| else |
| CXXFLAGS= |
| fi |
| fi |
| |
| for ac_declaration in \ |
| ''\ |
| '#include <stdlib.h>' \ |
| 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 'extern "C" void std::exit (int); using std::exit;' \ |
| 'extern "C" void exit (int) throw ();' \ |
| 'extern "C" void exit (int);' \ |
| 'void exit (int);' |
| do |
| cat > conftest.$ac_ext <<EOF |
| #line 2996 "configure" |
| #include "confdefs.h" |
| #include <stdlib.h> |
| $ac_declaration |
| int main() { |
| exit (42); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:3004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| : |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| continue |
| fi |
| rm -f conftest* |
| cat > conftest.$ac_ext <<EOF |
| #line 3014 "configure" |
| #include "confdefs.h" |
| $ac_declaration |
| int main() { |
| exit (42); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:3021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| rm -rf conftest* |
| break |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| fi |
| rm -f conftest* |
| done |
| if test -n "$ac_declaration"; then |
| echo '#ifdef __cplusplus' >>confdefs.h |
| echo $ac_declaration >>confdefs.h |
| echo '#endif' >>confdefs.h |
| fi |
| |
| |
| # Extract the first word of "ranlib", so it can be a program name with args. |
| set dummy ranlib; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3040: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$RANLIB"; then |
| ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_RANLIB="ranlib" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| fi |
| fi |
| RANLIB="$ac_cv_prog_RANLIB" |
| if test -n "$RANLIB"; then |
| echo "$ac_t""$RANLIB" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| for ac_prog in $AS as |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3072: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$AS" in |
| /*) |
| ac_cv_path_AS="$AS" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_AS="$AS" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_AS="$ac_dir/$ac_word" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| ;; |
| esac |
| fi |
| AS="$ac_cv_path_AS" |
| if test -n "$AS"; then |
| echo "$ac_t""$AS" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$AS" && break |
| done |
| test -n "$AS" || AS="$CC" |
| |
| if test "$msyshost"; then |
| case "$AS" in |
| /*) |
| tmp_DIRNAME=`dirname "$AS"` |
| tmp_BASENAME=`basename "$AS"` |
| tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` |
| AS="$tmp_PWD/$tmp_BASENAME" |
| if test -e "$AS.exe"; then |
| AS="$AS.exe" |
| fi |
| esac |
| fi |
| |
| for ac_prog in ar |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3126: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$AR"; then |
| ac_cv_prog_AR="$AR" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_AR="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| AR="$ac_cv_prog_AR" |
| if test -n "$AR"; then |
| echo "$ac_t""$AR" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$AR" && break |
| done |
| test -n "$AR" || AR=":" |
| |
| for ac_prog in ld |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3161: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$LD"; then |
| ac_cv_prog_LD="$LD" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_LD="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| LD="$ac_cv_prog_LD" |
| if test -n "$LD"; then |
| echo "$ac_t""$LD" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$LD" && break |
| done |
| test -n "$LD" || LD=":" |
| |
| for ac_prog in strip |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3196: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$STRIP"; then |
| ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_STRIP="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| STRIP="$ac_cv_prog_STRIP" |
| if test -n "$STRIP"; then |
| echo "$ac_t""$STRIP" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$STRIP" && break |
| done |
| test -n "$STRIP" || STRIP=":" |
| |
| for ac_prog in windres |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3231: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$WINDRES"; then |
| ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_WINDRES="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| WINDRES="$ac_cv_prog_WINDRES" |
| if test -n "$WINDRES"; then |
| echo "$ac_t""$WINDRES" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$WINDRES" && break |
| done |
| test -n "$WINDRES" || WINDRES=":" |
| |
| if test -z "$HOST_CC"; then |
| HOST_CC='$(CC)' |
| fi |
| if test -z "$HOST_CFLAGS"; then |
| HOST_CFLAGS='$(CFLAGS)' |
| fi |
| if test -z "$HOST_CXX"; then |
| HOST_CXX='$(CXX)' |
| fi |
| if test -z "$HOST_CXXFLAGS"; then |
| HOST_CXXFLAGS='$(CXXFLAGS)' |
| fi |
| if test -z "$HOST_LDFLAGS"; then |
| HOST_LDFLAGS='$(LDFLAGS)' |
| fi |
| if test -z "$HOST_RANLIB"; then |
| HOST_RANLIB='$(RANLIB)' |
| fi |
| if test -z "$HOST_AR"; then |
| HOST_AR='$(AR)' |
| fi |
| if test -z "$HOST_AR_FLAGS"; then |
| HOST_AR_FLAGS='$(AR_FLAGS)' |
| fi |
| fi |
| |
| |
| GNU_AS= |
| GNU_LD= |
| GNU_CC= |
| GNU_CXX= |
| CC_VERSION='N/A' |
| CXX_VERSION='N/A' |
| if test "$GCC" = "yes"; then |
| GNU_CC=1 |
| CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` |
| fi |
| if test "$GXX" = "yes"; then |
| GNU_CXX=1 |
| CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'` |
| |
| GCC_VERSION_FULL=`echo "$CXX_VERSION" | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` |
| GCC_VERSION=`echo "$GCC_VERSION_FULL" | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` |
| |
| GCC_MAJOR_VERSION=`echo ${GCC_VERSION} | $AWK -F\. '{ print $1 }'` |
| GCC_MINOR_VERSION=`echo ${GCC_VERSION} | $AWK -F\. '{ print $2 }'` |
| |
| fi |
| |
| if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c GNU`" != "0"; then |
| GNU_AS=1 |
| fi |
| rm -f conftest.out |
| if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then |
| GNU_LD=1 |
| fi |
| if test "$GNU_CC"; then |
| if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then |
| GCC_USE_GNU_LD=1 |
| fi |
| fi |
| |
| INTEL_CC= |
| INTEL_CXX= |
| if test "$GCC" = yes; then |
| if test "`$CC -help 2>&1 | grep -c 'Intel(R) C++ Compiler'`" != "0"; then |
| INTEL_CC=1 |
| fi |
| fi |
| |
| if test "$GXX" = yes; then |
| if test "`$CXX -help 2>&1 | grep -c 'Intel(R) C++ Compiler'`" != "0"; then |
| INTEL_CXX=1 |
| fi |
| fi |
| |
| CLANG_CC= |
| CLANG_CXX= |
| if test "`$CC -v 2>&1 | egrep -c '(clang version|Apple.*clang)'`" != "0"; then |
| CLANG_CC=1 |
| fi |
| |
| if test "`$CXX -v 2>&1 | egrep -c '(clang version|Apple.*clang)'`" != "0"; then |
| CLANG_CXX=1 |
| fi |
| |
| |
| |
| if test -n "$GNU_CC" -a -z "$CLANG_CC" ; then |
| if test "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -lt 4 || |
| test "$GCC_MAJOR_VERSION" -lt 4; then |
| { echo "configure: error: Only GCC 4.4 or newer supported" 1>&2; exit 1; } |
| fi |
| fi |
| |
| |
| # Check whether --enable-metro or --disable-metro was given. |
| if test "${enable_metro+set}" = set; then |
| enableval="$enable_metro" |
| if test "$enableval" = "yes"; then |
| MOZ_METRO=1 |
| elif test "$enableval" = "no"; then |
| MOZ_METRO= |
| else |
| { echo "configure: error: Option, metro, does not take an argument ($enableval)." 1>&2; exit 1; } |
| fi |
| fi |
| |
| if test -n "$MOZ_METRO"; then |
| cat >> confdefs.pytmp <<\EOF |
| (''' MOZ_METRO ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define MOZ_METRO 1 |
| EOF |
| |
| # Target the Windows 8 Kit |
| WINSDK_TARGETVER=602 |
| WINVER=502 |
| else |
| # Target the Windows 7 SDK by default |
| WINSDK_TARGETVER=601 |
| WINVER=502 |
| fi |
| |
| # Check whether --with-windows-version or --without-windows-version was given. |
| if test "${with_windows_version+set}" = set; then |
| withval="$with_windows_version" |
| WINSDK_TARGETVER=$withval |
| fi |
| |
| |
| # Currently only two sdk versions allowed, 601 and 602 |
| case "$WINSDK_TARGETVER" in |
| 601|602) |
| MOZ_WINSDK_TARGETVER=0${WINSDK_TARGETVER}0000 |
| ;; |
| |
| *) |
| { echo "configure: error: Invalid value for --with-windows-version ($WINSDK_TARGETVER)" 1>&2; exit 1; }; |
| ;; |
| esac |
| |
| case "$target" in |
| *-mingw*) |
| if test "$GCC" != "yes" -a -z "$CLANG_CC"; then |
| # Check to see if we are really running in a msvc environemnt |
| _WIN32_MSVC=1 |
| |
| # Make sure compilers are valid |
| CFLAGS="$CFLAGS -TC -nologo" |
| CXXFLAGS="$CXXFLAGS -TP -nologo" |
| # MSVC warning C4345 warns of newly conformant behavior as of VS2003. |
| # MSVC warning C4351 warns of newly conformant behavior as of VS2005. |
| # MSVC warning C4800 warns when a value is implicitly cast to bool, |
| # because this also forces narrowing to a single byte, which can be a |
| # perf hit. But this matters so little in practice (and often we want |
| # that behavior) that it's better to turn it off. |
| # _CRT_SECURE_NO_WARNINGS disables warnings about using MSVC-specific |
| # secure CRT functions. |
| CXXFLAGS="$CXXFLAGS -wd4345 -wd4351 -wd4800 -D_CRT_SECURE_NO_WARNINGS" |
| |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| cat > conftest.$ac_ext <<EOF |
| #line 3431 "configure" |
| #include "confdefs.h" |
| #include <stdio.h> |
| int main() { |
| printf("Hello World\n"); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| : |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; } |
| fi |
| rm -f conftest* |
| |
| ac_ext=C |
| # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CXXCPP $CPPFLAGS' |
| ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cxx_cross |
| |
| cat > conftest.$ac_ext <<EOF |
| #line 3456 "configure" |
| #include "confdefs.h" |
| #include <new.h> |
| int main() { |
| unsigned *test = new unsigned(42); |
| ; return 0; } |
| EOF |
| if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| : |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; } |
| fi |
| rm -f conftest* |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| |
| |
| |
| _MSVC_VER_FILTER='s|.*[^!-~]([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p' |
| |
| |
| # Determine compiler version |
| CC_VERSION=`"${CC}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` |
| _CC_MAJOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $1 }'` |
| _CC_MINOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $2 }'` |
| _CC_RELEASE=`echo ${CC_VERSION} | $AWK -F\. '{ print $3 }'` |
| _CC_BUILD=`echo ${CC_VERSION} | $AWK -F\. '{ print $4 }'` |
| _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} |
| |
| CXX_VERSION=`"${CXX}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` |
| _CXX_MAJOR_VERSION=`echo ${CXX_VERSION} | $AWK -F\. '{ print $1 }'` |
| |
| if test "$_CC_MAJOR_VERSION" != "$_CXX_MAJOR_VERSION"; then |
| { echo "configure: error: The major versions of \$CC and \$CXX do not match." 1>&2; exit 1; } |
| fi |
| |
| if test "$_CC_MAJOR_VERSION" = "16"; then |
| _CC_SUITE=10 |
| cat >> confdefs.pytmp <<\EOF |
| (''' _CRT_SECURE_NO_WARNINGS ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define _CRT_SECURE_NO_WARNINGS 1 |
| EOF |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' _CRT_NONSTDC_NO_WARNINGS ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define _CRT_NONSTDC_NO_WARNINGS 1 |
| EOF |
| |
| elif test "$_CC_MAJOR_VERSION" = "17"; then |
| _CC_SUITE=11 |
| cat >> confdefs.pytmp <<\EOF |
| (''' _CRT_SECURE_NO_WARNINGS ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define _CRT_SECURE_NO_WARNINGS 1 |
| EOF |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' _CRT_NONSTDC_NO_WARNINGS ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define _CRT_NONSTDC_NO_WARNINGS 1 |
| EOF |
| |
| else |
| { echo "configure: error: This version ($CC_VERSION) of the MSVC compiler is unsupported. See https://developer.mozilla.org/en/Windows_Build_Prerequisites." 1>&2; exit 1; } |
| fi |
| |
| MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` |
| if test -z "$MSMT_TOOL"; then |
| { echo "configure: error: Microsoft (R) Manifest Tool must be in your \$PATH." 1>&2; exit 1; } |
| fi |
| |
| |
| _MSMT_VER_FILTER='s|.*[^!-~]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' |
| |
| MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` |
| if test -z "$MSMANIFEST_TOOL_VERSION"; then |
| echo "configure: warning: Unknown version of the Microsoft (R) Manifest Tool." 1>&2 |
| fi |
| |
| MSMANIFEST_TOOL=1 |
| unset MSMT_TOOL |
| |
| # Check linker version |
| _LD_FULL_VERSION=`"${LD}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"` |
| _LD_MAJOR_VERSION=`echo ${_LD_FULL_VERSION} | $AWK -F\. '{ print $1 }'` |
| if test "$_LD_MAJOR_VERSION" != "$_CC_SUITE"; then |
| { echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&2; exit 1; } |
| fi |
| |
| INCREMENTAL_LINKER=1 |
| |
| unset _MSVC_VER_FILTER |
| elif test -z "$CLANG_CC"; then |
| # Check w32api version |
| _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'` |
| _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'` |
| echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6 |
| echo "configure:3566: checking for w32api version >= $W32API_VERSION" >&5 |
| cat > conftest.$ac_ext <<EOF |
| #line 3568 "configure" |
| #include "confdefs.h" |
| #include <w32api.h> |
| int main() { |
| #if (__W32API_MAJOR_VERSION < $_W32API_MAJOR_VERSION) || \ |
| (__W32API_MAJOR_VERSION == $_W32API_MAJOR_VERSION && \ |
| __W32API_MINOR_VERSION < $_W32API_MINOR_VERSION) |
| #error "test failed." |
| #endif |
| |
| ; return 0; } |
| EOF |
| if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| rm -rf conftest* |
| res=yes |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| res=no |
| fi |
| rm -f conftest* |
| echo "$ac_t""$res" 1>&6 |
| if test "$res" != "yes"; then |
| { echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&2; exit 1; } |
| fi |
| # Check windres version |
| echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6 |
| echo "configure:3596: checking for windres version >= $WINDRES_VERSION" >&5 |
| _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'` |
| echo "$ac_t""$_WINDRES_VERSION" 1>&6 |
| _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'` |
| _WINDRES_MINOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $2 }'` |
| _WINDRES_RELEASE_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $3 }'` |
| WINDRES_MAJOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $1 }'` |
| WINDRES_MINOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $2 }'` |
| WINDRES_RELEASE_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $3 }'` |
| if test "$_WINDRES_MAJOR_VERSION" -lt "$WINDRES_MAJOR_VERSION" -o \ |
| "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \ |
| "$_WINDRES_MINOR_VERSION" -lt "$WINDRES_MINOR_VERSION" -o \ |
| "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \ |
| "$_WINDRES_MINOR_VERSION" -eq "$WINDRES_MINOR_VERSION" -a \ |
| "$_WINDRES_RELEASE_VERSION" -lt "$WINDRES_RELEASE_VERSION" |
| then |
| { echo "configure: error: windres version $WINDRES_VERSION or higher is required to build." 1>&2; exit 1; } |
| fi |
| |
| MOZ_WINSDK_MAXVER=0x06010000 |
| fi # !GNU_CC |
| |
| # If MSVC or clang |
| if test "$GCC" != "yes" -o -n "$CLANG_CC" ; then |
| |
| for ac_hdr in winsdkver.h |
| do |
| ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| echo "configure:3625: checking for $ac_hdr" >&5 |
| if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| cat > conftest.$ac_ext <<EOF |
| #line 3630 "configure" |
| #include "confdefs.h" |
| |
| #include <$ac_hdr> |
| int main() { |
| |
| ; return 0; } |
| EOF |
| if { (eval echo configure:3638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| rm -rf conftest* |
| eval "ac_cv_header_$ac_safe=yes" |
| else |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| eval "ac_cv_header_$ac_safe=no" |
| fi |
| rm -f conftest* |
| fi |
| |
| if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| echo "$ac_t""yes" 1>&6 |
| ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| cat >> confdefs.pytmp <<EOF |
| (''' $ac_tr_hdr ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define $ac_tr_hdr 1 |
| EOF |
| |
| else |
| echo "$ac_t""no" 1>&6 |
| |
| fi |
| |
| done |
| |
| if test "$ac_cv_header_winsdkver_h" = "yes"; then |
| echo $ac_n "checking for highest Windows version supported by this SDK""... $ac_c" 1>&6 |
| echo "configure:3669: checking for highest Windows version supported by this SDK" >&5 |
| if eval "test \"`echo '$''{'ac_cv_winsdk_maxver'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| cat > conftest.h <<EOF |
| #include <winsdkver.h> |
| #include <sdkddkver.h> |
| |
| #if (NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT_MAXVER) > NTDDI_MAXVER) |
| #define WINSDK_MAXVER NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT_MAXVER) |
| #else |
| #define WINSDK_MAXVER NTDDI_MAXVER |
| #endif |
| |
| WINSDK_MAXVER |
| EOF |
| ac_cv_winsdk_maxver=`$CPP conftest.h 2>/dev/null | tail -n1` |
| rm -f conftest.h |
| |
| fi |
| |
| echo "$ac_t""$ac_cv_winsdk_maxver" 1>&6 |
| MOZ_WINSDK_MAXVER=${ac_cv_winsdk_maxver} |
| else |
| { echo "configure: error: Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this." 1>&2; exit 1; } |
| fi |
| |
| fi |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' WINVER ''', r''' 0x$WINVER ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define WINVER 0x$WINVER |
| EOF |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' _WIN32_WINNT ''', r''' 0x$WINVER ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define _WIN32_WINNT 0x$WINVER |
| EOF |
| |
| # Require OS features provided by IE 6.0 SP2 (XP SP2) |
| cat >> confdefs.pytmp <<EOF |
| (''' _WIN32_IE ''', r''' 0x0603 ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define _WIN32_IE 0x0603 |
| EOF |
| |
| |
| # If the maximum version supported by this SDK is lower than the target |
| # version, error out |
| echo $ac_n "checking for Windows SDK being recent enough""... $ac_c" 1>&6 |
| echo "configure:3724: checking for Windows SDK being recent enough" >&5 |
| if $PERL -e "exit(0x$MOZ_WINSDK_TARGETVER > $MOZ_WINSDK_MAXVER)"; then |
| echo "$ac_t"""yes"" 1>&6 |
| else |
| echo "$ac_t"""no"" 1>&6 |
| { echo "configure: error: You are targeting Windows version 0x$MOZ_WINSDK_TARGETVER, but your SDK only supports up to version $MOZ_WINSDK_MAXVER. Install and use an updated SDK, or target a lower version using --with-windows-version. Alternatively, try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this." 1>&2; exit 1; } |
| fi |
| |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZ_WINSDK_TARGETVER ''', r''' 0x$MOZ_WINSDK_TARGETVER ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZ_WINSDK_TARGETVER 0x$MOZ_WINSDK_TARGETVER |
| EOF |
| |
| # Definitions matching sdkddkver.h |
| cat >> confdefs.pytmp <<EOF |
| (''' MOZ_NTDDI_WIN7 ''', r''' 0x06010000 ''') |
| EOF |
| cat >> confdefs.h <<EOF |
| #define MOZ_NTDDI_WIN7 0x06010000 |
| EOF |
| |
| ;; |
| esac |
| |
| echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| echo "configure:3751: checking how to run the C preprocessor" >&5 |
| # On Suns, sometimes $CPP names a directory. |
| if test -n "$CPP" && test -d "$CPP"; then |
| CPP= |
| fi |
| if test -z "$CPP"; then |
| if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| # This must be in double quotes, not single quotes, because CPP may get |
| # substituted into the Makefile and "${CC-cc}" will confuse make. |
| CPP="${CC-cc} -E" |
| # On the NeXT, cc -E runs the code through the compiler's parser, |
| # not just through cpp. |
| cat > conftest.$ac_ext <<EOF |
| #line 3766 "configure" |
| #include "confdefs.h" |
| #include <assert.h> |
| Syntax Error |
| EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:3772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
| : |
| else |
| echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| CPP="${CC-cc} -E -traditional-cpp" |
| cat > conftest.$ac_ext <<EOF |
| #line 3783 "configure" |
| #include "confdefs.h" |
| #include <assert.h> |
| Syntax Error |
| EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:3789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
| : |
| else |
| echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| CPP="${CC-cc} -nologo -E" |
| cat > conftest.$ac_ext <<EOF |
| #line 3800 "configure" |
| #include "confdefs.h" |
| #include <assert.h> |
| Syntax Error |
| EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:3806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
| : |
| else |
| echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| CPP=/lib/cpp |
| fi |
| rm -f conftest* |
| fi |
| rm -f conftest* |
| fi |
| rm -f conftest* |
| ac_cv_prog_CPP="$CPP" |
| fi |
| CPP="$ac_cv_prog_CPP" |
| else |
| ac_cv_prog_CPP="$CPP" |
| fi |
| echo "$ac_t""$CPP" 1>&6 |
| |
| echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
| echo "configure:3831: checking how to run the C++ preprocessor" >&5 |
| if test -z "$CXXCPP"; then |
| if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| ac_ext=C |
| # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CXXCPP $CPPFLAGS' |
| ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cxx_cross |
| CXXCPP="${CXX-g++} -E" |
| cat > conftest.$ac_ext <<EOF |
| #line 3844 "configure" |
| #include "confdefs.h" |
| #include <stdlib.h> |
| EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:3849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
| : |
| else |
| echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
| CXXCPP=/lib/cpp |
| fi |
| rm -f conftest* |
| ac_cv_prog_CXXCPP="$CXXCPP" |
| ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| cross_compiling=$ac_cv_prog_cc_cross |
| fi |
| fi |
| CXXCPP="$ac_cv_prog_CXXCPP" |
| echo "$ac_t""$CXXCPP" 1>&6 |
| |
| |
| if test -n "$_WIN32_MSVC"; then |
| SKIP_PATH_CHECKS=1 |
| SKIP_COMPILER_CHECKS=1 |
| SKIP_LIBRARY_CHECKS=1 |
| |
| # Since we're skipping compiler and library checks, hard-code |
| # some facts here. |
| |
| # Common to all MSVC environments: |
| |
| cat >> confdefs.pytmp <<\EOF |
| (''' HAVE_LOCALECONV ''', ' 1 ') |
| EOF |
| cat >> confdefs.h <<\EOF |
| #define HAVE_LOCALECONV 1 |
| EOF |
| |
| fi |
| |
| fi # COMPILE_ENVIRONMENT |
| |
| if test "$cross_compiling" = "yes"; then |
| CROSS_COMPILE=1 |
| else |
| CROSS_COMPILE= |
| fi |
| |
| # Check to see if we are running in a broken QEMU scratchbox. |
| # We know that anything below 1.0.16 is broken. |
| for ac_prog in sb-conf ve |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:3908: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_SBCONF'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$SBCONF"; then |
| ac_cv_prog_SBCONF="$SBCONF" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_SBCONF="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| SBCONF="$ac_cv_prog_SBCONF" |
| if test -n "$SBCONF"; then |
| echo "$ac_t""$SBCONF" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$SBCONF" && break |
| done |
| test -n "$SBCONF" || SBCONF="""" |
| |
| if test -n "$SBCONF"; then |
| _sb_version=`$SBCONF ve` |
| _sb_version_major=`echo $_sb_version | cut -f1 -d.` |
| _sb_version_minor=`echo $_sb_version | cut -f2 -d.` |
| _sb_version_point=`echo $_sb_version | cut -f3 -d.` |
| if test $_sb_version_major -eq 1 -a $_sb_version_minor -eq 0 -a $_sb_version_point -le 16; then |
| QEMU_CANT_RUN_JS_SHELL=1 |
| fi |
| fi |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| # Find a good install program. We prefer a C program (faster), |
| # so one script is as good as another. But avoid the broken or |
| # incompatible versions: |
| # SysV /etc/install, /usr/sbin/install |
| # SunOS /usr/etc/install |
| # IRIX /sbin/install |
| # AIX /bin/install |
| # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| # ./install, which can be erroneously created by make from ./install.sh. |
| echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| echo "configure:3970: checking for a BSD compatible install" >&5 |
| if test -z "$INSTALL"; then |
| if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| for ac_dir in $PATH; do |
| # Account for people who put trailing slashes in PATH elements. |
| case "$ac_dir/" in |
| /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| *) |
| # OSF1 and SCO ODT 3.0 have their own names for install. |
| # Don't use installbsd from OSF since it installs stuff as root |
| # by default. |
| for ac_prog in ginstall scoinst install; do |
| if test -f $ac_dir/$ac_prog; then |
| if test $ac_prog = install && |
| grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| # AIX install. It has an incompatible calling convention. |
| : |
| else |
| ac_cv_path_install="$ac_dir/$ac_prog -c" |
| break 2 |
| fi |
| fi |
| done |
| ;; |
| esac |
| done |
| IFS="$ac_save_IFS" |
| |
| fi |
| if test "${ac_cv_path_install+set}" = set; then |
| INSTALL="$ac_cv_path_install" |
| else |
| # As a last resort, use the slow shell script. We don't cache a |
| # path for INSTALL within a source directory, because that will |
| # break other packages using the cache if that directory is |
| # removed, or if the path is relative. |
| INSTALL="$ac_install_sh" |
| fi |
| fi |
| echo "$ac_t""$INSTALL" 1>&6 |
| |
| # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| # It thinks the first close brace ends the variable substitution. |
| test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| |
| test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| |
| test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| |
| echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| echo "configure:4023: checking whether ln -s works" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| rm -f conftestdata |
| if ln -s X conftestdata 2>/dev/null |
| then |
| rm -f conftestdata |
| ac_cv_prog_LN_S="ln -s" |
| else |
| ac_cv_prog_LN_S=ln |
| fi |
| fi |
| LN_S="$ac_cv_prog_LN_S" |
| if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| echo "$ac_t""yes" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| |
| echo $ac_n "checking for tar archiver""... $ac_c" 1>&6 |
| echo "configure:4045: checking for tar archiver" >&5 |
| for ac_prog in gnutar gtar tar |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:4051: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| if test -n "$TAR"; then |
| ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_TAR="$ac_prog" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| fi |
| fi |
| TAR="$ac_cv_prog_TAR" |
| if test -n "$TAR"; then |
| echo "$ac_t""$TAR" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$TAR" && break |
| done |
| test -n "$TAR" || TAR="""" |
| |
| if test -z "$TAR"; then |
| echo "configure: warning: no tar archiver found in \$PATH" 1>&2 |
| fi |
| echo "$ac_t""$TAR" 1>&6 |
| |
| |
| if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then |
| echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6 |
| echo "configure:4089: checking for minimum required perl version >= $PERL_VERSION" >&5 |
| _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5` |
| _perl_res=$? |
| echo "$ac_t""$_perl_version" 1>&6 |
| |
| if test "$_perl_res" != 0; then |
| { echo "configure: error: Perl $PERL_VERSION or higher is required." 1>&2; exit 1; } |
| fi |
| fi |
| |
| echo $ac_n "checking for full perl installation""... $ac_c" 1>&6 |
| echo "configure:4100: checking for full perl installation" >&5 |
| _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5` |
| _perl_res=$? |
| if test "$_perl_res" != 0; then |
| echo "$ac_t""no" 1>&6 |
| { echo "configure: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." 1>&2; exit 1; } |
| else |
| echo "$ac_t""yes" 1>&6 |
| fi |
| |
| |
| |
| if test -z "$PYTHON"; then |
| for ac_prog in $PYTHON python2.7 python |
| do |
| # Extract the first word of "$ac_prog", so it can be a program name with args. |
| set dummy $ac_prog; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:4118: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$PYTHON" in |
| /*) |
| ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_PYTHON="$ac_dir/$ac_word" |
| break |
| fi |
| done |
| IFS="$ac_save_ifs" |
| ;; |
| esac |
| fi |
| PYTHON="$ac_cv_path_PYTHON" |
| if test -n "$PYTHON"; then |
| echo "$ac_t""$PYTHON" 1>&6 |
| else |
| echo "$ac_t""no" 1>&6 |
| fi |
| |
| test -n "$PYTHON" && break |
| done |
| |
| if test "$msyshost"; then |
| case "$PYTHON" in |
| /*) |
| tmp_DIRNAME=`dirname "$PYTHON"` |
| tmp_BASENAME=`basename "$PYTHON"` |
| tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W` |
| PYTHON="$tmp_PWD/$tmp_BASENAME" |
| if test -e "$PYTHON.exe"; then |
| PYTHON="$PYTHON.exe" |
| fi |
| esac |
| fi |
| |
| if test -z "$PYTHON"; then |
| { echo "configure: error: python was not found in \$PATH" 1>&2; exit 1; } |
| fi |
| else |
| echo "$ac_t""Using Python from environment variable \$PYTHON" 1>&6 |
| fi |
| |
| _virtualenv_topsrcdir= |
| _virtualenv_populate_path= |
| |
| for base in $MOZILLA_CENTRAL_PATH $_topsrcdir $_topsrcdir/../..; do |
| possible=$base/build/virtualenv/populate_virtualenv.py |
| |
| if test -e $possible; then |
| _virtualenv_topsrcdir=$base |
| _virtualenv_populate_path=$possible |
| break |
| fi |
| done |
| |
| if test -z $_virtualenv_populate_path; then |
| { echo "configure: error: Unable to find Virtualenv population script. In order |
| to build, you will need mozilla-central's virtualenv. |
| |
| If you are building from a mozilla-central checkout, you should never see this |
| message. If you are building from a source archive, the source archive was |
| likely not created properly (it is missing the virtualenv files). |
| |
| If you have a copy of mozilla-central available, define the |
| MOZILLA_CENTRAL_PATH environment variable to the top source directory of |
| mozilla-central and relaunch configure." 1>&2; exit 1; } |
| |
| fi |
| |
| if test -z $DONT_POPULATE_VIRTUALENV; then |
| echo "$ac_t""Creating Python environment" 1>&6 |
| $PYTHON $_virtualenv_populate_path \ |
| $_virtualenv_topsrcdir $MOZ_BUILD_ROOT $MOZ_BUILD_ROOT/_virtualenv || exit 1 |
| |
| case "$host_os" in |
| mingw*) |
| PYTHON=`cd $MOZ_BUILD_ROOT && pwd -W`/_virtualenv/Scripts/python.exe |
| ;; |
| *) |
| PYTHON=$MOZ_BUILD_ROOT/_virtualenv/bin/python |
| ;; |
| esac |
| fi |
| |
| |
| |
| echo $ac_n "checking Python environment is Mozilla virtualenv""... $ac_c" 1>&6 |
| echo "configure:4218: checking Python environment is Mozilla virtualenv" >&5 |
| $PYTHON -c "import mozbuild.base" |
| if test "$?" != 0; then |
| { echo "configure: error: Python environment does not appear to be sane." 1>&2; exit 1; } |
| fi |
| echo "$ac_t""yes" 1>&6 |
| |
| |
| if test -z "$COMPILE_ENVIRONMENT"; then |
| NSINSTALL_BIN='$(PYTHON) $(topsrcdir)/config/nsinstall.py' |
| fi |
| |
| |
| # Extract the first word of "doxygen", so it can be a program name with args. |
| set dummy doxygen; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:4234: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
| case "$DOXYGEN" in |
| /*) |
| ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| ;; |
| ?:/*) |
| ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path. |
| ;; |
| *) |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
| ac_cv_path_DOXYGEN="$ac_dir/$ac_word" |
| break |
|