PageRenderTime 120ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 1ms

/configure

https://bitbucket.org/mkato/mozilla-1.9.0-win64
Shell | 17106 lines | 16992 code | 62 blank | 52 comment | 69 complexity | e988da749ea8135c8e09943bad25040e MD5 | raw file
Possible License(s): LGPL-3.0, MIT, BSD-3-Clause, MPL-2.0-no-copyleft-exception, GPL-2.0, LGPL-2.1
  1. #! /bin/sh
  2. # Read in '.mozconfig' script to set the initial options.
  3. # See the mozconfig2configure script for more details.
  4. _AUTOCONF_TOOLS_DIR=`dirname $0`/./build/autoconf
  5. . $_AUTOCONF_TOOLS_DIR/mozconfig2configure
  6. # Guess values for system-dependent variables and create Makefiles.
  7. # Generated automatically using autoconf version 2.13
  8. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. # Defaults:
  13. ac_help=
  14. ac_default_prefix=/usr/local
  15. # Any additions from configure.in:
  16. ac_help="$ac_help
  17. --disable-compile-environment
  18. Disable compiler/library checks."
  19. ac_help="$ac_help
  20. --with-l10nbase=DIR path to l10n repositories"
  21. ac_help="$ac_help
  22. --with-windows-version=WINVER
  23. Minimum Windows version (WINVER) to support
  24. 400: Windows 95
  25. 500: Windows 2000
  26. 501: Windows XP"
  27. ac_help="$ac_help
  28. --enable-macos-target=VER (default=10.4)
  29. Set the minimum MacOS version needed at runtime"
  30. ac_help="$ac_help
  31. --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)"
  32. ac_help="$ac_help
  33. --with-x use the X Window System"
  34. ac_help="$ac_help
  35. --disable-os2-high-mem Disable high-memory support on OS/2"
  36. ac_help="$ac_help
  37. --enable-dtrace build with dtrace support if available (default=no)"
  38. ac_help="$ac_help
  39. --with-ft-prefix=PFX Prefix where FreeType is installed (optional)"
  40. ac_help="$ac_help
  41. --with-ft-exec-prefix=PFX
  42. Exec prefix where FreeType is installed (optional)"
  43. ac_help="$ac_help
  44. --disable-freetypetest
  45. Do not try to compile and run a test FreeType program"
  46. ac_help="$ac_help
  47. --with-pthreads Force use of system pthread library with NSPR "
  48. ac_help="$ac_help
  49. --with-libxul-sdk=PFX Use the libXUL SDK at <PFX>"
  50. ac_help="$ac_help
  51. --with-system-nspr Use system installed NSPR"
  52. ac_help="$ac_help
  53. --with-nspr-prefix=PFX Prefix where NSPR is installed"
  54. ac_help="$ac_help
  55. --with-nspr-exec-prefix=PFX
  56. Exec prefix where NSPR is installed"
  57. ac_help="$ac_help
  58. --with-system-nss Use system installed NSS"
  59. ac_help="$ac_help
  60. --with-nss-prefix=PFX Prefix where NSS is installed"
  61. ac_help="$ac_help
  62. --with-nss-exec-prefix=PFX
  63. Exec prefix where NSS is installed"
  64. ac_help="$ac_help
  65. --with-system-jpeg[=PFX]
  66. Use system libjpeg [installed at prefix PFX]"
  67. ac_help="$ac_help
  68. --with-system-zlib[=PFX]
  69. Use system libz [installed at prefix PFX]"
  70. ac_help="$ac_help
  71. --with-system-bz2[=PFX]
  72. Use system libbz2 [installed at prefix PFX]"
  73. ac_help="$ac_help
  74. --with-system-png[=PFX]
  75. Use system libpng [installed at prefix PFX]"
  76. ac_help="$ac_help
  77. --enable-system-hunspell Use system hunspell (located with pkgconfig)"
  78. ac_help="$ac_help
  79. --enable-glitz Enable Glitz for use with Cairo"
  80. ac_help="$ac_help
  81. --with-java-include-path=dir Location of Java SDK headers"
  82. ac_help="$ac_help
  83. --with-java-bin-path=dir Location of Java binaries (java, javac, jar)"
  84. ac_help="$ac_help
  85. --enable-application=APP
  86. Options include:
  87. suite
  88. browser (Firefox)
  89. mail (Thunderbird)
  90. minimo
  91. composer
  92. calendar (Sunbird)
  93. xulrunner
  94. camino
  95. content/xslt (Standalone Transformiix XSLT)
  96. netwerk (Standalone Necko)
  97. tools/update-packaging (AUS-related packaging tools)
  98. standalone (use this for standalone
  99. xpcom/xpconnect or to manually drive a build)"
  100. ac_help="$ac_help
  101. --with-embedding-profile=default|basic|minimal
  102. see http://wiki.mozilla.org/Gecko:Small_Device_Support"
  103. ac_help="$ac_help
  104. --with-xulrunner-stub-name=appname Create the xulrunner stub with the given name"
  105. ac_help="$ac_help
  106. --enable-default-toolkit=TK
  107. Select default toolkit
  108. Platform specific defaults:
  109. BeOS - cairo-beos
  110. Mac OS X - cairo-cocoa
  111. Neutrino/QNX - photon
  112. OS/2 - cairo-os2
  113. Win32 - cairo-windows
  114. WinCE - windows
  115. * - cairo-gtk2"
  116. ac_help="$ac_help
  117. --enable-startup-notification Enable startup-notification support (default: disabled) "
  118. ac_help="$ac_help
  119. --enable-ui-locale=ab-CD
  120. Select the user interface locale (default: en-US)"
  121. ac_help="$ac_help
  122. "
  123. ac_help="$ac_help
  124. --disable-mailnews Disable building of mail & news components"
  125. ac_help="$ac_help
  126. --disable-ldap Disable LDAP support"
  127. ac_help="$ac_help
  128. --enable-official-branding Enable Official mozilla.org Branding
  129. Do not distribute builds with
  130. --enable-official-branding unless you have
  131. permission to use trademarks per
  132. http://www.mozilla.org/foundation/trademarks/ ."
  133. ac_help="$ac_help
  134. --with-branding=dir Use branding from the specified directory."
  135. ac_help="$ac_help
  136. --with-distribution-id=ID Set distribution-specific id (default=org.mozilla)"
  137. ac_help="$ac_help
  138. --disable-postscript Disable PostScript printing support "
  139. ac_help="$ac_help
  140. --disable-gnomevfs Disable GnomeVFS support "
  141. ac_help="$ac_help
  142. --disable-gnomeui Disable libgnomeui support (default: auto, optional at runtime) "
  143. ac_help="$ac_help
  144. --disable-dbus Disable dbus support "
  145. ac_help="$ac_help
  146. --disable-crypto Disable crypto support (Personal Security Manager)"
  147. ac_help="$ac_help
  148. --disable-jsd Disable JavaScript debug library"
  149. ac_help="$ac_help
  150. --disable-plugins Disable plugins support"
  151. ac_help="$ac_help
  152. --disable-oji Disable Open JVM Integration support"
  153. ac_help="$ac_help
  154. --enable-ctl Enable Thai Complex Script support"
  155. ac_help="$ac_help
  156. --disable-view-source Disable view source support"
  157. ac_help="$ac_help
  158. --disable-accessibility Disable accessibility support (off by default on OS X)"
  159. ac_help="$ac_help
  160. --disable-xpfe-components
  161. Disable xpfe components"
  162. ac_help="$ac_help
  163. --disable-xpinstall Disable xpinstall support"
  164. ac_help="$ac_help
  165. --disable-jsloader Disable xpcom js loader support"
  166. ac_help="$ac_help
  167. --disable-printing Disable printing support"
  168. ac_help="$ac_help
  169. --enable-native-uconv Enable iconv support"
  170. ac_help="$ac_help
  171. --enable-plaintext-editor-only
  172. Allow only plaintext editing"
  173. ac_help="$ac_help
  174. --disable-composer Disable building of Composer"
  175. ac_help="$ac_help
  176. --disable-xpcom-obsolete Disable XPCOM Obsolete Library"
  177. ac_help="$ac_help
  178. --disable-xpcom-fastload Disable XPCOM fastload support"
  179. ac_help="$ac_help
  180. --disable-permissions Disable permissions (popup and cookie blocking)"
  181. ac_help="$ac_help
  182. --disable-negotiateauth Disable GSS-API negotiation "
  183. ac_help="$ac_help
  184. --disable-xtf Disable XTF (pluggable xml tags) support"
  185. ac_help="$ac_help
  186. --disable-inspector-apis Disable the DOM inspection APIs "
  187. ac_help="$ac_help
  188. --disable-xmlextras Disable XMLExtras such as XPointer support "
  189. ac_help="$ac_help
  190. --enable-webservices Enable Webservices/SOAP support "
  191. ac_help="$ac_help
  192. --disable-pref-extensions
  193. Disable pref extensions such as autoconfig and
  194. system-pref"
  195. ac_help="$ac_help
  196. --disable-universalchardet
  197. Disable universal encoding detection"
  198. ac_help="$ac_help
  199. --enable-javaxpcom
  200. Enable Java-XPCOM bridge"
  201. ac_help="$ac_help
  202. --disable-crashreporter Disable breakpad crash reporting"
  203. ac_help="$ac_help
  204. --with-crashreporter-enable-percent=NN Enable sending crash reports by default on NN% of users. (default=100)"
  205. ac_help="$ac_help
  206. --disable-mochitest Disable mochitest harness"
  207. ac_help="$ac_help
  208. --enable-extensions Enable extensions"
  209. ac_help="$ac_help
  210. --enable-image-decoders[={mod1,mod2,default,all,none}]
  211. Enable specific image decoders"
  212. ac_help="$ac_help
  213. --enable-image-encoders[={mod1,mod2,default,all,none}]
  214. Enable specific image encoders"
  215. ac_help="$ac_help
  216. --enable-ldap-experimental
  217. Enable LDAP experimental features"
  218. ac_help="$ac_help
  219. --disable-mathml Disable MathML support"
  220. ac_help="$ac_help
  221. --disable-canvas Disable html:canvas feature"
  222. ac_help="$ac_help
  223. --disable-svg Disable SVG support"
  224. ac_help="$ac_help
  225. --disable-svg-foreignobject
  226. Disable SVG <foreignObject> support"
  227. ac_help="$ac_help
  228. --disable-installer Disable building of installer"
  229. ac_help="$ac_help
  230. --disable-updater Disable building of updater"
  231. ac_help="$ac_help
  232. --enable-update-channel=CHANNEL
  233. Select application update channel (default=default)"
  234. ac_help="$ac_help
  235. --enable-update-packaging
  236. Enable tools/update-packaging"
  237. ac_help="$ac_help
  238. --disable-xpconnect-idispatch
  239. Disable building of xpconnect support for IDispatch
  240. (win32 only)"
  241. ac_help="$ac_help
  242. --disable-activex Disable building of ActiveX control (win32 only)"
  243. ac_help="$ac_help
  244. --disable-activex-scripting
  245. Disable building of ActiveX scripting support (win32)"
  246. ac_help="$ac_help
  247. --enable-leaky Build leaky memory tool"
  248. ac_help="$ac_help
  249. --enable-xpctools Build JS profiling tool"
  250. ac_help="$ac_help
  251. --disable-tests Do not build test libraries & programs"
  252. ac_help="$ac_help
  253. --disable-parental-controls
  254. Do not build parental controls"
  255. ac_help="$ac_help
  256. --disable-vista-sdk-requirements
  257. Do not build Vista SDK specific code"
  258. ac_help="$ac_help
  259. --enable-xpcom-lea Use Lea malloc in xpcom "
  260. ac_help="$ac_help
  261. --enable-places Enable 'places' bookmark/history implementation"
  262. ac_help="$ac_help
  263. --disable-feeds Disable feed handling and processing components"
  264. ac_help="$ac_help
  265. --enable-storage Enable mozStorage module and related components"
  266. ac_help="$ac_help
  267. --enable-system-sqlite Use system sqlite (located with pkgconfig)"
  268. ac_help="$ac_help
  269. --enable-help-viewer Enable help viewer"
  270. ac_help="$ac_help
  271. --enable-safe-browsing Enable safe browsing (anti-phishing) implementation"
  272. ac_help="$ac_help
  273. --enable-url-classifier Enable url classifier module"
  274. ac_help="$ac_help
  275. --disable-zipwriter Disable zipwriter component"
  276. ac_help="$ac_help
  277. --enable-js-ultrasparc Use UltraSPARC optimizations in JS"
  278. ac_help="$ac_help
  279. --enable-debug[=DBG] Enable building with developer debug info
  280. (Using compiler flags DBG)"
  281. ac_help="$ac_help
  282. --disable-optimize Disable compiler optimization
  283. --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]"
  284. ac_help="$ac_help
  285. --enable-debug-modules Enable/disable debug info for specific modules"
  286. ac_help="$ac_help
  287. --enable-debugger-info-modules
  288. Enable/disable debugger info for specific modules"
  289. ac_help="$ac_help
  290. --enable-boehm Enable the Boehm Garbage Collector"
  291. ac_help="$ac_help
  292. --disable-logging Disable logging facilities"
  293. ac_help="$ac_help
  294. --enable-logrefcnt Enable logging of refcounts (default=debug) "
  295. ac_help="$ac_help
  296. --enable-trace-malloc Enable malloc tracing"
  297. ac_help="$ac_help
  298. --enable-jemalloc Replace memory allocator with jemalloc"
  299. ac_help="$ac_help
  300. --with-valgrind Enable valgrind integration hooks"
  301. ac_help="$ac_help
  302. --enable-wrap-malloc Wrap malloc calls (gnu linker only)"
  303. ac_help="$ac_help
  304. --with-wrap-malloc=DIR Location of malloc wrapper library"
  305. ac_help="$ac_help
  306. --enable-efence Link with Electric Fence"
  307. ac_help="$ac_help
  308. --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof)"
  309. ac_help="$ac_help
  310. --enable-shark Enable shark remote profiling (needs CHUD framework)"
  311. ac_help="$ac_help
  312. --enable-strip Enable stripping of libs & executables "
  313. ac_help="$ac_help
  314. --enable-install-strip Enable stripping of libs & executables when packaging "
  315. ac_help="$ac_help
  316. --enable-elf-dynstr-gc Enable elf dynstr garbage collector (opt builds only)"
  317. ac_help="$ac_help
  318. --enable-old-abi-compat-wrappers
  319. Support old GCC ABI symbols to ease the pain
  320. of the linux compiler change"
  321. ac_help="$ac_help
  322. --enable-prebinding Enable prebinding (Mac OS X only)"
  323. ac_help="$ac_help
  324. --enable-timeline Enable timeline services "
  325. ac_help="$ac_help
  326. --enable-reflow-perf Enable reflow performance tracing"
  327. ac_help="$ac_help
  328. --enable-perf-metrics Enable performance metrics"
  329. ac_help="$ac_help
  330. --enable-codesighs Enable code size analysis tools"
  331. ac_help="$ac_help
  332. --enable-eazel-profiler-support
  333. Enable Corel/Eazel profiler support"
  334. ac_help="$ac_help
  335. --enable-profile-modules
  336. Enable/disable profiling for specific modules"
  337. ac_help="$ac_help
  338. --enable-insure Enable insure++ instrumentation (linux only)"
  339. ac_help="$ac_help
  340. --with-insure-dirs=DIRS
  341. Dirs to instrument with insure "
  342. ac_help="$ac_help
  343. --with-insure-exclude-dirs=DIRS
  344. Dirs to not instrument with insure "
  345. ac_help="$ac_help
  346. --enable-quantify Enable Quantify support (Windows only) "
  347. ac_help="$ac_help
  348. --enable-xterm-updates Update XTERM titles with current command."
  349. ac_help="$ac_help
  350. --enable-chrome-format=jar|flat|both|symlink
  351. Select FORMAT of chrome files (default=jar)"
  352. ac_help="$ac_help
  353. --with-default-mozilla-five-home
  354. Set the default value for MOZILLA_FIVE_HOME"
  355. ac_help="$ac_help
  356. --with-user-appdir=DIR Set user-specific appdir (default=.mozilla)"
  357. ac_help="$ac_help
  358. --with-doc-input-dirs=DIRS
  359. Header/idl dirs to create docs from"
  360. ac_help="$ac_help
  361. --with-doc-include-dirs=DIRS
  362. Include dirs to preprocess doc headers"
  363. ac_help="$ac_help
  364. --with-doc-output-dir=DIR
  365. Dir to generate docs into"
  366. ac_help="$ac_help
  367. --enable-long-long-warning
  368. Warn about use of non-ANSI long long type"
  369. ac_help="$ac_help
  370. --disable-profile-guided-optimization
  371. Don't build with PGO even if called via make profiledbuild"
  372. ac_help="$ac_help
  373. --disable-pedantic Issue all warnings demanded by strict ANSI C "
  374. ac_help="$ac_help
  375. --enable-cpp-rtti Enable C++ RTTI "
  376. ac_help="$ac_help
  377. --enable-cpp-exceptions Enable C++ exceptions "
  378. ac_help="$ac_help
  379. --disable-auto-deps Do not automatically generate dependency info"
  380. ac_help="$ac_help
  381. --disable-md Do not use compiler-based dependencies "
  382. ac_help="$ac_help
  383. --enable-static Enable building of internal static libs"
  384. ac_help="$ac_help
  385. --enable-libxul Enable building of libxul"
  386. ac_help="$ac_help
  387. --enable-js-static-build Force js to be a static lib"
  388. ac_help="$ac_help
  389. --enable-static-mail Enable static mail build support"
  390. ac_help="$ac_help
  391. --without-libIDL Skip check for libIDL (standalone modules only)"
  392. ac_help="$ac_help
  393. --with-libIDL-prefix=PFX
  394. Prefix where libIDL is installed (optional)"
  395. ac_help="$ac_help
  396. --with-libIDL-exec-prefix=PFX
  397. Exec prefix where libIDL is installed (optional)"
  398. ac_help="$ac_help
  399. --disable-libIDLtest Do not try to compile and run a test libIDL program"
  400. ac_help="$ac_help
  401. --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
  402. ac_help="$ac_help
  403. --with-glib-exec-prefix=PFX
  404. Exec prefix where GLIB is installed (optional)"
  405. ac_help="$ac_help
  406. --disable-glibtest Do not try to compile and run a test GLIB program"
  407. ac_help="$ac_help
  408. --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
  409. ac_help="$ac_help
  410. --with-glib-exec-prefix=PFX
  411. Exec prefix where GLIB is installed (optional)"
  412. ac_help="$ac_help
  413. --disable-glibtest Do not try to compile and run a test GLIB program"
  414. ac_help="$ac_help
  415. --enable-system-cairo Use system cairo (located with pkgconfig)"
  416. ac_help="$ac_help
  417. --enable-system-lcms Use system lcms (located with pkgconfig)"
  418. ac_help="$ac_help
  419. --disable-xul Disable XUL"
  420. ac_help="$ac_help
  421. --disable-profilesharing Disable profile sharing"
  422. ac_help="$ac_help
  423. --enable-ipcd Enable IPC daemon"
  424. ac_help="$ac_help
  425. --disable-profilelocking Disable profile locking"
  426. ac_help="$ac_help
  427. --disable-rdf Disable RDF"
  428. ac_help="$ac_help
  429. --enable-necko-protocols[={http,ftp,default,all,none}]
  430. Enable/disable specific protocol handlers"
  431. ac_help="$ac_help
  432. --disable-necko-disk-cache
  433. Disable necko disk cache"
  434. ac_help="$ac_help
  435. --enable-necko-small-buffers
  436. Minimize size of necko's i/o buffers"
  437. ac_help="$ac_help
  438. --disable-cookies Disable cookie support"
  439. ac_help="$ac_help
  440. --disable-v1-string-abi Disable binary compatibility layer for strings"
  441. # Initialize some variables set by options.
  442. # The variables have the same names as the options, with
  443. # dashes changed to underlines.
  444. build=NONE
  445. cache_file=./config.cache
  446. exec_prefix=NONE
  447. host=NONE
  448. no_create=
  449. nonopt=NONE
  450. no_recursion=
  451. prefix=NONE
  452. program_prefix=NONE
  453. program_suffix=NONE
  454. program_transform_name=s,x,x,
  455. silent=
  456. site=
  457. srcdir=
  458. target=NONE
  459. verbose=
  460. x_includes=NONE
  461. x_libraries=NONE
  462. bindir='${exec_prefix}/bin'
  463. sbindir='${exec_prefix}/sbin'
  464. libexecdir='${exec_prefix}/libexec'
  465. datadir='${prefix}/share'
  466. sysconfdir='${prefix}/etc'
  467. sharedstatedir='${prefix}/com'
  468. localstatedir='${prefix}/var'
  469. libdir='${exec_prefix}/lib'
  470. includedir='${prefix}/include'
  471. oldincludedir='/usr/include'
  472. infodir='${prefix}/info'
  473. mandir='${prefix}/man'
  474. # Initialize some other variables.
  475. subdirs=
  476. MFLAGS= MAKEFLAGS=
  477. SHELL=${CONFIG_SHELL-/bin/sh}
  478. # Maximum number of lines to put in a shell here document.
  479. ac_max_here_lines=12
  480. ac_prev=
  481. for ac_option
  482. do
  483. # If the previous option needs an argument, assign it.
  484. if test -n "$ac_prev"; then
  485. eval "$ac_prev=\$ac_option"
  486. ac_prev=
  487. continue
  488. fi
  489. case "$ac_option" in
  490. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  491. *) ac_optarg= ;;
  492. esac
  493. # Accept the important Cygnus configure options, so we can diagnose typos.
  494. case "$ac_option" in
  495. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  496. ac_prev=bindir ;;
  497. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  498. bindir="$ac_optarg" ;;
  499. -build | --build | --buil | --bui | --bu)
  500. ac_prev=build ;;
  501. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  502. build="$ac_optarg" ;;
  503. -cache-file | --cache-file | --cache-fil | --cache-fi \
  504. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  505. ac_prev=cache_file ;;
  506. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  507. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  508. cache_file="$ac_optarg" ;;
  509. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  510. ac_prev=datadir ;;
  511. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  512. | --da=*)
  513. datadir="$ac_optarg" ;;
  514. -disable-* | --disable-*)
  515. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  516. # Reject names that are not valid shell variable names.
  517. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  518. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  519. fi
  520. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  521. eval "enable_${ac_feature}=no" ;;
  522. -enable-* | --enable-*)
  523. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  524. # Reject names that are not valid shell variable names.
  525. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  526. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  527. fi
  528. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  529. case "$ac_option" in
  530. *=*) ;;
  531. *) ac_optarg=yes ;;
  532. esac
  533. eval "enable_${ac_feature}='$ac_optarg'" ;;
  534. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  535. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  536. | --exec | --exe | --ex)
  537. ac_prev=exec_prefix ;;
  538. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  539. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  540. | --exec=* | --exe=* | --ex=*)
  541. exec_prefix="$ac_optarg" ;;
  542. -gas | --gas | --ga | --g)
  543. # Obsolete; use --with-gas.
  544. with_gas=yes ;;
  545. -help | --help | --hel | --he)
  546. # Omit some internal or obsolete options to make the list less imposing.
  547. # This message is too long to be a string in the A/UX 3.1 sh.
  548. cat << EOF
  549. Usage: configure [options] [host]
  550. Options: [defaults in brackets after descriptions]
  551. Configuration:
  552. --cache-file=FILE cache test results in FILE
  553. --help print this message
  554. --no-create do not create output files
  555. --quiet, --silent do not print \`checking...' messages
  556. --version print the version of autoconf that created configure
  557. Directory and file names:
  558. --prefix=PREFIX install architecture-independent files in PREFIX
  559. [$ac_default_prefix]
  560. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  561. [same as prefix]
  562. --bindir=DIR user executables in DIR [EPREFIX/bin]
  563. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  564. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  565. --datadir=DIR read-only architecture-independent data in DIR
  566. [PREFIX/share]
  567. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  568. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  569. [PREFIX/com]
  570. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  571. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  572. --includedir=DIR C header files in DIR [PREFIX/include]
  573. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  574. --infodir=DIR info documentation in DIR [PREFIX/info]
  575. --mandir=DIR man documentation in DIR [PREFIX/man]
  576. --srcdir=DIR find the sources in DIR [configure dir or ..]
  577. --program-prefix=PREFIX prepend PREFIX to installed program names
  578. --program-suffix=SUFFIX append SUFFIX to installed program names
  579. --program-transform-name=PROGRAM
  580. run sed PROGRAM on installed program names
  581. EOF
  582. cat << EOF
  583. Host type:
  584. --build=BUILD configure for building on BUILD [BUILD=HOST]
  585. --host=HOST configure for HOST [guessed]
  586. --target=TARGET configure for TARGET [TARGET=HOST]
  587. Features and packages:
  588. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  589. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  590. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  591. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  592. --x-includes=DIR X include files are in DIR
  593. --x-libraries=DIR X library files are in DIR
  594. EOF
  595. if test -n "$ac_help"; then
  596. echo "--enable and --with options recognized:$ac_help"
  597. fi
  598. exit 0 ;;
  599. -host | --host | --hos | --ho)
  600. ac_prev=host ;;
  601. -host=* | --host=* | --hos=* | --ho=*)
  602. host="$ac_optarg" ;;
  603. -includedir | --includedir | --includedi | --included | --include \
  604. | --includ | --inclu | --incl | --inc)
  605. ac_prev=includedir ;;
  606. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  607. | --includ=* | --inclu=* | --incl=* | --inc=*)
  608. includedir="$ac_optarg" ;;
  609. -infodir | --infodir | --infodi | --infod | --info | --inf)
  610. ac_prev=infodir ;;
  611. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  612. infodir="$ac_optarg" ;;
  613. -libdir | --libdir | --libdi | --libd)
  614. ac_prev=libdir ;;
  615. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  616. libdir="$ac_optarg" ;;
  617. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  618. | --libexe | --libex | --libe)
  619. ac_prev=libexecdir ;;
  620. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  621. | --libexe=* | --libex=* | --libe=*)
  622. libexecdir="$ac_optarg" ;;
  623. -localstatedir | --localstatedir | --localstatedi | --localstated \
  624. | --localstate | --localstat | --localsta | --localst \
  625. | --locals | --local | --loca | --loc | --lo)
  626. ac_prev=localstatedir ;;
  627. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  628. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  629. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  630. localstatedir="$ac_optarg" ;;
  631. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  632. ac_prev=mandir ;;
  633. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  634. mandir="$ac_optarg" ;;
  635. -nfp | --nfp | --nf)
  636. # Obsolete; use --without-fp.
  637. with_fp=no ;;
  638. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  639. | --no-cr | --no-c)
  640. no_create=yes ;;
  641. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  642. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  643. no_recursion=yes ;;
  644. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  645. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  646. | --oldin | --oldi | --old | --ol | --o)
  647. ac_prev=oldincludedir ;;
  648. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  649. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  650. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  651. oldincludedir="$ac_optarg" ;;
  652. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  653. ac_prev=prefix ;;
  654. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  655. prefix="$ac_optarg" ;;
  656. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  657. | --program-pre | --program-pr | --program-p)
  658. ac_prev=program_prefix ;;
  659. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  660. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  661. program_prefix="$ac_optarg" ;;
  662. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  663. | --program-suf | --program-su | --program-s)
  664. ac_prev=program_suffix ;;
  665. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  666. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  667. program_suffix="$ac_optarg" ;;
  668. -program-transform-name | --program-transform-name \
  669. | --program-transform-nam | --program-transform-na \
  670. | --program-transform-n | --program-transform- \
  671. | --program-transform | --program-transfor \
  672. | --program-transfo | --program-transf \
  673. | --program-trans | --program-tran \
  674. | --progr-tra | --program-tr | --program-t)
  675. ac_prev=program_transform_name ;;
  676. -program-transform-name=* | --program-transform-name=* \
  677. | --program-transform-nam=* | --program-transform-na=* \
  678. | --program-transform-n=* | --program-transform-=* \
  679. | --program-transform=* | --program-transfor=* \
  680. | --program-transfo=* | --program-transf=* \
  681. | --program-trans=* | --program-tran=* \
  682. | --progr-tra=* | --program-tr=* | --program-t=*)
  683. program_transform_name="$ac_optarg" ;;
  684. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  685. | -silent | --silent | --silen | --sile | --sil)
  686. silent=yes ;;
  687. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  688. ac_prev=sbindir ;;
  689. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  690. | --sbi=* | --sb=*)
  691. sbindir="$ac_optarg" ;;
  692. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  693. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  694. | --sharedst | --shareds | --shared | --share | --shar \
  695. | --sha | --sh)
  696. ac_prev=sharedstatedir ;;
  697. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  698. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  699. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  700. | --sha=* | --sh=*)
  701. sharedstatedir="$ac_optarg" ;;
  702. -site | --site | --sit)
  703. ac_prev=site ;;
  704. -site=* | --site=* | --sit=*)
  705. site="$ac_optarg" ;;
  706. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  707. ac_prev=srcdir ;;
  708. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  709. srcdir="$ac_optarg" ;;
  710. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  711. | --syscon | --sysco | --sysc | --sys | --sy)
  712. ac_prev=sysconfdir ;;
  713. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  714. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  715. sysconfdir="$ac_optarg" ;;
  716. -target | --target | --targe | --targ | --tar | --ta | --t)
  717. ac_prev=target ;;
  718. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  719. target="$ac_optarg" ;;
  720. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  721. verbose=yes ;;
  722. -version | --version | --versio | --versi | --vers)
  723. echo "configure generated by autoconf version 2.13"
  724. exit 0 ;;
  725. -with-* | --with-*)
  726. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  727. # Reject names that are not valid shell variable names.
  728. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  729. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  730. fi
  731. ac_package=`echo $ac_package| sed 's/-/_/g'`
  732. case "$ac_option" in
  733. *=*) ;;
  734. *) ac_optarg=yes ;;
  735. esac
  736. eval "with_${ac_package}='$ac_optarg'" ;;
  737. -without-* | --without-*)
  738. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  739. # Reject names that are not valid shell variable names.
  740. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  741. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  742. fi
  743. ac_package=`echo $ac_package| sed 's/-/_/g'`
  744. eval "with_${ac_package}=no" ;;
  745. --x)
  746. # Obsolete; use --with-x.
  747. with_x=yes ;;
  748. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  749. | --x-incl | --x-inc | --x-in | --x-i)
  750. ac_prev=x_includes ;;
  751. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  752. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  753. x_includes="$ac_optarg" ;;
  754. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  755. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  756. ac_prev=x_libraries ;;
  757. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  758. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  759. x_libraries="$ac_optarg" ;;
  760. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  761. ;;
  762. *)
  763. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  764. echo "configure: warning: $ac_option: invalid host type" 1>&2
  765. fi
  766. if test "x$nonopt" != xNONE; then
  767. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  768. fi
  769. nonopt="$ac_option"
  770. ;;
  771. esac
  772. done
  773. if test -n "$ac_prev"; then
  774. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  775. fi
  776. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  777. # File descriptor usage:
  778. # 0 standard input
  779. # 1 file creation
  780. # 2 errors and warnings
  781. # 3 some systems may open it to /dev/tty
  782. # 4 used on the Kubota Titan
  783. # 6 checking for... messages and results
  784. # 5 compiler messages saved in config.log
  785. if test "$silent" = yes; then
  786. exec 6>/dev/null
  787. else
  788. exec 6>&1
  789. fi
  790. exec 5>./config.log
  791. echo "\
  792. This file contains any messages produced by compilers while
  793. running configure, to aid debugging if configure makes a mistake.
  794. " 1>&5
  795. # Strip out --no-create and --no-recursion so they do not pile up.
  796. # Also quote any args containing shell metacharacters.
  797. ac_configure_args=
  798. for ac_arg
  799. do
  800. case "$ac_arg" in
  801. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  802. | --no-cr | --no-c) ;;
  803. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  804. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  805. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  806. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  807. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  808. esac
  809. done
  810. # NLS nuisances.
  811. # Only set these to C if already set. These must not be set unconditionally
  812. # because not all systems understand e.g. LANG=C (notably SCO).
  813. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  814. # Non-C LC_CTYPE values break the ctype check.
  815. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  816. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  817. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  818. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  819. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  820. rm -rf conftest* confdefs.h
  821. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  822. echo > confdefs.h
  823. # A filename unique to this package, relative to the directory that
  824. # configure is in, which we can look for to find out if srcdir is correct.
  825. ac_unique_file=config/config.mk
  826. # Find the source files, if location was not specified.
  827. if test -z "$srcdir"; then
  828. ac_srcdir_defaulted=yes
  829. # Try the directory containing this script, then its parent.
  830. ac_prog=$0
  831. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  832. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  833. srcdir=$ac_confdir
  834. if test ! -r $srcdir/$ac_unique_file; then
  835. srcdir=..
  836. fi
  837. else
  838. ac_srcdir_defaulted=no
  839. fi
  840. if test ! -r $srcdir/$ac_unique_file; then
  841. if test "$ac_srcdir_defaulted" = yes; then
  842. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  843. else
  844. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  845. fi
  846. fi
  847. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  848. # Prefer explicitly selected file to automatically selected ones.
  849. if test -z "$CONFIG_SITE"; then
  850. if test "x$prefix" != xNONE; then
  851. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  852. else
  853. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  854. fi
  855. fi
  856. for ac_site_file in $CONFIG_SITE; do
  857. if test -r "$ac_site_file"; then
  858. echo "loading site script $ac_site_file"
  859. . "$ac_site_file"
  860. fi
  861. done
  862. if test -r "$cache_file"; then
  863. echo "loading cache $cache_file"
  864. . $cache_file
  865. else
  866. echo "creating cache $cache_file"
  867. > $cache_file
  868. fi
  869. ac_ext=c
  870. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  871. ac_cpp='$CPP $CPPFLAGS'
  872. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  873. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  874. cross_compiling=$ac_cv_prog_cc_cross
  875. ac_exeext=
  876. ac_objext=o
  877. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  878. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  879. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  880. ac_n= ac_c='
  881. ' ac_t=' '
  882. else
  883. ac_n=-n ac_c= ac_t=
  884. fi
  885. else
  886. ac_n= ac_c='\c' ac_t=
  887. fi
  888. ac_aux_dir=
  889. for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do
  890. if test -f $ac_dir/install-sh; then
  891. ac_aux_dir=$ac_dir
  892. ac_install_sh="$ac_aux_dir/install-sh -c"
  893. break
  894. elif test -f $ac_dir/install.sh; then
  895. ac_aux_dir=$ac_dir
  896. ac_install_sh="$ac_aux_dir/install.sh -c"
  897. break
  898. fi
  899. done
  900. if test -z "$ac_aux_dir"; then
  901. { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; exit 1; }
  902. fi
  903. ac_config_guess=$ac_aux_dir/config.guess
  904. ac_config_sub=$ac_aux_dir/config.sub
  905. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  906. # Do some error checking and defaulting for the host and target type.
  907. # The inputs are:
  908. # configure --host=HOST --target=TARGET --build=BUILD NONOPT
  909. #
  910. # The rules are:
  911. # 1. You are not allowed to specify --host, --target, and nonopt at the
  912. # same time.
  913. # 2. Host defaults to nonopt.
  914. # 3. If nonopt is not specified, then host defaults to the current host,
  915. # as determined by config.guess.
  916. # 4. Target and build default to nonopt.
  917. # 5. If nonopt is not specified, then target and build default to host.
  918. # The aliases save the names the user supplied, while $host etc.
  919. # will get canonicalized.
  920. case $host---$target---$nonopt in
  921. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  922. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  923. esac
  924. # Make sure we can run config.sub.
  925. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  926. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  927. fi
  928. echo $ac_n "checking host system type""... $ac_c" 1>&6
  929. echo "configure:1002: checking host system type" >&5
  930. host_alias=$host
  931. case "$host_alias" in
  932. NONE)
  933. case $nonopt in
  934. NONE)
  935. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  936. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  937. fi ;;
  938. *) host_alias=$nonopt ;;
  939. esac ;;
  940. esac
  941. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  942. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  943. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  944. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  945. echo "$ac_t""$host" 1>&6
  946. echo $ac_n "checking target system type""... $ac_c" 1>&6
  947. echo "configure:1023: checking target system type" >&5
  948. target_alias=$target
  949. case "$target_alias" in
  950. NONE)
  951. case $nonopt in
  952. NONE) target_alias=$host_alias ;;
  953. *) target_alias=$nonopt ;;
  954. esac ;;
  955. esac
  956. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  957. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  958. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  959. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  960. echo "$ac_t""$target" 1>&6
  961. echo $ac_n "checking build system type""... $ac_c" 1>&6
  962. echo "configure:1041: checking build system type" >&5
  963. build_alias=$build
  964. case "$build_alias" in
  965. NONE)
  966. case $nonopt in
  967. NONE) build_alias=$host_alias ;;
  968. *) build_alias=$nonopt ;;
  969. esac ;;
  970. esac
  971. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  972. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  973. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  974. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  975. echo "$ac_t""$build" 1>&6
  976. test "$host_alias" != "$target_alias" &&
  977. test "$program_prefix$program_suffix$program_transform_name" = \
  978. NONENONEs,x,x, &&
  979. program_prefix=${target_alias}-
  980. TARGET_CPU="${target_cpu}"
  981. TARGET_VENDOR="${target_vendor}"
  982. TARGET_OS="${target_os}"
  983. CFLAGS="${CFLAGS=}"
  984. CPPFLAGS="${CPPFLAGS=}"
  985. CXXFLAGS="${CXXFLAGS=}"
  986. LDFLAGS="${LDFLAGS=}"
  987. HOST_CFLAGS="${HOST_CFLAGS=}"
  988. HOST_CXXFLAGS="${HOST_CXXFLAGS=}"
  989. HOST_LDFLAGS="${HOST_LDFLAGS=}"
  990. _SUBDIR_CC="$CC"
  991. _SUBDIR_CXX="$CXX"
  992. _SUBDIR_CFLAGS="$CFLAGS"
  993. _SUBDIR_CPPFLAGS="$CPPFLAGS"
  994. _SUBDIR_CXXFLAGS="$CXXFLAGS"
  995. _SUBDIR_LDFLAGS="$LDFLAGS"
  996. _SUBDIR_HOST_CC="$HOST_CC"
  997. _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS"
  998. _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS"
  999. _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS"
  1000. _SUBDIR_CONFIG_ARGS="$ac_configure_args"
  1001. MOZJPEG=62
  1002. MOZPNG=10217
  1003. MOZZLIB=0x1230
  1004. NSPR_VERSION=4
  1005. NSS_VERSION=3
  1006. GLIB_VERSION=1.2.0
  1007. LIBIDL_VERSION=0.6.3
  1008. PERL_VERSION=5.006
  1009. LIBART_VERSION=2.3.4
  1010. CAIRO_VERSION=1.6.0
  1011. GLITZ_VERSION=0.4.0
  1012. PANGO_VERSION=1.10.0
  1013. GTK2_VERSION=2.10.0
  1014. MAKE_VERSION=3.78
  1015. WINDRES_VERSION=2.14.90
  1016. W32API_VERSION=3.8
  1017. GNOMEVFS_VERSION=2.0
  1018. GNOMEUI_VERSION=2.2.0
  1019. GCONF_VERSION=1.2.1
  1020. LIBGNOME_VERSION=2.0
  1021. STARTUP_NOTIFICATION_VERSION=0.8
  1022. DBUS_VERSION=0.60
  1023. LCMS_VERSION=1.17
  1024. SQLITE_VERSION=3.6.10
  1025. MSMANIFEST_TOOL=
  1026. MISSING_X=
  1027. for ac_prog in mawk gawk nawk awk
  1028. do
  1029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1030. set dummy $ac_prog; ac_word=$2
  1031. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1032. echo "configure:1121: checking for $ac_word" >&5
  1033. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  1034. echo $ac_n "(cached) $ac_c" 1>&6
  1035. else
  1036. if test -n "$AWK"; then
  1037. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1038. else
  1039. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1040. ac_dummy="$PATH"
  1041. for ac_dir in $ac_dummy; do
  1042. test -z "$ac_dir" && ac_dir=.
  1043. if test -f $ac_dir/$ac_word; then
  1044. ac_cv_prog_AWK="$ac_prog"
  1045. break
  1046. fi
  1047. done
  1048. IFS="$ac_save_ifs"
  1049. fi
  1050. fi
  1051. AWK="$ac_cv_prog_AWK"
  1052. if test -n "$AWK"; then
  1053. echo "$ac_t""$AWK" 1>&6
  1054. else
  1055. echo "$ac_t""no" 1>&6
  1056. fi
  1057. test -n "$AWK" && break
  1058. done
  1059. USE_PTHREADS=
  1060. _PTHREAD_LDFLAGS=""
  1061. _topsrcdir=`cd \`dirname $0\`; pwd`
  1062. _objdir=`pwd`
  1063. if test "$_topsrcdir" != "$_objdir"
  1064. then
  1065. # Check for a couple representative files in the source tree
  1066. _conflict_files=
  1067. for file in $_topsrcdir/Makefile $_topsrcdir/config/autoconf.mk; do
  1068. if test -f $file; then
  1069. _conflict_files="$_conflict_files $file"
  1070. fi
  1071. done
  1072. if test "$_conflict_files"; then
  1073. echo "***"
  1074. echo "* Your source tree contains these files:"
  1075. for file in $_conflict_files; do
  1076. echo "* $file"
  1077. done
  1078. cat 1>&2 <<-EOF
  1079. * This indicates that you previously built in the source tree.
  1080. * A source tree build can confuse the separate objdir build.
  1081. *
  1082. * To clean up the source tree:
  1083. * 1. cd $_topsrcdir
  1084. * 2. gmake distclean
  1085. ***
  1086. EOF
  1087. exit 1
  1088. break
  1089. fi
  1090. fi
  1091. MOZ_BUILD_ROOT=`pwd`
  1092. if test -z "$CROSS_COMPILE"; then
  1093. case "$target" in
  1094. *-cygwin*|*-mingw*|*-msvc*|*-mks*)
  1095. MAKE_VERSION=3.79
  1096. if test -z "$CC"; then CC=cl; fi
  1097. if test -z "$CXX"; then CXX=cl; fi
  1098. if test -z "$CPP"; then CPP="cl -E -nologo"; fi
  1099. if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi
  1100. if test -z "$LD"; then LD=link; fi
  1101. if test -z "$MIDL"; then MIDL=midl; fi
  1102. if test -z "$AS"; then
  1103. case "$target" in
  1104. x86_64-*)
  1105. AS=ml64
  1106. ;;
  1107. *)
  1108. AS=ml
  1109. ;;
  1110. esac
  1111. fi
  1112. ;;
  1113. esac
  1114. fi
  1115. COMPILE_ENVIRONMENT=1
  1116. # Check whether --enable-compile-environment or --disable-compile-environment was given.
  1117. if test "${enable_compile_environment+set}" = set; then
  1118. enableval="$enable_compile_environment"
  1119. if test "$enableval" = "yes"; then
  1120. COMPILE_ENVIRONMENT=1
  1121. elif test "$enableval" = "no"; then
  1122. COMPILE_ENVIRONMENT=
  1123. else
  1124. { echo "configure: error: Option, compile-environment, does not take an argument ($enableval)." 1>&2; exit 1; }
  1125. fi
  1126. fi
  1127. # Check whether --with-l10n-base or --without-l10n-base was given.
  1128. if test "${with_l10n_base+set}" = set; then
  1129. withval="$with_l10n_base"
  1130. L10NBASEDIR=$withval
  1131. fi
  1132. if test ! -z "$L10NBASEDIR"; then
  1133. if test "$L10NBASEDIR" = "yes" -o "$L10NBASEDIR" = "no"; then
  1134. { echo "configure: error: --with-l10n-base must specify a path" 1>&2; exit 1; }
  1135. elif test -d "$L10NBASEDIR"; then
  1136. L10NBASEDIR=`cd "$L10NBASEDIR" && pwd`
  1137. else
  1138. { echo "configure: error: Invalid value --with-l10n-base, $L10NBASEDIR doesn't exist" 1>&2; exit 1; }
  1139. fi
  1140. else
  1141. L10NBASEDIR='$(topsrcdir)/../l10n'
  1142. fi
  1143. if test "$COMPILE_ENVIRONMENT"; then
  1144. case "$target" in
  1145. *wince)
  1146. echo -----------------------------------------------------------------------------
  1147. echo Building Windows CE Shunt Library and Tool Chain
  1148. echo -----------------------------------------------------------------------------
  1149. ac_exeext=.exe
  1150. echo -n "#define TOPSRCDIR \"" > $srcdir/build/wince/tools/topsrcdir.h
  1151. echo `cd "$_topsrcdir" && pwd -W | tr '\n' '\"'` >> $srcdir/build/wince/tools/topsrcdir.h
  1152. make -C $srcdir/build/wince/tools
  1153. echo -----------------------------------------------------------------------------
  1154. ;;
  1155. esac
  1156. if test -n "$CROSS_COMPILE" && test "$target" != "$host"; then
  1157. echo "cross compiling from $host to $target"
  1158. cross_compiling=yes
  1159. _SAVE_CC="$CC"
  1160. _SAVE_CFLAGS="$CFLAGS"
  1161. _SAVE_LDFLAGS="$LDFLAGS"
  1162. echo $ac_n "checking for host c compiler""... $ac_c" 1>&6
  1163. echo "configure:1273: checking for host c compiler" >&5
  1164. for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc
  1165. do
  1166. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1167. set dummy $ac_prog; ac_word=$2
  1168. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1169. echo "configure:1279: checking for $ac_word" >&5
  1170. if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
  1171. echo $ac_n "(cached) $ac_c" 1>&6
  1172. else
  1173. if test -n "$HOST_CC"; then
  1174. ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test.
  1175. else
  1176. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1177. ac_dummy="$PATH"
  1178. for ac_dir in $ac_dummy; do
  1179. test -z "$ac_dir" && ac_dir=.
  1180. if test -f $ac_dir/$ac_word; then
  1181. ac_cv_prog_HOST_CC="$ac_prog"
  1182. break
  1183. fi
  1184. done
  1185. IFS="$ac_save_ifs"
  1186. fi
  1187. fi
  1188. HOST_CC="$ac_cv_prog_HOST_CC"
  1189. if test -n "$HOST_CC"; then
  1190. echo "$ac_t""$HOST_CC" 1>&6
  1191. else
  1192. echo "$ac_t""no" 1>&6
  1193. fi
  1194. test -n "$HOST_CC" && break
  1195. done
  1196. test -n "$HOST_CC" || HOST_CC=""""
  1197. if test -z "$HOST_CC"; then
  1198. { echo "configure: error: no acceptable c compiler found in \$PATH" 1>&2; exit 1; }
  1199. fi
  1200. echo "$ac_t""$HOST_CC" 1>&6
  1201. echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6
  1202. echo "configure:1314: checking for host c++ compiler" >&5
  1203. for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc
  1204. do
  1205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1206. set dummy $ac_prog; ac_word=$2
  1207. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1208. echo "configure:1320: checking for $ac_word" >&5
  1209. if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then
  1210. echo $ac_n "(cached) $ac_c" 1>&6
  1211. else
  1212. if test -n "$HOST_CXX"; then
  1213. ac_cv_prog_HOST_CXX="$HOST_CXX" # Let the user override the test.
  1214. else
  1215. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1216. ac_dummy="$PATH"
  1217. for ac_dir in $ac_dummy; do
  1218. test -z "$ac_dir" && ac_dir=.
  1219. if test -f $ac_dir/$ac_word; then
  1220. ac_cv_prog_HOST_CXX="$ac_prog"
  1221. break
  1222. fi
  1223. done
  1224. IFS="$ac_save_ifs"
  1225. fi
  1226. fi
  1227. HOST_CXX="$ac_cv_prog_HOST_CXX"
  1228. if test -n "$HOST_CXX"; then
  1229. echo "$ac_t""$HOST_CXX" 1>&6
  1230. else
  1231. echo "$ac_t""no" 1>&6
  1232. fi
  1233. test -n "$HOST_CXX" && break
  1234. done
  1235. test -n "$HOST_CXX" || HOST_CXX=""""
  1236. if test -z "$HOST_CXX"; then
  1237. { echo "configure: error: no acceptable c++ compiler found in \$PATH" 1>&2; exit 1; }
  1238. fi
  1239. echo "$ac_t""$HOST_CXX" 1>&6
  1240. if test -z "$HOST_CFLAGS"; then
  1241. HOST_CFLAGS="$CFLAGS"
  1242. fi
  1243. if test -z "$HOST_CXXFLAGS"; then
  1244. HOST_CXXFLAGS="$CXXFLAGS"
  1245. fi
  1246. if test -z "$HOST_LDFLAGS"; then
  1247. HOST_LDFLAGS="$LDFLAGS"
  1248. fi
  1249. for ac_prog in $HOST_RANLIB ranlib
  1250. do
  1251. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1252. set dummy $ac_prog; ac_word=$2
  1253. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1254. echo "configure:1369: checking for $ac_word" >&5
  1255. if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then
  1256. echo $ac_n "(cached) $ac_c" 1>&6
  1257. else
  1258. if test -n "$HOST_RANLIB"; then
  1259. ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
  1260. else
  1261. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1262. ac_dummy=":"
  1263. for ac_dir in $ac_dummy; do
  1264. test -z "$ac_dir" && ac_dir=.
  1265. if test -f $ac_dir/$ac_word; then
  1266. ac_cv_prog_HOST_RANLIB="$ac_prog"
  1267. break
  1268. fi
  1269. done
  1270. IFS="$ac_save_ifs"
  1271. fi
  1272. fi
  1273. HOST_RANLIB="$ac_cv_prog_HOST_RANLIB"
  1274. if test -n "$HOST_RANLIB"; then
  1275. echo "$ac_t""$HOST_RANLIB" 1>&6
  1276. else
  1277. echo "$ac_t""no" 1>&6
  1278. fi
  1279. test -n "$HOST_RANLIB" && break
  1280. done
  1281. test -n "$HOST_RANLIB" || HOST_RANLIB="ranlib"
  1282. for ac_prog in $HOST_AR ar
  1283. do
  1284. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1285. set dummy $ac_prog; ac_word=$2
  1286. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1287. echo "configure:1404: checking for $ac_word" >&5
  1288. if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then
  1289. echo $ac_n "(cached) $ac_c" 1>&6
  1290. else
  1291. if test -n "$HOST_AR"; then
  1292. ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
  1293. else
  1294. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1295. ac_dummy=":"
  1296. for ac_dir in $ac_dummy; do
  1297. test -z "$ac_dir" && ac_dir=.
  1298. if test -f $ac_dir/$ac_word; then
  1299. ac_cv_prog_HOST_AR="$ac_prog"
  1300. break
  1301. fi
  1302. done
  1303. IFS="$ac_save_ifs"
  1304. fi
  1305. fi
  1306. HOST_AR="$ac_cv_prog_HOST_AR"
  1307. if test -n "$HOST_AR"; then
  1308. echo "$ac_t""$HOST_AR" 1>&6
  1309. else
  1310. echo "$ac_t""no" 1>&6
  1311. fi
  1312. test -n "$HOST_AR" && break
  1313. done
  1314. test -n "$HOST_AR" || HOST_AR="ar"
  1315. CC="$HOST_CC"
  1316. CFLAGS="$HOST_CFLAGS"
  1317. LDFLAGS="$HOST_LDFLAGS"
  1318. echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
  1319. echo "configure:1439: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
  1320. cat > conftest.$ac_ext <<EOF
  1321. #line 1441 "configure"
  1322. #include "confdefs.h"
  1323. int main() {
  1324. return(0);
  1325. ; return 0; }
  1326. EOF
  1327. if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1328. rm -rf conftest*
  1329. ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6
  1330. else
  1331. echo "configure: failed program was:" >&5
  1332. cat conftest.$ac_ext >&5
  1333. rm -rf conftest*
  1334. { echo "configure: error: installation or configuration problem: host compiler $HOST_CC cannot create executables." 1>&2; exit 1; }
  1335. fi
  1336. rm -f conftest*
  1337. CC="$HOST_CXX"
  1338. CFLAGS="$HOST_CXXFLAGS"
  1339. echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
  1340. echo "configure:1463: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
  1341. cat > conftest.$ac_ext <<EOF
  1342. #line 1465 "configure"
  1343. #include "confdefs.h"
  1344. int main() {
  1345. return(0);
  1346. ; return 0; }
  1347. EOF
  1348. if { (eval echo configure:1472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1349. rm -rf conftest*
  1350. ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6
  1351. else
  1352. echo "configure: failed program was:" >&5
  1353. cat conftest.$ac_ext >&5
  1354. rm -rf conftest*
  1355. { echo "configure: error: installation or configuration problem: host compiler $HOST_CXX cannot create executables." 1>&2; exit 1; }
  1356. fi
  1357. rm -f conftest*
  1358. CC=$_SAVE_CC
  1359. CFLAGS=$_SAVE_CFLAGS
  1360. LDFLAGS=$_SAVE_LDFLAGS
  1361. case "$build:$target" in
  1362. powerpc-apple-darwin8*:i?86-apple-darwin*)
  1363. _SAVE_CFLAGS=$CFLAGS
  1364. _SAVE_CXXFLAGS=$CXXLAGS
  1365. CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS"
  1366. CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS"
  1367. ;;
  1368. esac
  1369. for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
  1370. do
  1371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1372. set dummy $ac_prog; ac_word=$2
  1373. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1374. echo "configure:1501: checking for $ac_word" >&5
  1375. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1376. echo $ac_n "(cached) $ac_c" 1>&6
  1377. else
  1378. if test -n "$CC"; then
  1379. ac_cv_prog_CC="$CC" # Let the user override the test.
  1380. else
  1381. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1382. ac_dummy="$PATH"
  1383. for ac_dir in $ac_dummy; do
  1384. test -z "$ac_dir" && ac_dir=.
  1385. if test -f $ac_dir/$ac_word; then
  1386. ac_cv_prog_CC="$ac_prog"
  1387. break
  1388. fi
  1389. done
  1390. IFS="$ac_save_ifs"
  1391. fi
  1392. fi
  1393. CC="$ac_cv_prog_CC"
  1394. if test -n "$CC"; then
  1395. echo "$ac_t""$CC" 1>&6
  1396. else
  1397. echo "$ac_t""no" 1>&6
  1398. fi
  1399. test -n "$CC" && break
  1400. done
  1401. test -n "$CC" || CC=":"
  1402. unset ac_cv_prog_CC
  1403. # Extract the first word of "gcc", so it can be a program name with args.
  1404. set dummy gcc; ac_word=$2
  1405. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1406. echo "configure:1535: checking for $ac_word" >&5
  1407. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1408. echo $ac_n "(cached) $ac_c" 1>&6
  1409. else
  1410. if test -n "$CC"; then
  1411. ac_cv_prog_CC="$CC" # Let the user override the test.
  1412. else
  1413. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1414. ac_dummy="$PATH"
  1415. for ac_dir in $ac_dummy; do
  1416. test -z "$ac_dir" && ac_dir=.
  1417. if test -f $ac_dir/$ac_word; then
  1418. ac_cv_prog_CC="gcc"
  1419. break
  1420. fi
  1421. done
  1422. IFS="$ac_save_ifs"
  1423. fi
  1424. fi
  1425. CC="$ac_cv_prog_CC"
  1426. if test -n "$CC"; then
  1427. echo "$ac_t""$CC" 1>&6
  1428. else
  1429. echo "$ac_t""no" 1>&6
  1430. fi
  1431. if test -z "$CC"; then
  1432. # Extract the first word of "cc", so it can be a program name with args.
  1433. set dummy cc; ac_word=$2
  1434. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1435. echo "configure:1565: checking for $ac_word" >&5
  1436. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1437. echo $ac_n "(cached) $ac_c" 1>&6
  1438. else
  1439. if test -n "$CC"; then
  1440. ac_cv_prog_CC="$CC" # Let the user override the test.
  1441. else
  1442. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1443. ac_prog_rejected=no
  1444. ac_dummy="$PATH"
  1445. for ac_dir in $ac_dummy; do
  1446. test -z "$ac_dir" && ac_dir=.
  1447. if test -f $ac_dir/$ac_word; then
  1448. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1449. ac_prog_rejected=yes
  1450. continue
  1451. fi
  1452. ac_cv_prog_CC="cc"
  1453. break
  1454. fi
  1455. done
  1456. IFS="$ac_save_ifs"
  1457. if test $ac_prog_rejected = yes; then
  1458. # We found a bogon in the path, so make sure we never use it.
  1459. set dummy $ac_cv_prog_CC
  1460. shift
  1461. if test $# -gt 0; then
  1462. # We chose a different compiler from the bogus one.
  1463. # However, it has the same basename, so the bogon will be chosen
  1464. # first if we set CC to just the basename; use the full file name.
  1465. shift
  1466. set dummy "$ac_dir/$ac_word" "$@"
  1467. shift
  1468. ac_cv_prog_CC="$@"
  1469. fi
  1470. fi
  1471. fi
  1472. fi
  1473. CC="$ac_cv_prog_CC"
  1474. if test -n "$CC"; then
  1475. echo "$ac_t""$CC" 1>&6
  1476. else
  1477. echo "$ac_t""no" 1>&6
  1478. fi
  1479. if test -z "$CC"; then
  1480. case "`uname -s`" in
  1481. *win32* | *WIN32*)
  1482. # Extract the first word of "cl", so it can be a program name with args.
  1483. set dummy cl; ac_word=$2
  1484. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1485. echo "configure:1616: checking for $ac_word" >&5
  1486. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1487. echo $ac_n "(cached) $ac_c" 1>&6
  1488. else
  1489. if test -n "$CC"; then
  1490. ac_cv_prog_CC="$CC" # Let the user override the test.
  1491. else
  1492. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1493. ac_dummy="$PATH"
  1494. for ac_dir in $ac_dummy; do
  1495. test -z "$ac_dir" && ac_dir=.
  1496. if test -f $ac_dir/$ac_word; then
  1497. ac_cv_prog_CC="cl"
  1498. break
  1499. fi
  1500. done
  1501. IFS="$ac_save_ifs"
  1502. fi
  1503. fi
  1504. CC="$ac_cv_prog_CC"
  1505. if test -n "$CC"; then
  1506. echo "$ac_t""$CC" 1>&6
  1507. else
  1508. echo "$ac_t""no" 1>&6
  1509. fi
  1510. ;;
  1511. esac
  1512. fi
  1513. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1514. fi
  1515. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1516. echo "configure:1648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1517. ac_ext=c
  1518. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1519. ac_cpp='$CPP $CPPFLAGS'
  1520. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1521. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1522. cross_compiling=$ac_cv_prog_cc_cross
  1523. cat > conftest.$ac_ext << EOF
  1524. #line 1659 "configure"
  1525. #include "confdefs.h"
  1526. main(){return(0);}
  1527. EOF
  1528. if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1529. ac_cv_prog_cc_works=yes
  1530. # If we can't run a trivial program, we are probably using a cross compiler.
  1531. if (./conftest; exit) 2>/dev/null; then
  1532. ac_cv_prog_cc_cross=no
  1533. else
  1534. ac_cv_prog_cc_cross=yes
  1535. fi
  1536. else
  1537. echo "configure: failed program was:" >&5
  1538. cat conftest.$ac_ext >&5
  1539. ac_cv_prog_cc_works=no
  1540. fi
  1541. rm -fr conftest*
  1542. ac_ext=c
  1543. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1544. ac_cpp='$CPP $CPPFLAGS'
  1545. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1546. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1547. cross_compiling=$ac_cv_prog_cc_cross
  1548. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1549. if test $ac_cv_prog_cc_works = no; then
  1550. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1551. fi
  1552. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1553. echo "configure:1690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1554. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1555. cross_compiling=$ac_cv_prog_cc_cross
  1556. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1557. echo "configure:1695: checking whether we are using GNU C" >&5
  1558. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1559. echo $ac_n "(cached) $ac_c" 1>&6
  1560. else
  1561. cat > conftest.c <<EOF
  1562. #ifdef __GNUC__
  1563. yes;
  1564. #endif
  1565. EOF
  1566. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1567. ac_cv_prog_gcc=yes
  1568. else
  1569. ac_cv_prog_gcc=no
  1570. fi
  1571. fi
  1572. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1573. if test $ac_cv_prog_gcc = yes; then
  1574. GCC=yes
  1575. else
  1576. GCC=
  1577. fi
  1578. ac_test_CFLAGS="${CFLAGS+set}"
  1579. ac_save_CFLAGS="$CFLAGS"
  1580. CFLAGS=
  1581. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1582. echo "configure:1723: checking whether ${CC-cc} accepts -g" >&5
  1583. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1584. echo $ac_n "(cached) $ac_c" 1>&6
  1585. else
  1586. echo 'void f(){}' > conftest.c
  1587. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1588. ac_cv_prog_cc_g=yes
  1589. else
  1590. ac_cv_prog_cc_g=no
  1591. fi
  1592. rm -f conftest*
  1593. fi
  1594. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1595. if test "$ac_test_CFLAGS" = set; then
  1596. CFLAGS="$ac_save_CFLAGS"
  1597. elif test $ac_cv_prog_cc_g = yes; then
  1598. if test "$GCC" = yes; then
  1599. CFLAGS="-g -O2"
  1600. else
  1601. CFLAGS="-g"
  1602. fi
  1603. else
  1604. if test "$GCC" = yes; then
  1605. CFLAGS="-O2"
  1606. else
  1607. CFLAGS=
  1608. fi
  1609. fi
  1610. for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
  1611. do
  1612. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1613. set dummy $ac_prog; ac_word=$2
  1614. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1615. echo "configure:1759: checking for $ac_word" >&5
  1616. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1617. echo $ac_n "(cached) $ac_c" 1>&6
  1618. else
  1619. if test -n "$CXX"; then
  1620. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1621. else
  1622. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1623. ac_dummy="$PATH"
  1624. for ac_dir in $ac_dummy; do
  1625. test -z "$ac_dir" && ac_dir=.
  1626. if test -f $ac_dir/$ac_word; then
  1627. ac_cv_prog_CXX="$ac_prog"
  1628. break
  1629. fi
  1630. done
  1631. IFS="$ac_save_ifs"
  1632. fi
  1633. fi
  1634. CXX="$ac_cv_prog_CXX"
  1635. if test -n "$CXX"; then
  1636. echo "$ac_t""$CXX" 1>&6
  1637. else
  1638. echo "$ac_t""no" 1>&6
  1639. fi
  1640. test -n "$CXX" && break
  1641. done
  1642. test -n "$CXX" || CXX=":"
  1643. unset ac_cv_prog_CXX
  1644. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  1645. do
  1646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1647. set dummy $ac_prog; ac_word=$2
  1648. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1649. echo "configure:1795: checking for $ac_word" >&5
  1650. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1651. echo $ac_n "(cached) $ac_c" 1>&6
  1652. else
  1653. if test -n "$CXX"; then
  1654. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1655. else
  1656. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1657. ac_dummy="$PATH"
  1658. for ac_dir in $ac_dummy; do
  1659. test -z "$ac_dir" && ac_dir=.
  1660. if test -f $ac_dir/$ac_word; then
  1661. ac_cv_prog_CXX="$ac_prog"
  1662. break
  1663. fi
  1664. done
  1665. IFS="$ac_save_ifs"
  1666. fi
  1667. fi
  1668. CXX="$ac_cv_prog_CXX"
  1669. if test -n "$CXX"; then
  1670. echo "$ac_t""$CXX" 1>&6
  1671. else
  1672. echo "$ac_t""no" 1>&6
  1673. fi
  1674. test -n "$CXX" && break
  1675. done
  1676. test -n "$CXX" || CXX="gcc"
  1677. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1678. echo "configure:1827: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1679. ac_ext=C
  1680. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1681. ac_cpp='$CXXCPP $CPPFLAGS'
  1682. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1683. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1684. cross_compiling=$ac_cv_prog_cxx_cross
  1685. cat > conftest.$ac_ext << EOF
  1686. #line 1838 "configure"
  1687. #include "confdefs.h"
  1688. int main(){return(0);}
  1689. EOF
  1690. if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1691. ac_cv_prog_cxx_works=yes
  1692. # If we can't run a trivial program, we are probably using a cross compiler.
  1693. if (./conftest; exit) 2>/dev/null; then
  1694. ac_cv_prog_cxx_cross=no
  1695. else
  1696. ac_cv_prog_cxx_cross=yes
  1697. fi
  1698. else
  1699. echo "configure: failed program was:" >&5
  1700. cat conftest.$ac_ext >&5
  1701. ac_cv_prog_cxx_works=no
  1702. fi
  1703. rm -fr conftest*
  1704. ac_ext=c
  1705. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1706. ac_cpp='$CPP $CPPFLAGS'
  1707. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1708. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1709. cross_compiling=$ac_cv_prog_cc_cross
  1710. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1711. if test $ac_cv_prog_cxx_works = no; then
  1712. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1713. fi
  1714. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1715. echo "configure:1869: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1716. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1717. cross_compiling=$ac_cv_prog_cxx_cross
  1718. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1719. echo "configure:1874: checking whether we are using GNU C++" >&5
  1720. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1721. echo $ac_n "(cached) $ac_c" 1>&6
  1722. else
  1723. cat > conftest.C <<EOF
  1724. #ifdef __GNUC__
  1725. yes;
  1726. #endif
  1727. EOF
  1728. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1729. ac_cv_prog_gxx=yes
  1730. else
  1731. ac_cv_prog_gxx=no
  1732. fi
  1733. fi
  1734. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1735. if test $ac_cv_prog_gxx = yes; then
  1736. GXX=yes
  1737. else
  1738. GXX=
  1739. fi
  1740. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1741. ac_save_CXXFLAGS="$CXXFLAGS"
  1742. CXXFLAGS=
  1743. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1744. echo "configure:1902: checking whether ${CXX-g++} accepts -g" >&5
  1745. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1746. echo $ac_n "(cached) $ac_c" 1>&6
  1747. else
  1748. echo 'void f(){}' > conftest.cc
  1749. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1750. ac_cv_prog_cxx_g=yes
  1751. else
  1752. ac_cv_prog_cxx_g=no
  1753. fi
  1754. rm -f conftest*
  1755. fi
  1756. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1757. if test "$ac_test_CXXFLAGS" = set; then
  1758. CXXFLAGS="$ac_save_CXXFLAGS"
  1759. elif test $ac_cv_prog_cxx_g = yes; then
  1760. if test "$GXX" = yes; then
  1761. CXXFLAGS="-g -O2"
  1762. else
  1763. CXXFLAGS="-g"
  1764. fi
  1765. else
  1766. if test "$GXX" = yes; then
  1767. CXXFLAGS="-O2"
  1768. else
  1769. CXXFLAGS=
  1770. fi
  1771. fi
  1772. case "$build:$target" in
  1773. powerpc-apple-darwin8*:i?86-apple-darwin*)
  1774. CFLAGS=$_SAVE_CFLAGS
  1775. CXXFLAGS=$_SAVE_CXXFLAGS
  1776. ;;
  1777. esac
  1778. for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib"
  1779. do
  1780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1781. set dummy $ac_prog; ac_word=$2
  1782. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1783. echo "configure:1946: checking for $ac_word" >&5
  1784. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1785. echo $ac_n "(cached) $ac_c" 1>&6
  1786. else
  1787. if test -n "$RANLIB"; then
  1788. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1789. else
  1790. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1791. ac_dummy="$PATH"
  1792. for ac_dir in $ac_dummy; do
  1793. test -z "$ac_dir" && ac_dir=.
  1794. if test -f $ac_dir/$ac_word; then
  1795. ac_cv_prog_RANLIB="$ac_prog"
  1796. break
  1797. fi
  1798. done
  1799. IFS="$ac_save_ifs"
  1800. fi
  1801. fi
  1802. RANLIB="$ac_cv_prog_RANLIB"
  1803. if test -n "$RANLIB"; then
  1804. echo "$ac_t""$RANLIB" 1>&6
  1805. else
  1806. echo "$ac_t""no" 1>&6
  1807. fi
  1808. test -n "$RANLIB" && break
  1809. done
  1810. test -n "$RANLIB" || RANLIB=":"
  1811. for ac_prog in $AR "${target_alias}-ar" "${target}-ar"
  1812. do
  1813. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1814. set dummy $ac_prog; ac_word=$2
  1815. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1816. echo "configure:1981: checking for $ac_word" >&5
  1817. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1818. echo $ac_n "(cached) $ac_c" 1>&6
  1819. else
  1820. if test -n "$AR"; then
  1821. ac_cv_prog_AR="$AR" # Let the user override the test.
  1822. else
  1823. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1824. ac_dummy="$PATH"
  1825. for ac_dir in $ac_dummy; do
  1826. test -z "$ac_dir" && ac_dir=.
  1827. if test -f $ac_dir/$ac_word; then
  1828. ac_cv_prog_AR="$ac_prog"
  1829. break
  1830. fi
  1831. done
  1832. IFS="$ac_save_ifs"
  1833. fi
  1834. fi
  1835. AR="$ac_cv_prog_AR"
  1836. if test -n "$AR"; then
  1837. echo "$ac_t""$AR" 1>&6
  1838. else
  1839. echo "$ac_t""no" 1>&6
  1840. fi
  1841. test -n "$AR" && break
  1842. done
  1843. test -n "$AR" || AR=":"
  1844. for ac_prog in $AS "${target_alias}-as" "${target}-as"
  1845. do
  1846. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1847. set dummy $ac_prog; ac_word=$2
  1848. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1849. echo "configure:2016: checking for $ac_word" >&5
  1850. if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
  1851. echo $ac_n "(cached) $ac_c" 1>&6
  1852. else
  1853. case "$AS" in
  1854. /*)
  1855. ac_cv_path_AS="$AS" # Let the user override the test with a path.
  1856. ;;
  1857. ?:/*)
  1858. ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
  1859. ;;
  1860. *)
  1861. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1862. ac_dummy="$PATH"
  1863. for ac_dir in $ac_dummy; do
  1864. test -z "$ac_dir" && ac_dir=.
  1865. if test -f $ac_dir/$ac_word; then
  1866. ac_cv_path_AS="$ac_dir/$ac_word"
  1867. break
  1868. fi
  1869. done
  1870. IFS="$ac_save_ifs"
  1871. ;;
  1872. esac
  1873. fi
  1874. AS="$ac_cv_path_AS"
  1875. if test -n "$AS"; then
  1876. echo "$ac_t""$AS" 1>&6
  1877. else
  1878. echo "$ac_t""no" 1>&6
  1879. fi
  1880. test -n "$AS" && break
  1881. done
  1882. test -n "$AS" || AS=":"
  1883. for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
  1884. do
  1885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1886. set dummy $ac_prog; ac_word=$2
  1887. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1888. echo "configure:2057: checking for $ac_word" >&5
  1889. if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
  1890. echo $ac_n "(cached) $ac_c" 1>&6
  1891. else
  1892. if test -n "$LD"; then
  1893. ac_cv_prog_LD="$LD" # Let the user override the test.
  1894. else
  1895. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1896. ac_dummy="$PATH"
  1897. for ac_dir in $ac_dummy; do
  1898. test -z "$ac_dir" && ac_dir=.
  1899. if test -f $ac_dir/$ac_word; then
  1900. ac_cv_prog_LD="$ac_prog"
  1901. break
  1902. fi
  1903. done
  1904. IFS="$ac_save_ifs"
  1905. fi
  1906. fi
  1907. LD="$ac_cv_prog_LD"
  1908. if test -n "$LD"; then
  1909. echo "$ac_t""$LD" 1>&6
  1910. else
  1911. echo "$ac_t""no" 1>&6
  1912. fi
  1913. test -n "$LD" && break
  1914. done
  1915. test -n "$LD" || LD=":"
  1916. for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip"
  1917. do
  1918. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1919. set dummy $ac_prog; ac_word=$2
  1920. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1921. echo "configure:2092: checking for $ac_word" >&5
  1922. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1923. echo $ac_n "(cached) $ac_c" 1>&6
  1924. else
  1925. if test -n "$STRIP"; then
  1926. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1927. else
  1928. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1929. ac_dummy="$PATH"
  1930. for ac_dir in $ac_dummy; do
  1931. test -z "$ac_dir" && ac_dir=.
  1932. if test -f $ac_dir/$ac_word; then
  1933. ac_cv_prog_STRIP="$ac_prog"
  1934. break
  1935. fi
  1936. done
  1937. IFS="$ac_save_ifs"
  1938. fi
  1939. fi
  1940. STRIP="$ac_cv_prog_STRIP"
  1941. if test -n "$STRIP"; then
  1942. echo "$ac_t""$STRIP" 1>&6
  1943. else
  1944. echo "$ac_t""no" 1>&6
  1945. fi
  1946. test -n "$STRIP" && break
  1947. done
  1948. test -n "$STRIP" || STRIP=":"
  1949. for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres"
  1950. do
  1951. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1952. set dummy $ac_prog; ac_word=$2
  1953. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1954. echo "configure:2127: checking for $ac_word" >&5
  1955. if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
  1956. echo $ac_n "(cached) $ac_c" 1>&6
  1957. else
  1958. if test -n "$WINDRES"; then
  1959. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  1960. else
  1961. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1962. ac_dummy="$PATH"
  1963. for ac_dir in $ac_dummy; do
  1964. test -z "$ac_dir" && ac_dir=.
  1965. if test -f $ac_dir/$ac_word; then
  1966. ac_cv_prog_WINDRES="$ac_prog"
  1967. break
  1968. fi
  1969. done
  1970. IFS="$ac_save_ifs"
  1971. fi
  1972. fi
  1973. WINDRES="$ac_cv_prog_WINDRES"
  1974. if test -n "$WINDRES"; then
  1975. echo "$ac_t""$WINDRES" 1>&6
  1976. else
  1977. echo "$ac_t""no" 1>&6
  1978. fi
  1979. test -n "$WINDRES" && break
  1980. done
  1981. test -n "$WINDRES" || WINDRES=":"
  1982. cat >> confdefs.h <<\EOF
  1983. #define CROSS_COMPILE 1
  1984. EOF
  1985. else
  1986. # Extract the first word of "gcc", so it can be a program name with args.
  1987. set dummy gcc; ac_word=$2
  1988. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1989. echo "configure:2165: checking for $ac_word" >&5
  1990. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1991. echo $ac_n "(cached) $ac_c" 1>&6
  1992. else
  1993. if test -n "$CC"; then
  1994. ac_cv_prog_CC="$CC" # Let the user override the test.
  1995. else
  1996. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1997. ac_dummy="$PATH"
  1998. for ac_dir in $ac_dummy; do
  1999. test -z "$ac_dir" && ac_dir=.
  2000. if test -f $ac_dir/$ac_word; then
  2001. ac_cv_prog_CC="gcc"
  2002. break
  2003. fi
  2004. done
  2005. IFS="$ac_save_ifs"
  2006. fi
  2007. fi
  2008. CC="$ac_cv_prog_CC"
  2009. if test -n "$CC"; then
  2010. echo "$ac_t""$CC" 1>&6
  2011. else
  2012. echo "$ac_t""no" 1>&6
  2013. fi
  2014. if test -z "$CC"; then
  2015. # Extract the first word of "cc", so it can be a program name with args.
  2016. set dummy cc; ac_word=$2
  2017. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2018. echo "configure:2195: checking for $ac_word" >&5
  2019. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2020. echo $ac_n "(cached) $ac_c" 1>&6
  2021. else
  2022. if test -n "$CC"; then
  2023. ac_cv_prog_CC="$CC" # Let the user override the test.
  2024. else
  2025. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2026. ac_prog_rejected=no
  2027. ac_dummy="$PATH"
  2028. for ac_dir in $ac_dummy; do
  2029. test -z "$ac_dir" && ac_dir=.
  2030. if test -f $ac_dir/$ac_word; then
  2031. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2032. ac_prog_rejected=yes
  2033. continue
  2034. fi
  2035. ac_cv_prog_CC="cc"
  2036. break
  2037. fi
  2038. done
  2039. IFS="$ac_save_ifs"
  2040. if test $ac_prog_rejected = yes; then
  2041. # We found a bogon in the path, so make sure we never use it.
  2042. set dummy $ac_cv_prog_CC
  2043. shift
  2044. if test $# -gt 0; then
  2045. # We chose a different compiler from the bogus one.
  2046. # However, it has the same basename, so the bogon will be chosen
  2047. # first if we set CC to just the basename; use the full file name.
  2048. shift
  2049. set dummy "$ac_dir/$ac_word" "$@"
  2050. shift
  2051. ac_cv_prog_CC="$@"
  2052. fi
  2053. fi
  2054. fi
  2055. fi
  2056. CC="$ac_cv_prog_CC"
  2057. if test -n "$CC"; then
  2058. echo "$ac_t""$CC" 1>&6
  2059. else
  2060. echo "$ac_t""no" 1>&6
  2061. fi
  2062. if test -z "$CC"; then
  2063. case "`uname -s`" in
  2064. *win32* | *WIN32*)
  2065. # Extract the first word of "cl", so it can be a program name with args.
  2066. set dummy cl; ac_word=$2
  2067. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2068. echo "configure:2246: checking for $ac_word" >&5
  2069. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2070. echo $ac_n "(cached) $ac_c" 1>&6
  2071. else
  2072. if test -n "$CC"; then
  2073. ac_cv_prog_CC="$CC" # Let the user override the test.
  2074. else
  2075. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2076. ac_dummy="$PATH"
  2077. for ac_dir in $ac_dummy; do
  2078. test -z "$ac_dir" && ac_dir=.
  2079. if test -f $ac_dir/$ac_word; then
  2080. ac_cv_prog_CC="cl"
  2081. break
  2082. fi
  2083. done
  2084. IFS="$ac_save_ifs"
  2085. fi
  2086. fi
  2087. CC="$ac_cv_prog_CC"
  2088. if test -n "$CC"; then
  2089. echo "$ac_t""$CC" 1>&6
  2090. else
  2091. echo "$ac_t""no" 1>&6
  2092. fi
  2093. ;;
  2094. esac
  2095. fi
  2096. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2097. fi
  2098. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2099. echo "configure:2278: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2100. ac_ext=c
  2101. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2102. ac_cpp='$CPP $CPPFLAGS'
  2103. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2104. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2105. cross_compiling=$ac_cv_prog_cc_cross
  2106. cat > conftest.$ac_ext << EOF
  2107. #line 2289 "configure"
  2108. #include "confdefs.h"
  2109. main(){return(0);}
  2110. EOF
  2111. if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2112. ac_cv_prog_cc_works=yes
  2113. # If we can't run a trivial program, we are probably using a cross compiler.
  2114. if (./conftest; exit) 2>/dev/null; then
  2115. ac_cv_prog_cc_cross=no
  2116. else
  2117. ac_cv_prog_cc_cross=yes
  2118. fi
  2119. else
  2120. echo "configure: failed program was:" >&5
  2121. cat conftest.$ac_ext >&5
  2122. ac_cv_prog_cc_works=no
  2123. fi
  2124. rm -fr conftest*
  2125. ac_ext=c
  2126. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2127. ac_cpp='$CPP $CPPFLAGS'
  2128. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2129. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2130. cross_compiling=$ac_cv_prog_cc_cross
  2131. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2132. if test $ac_cv_prog_cc_works = no; then
  2133. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2134. fi
  2135. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2136. echo "configure:2320: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2137. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2138. cross_compiling=$ac_cv_prog_cc_cross
  2139. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2140. echo "configure:2325: checking whether we are using GNU C" >&5
  2141. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2142. echo $ac_n "(cached) $ac_c" 1>&6
  2143. else
  2144. cat > conftest.c <<EOF
  2145. #ifdef __GNUC__
  2146. yes;
  2147. #endif
  2148. EOF
  2149. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2150. ac_cv_prog_gcc=yes
  2151. else
  2152. ac_cv_prog_gcc=no
  2153. fi
  2154. fi
  2155. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2156. if test $ac_cv_prog_gcc = yes; then
  2157. GCC=yes
  2158. else
  2159. GCC=
  2160. fi
  2161. ac_test_CFLAGS="${CFLAGS+set}"
  2162. ac_save_CFLAGS="$CFLAGS"
  2163. CFLAGS=
  2164. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2165. echo "configure:2353: checking whether ${CC-cc} accepts -g" >&5
  2166. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2167. echo $ac_n "(cached) $ac_c" 1>&6
  2168. else
  2169. echo 'void f(){}' > conftest.c
  2170. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2171. ac_cv_prog_cc_g=yes
  2172. else
  2173. ac_cv_prog_cc_g=no
  2174. fi
  2175. rm -f conftest*
  2176. fi
  2177. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2178. if test "$ac_test_CFLAGS" = set; then
  2179. CFLAGS="$ac_save_CFLAGS"
  2180. elif test $ac_cv_prog_cc_g = yes; then
  2181. if test "$GCC" = yes; then
  2182. CFLAGS="-g -O2"
  2183. else
  2184. CFLAGS="-g"
  2185. fi
  2186. else
  2187. if test "$GCC" = yes; then
  2188. CFLAGS="-O2"
  2189. else
  2190. CFLAGS=
  2191. fi
  2192. fi
  2193. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  2194. do
  2195. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2196. set dummy $ac_prog; ac_word=$2
  2197. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2198. echo "configure:2389: checking for $ac_word" >&5
  2199. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  2200. echo $ac_n "(cached) $ac_c" 1>&6
  2201. else
  2202. if test -n "$CXX"; then
  2203. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2204. else
  2205. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2206. ac_dummy="$PATH"
  2207. for ac_dir in $ac_dummy; do
  2208. test -z "$ac_dir" && ac_dir=.
  2209. if test -f $ac_dir/$ac_word; then
  2210. ac_cv_prog_CXX="$ac_prog"
  2211. break
  2212. fi
  2213. done
  2214. IFS="$ac_save_ifs"
  2215. fi
  2216. fi
  2217. CXX="$ac_cv_prog_CXX"
  2218. if test -n "$CXX"; then
  2219. echo "$ac_t""$CXX" 1>&6
  2220. else
  2221. echo "$ac_t""no" 1>&6
  2222. fi
  2223. test -n "$CXX" && break
  2224. done
  2225. test -n "$CXX" || CXX="gcc"
  2226. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2227. echo "configure:2421: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  2228. ac_ext=C
  2229. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2230. ac_cpp='$CXXCPP $CPPFLAGS'
  2231. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2232. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2233. cross_compiling=$ac_cv_prog_cxx_cross
  2234. cat > conftest.$ac_ext << EOF
  2235. #line 2432 "configure"
  2236. #include "confdefs.h"
  2237. int main(){return(0);}
  2238. EOF
  2239. if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2240. ac_cv_prog_cxx_works=yes
  2241. # If we can't run a trivial program, we are probably using a cross compiler.
  2242. if (./conftest; exit) 2>/dev/null; then
  2243. ac_cv_prog_cxx_cross=no
  2244. else
  2245. ac_cv_prog_cxx_cross=yes
  2246. fi
  2247. else
  2248. echo "configure: failed program was:" >&5
  2249. cat conftest.$ac_ext >&5
  2250. ac_cv_prog_cxx_works=no
  2251. fi
  2252. rm -fr conftest*
  2253. ac_ext=c
  2254. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2255. ac_cpp='$CPP $CPPFLAGS'
  2256. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2257. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2258. cross_compiling=$ac_cv_prog_cc_cross
  2259. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  2260. if test $ac_cv_prog_cxx_works = no; then
  2261. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  2262. fi
  2263. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2264. echo "configure:2463: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  2265. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  2266. cross_compiling=$ac_cv_prog_cxx_cross
  2267. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  2268. echo "configure:2468: checking whether we are using GNU C++" >&5
  2269. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  2270. echo $ac_n "(cached) $ac_c" 1>&6
  2271. else
  2272. cat > conftest.C <<EOF
  2273. #ifdef __GNUC__
  2274. yes;
  2275. #endif
  2276. EOF
  2277. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2278. ac_cv_prog_gxx=yes
  2279. else
  2280. ac_cv_prog_gxx=no
  2281. fi
  2282. fi
  2283. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  2284. if test $ac_cv_prog_gxx = yes; then
  2285. GXX=yes
  2286. else
  2287. GXX=
  2288. fi
  2289. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  2290. ac_save_CXXFLAGS="$CXXFLAGS"
  2291. CXXFLAGS=
  2292. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  2293. echo "configure:2496: checking whether ${CXX-g++} accepts -g" >&5
  2294. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  2295. echo $ac_n "(cached) $ac_c" 1>&6
  2296. else
  2297. echo 'void f(){}' > conftest.cc
  2298. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  2299. ac_cv_prog_cxx_g=yes
  2300. else
  2301. ac_cv_prog_cxx_g=no
  2302. fi
  2303. rm -f conftest*
  2304. fi
  2305. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  2306. if test "$ac_test_CXXFLAGS" = set; then
  2307. CXXFLAGS="$ac_save_CXXFLAGS"
  2308. elif test $ac_cv_prog_cxx_g = yes; then
  2309. if test "$GXX" = yes; then
  2310. CXXFLAGS="-g -O2"
  2311. else
  2312. CXXFLAGS="-g"
  2313. fi
  2314. else
  2315. if test "$GXX" = yes; then
  2316. CXXFLAGS="-O2"
  2317. else
  2318. CXXFLAGS=
  2319. fi
  2320. fi
  2321. # Extract the first word of "ranlib", so it can be a program name with args.
  2322. set dummy ranlib; ac_word=$2
  2323. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2324. echo "configure:2530: checking for $ac_word" >&5
  2325. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2326. echo $ac_n "(cached) $ac_c" 1>&6
  2327. else
  2328. if test -n "$RANLIB"; then
  2329. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2330. else
  2331. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2332. ac_dummy="$PATH"
  2333. for ac_dir in $ac_dummy; do
  2334. test -z "$ac_dir" && ac_dir=.
  2335. if test -f $ac_dir/$ac_word; then
  2336. ac_cv_prog_RANLIB="ranlib"
  2337. break
  2338. fi
  2339. done
  2340. IFS="$ac_save_ifs"
  2341. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2342. fi
  2343. fi
  2344. RANLIB="$ac_cv_prog_RANLIB"
  2345. if test -n "$RANLIB"; then
  2346. echo "$ac_t""$RANLIB" 1>&6
  2347. else
  2348. echo "$ac_t""no" 1>&6
  2349. fi
  2350. for ac_prog in $AS as
  2351. do
  2352. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2353. set dummy $ac_prog; ac_word=$2
  2354. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2355. echo "configure:2562: checking for $ac_word" >&5
  2356. if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
  2357. echo $ac_n "(cached) $ac_c" 1>&6
  2358. else
  2359. case "$AS" in
  2360. /*)
  2361. ac_cv_path_AS="$AS" # Let the user override the test with a path.
  2362. ;;
  2363. ?:/*)
  2364. ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
  2365. ;;
  2366. *)
  2367. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2368. ac_dummy="$PATH"
  2369. for ac_dir in $ac_dummy; do
  2370. test -z "$ac_dir" && ac_dir=.
  2371. if test -f $ac_dir/$ac_word; then
  2372. ac_cv_path_AS="$ac_dir/$ac_word"
  2373. break
  2374. fi
  2375. done
  2376. IFS="$ac_save_ifs"
  2377. ;;
  2378. esac
  2379. fi
  2380. AS="$ac_cv_path_AS"
  2381. if test -n "$AS"; then
  2382. echo "$ac_t""$AS" 1>&6
  2383. else
  2384. echo "$ac_t""no" 1>&6
  2385. fi
  2386. test -n "$AS" && break
  2387. done
  2388. test -n "$AS" || AS="$CC"
  2389. for ac_prog in ar
  2390. do
  2391. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2392. set dummy $ac_prog; ac_word=$2
  2393. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2394. echo "configure:2603: checking for $ac_word" >&5
  2395. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  2396. echo $ac_n "(cached) $ac_c" 1>&6
  2397. else
  2398. if test -n "$AR"; then
  2399. ac_cv_prog_AR="$AR" # Let the user override the test.
  2400. else
  2401. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2402. ac_dummy="$PATH"
  2403. for ac_dir in $ac_dummy; do
  2404. test -z "$ac_dir" && ac_dir=.
  2405. if test -f $ac_dir/$ac_word; then
  2406. ac_cv_prog_AR="$ac_prog"
  2407. break
  2408. fi
  2409. done
  2410. IFS="$ac_save_ifs"
  2411. fi
  2412. fi
  2413. AR="$ac_cv_prog_AR"
  2414. if test -n "$AR"; then
  2415. echo "$ac_t""$AR" 1>&6
  2416. else
  2417. echo "$ac_t""no" 1>&6
  2418. fi
  2419. test -n "$AR" && break
  2420. done
  2421. test -n "$AR" || AR=":"
  2422. for ac_prog in ld
  2423. do
  2424. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2425. set dummy $ac_prog; ac_word=$2
  2426. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2427. echo "configure:2638: checking for $ac_word" >&5
  2428. if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
  2429. echo $ac_n "(cached) $ac_c" 1>&6
  2430. else
  2431. if test -n "$LD"; then
  2432. ac_cv_prog_LD="$LD" # Let the user override the test.
  2433. else
  2434. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2435. ac_dummy="$PATH"
  2436. for ac_dir in $ac_dummy; do
  2437. test -z "$ac_dir" && ac_dir=.
  2438. if test -f $ac_dir/$ac_word; then
  2439. ac_cv_prog_LD="$ac_prog"
  2440. break
  2441. fi
  2442. done
  2443. IFS="$ac_save_ifs"
  2444. fi
  2445. fi
  2446. LD="$ac_cv_prog_LD"
  2447. if test -n "$LD"; then
  2448. echo "$ac_t""$LD" 1>&6
  2449. else
  2450. echo "$ac_t""no" 1>&6
  2451. fi
  2452. test -n "$LD" && break
  2453. done
  2454. test -n "$LD" || LD=":"
  2455. for ac_prog in strip
  2456. do
  2457. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2458. set dummy $ac_prog; ac_word=$2
  2459. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2460. echo "configure:2673: checking for $ac_word" >&5
  2461. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2462. echo $ac_n "(cached) $ac_c" 1>&6
  2463. else
  2464. if test -n "$STRIP"; then
  2465. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2466. else
  2467. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2468. ac_dummy="$PATH"
  2469. for ac_dir in $ac_dummy; do
  2470. test -z "$ac_dir" && ac_dir=.
  2471. if test -f $ac_dir/$ac_word; then
  2472. ac_cv_prog_STRIP="$ac_prog"
  2473. break
  2474. fi
  2475. done
  2476. IFS="$ac_save_ifs"
  2477. fi
  2478. fi
  2479. STRIP="$ac_cv_prog_STRIP"
  2480. if test -n "$STRIP"; then
  2481. echo "$ac_t""$STRIP" 1>&6
  2482. else
  2483. echo "$ac_t""no" 1>&6
  2484. fi
  2485. test -n "$STRIP" && break
  2486. done
  2487. test -n "$STRIP" || STRIP=":"
  2488. for ac_prog in windres
  2489. do
  2490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2491. set dummy $ac_prog; ac_word=$2
  2492. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2493. echo "configure:2708: checking for $ac_word" >&5
  2494. if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
  2495. echo $ac_n "(cached) $ac_c" 1>&6
  2496. else
  2497. if test -n "$WINDRES"; then
  2498. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  2499. else
  2500. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2501. ac_dummy="$PATH"
  2502. for ac_dir in $ac_dummy; do
  2503. test -z "$ac_dir" && ac_dir=.
  2504. if test -f $ac_dir/$ac_word; then
  2505. ac_cv_prog_WINDRES="$ac_prog"
  2506. break
  2507. fi
  2508. done
  2509. IFS="$ac_save_ifs"
  2510. fi
  2511. fi
  2512. WINDRES="$ac_cv_prog_WINDRES"
  2513. if test -n "$WINDRES"; then
  2514. echo "$ac_t""$WINDRES" 1>&6
  2515. else
  2516. echo "$ac_t""no" 1>&6
  2517. fi
  2518. test -n "$WINDRES" && break
  2519. done
  2520. test -n "$WINDRES" || WINDRES=":"
  2521. if test -z "$HOST_CC"; then
  2522. HOST_CC="$CC"
  2523. fi
  2524. if test -z "$HOST_CFLAGS"; then
  2525. HOST_CFLAGS="$CFLAGS"
  2526. fi
  2527. if test -z "$HOST_CXX"; then
  2528. HOST_CXX="$CXX"
  2529. fi
  2530. if test -z "$HOST_CXXFLAGS"; then
  2531. HOST_CXXFLAGS="$CXXFLAGS"
  2532. fi
  2533. if test -z "$HOST_LDFLAGS"; then
  2534. HOST_LDFLAGS="$LDFLAGS"
  2535. fi
  2536. if test -z "$HOST_RANLIB"; then
  2537. HOST_RANLIB="$RANLIB"
  2538. fi
  2539. if test -z "$HOST_AR"; then
  2540. HOST_AR="$AR"
  2541. fi
  2542. fi
  2543. GNU_AS=
  2544. GNU_LD=
  2545. GNU_CC=
  2546. GNU_CXX=
  2547. CC_VERSION='N/A'
  2548. CXX_VERSION='N/A'
  2549. if test "$GCC" = "yes"; then
  2550. GNU_CC=1
  2551. CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'`
  2552. fi
  2553. if test "$GXX" = "yes"; then
  2554. GNU_CXX=1
  2555. CXX_VERSION=`$CXX -v 2>&1 | grep 'gcc version'`
  2556. fi
  2557. if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then
  2558. GNU_AS=1
  2559. fi
  2560. if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then
  2561. GNU_LD=1
  2562. fi
  2563. if test "$GNU_CC"; then
  2564. if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
  2565. GCC_USE_GNU_LD=1
  2566. fi
  2567. fi
  2568. INTEL_CC=
  2569. INTEL_CXX=
  2570. if test "$GCC" = yes; then
  2571. if test "`$CC -help 2>&1 | grep -c 'Intel(R) C Compiler'`" != "0"; then
  2572. INTEL_CC=1
  2573. fi
  2574. fi
  2575. if test "$GXX" = yes; then
  2576. if test "`$CXX -help 2>&1 | grep -c 'Intel(R) C++ Compiler'`" != "0"; then
  2577. INTEL_CXX=1
  2578. fi
  2579. fi
  2580. case "$target" in
  2581. *-wince)
  2582. WINVER=500
  2583. ;;
  2584. *)
  2585. if test -n "$GNU_CC"; then
  2586. WINVER=501
  2587. else
  2588. WINVER=500
  2589. fi
  2590. ;;
  2591. esac
  2592. # Check whether --with-windows-version or --without-windows-version was given.
  2593. if test "${with_windows_version+set}" = set; then
  2594. withval="$with_windows_version"
  2595. WINVER=$withval
  2596. fi
  2597. case "$WINVER" in
  2598. 400|500|501)
  2599. ;;
  2600. *)
  2601. { echo "configure: error: Invalid value --with-windows-version, must be 400, 500 or 501" 1>&2; exit 1; };
  2602. ;;
  2603. esac
  2604. case "$target" in
  2605. *-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince)
  2606. if test "$GCC" != "yes"; then
  2607. # Check to see if we are really running in a msvc environemnt
  2608. _WIN32_MSVC=1
  2609. for ac_prog in midl
  2610. do
  2611. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2612. set dummy $ac_prog; ac_word=$2
  2613. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2614. echo "configure:2841: checking for $ac_word" >&5
  2615. if eval "test \"`echo '$''{'ac_cv_prog_MIDL'+set}'`\" = set"; then
  2616. echo $ac_n "(cached) $ac_c" 1>&6
  2617. else
  2618. if test -n "$MIDL"; then
  2619. ac_cv_prog_MIDL="$MIDL" # Let the user override the test.
  2620. else
  2621. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2622. ac_dummy="$PATH"
  2623. for ac_dir in $ac_dummy; do
  2624. test -z "$ac_dir" && ac_dir=.
  2625. if test -f $ac_dir/$ac_word; then
  2626. ac_cv_prog_MIDL="$ac_prog"
  2627. break
  2628. fi
  2629. done
  2630. IFS="$ac_save_ifs"
  2631. fi
  2632. fi
  2633. MIDL="$ac_cv_prog_MIDL"
  2634. if test -n "$MIDL"; then
  2635. echo "$ac_t""$MIDL" 1>&6
  2636. else
  2637. echo "$ac_t""no" 1>&6
  2638. fi
  2639. test -n "$MIDL" && break
  2640. done
  2641. # Make sure compilers are valid
  2642. CFLAGS="$CFLAGS -TC -nologo"
  2643. CXXFLAGS="$CXXFLAGS -TP -nologo"
  2644. ac_ext=c
  2645. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2646. ac_cpp='$CPP $CPPFLAGS'
  2647. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2648. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2649. cross_compiling=$ac_cv_prog_cc_cross
  2650. cat > conftest.$ac_ext <<EOF
  2651. #line 2883 "configure"
  2652. #include "confdefs.h"
  2653. #include <stdio.h>
  2654. int main() {
  2655. printf("Hello World\n");
  2656. ; return 0; }
  2657. EOF
  2658. if { (eval echo configure:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2659. :
  2660. else
  2661. echo "configure: failed program was:" >&5
  2662. cat conftest.$ac_ext >&5
  2663. rm -rf conftest*
  2664. { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; }
  2665. fi
  2666. rm -f conftest*
  2667. ac_ext=C
  2668. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2669. ac_cpp='$CXXCPP $CPPFLAGS'
  2670. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2671. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2672. cross_compiling=$ac_cv_prog_cxx_cross
  2673. cat > conftest.$ac_ext <<EOF
  2674. #line 2908 "configure"
  2675. #include "confdefs.h"
  2676. #include <new.h>
  2677. int main() {
  2678. unsigned *test = new unsigned(42);
  2679. ; return 0; }
  2680. EOF
  2681. if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2682. :
  2683. else
  2684. echo "configure: failed program was:" >&5
  2685. cat conftest.$ac_ext >&5
  2686. rm -rf conftest*
  2687. { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; exit 1; }
  2688. fi
  2689. rm -f conftest*
  2690. ac_ext=c
  2691. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2692. ac_cpp='$CPP $CPPFLAGS'
  2693. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2694. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2695. cross_compiling=$ac_cv_prog_cc_cross
  2696. _MSVC_VER_FILTER='s|.* ([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p'
  2697. # Determine compiler version
  2698. CC_VERSION=`"${CC}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
  2699. _CC_MAJOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $1 }'`
  2700. _CC_MINOR_VERSION=`echo ${CC_VERSION} | $AWK -F\. '{ print $2 }'`
  2701. _CC_RELEASE=`echo ${CC_VERSION} | $AWK -F\. '{ print $3 }'`
  2702. _CC_BUILD=`echo ${CC_VERSION} | $AWK -F\. '{ print $4 }'`
  2703. _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION}
  2704. CXX_VERSION=`"${CXX}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
  2705. _CXX_MAJOR_VERSION=`echo ${CXX_VERSION} | $AWK -F\. '{ print $1 }'`
  2706. if test "$_CC_MAJOR_VERSION" != "$_CXX_MAJOR_VERSION"; then
  2707. { echo "configure: error: The major versions of \$CC and \$CXX do not match." 1>&2; exit 1; }
  2708. fi
  2709. if test "$_CC_MAJOR_VERSION" = "12"; then
  2710. _CC_SUITE=6
  2711. elif test "$_CC_MAJOR_VERSION" = "13"; then
  2712. _CC_SUITE=7
  2713. elif test "$_CC_MAJOR_VERSION" = "14"; then
  2714. _CC_SUITE=8
  2715. CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
  2716. if test $_CC_RELEASE -gt 50727; then
  2717. _USE_DYNAMICBASE=1
  2718. elif test $_CC_BUILD -ge 762; then
  2719. _USE_DYNAMICBASE=1
  2720. fi
  2721. cat >> confdefs.h <<\EOF
  2722. #define _CRT_SECURE_NO_DEPRECATE 1
  2723. EOF
  2724. cat >> confdefs.h <<\EOF
  2725. #define _CRT_NONSTDC_NO_DEPRECATE 1
  2726. EOF
  2727. elif test "$_CC_MAJOR_VERSION" = "15"; then
  2728. _CC_SUITE=9
  2729. CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
  2730. LDFLAGS="$LDFLAGS -MANIFESTUAC:NO"
  2731. _USE_DYNAMICBASE=1
  2732. cat >> confdefs.h <<\EOF
  2733. #define _CRT_SECURE_NO_WARNINGS 1
  2734. EOF
  2735. cat >> confdefs.h <<\EOF
  2736. #define _CRT_NONSTDC_NO_WARNINGS 1
  2737. EOF
  2738. else
  2739. { echo "configure: error: This version of the MSVC compiler, $CC_VERSION , is unsupported." 1>&2; exit 1; }
  2740. fi
  2741. _MOZ_RTTI_FLAGS_ON='-GR'
  2742. _MOZ_RTTI_FLAGS_OFF='-GR-'
  2743. _MOZ_EXCEPTIONS_FLAGS_ON='-EHsc'
  2744. _MOZ_EXCEPTIONS_FLAGS_OFF=''
  2745. if test -n "$WIN32_REDIST_DIR"; then
  2746. WIN32_REDIST_DIR=`cd "$WIN32_REDIST_DIR" && pwd`
  2747. fi
  2748. # bug #249782
  2749. # ensure that mt.exe is Microsoft (R) Manifest Tool and not magnetic tape manipulation utility (or something else)
  2750. if test "$_CC_SUITE" -ge "8"; then
  2751. _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p'
  2752. MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'`
  2753. if test -n "$MSMT_TOOL"; then
  2754. MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"`
  2755. if test -z "$MSMANIFEST_TOOL_VERSION"; then
  2756. echo "configure: warning: Unknown version of the Microsoft (R) Manifest Tool." 1>&2
  2757. fi
  2758. MSMANIFEST_TOOL=1
  2759. unset MSMT_TOOL
  2760. else
  2761. { echo "configure: error: Microsoft (R) Manifest Tool must be in your \$PATH." 1>&2; exit 1; }
  2762. fi
  2763. fi
  2764. # Check linker version
  2765. _LD_FULL_VERSION=`"${LD}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
  2766. _LD_MAJOR_VERSION=`echo ${_LD_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
  2767. if test "$_LD_MAJOR_VERSION" != "$_CC_SUITE"; then
  2768. { echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&2; exit 1; }
  2769. fi
  2770. INCREMENTAL_LINKER=1
  2771. # Check midl version
  2772. _MIDL_FULL_VERSION=`"${MIDL}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
  2773. _MIDL_MAJOR_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
  2774. _MIDL_MINOR_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $2 }'`
  2775. _MIDL_REV_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $3 }'`
  2776. # Add flags if necessary
  2777. echo $ac_n "checking for midl flags""... $ac_c" 1>&6
  2778. echo "configure:3031: checking for midl flags" >&5
  2779. if test \( "$_MIDL_MAJOR_VERSION" -gt "6" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" -gt "0" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" = "00" -a "$_MIDL_REV_VERSION" -gt "359" \); then
  2780. # Starting with MIDL version 6.0.359, the MIDL compiler
  2781. # generates /Oicf /robust stubs by default, which is not
  2782. # compatible with versions of Windows older than Win2k.
  2783. # This switches us back to the old behaviour. When we drop
  2784. # support for Windows older than Win2k, we should remove
  2785. # this.
  2786. MIDL_FLAGS="${MIDL_FLAGS} -no_robust"
  2787. echo "$ac_t""need -no_robust" 1>&6
  2788. else
  2789. MIDL_FLAGS="${MIDL_FLAGS}"
  2790. echo "$ac_t""none needed" 1>&6
  2791. fi
  2792. unset _MSVC_VER_FILTER
  2793. else
  2794. # Check w32api version
  2795. _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`
  2796. _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'`
  2797. echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6
  2798. echo "configure:3053: checking for w32api version >= $W32API_VERSION" >&5
  2799. cat > conftest.$ac_ext <<EOF
  2800. #line 3055 "configure"
  2801. #include "confdefs.h"
  2802. #include <w32api.h>
  2803. int main() {
  2804. #if (__W32API_MAJOR_VERSION < $_W32API_MAJOR_VERSION) || \
  2805. (__W32API_MAJOR_VERSION == $_W32API_MAJOR_VERSION && \
  2806. __W32API_MINOR_VERSION < $_W32API_MINOR_VERSION)
  2807. #error "test failed."
  2808. #endif
  2809. ; return 0; }
  2810. EOF
  2811. if { (eval echo configure:3067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2812. rm -rf conftest*
  2813. res=yes
  2814. else
  2815. echo "configure: failed program was:" >&5
  2816. cat conftest.$ac_ext >&5
  2817. rm -rf conftest*
  2818. res=no
  2819. fi
  2820. rm -f conftest*
  2821. echo "$ac_t""$res" 1>&6
  2822. if test "$res" != "yes"; then
  2823. { echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&2; exit 1; }
  2824. fi
  2825. # Check windres version
  2826. echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6
  2827. echo "configure:3083: checking for windres version >= $WINDRES_VERSION" >&5
  2828. _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'`
  2829. echo "$ac_t""$_WINDRES_VERSION" 1>&6
  2830. _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
  2831. _WINDRES_MINOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $2 }'`
  2832. _WINDRES_RELEASE_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $3 }'`
  2833. WINDRES_MAJOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
  2834. WINDRES_MINOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $2 }'`
  2835. WINDRES_RELEASE_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $3 }'`
  2836. if test "$_WINDRES_MAJOR_VERSION" -lt "$WINDRES_MAJOR_VERSION" -o \
  2837. "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \
  2838. "$_WINDRES_MINOR_VERSION" -lt "$WINDRES_MINOR_VERSION" -o \
  2839. "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \
  2840. "$_WINDRES_MINOR_VERSION" -eq "$WINDRES_MINOR_VERSION" -a \
  2841. "$_WINDRES_RELEASE_VERSION" -lt "$WINDRES_RELEASE_VERSION"
  2842. then
  2843. { echo "configure: error: windres version $WINDRES_VERSION or higher is required to build." 1>&2; exit 1; }
  2844. fi
  2845. fi # !GNU_CC
  2846. cat >> confdefs.h <<EOF
  2847. #define WINVER 0x$WINVER
  2848. EOF
  2849. cat >> confdefs.h <<EOF
  2850. #define _WIN32_WINNT 0x$WINVER
  2851. EOF
  2852. # Require OS features provided by IE 5.0
  2853. cat >> confdefs.h <<EOF
  2854. #define _WIN32_IE 0x0500
  2855. EOF
  2856. ;;
  2857. esac
  2858. if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then
  2859. if test "x$CC" != xcc; then
  2860. echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
  2861. echo "configure:3122: checking whether $CC and cc understand -c and -o together" >&5
  2862. else
  2863. echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
  2864. echo "configure:3125: checking whether cc understands -c and -o together" >&5
  2865. fi
  2866. set dummy $CC; ac_cc="`echo $2 |
  2867. sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
  2868. if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
  2869. echo $ac_n "(cached) $ac_c" 1>&6
  2870. else
  2871. echo 'foo(){}' > conftest.c
  2872. # Make sure it works both with $CC and with simple cc.
  2873. # We do the test twice because some compilers refuse to overwrite an
  2874. # existing .o file with -o, though they will create one.
  2875. ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
  2876. if { (eval echo configure:3137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
  2877. test -f conftest.o && { (eval echo configure:3138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  2878. then
  2879. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  2880. if test "x$CC" != xcc; then
  2881. # Test first that cc exists at all.
  2882. if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:3143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
  2883. ac_try='cc -c conftest.c -o conftest.o 1>&5'
  2884. if { (eval echo configure:3145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
  2885. test -f conftest.o && { (eval echo configure:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  2886. then
  2887. # cc works too.
  2888. :
  2889. else
  2890. # cc exists but doesn't like -o.
  2891. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  2892. fi
  2893. fi
  2894. fi
  2895. else
  2896. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  2897. fi
  2898. rm -f conftest*
  2899. fi
  2900. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  2901. echo "$ac_t""yes" 1>&6
  2902. else
  2903. echo "$ac_t""no" 1>&6
  2904. cat >> confdefs.h <<\EOF
  2905. #define NO_MINUS_C_MINUS_O 1
  2906. EOF
  2907. fi
  2908. if grep "NO_MINUS_C_MINUS_O 1" ./confdefs.h >/dev/null; then
  2909. USING_HCC=1
  2910. _OLDCC=$CC
  2911. _OLDCXX=$CXX
  2912. CC="${srcdir}/build/hcc '$CC'"
  2913. CXX="${srcdir}/build/hcpp '$CXX'"
  2914. fi
  2915. fi
  2916. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2917. echo "configure:3182: checking how to run the C preprocessor" >&5
  2918. # On Suns, sometimes $CPP names a directory.
  2919. if test -n "$CPP" && test -d "$CPP"; then
  2920. CPP=
  2921. fi
  2922. if test -z "$CPP"; then
  2923. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2924. echo $ac_n "(cached) $ac_c" 1>&6
  2925. else
  2926. # This must be in double quotes, not single quotes, because CPP may get
  2927. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2928. CPP="${CC-cc} -E"
  2929. # On the NeXT, cc -E runs the code through the compiler's parser,
  2930. # not just through cpp.
  2931. cat > conftest.$ac_ext <<EOF
  2932. #line 3197 "configure"
  2933. #include "confdefs.h"
  2934. #include <assert.h>
  2935. Syntax Error
  2936. EOF
  2937. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2938. { (eval echo configure:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2939. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2940. if test -z "$ac_err"; then
  2941. :
  2942. else
  2943. echo "$ac_err" >&5
  2944. echo "configure: failed program was:" >&5
  2945. cat conftest.$ac_ext >&5
  2946. rm -rf conftest*
  2947. CPP="${CC-cc} -E -traditional-cpp"
  2948. cat > conftest.$ac_ext <<EOF
  2949. #line 3214 "configure"
  2950. #include "confdefs.h"
  2951. #include <assert.h>
  2952. Syntax Error
  2953. EOF
  2954. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2955. { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2956. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2957. if test -z "$ac_err"; then
  2958. :
  2959. else
  2960. echo "$ac_err" >&5
  2961. echo "configure: failed program was:" >&5
  2962. cat conftest.$ac_ext >&5
  2963. rm -rf conftest*
  2964. CPP="${CC-cc} -nologo -E"
  2965. cat > conftest.$ac_ext <<EOF
  2966. #line 3231 "configure"
  2967. #include "confdefs.h"
  2968. #include <assert.h>
  2969. Syntax Error
  2970. EOF
  2971. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2972. { (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2973. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2974. if test -z "$ac_err"; then
  2975. :
  2976. else
  2977. echo "$ac_err" >&5
  2978. echo "configure: failed program was:" >&5
  2979. cat conftest.$ac_ext >&5
  2980. rm -rf conftest*
  2981. CPP=/lib/cpp
  2982. fi
  2983. rm -f conftest*
  2984. fi
  2985. rm -f conftest*
  2986. fi
  2987. rm -f conftest*
  2988. ac_cv_prog_CPP="$CPP"
  2989. fi
  2990. CPP="$ac_cv_prog_CPP"
  2991. else
  2992. ac_cv_prog_CPP="$CPP"
  2993. fi
  2994. echo "$ac_t""$CPP" 1>&6
  2995. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  2996. echo "configure:3262: checking how to run the C++ preprocessor" >&5
  2997. if test -z "$CXXCPP"; then
  2998. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  2999. echo $ac_n "(cached) $ac_c" 1>&6
  3000. else
  3001. ac_ext=C
  3002. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3003. ac_cpp='$CXXCPP $CPPFLAGS'
  3004. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3005. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3006. cross_compiling=$ac_cv_prog_cxx_cross
  3007. CXXCPP="${CXX-g++} -E"
  3008. cat > conftest.$ac_ext <<EOF
  3009. #line 3275 "configure"
  3010. #include "confdefs.h"
  3011. #include <stdlib.h>
  3012. EOF
  3013. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3014. { (eval echo configure:3280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3015. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3016. if test -z "$ac_err"; then
  3017. :
  3018. else
  3019. echo "$ac_err" >&5
  3020. echo "configure: failed program was:" >&5
  3021. cat conftest.$ac_ext >&5
  3022. rm -rf conftest*
  3023. CXXCPP=/lib/cpp
  3024. fi
  3025. rm -f conftest*
  3026. ac_cv_prog_CXXCPP="$CXXCPP"
  3027. ac_ext=c
  3028. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3029. ac_cpp='$CPP $CPPFLAGS'
  3030. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3031. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3032. cross_compiling=$ac_cv_prog_cc_cross
  3033. fi
  3034. fi
  3035. CXXCPP="$ac_cv_prog_CXXCPP"
  3036. echo "$ac_t""$CXXCPP" 1>&6
  3037. if test -n "$_WIN32_MSVC"; then
  3038. SKIP_PATH_CHECKS=1
  3039. SKIP_COMPILER_CHECKS=1
  3040. SKIP_LIBRARY_CHECKS=1
  3041. fi
  3042. fi # COMPILE_ENVIRONMENT
  3043. # Find a good install program. We prefer a C program (faster),
  3044. # so one script is as good as another. But avoid the broken or
  3045. # incompatible versions:
  3046. # SysV /etc/install, /usr/sbin/install
  3047. # SunOS /usr/etc/install
  3048. # IRIX /sbin/install
  3049. # AIX /bin/install
  3050. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3051. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3052. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3053. # ./install, which can be erroneously created by make from ./install.sh.
  3054. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  3055. echo "configure:3335: checking for a BSD compatible install" >&5
  3056. if test -z "$INSTALL"; then
  3057. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  3058. echo $ac_n "(cached) $ac_c" 1>&6
  3059. else
  3060. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  3061. for ac_dir in $PATH; do
  3062. # Account for people who put trailing slashes in PATH elements.
  3063. case "$ac_dir/" in
  3064. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  3065. *)
  3066. # OSF1 and SCO ODT 3.0 have their own names for install.
  3067. # Don't use installbsd from OSF since it installs stuff as root
  3068. # by default.
  3069. for ac_prog in ginstall scoinst install; do
  3070. if test -f $ac_dir/$ac_prog; then
  3071. if test $ac_prog = install &&
  3072. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  3073. # AIX install. It has an incompatible calling convention.
  3074. :
  3075. else
  3076. ac_cv_path_install="$ac_dir/$ac_prog -c"
  3077. break 2
  3078. fi
  3079. fi
  3080. done
  3081. ;;
  3082. esac
  3083. done
  3084. IFS="$ac_save_IFS"
  3085. fi
  3086. if test "${ac_cv_path_install+set}" = set; then
  3087. INSTALL="$ac_cv_path_install"
  3088. else
  3089. # As a last resort, use the slow shell script. We don't cache a
  3090. # path for INSTALL within a source directory, because that will
  3091. # break other packages using the cache if that directory is
  3092. # removed, or if the path is relative.
  3093. INSTALL="$ac_install_sh"
  3094. fi
  3095. fi
  3096. echo "$ac_t""$INSTALL" 1>&6
  3097. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3098. # It thinks the first close brace ends the variable substitution.
  3099. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3100. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  3101. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3102. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  3103. echo "configure:3388: checking whether ln -s works" >&5
  3104. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  3105. echo $ac_n "(cached) $ac_c" 1>&6
  3106. else
  3107. rm -f conftestdata
  3108. if ln -s X conftestdata 2>/dev/null
  3109. then
  3110. rm -f conftestdata
  3111. ac_cv_prog_LN_S="ln -s"
  3112. else
  3113. ac_cv_prog_LN_S=ln
  3114. fi
  3115. fi
  3116. LN_S="$ac_cv_prog_LN_S"
  3117. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  3118. echo "$ac_t""yes" 1>&6
  3119. else
  3120. echo "$ac_t""no" 1>&6
  3121. fi
  3122. for ac_prog in $PERL perl5 perl
  3123. do
  3124. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3125. set dummy $ac_prog; ac_word=$2
  3126. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3127. echo "configure:3413: checking for $ac_word" >&5
  3128. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  3129. echo $ac_n "(cached) $ac_c" 1>&6
  3130. else
  3131. case "$PERL" in
  3132. /*)
  3133. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  3134. ;;
  3135. ?:/*)
  3136. ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  3137. ;;
  3138. *)
  3139. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3140. ac_dummy="$PATH"
  3141. for ac_dir in $ac_dummy; do
  3142. test -z "$ac_dir" && ac_dir=.
  3143. if test -f $ac_dir/$ac_word; then
  3144. ac_cv_path_PERL="$ac_dir/$ac_word"
  3145. break
  3146. fi
  3147. done
  3148. IFS="$ac_save_ifs"
  3149. ;;
  3150. esac
  3151. fi
  3152. PERL="$ac_cv_path_PERL"
  3153. if test -n "$PERL"; then
  3154. echo "$ac_t""$PERL" 1>&6
  3155. else
  3156. echo "$ac_t""no" 1>&6
  3157. fi
  3158. test -n "$PERL" && break
  3159. done
  3160. if test -z "$PERL" || test "$PERL" = ":"; then
  3161. { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; }
  3162. fi
  3163. if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then
  3164. echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6
  3165. echo "configure:3454: checking for minimum required perl version >= $PERL_VERSION" >&5
  3166. _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
  3167. _perl_res=$?
  3168. echo "$ac_t""$_perl_version" 1>&6
  3169. if test "$_perl_res" != 0; then
  3170. { echo "configure: error: Perl $PERL_VERSION or higher is required." 1>&2; exit 1; }
  3171. fi
  3172. fi
  3173. echo $ac_n "checking for full perl installation""... $ac_c" 1>&6
  3174. echo "configure:3465: checking for full perl installation" >&5
  3175. _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
  3176. _perl_res=$?
  3177. if test "$_perl_res" != 0; then
  3178. echo "$ac_t""no" 1>&6
  3179. { echo "configure: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." 1>&2; exit 1; }
  3180. else
  3181. echo "$ac_t""yes" 1>&6
  3182. fi
  3183. for ac_prog in $PYTHON python
  3184. do
  3185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3186. set dummy $ac_prog; ac_word=$2
  3187. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3188. echo "configure:3480: checking for $ac_word" >&5
  3189. if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
  3190. echo $ac_n "(cached) $ac_c" 1>&6
  3191. else
  3192. case "$PYTHON" in
  3193. /*)
  3194. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  3195. ;;
  3196. ?:/*)
  3197. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
  3198. ;;
  3199. *)
  3200. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3201. ac_dummy="$PATH"
  3202. for ac_dir in $ac_dummy; do
  3203. test -z "$ac_dir" && ac_dir=.
  3204. if test -f $ac_dir/$ac_word; then
  3205. ac_cv_path_PYTHON="$ac_dir/$ac_word"
  3206. break
  3207. fi
  3208. done
  3209. IFS="$ac_save_ifs"
  3210. ;;
  3211. esac
  3212. fi
  3213. PYTHON="$ac_cv_path_PYTHON"
  3214. if test -n "$PYTHON"; then
  3215. echo "$ac_t""$PYTHON" 1>&6
  3216. else
  3217. echo "$ac_t""no" 1>&6
  3218. fi
  3219. test -n "$PYTHON" && break
  3220. done
  3221. if test -z "$PYTHON"; then
  3222. { echo "configure: error: python was not found in \$PATH" 1>&2; exit 1; }
  3223. fi
  3224. echo PYTHON="$PYTHON"
  3225. for ac_prog in nsinstall
  3226. do
  3227. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3228. set dummy $ac_prog; ac_word=$2
  3229. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3230. echo "configure:3525: checking for $ac_word" >&5
  3231. if eval "test \"`echo '$''{'ac_cv_path_NSINSTALL_BIN'+set}'`\" = set"; then
  3232. echo $ac_n "(cached) $ac_c" 1>&6
  3233. else
  3234. case "$NSINSTALL_BIN" in
  3235. /*)
  3236. ac_cv_path_NSINSTALL_BIN="$NSINSTALL_BIN" # Let the user override the test with a path.
  3237. ;;
  3238. ?:/*)
  3239. ac_cv_path_NSINSTALL_BIN="$NSINSTALL_BIN" # Let the user override the test with a dos path.
  3240. ;;
  3241. *)
  3242. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3243. ac_dummy="$PATH"
  3244. for ac_dir in $ac_dummy; do
  3245. test -z "$ac_dir" && ac_dir=.
  3246. if test -f $ac_dir/$ac_word; then
  3247. ac_cv_path_NSINSTALL_BIN="$ac_dir/$ac_word"
  3248. break
  3249. fi
  3250. done
  3251. IFS="$ac_save_ifs"
  3252. ;;
  3253. esac
  3254. fi
  3255. NSINSTALL_BIN="$ac_cv_path_NSINSTALL_BIN"
  3256. if test -n "$NSINSTALL_BIN"; then
  3257. echo "$ac_t""$NSINSTALL_BIN" 1>&6
  3258. else
  3259. echo "$ac_t""no" 1>&6
  3260. fi
  3261. test -n "$NSINSTALL_BIN" && break
  3262. done
  3263. if test -z "$COMPILE_ENVIRONMENT"; then
  3264. if test -z "$NSINSTALL_BIN" || test "$NSINSTALL_BIN" = ":"; then
  3265. NSINSTALL_BIN='$(PYTHON) $(topsrcdir)/config/nsinstall.py'
  3266. fi
  3267. fi
  3268. # Extract the first word of "doxygen", so it can be a program name with args.
  3269. set dummy doxygen; ac_word=$2
  3270. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3271. echo "configure:3570: checking for $ac_word" >&5
  3272. if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
  3273. echo $ac_n "(cached) $ac_c" 1>&6
  3274. else
  3275. case "$DOXYGEN" in
  3276. /*)
  3277. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  3278. ;;
  3279. ?:/*)
  3280. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
  3281. ;;
  3282. *)
  3283. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3284. ac_dummy="$PATH"
  3285. for ac_dir in $ac_dummy; do
  3286. test -z "$ac_dir" && ac_dir=.
  3287. if test -f $ac_dir/$ac_word; then
  3288. ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
  3289. break
  3290. fi
  3291. done
  3292. IFS="$ac_save_ifs"
  3293. test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=":"
  3294. ;;
  3295. esac
  3296. fi
  3297. DOXYGEN="$ac_cv_path_DOXYGEN"
  3298. if test -n "$DOXYGEN"; then
  3299. echo "$ac_t""$DOXYGEN" 1>&6
  3300. else
  3301. echo "$ac_t""no" 1>&6
  3302. fi
  3303. # Extract the first word of "whoami", so it can be a program name with args.
  3304. set dummy whoami; ac_word=$2
  3305. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3306. echo "configure:3606: checking for $ac_word" >&5
  3307. if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
  3308. echo $ac_n "(cached) $ac_c" 1>&6
  3309. else
  3310. case "$WHOAMI" in
  3311. /*)
  3312. ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
  3313. ;;
  3314. ?:/*)
  3315. ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
  3316. ;;
  3317. *)
  3318. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3319. ac_dummy="$PATH"
  3320. for ac_dir in $ac_dummy; do
  3321. test -z "$ac_dir" && ac_dir=.
  3322. if test -f $ac_dir/$ac_word; then
  3323. ac_cv_path_WHOAMI="$ac_dir/$ac_word"
  3324. break
  3325. fi
  3326. done
  3327. IFS="$ac_save_ifs"
  3328. test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI=":"
  3329. ;;
  3330. esac
  3331. fi
  3332. WHOAMI="$ac_cv_path_WHOAMI"
  3333. if test -n "$WHOAMI"; then
  3334. echo "$ac_t""$WHOAMI" 1>&6
  3335. else
  3336. echo "$ac_t""no" 1>&6
  3337. fi
  3338. # Extract the first word of "autoconf", so it can be a program name with args.
  3339. set dummy autoconf; ac_word=$2
  3340. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3341. echo "configure:3642: checking for $ac_word" >&5
  3342. if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
  3343. echo $ac_n "(cached) $ac_c" 1>&6
  3344. else
  3345. case "$AUTOCONF" in
  3346. /*)
  3347. ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
  3348. ;;
  3349. ?:/*)
  3350. ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
  3351. ;;
  3352. *)
  3353. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3354. ac_dummy="$PATH"
  3355. for ac_dir in $ac_dummy; do
  3356. test -z "$ac_dir" && ac_dir=.
  3357. if test -f $ac_dir/$ac_word; then
  3358. ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
  3359. break
  3360. fi
  3361. done
  3362. IFS="$ac_save_ifs"
  3363. test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF=":"
  3364. ;;
  3365. esac
  3366. fi
  3367. AUTOCONF="$ac_cv_path_AUTOCONF"
  3368. if test -n "$AUTOCONF"; then
  3369. echo "$ac_t""$AUTOCONF" 1>&6
  3370. else
  3371. echo "$ac_t""no" 1>&6
  3372. fi
  3373. # Extract the first word of "unzip", so it can be a program name with args.
  3374. set dummy unzip; ac_word=$2
  3375. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3376. echo "configure:3678: checking for $ac_word" >&5
  3377. if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then
  3378. echo $ac_n "(cached) $ac_c" 1>&6
  3379. else
  3380. case "$UNZIP" in
  3381. /*)
  3382. ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
  3383. ;;
  3384. ?:/*)
  3385. ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a dos path.
  3386. ;;
  3387. *)
  3388. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3389. ac_dummy="$PATH"
  3390. for ac_dir in $ac_dummy; do
  3391. test -z "$ac_dir" && ac_dir=.
  3392. if test -f $ac_dir/$ac_word; then
  3393. ac_cv_path_UNZIP="$ac_dir/$ac_word"
  3394. break
  3395. fi
  3396. done
  3397. IFS="$ac_save_ifs"
  3398. test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP=":"
  3399. ;;
  3400. esac
  3401. fi
  3402. UNZIP="$ac_cv_path_UNZIP"
  3403. if test -n "$UNZIP"; then
  3404. echo "$ac_t""$UNZIP" 1>&6
  3405. else
  3406. echo "$ac_t""no" 1>&6
  3407. fi
  3408. for ac_prog in zip
  3409. do
  3410. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3411. set dummy $ac_prog; ac_word=$2
  3412. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3413. echo "configure:3716: checking for $ac_word" >&5
  3414. if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then
  3415. echo $ac_n "(cached) $ac_c" 1>&6
  3416. else
  3417. case "$ZIP" in
  3418. /*)
  3419. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  3420. ;;
  3421. ?:/*)
  3422. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a dos path.
  3423. ;;
  3424. *)
  3425. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3426. ac_dummy="$PATH"
  3427. for ac_dir in $ac_dummy; do
  3428. test -z "$ac_dir" && ac_dir=.
  3429. if test -f $ac_dir/$ac_word; then
  3430. ac_cv_path_ZIP="$ac_dir/$ac_word"
  3431. break
  3432. fi
  3433. done
  3434. IFS="$ac_save_ifs"
  3435. ;;
  3436. esac
  3437. fi
  3438. ZIP="$ac_cv_path_ZIP"
  3439. if test -n "$ZIP"; then
  3440. echo "$ac_t""$ZIP" 1>&6
  3441. else
  3442. echo "$ac_t""no" 1>&6
  3443. fi
  3444. test -n "$ZIP" && break
  3445. done
  3446. if test -z "$ZIP" || test "$ZIP" = ":"; then
  3447. { echo "configure: error: zip not found in \$PATH" 1>&2; exit 1; }
  3448. fi
  3449. # Extract the first word of "makedepend", so it can be a program name with args.
  3450. set dummy makedepend; ac_word=$2
  3451. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3452. echo "configure:3757: checking for $ac_word" >&5
  3453. if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then
  3454. echo $ac_n "(cached) $ac_c" 1>&6
  3455. else
  3456. case "$SYSTEM_MAKEDEPEND" in
  3457. /*)
  3458. ac_cv_path_SYSTEM_MAKEDEPEND="$SYSTEM_MAKEDEPEND" # Let the user override the test with a path.
  3459. ;;
  3460. ?:/*)
  3461. ac_cv_path_SYSTEM_MAKEDEPEND="$SYSTEM_MAKEDEPEND" # Let the user override the test with a dos path.
  3462. ;;
  3463. *)
  3464. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3465. ac_dummy="$PATH"
  3466. for ac_dir in $ac_dummy; do
  3467. test -z "$ac_dir" && ac_dir=.
  3468. if test -f $ac_dir/$ac_word; then
  3469. ac_cv_path_SYSTEM_MAKEDEPEND="$ac_dir/$ac_word"
  3470. break
  3471. fi
  3472. done
  3473. IFS="$ac_save_ifs"
  3474. ;;
  3475. esac
  3476. fi
  3477. SYSTEM_MAKEDEPEND="$ac_cv_path_SYSTEM_MAKEDEPEND"
  3478. if test -n "$SYSTEM_MAKEDEPEND"; then
  3479. echo "$ac_t""$SYSTEM_MAKEDEPEND" 1>&6
  3480. else
  3481. echo "$ac_t""no" 1>&6
  3482. fi
  3483. # Extract the first word of "xargs", so it can be a program name with args.
  3484. set dummy xargs; ac_word=$2
  3485. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3486. echo "configure:3792: checking for $ac_word" >&5
  3487. if eval "test \"`echo '$''{'ac_cv_path_XARGS'+set}'`\" = set"; then
  3488. echo $ac_n "(cached) $ac_c" 1>&6
  3489. else
  3490. case "$XARGS" in
  3491. /*)
  3492. ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
  3493. ;;
  3494. ?:/*)
  3495. ac_cv_path_XARGS="$XARGS" # Let the user override the test with a dos path.
  3496. ;;
  3497. *)
  3498. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3499. ac_dummy="$PATH"
  3500. for ac_dir in $ac_dummy; do
  3501. test -z "$ac_dir" && ac_dir=.
  3502. if test -f $ac_dir/$ac_word; then
  3503. ac_cv_path_XARGS="$ac_dir/$ac_word"
  3504. break
  3505. fi
  3506. done
  3507. IFS="$ac_save_ifs"
  3508. ;;
  3509. esac
  3510. fi
  3511. XARGS="$ac_cv_path_XARGS"
  3512. if test -n "$XARGS"; then
  3513. echo "$ac_t""$XARGS" 1>&6
  3514. else
  3515. echo "$ac_t""no" 1>&6
  3516. fi
  3517. if test -z "$XARGS" || test "$XARGS" = ":"; then
  3518. { echo "configure: error: xargs not found in \$PATH ." 1>&2; exit 1; }
  3519. fi
  3520. if test "$COMPILE_ENVIRONMENT"; then
  3521. case "$target_os" in
  3522. darwin*)
  3523. GCC_VERSION_FULL=`echo $CXX_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'`
  3524. GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'`
  3525. if test "$GCC_VERSION_FULL" = "4.0.0" ; then
  3526. GCC_BUILD=`echo $CXX_VERSION | $PERL -pe 's/^.*build ([^ )]*).*/$1/'`
  3527. if test "$GCC_BUILD" = "4061" ; then
  3528. { echo "configure: error: You are attempting to use Apple gcc 4.0 build 4061.
  3529. This compiler was supplied with Xcode 2.0, and contains bugs that prevent it
  3530. from building Mozilla. Upgrade to Xcode 2.1 or later." 1>&2; exit 1; }
  3531. fi
  3532. fi
  3533. for ac_prog in pbbuild xcodebuild pbxbuild
  3534. do
  3535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3536. set dummy $ac_prog; ac_word=$2
  3537. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3538. echo "configure:3853: checking for $ac_word" >&5
  3539. if eval "test \"`echo '$''{'ac_cv_path_PBBUILD'+set}'`\" = set"; then
  3540. echo $ac_n "(cached) $ac_c" 1>&6
  3541. else
  3542. case "$PBBUILD" in
  3543. /*)
  3544. ac_cv_path_PBBUILD="$PBBUILD" # Let the user override the test with a path.
  3545. ;;
  3546. ?:/*)
  3547. ac_cv_path_PBBUILD="$PBBUILD" # Let the user override the test with a dos path.
  3548. ;;
  3549. *)
  3550. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3551. ac_dummy="$PATH"
  3552. for ac_dir in $ac_dummy; do
  3553. test -z "$ac_dir" && ac_dir=.
  3554. if test -f $ac_dir/$ac_word; then
  3555. ac_cv_path_PBBUILD="$ac_dir/$ac_word"
  3556. break
  3557. fi
  3558. done
  3559. IFS="$ac_save_ifs"
  3560. ;;
  3561. esac
  3562. fi
  3563. PBBUILD="$ac_cv_path_PBBUILD"
  3564. if test -n "$PBBUILD"; then
  3565. echo "$ac_t""$PBBUILD" 1>&6
  3566. else
  3567. echo "$ac_t""no" 1>&6
  3568. fi
  3569. test -n "$PBBUILD" && break
  3570. done
  3571. case "$PBBUILD" in
  3572. *xcodebuild*)
  3573. XCODEBUILD_VERSION=`$PBBUILD -version 2>/dev/null | xargs | sed -e 's/.*DevToolsCore-\([0-9]*\).*/\1/'`
  3574. if test -n "$XCODEBUILD_VERSION" && test "$XCODEBUILD_VERSION" -ge 620 ; then
  3575. HAS_XCODE_2_1=1;
  3576. fi
  3577. ;;
  3578. esac
  3579. # Extract the first word of "sdp", so it can be a program name with args.
  3580. set dummy sdp; ac_word=$2
  3581. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3582. echo "configure:3903: checking for $ac_word" >&5
  3583. if eval "test \"`echo '$''{'ac_cv_path_SDP'+set}'`\" = set"; then
  3584. echo $ac_n "(cached) $ac_c" 1>&6
  3585. else
  3586. case "$SDP" in
  3587. /*)
  3588. ac_cv_path_SDP="$SDP" # Let the user override the test with a path.
  3589. ;;
  3590. ?:/*)
  3591. ac_cv_path_SDP="$SDP" # Let the user override the test with a dos path.
  3592. ;;
  3593. *)
  3594. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3595. ac_dummy="$PATH:/usr/bin:/Developer/Tools"
  3596. for ac_dir in $ac_dummy; do
  3597. test -z "$ac_dir" && ac_dir=.
  3598. if test -f $ac_dir/$ac_word; then
  3599. ac_cv_path_SDP="$ac_dir/$ac_word"
  3600. break
  3601. fi
  3602. done
  3603. IFS="$ac_save_ifs"
  3604. test -z "$ac_cv_path_SDP" && ac_cv_path_SDP=":"
  3605. ;;
  3606. esac
  3607. fi
  3608. SDP="$ac_cv_path_SDP"
  3609. if test -n "$SDP"; then
  3610. echo "$ac_t""$SDP" 1>&6
  3611. else
  3612. echo "$ac_t""no" 1>&6
  3613. fi
  3614. ;;
  3615. esac
  3616. # Check whether --enable-macos-target or --disable-macos-target was given.
  3617. if test "${enable_macos_target+set}" = set; then
  3618. enableval="$enable_macos_target"
  3619. _MACOSX_DEPLOYMENT_TARGET=$enableval
  3620. fi
  3621. case "$target" in
  3622. *-darwin*)
  3623. if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
  3624. export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
  3625. cat >> confdefs.h <<EOF
  3626. #define __ENVIRONMENT_MAC_OS_X_VERION_MIN_REQUIRED__ $_MACOSX_DEPLOYMENT_TARGET
  3627. EOF
  3628. elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
  3629. export MACOSX_DEPLOYMENT_TARGET=10.4
  3630. fi
  3631. ;;
  3632. esac
  3633. MACOS_SDK_DIR=
  3634. NEXT_ROOT=
  3635. # Check whether --with-macos-sdk or --without-macos-sdk was given.
  3636. if test "${with_macos_sdk+set}" = set; then
  3637. withval="$with_macos_sdk"
  3638. MACOS_SDK_DIR=$withval
  3639. fi
  3640. if test "$MACOS_SDK_DIR"; then
  3641. if test ! -d "$MACOS_SDK_DIR"; then
  3642. { echo "configure: error: SDK not found. When using --with-macos-sdk, you must
  3643. specify a valid SDK. SDKs are installed when the optional cross-development
  3644. tools are selected during the Xcode/Developer Tools installation." 1>&2; exit 1; }
  3645. fi
  3646. GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
  3647. if test "$GCC_VERSION_MAJOR" -lt "4" ; then
  3648. SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include -F${MACOS_SDK_DIR}/System/Library/Frameworks"
  3649. if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then
  3650. SDK_C_INCLUDE="$SDK_C_INCLUDE -F${MACOS_SDK_DIR}/Library/Frameworks"
  3651. fi
  3652. SDK_CXX_INCLUDE="-I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION}/c++ -I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION}/c++/ppc-darwin -I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION}/c++/backward"
  3653. CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"
  3654. CXXFLAGS="$CXXFLAGS -nostdinc -nostdinc++ ${SDK_CXX_INCLUDE} ${SDK_C_INCLUDE}"
  3655. CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"
  3656. CXXCPP="$CXXCPP -nostdinc -nostdinc++ ${SDK_CXX_INCLUDE} ${SDK_C_INCLUDE}"
  3657. LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib $LIBS"
  3658. export NEXT_ROOT=$MACOS_SDK_DIR
  3659. if test -n "$CROSS_COMPILE" ; then
  3660. HOST_CC="NEXT_ROOT= $HOST_CC"
  3661. HOST_CXX="NEXT_ROOT= $HOST_CXX"
  3662. fi
  3663. else
  3664. CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
  3665. CXXFLAGS="$CXXFLAGS -isysroot ${MACOS_SDK_DIR}"
  3666. CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
  3667. CXXCPP="$CXXCPP -isysroot ${MACOS_SDK_DIR}"
  3668. if test "$GCC_VERSION_FULL" = "4.0.0" ; then
  3669. LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
  3670. fi
  3671. fi
  3672. echo $ac_n "checking for valid compiler/Mac OS X SDK combination""... $ac_c" 1>&6
  3673. echo "configure:4024: checking for valid compiler/Mac OS X SDK combination" >&5
  3674. ac_ext=C
  3675. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3676. ac_cpp='$CXXCPP $CPPFLAGS'
  3677. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3678. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3679. cross_compiling=$ac_cv_prog_cxx_cross
  3680. cat > conftest.$ac_ext <<EOF
  3681. #line 4033 "configure"
  3682. #include "confdefs.h"
  3683. #include <new>
  3684. int main() { return 0; }
  3685. int main() {
  3686. result=yes
  3687. ; return 0; }
  3688. EOF
  3689. if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3690. rm -rf conftest*
  3691. result=no
  3692. else
  3693. echo "configure: failed program was:" >&5
  3694. cat conftest.$ac_ext >&5
  3695. fi
  3696. rm -f conftest*
  3697. ac_ext=c
  3698. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3699. ac_cpp='$CPP $CPPFLAGS'
  3700. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3701. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3702. cross_compiling=$ac_cv_prog_cc_cross
  3703. echo "$ac_t""$result" 1>&6
  3704. if test "$result" = "no" ; then
  3705. { echo "configure: error: The selected compiler and Mac OS X SDK are incompatible." 1>&2; exit 1; }
  3706. fi
  3707. fi
  3708. fi # COMPILE_ENVIRONMENT
  3709. case "$host_os" in
  3710. cygwin*|mingw*|mks*|msvc*)
  3711. for ac_prog in $MAKE make gmake
  3712. do
  3713. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3714. set dummy $ac_prog; ac_word=$2
  3715. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3716. echo "configure:4072: checking for $ac_word" >&5
  3717. if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
  3718. echo $ac_n "(cached) $ac_c" 1>&6
  3719. else
  3720. case "$MAKE" in
  3721. /*)
  3722. ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
  3723. ;;
  3724. ?:/*)
  3725. ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
  3726. ;;
  3727. *)
  3728. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3729. ac_dummy="$PATH"
  3730. for ac_dir in $ac_dummy; do
  3731. test -z "$ac_dir" && ac_dir=.
  3732. if test -f $ac_dir/$ac_word; then
  3733. ac_cv_path_MAKE="$ac_dir/$ac_word"
  3734. break
  3735. fi
  3736. done
  3737. IFS="$ac_save_ifs"
  3738. ;;
  3739. esac
  3740. fi
  3741. MAKE="$ac_cv_path_MAKE"
  3742. if test -n "$MAKE"; then
  3743. echo "$ac_t""$MAKE" 1>&6
  3744. else
  3745. echo "$ac_t""no" 1>&6
  3746. fi
  3747. test -n "$MAKE" && break
  3748. done
  3749. test -n "$MAKE" || MAKE=":"
  3750. ;;
  3751. *)
  3752. for ac_prog in $MAKE gmake make
  3753. do
  3754. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3755. set dummy $ac_prog; ac_word=$2
  3756. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3757. echo "configure:4115: checking for $ac_word" >&5
  3758. if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
  3759. echo $ac_n "(cached) $ac_c" 1>&6
  3760. else
  3761. case "$MAKE" in
  3762. /*)
  3763. ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
  3764. ;;
  3765. ?:/*)
  3766. ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
  3767. ;;
  3768. *)
  3769. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3770. ac_dummy="$PATH"
  3771. for ac_dir in $ac_dummy; do
  3772. test -z "$ac_dir" && ac_dir=.
  3773. if test -f $ac_dir/$ac_word; then
  3774. ac_cv_path_MAKE="$ac_dir/$ac_word"
  3775. break
  3776. fi
  3777. done
  3778. IFS="$ac_save_ifs"
  3779. ;;
  3780. esac
  3781. fi
  3782. MAKE="$ac_cv_path_MAKE"
  3783. if test -n "$MAKE"; then
  3784. echo "$ac_t""$MAKE" 1>&6
  3785. else
  3786. echo "$ac_t""no" 1>&6
  3787. fi
  3788. test -n "$MAKE" && break
  3789. done
  3790. test -n "$MAKE" || MAKE=":"
  3791. ;;
  3792. esac
  3793. _make_try=`$MAKE --version 2>/dev/null | grep GNU`
  3794. if test ! "$_make_try"
  3795. then
  3796. echo
  3797. echo "*** $MAKE is not GNU Make. You will not be able to build Mozilla without GNU Make."
  3798. echo
  3799. exit 1
  3800. fi
  3801. rm -f dummy.mk
  3802. echo 'all: ; @echo $(MAKE_VERSION)' > dummy.mk
  3803. _make_vers=`$MAKE --no-print-directory -f dummy.mk all 2>/dev/null`
  3804. rm -f dummy.mk
  3805. _MAKE_MAJOR_VERSION=`echo $_make_vers | $AWK -F\. '{ print $1 }'`
  3806. _MAKE_MINOR_VERSION=`echo $_make_vers | $AWK -F\. '{ print $2 }'`
  3807. MAKE_MAJOR_VERSION=`echo $MAKE_VERSION | $AWK -F\. '{ print $1 }'`
  3808. MAKE_MINOR_VERSION=`echo $MAKE_VERSION | $AWK -F\. '{ print $2 }'`
  3809. if test "$_MAKE_MAJOR_VERSION" -lt "$MAKE_MAJOR_VERSION" || \
  3810. test "$_MAKE_MAJOR_VERSION" = "$MAKE_MAJOR_VERSION" -a \
  3811. "$_MAKE_MINOR_VERSION" -lt "$MAKE_MINOR_VERSION"; then
  3812. { echo "configure: error: GNU Make $MAKE_VERSION or higher is required to build Mozilla." 1>&2; exit 1; }
  3813. fi
  3814. if test "$COMPILE_ENVIRONMENT"; then
  3815. # If we find X, set shell vars x_includes and x_libraries to the
  3816. # paths, otherwise set no_x=yes.
  3817. # Uses ac_ vars as temps to allow command line to override cache and checks.
  3818. # --without-x overrides everything else, but does not touch the cache.
  3819. echo $ac_n "checking for X""... $ac_c" 1>&6
  3820. echo "configure:4183: checking for X" >&5
  3821. # Check whether --with-x or --without-x was given.
  3822. if test "${with_x+set}" = set; then
  3823. withval="$with_x"
  3824. :
  3825. fi
  3826. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3827. if test "x$with_x" = xno; then
  3828. # The user explicitly disabled X.
  3829. have_x=disabled
  3830. else
  3831. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  3832. # Both variables are already set.
  3833. have_x=yes
  3834. else
  3835. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  3836. echo $ac_n "(cached) $ac_c" 1>&6
  3837. else
  3838. # One or both of the vars are not set, and there is no cached value.
  3839. ac_x_includes=NO ac_x_libraries=NO
  3840. rm -fr conftestdir
  3841. if mkdir conftestdir; then
  3842. cd conftestdir
  3843. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  3844. cat > Imakefile <<'EOF'
  3845. acfindx:
  3846. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  3847. EOF
  3848. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  3849. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3850. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  3851. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3852. for ac_extension in a so sl; do
  3853. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  3854. test -f $ac_im_libdir/libX11.$ac_extension; then
  3855. ac_im_usrlibdir=$ac_im_libdir; break
  3856. fi
  3857. done
  3858. # Screen out bogus values from the imake configuration. They are
  3859. # bogus both because they are the default anyway, and because
  3860. # using them would break gcc on systems where it needs fixed includes.
  3861. case "$ac_im_incroot" in
  3862. /usr/include) ;;
  3863. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  3864. esac
  3865. case "$ac_im_usrlibdir" in
  3866. /usr/lib | /lib) ;;
  3867. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  3868. esac
  3869. fi
  3870. cd ..
  3871. rm -fr conftestdir
  3872. fi
  3873. if test "$ac_x_includes" = NO; then
  3874. # Guess where to find include files, by looking for this one X11 .h file.
  3875. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  3876. # First, try using that file with no special directory specified.
  3877. cat > conftest.$ac_ext <<EOF
  3878. #line 4245 "configure"
  3879. #include "confdefs.h"
  3880. #include <$x_direct_test_include>
  3881. EOF
  3882. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3883. { (eval echo configure:4250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3884. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3885. if test -z "$ac_err"; then
  3886. rm -rf conftest*
  3887. # We can compile using X headers with no special include directory.
  3888. ac_x_includes=
  3889. else
  3890. echo "$ac_err" >&5
  3891. echo "configure: failed program was:" >&5
  3892. cat conftest.$ac_ext >&5
  3893. rm -rf conftest*
  3894. # Look for the header file in a standard set of common directories.
  3895. # Check X11 before X11Rn because it is often a symlink to the current release.
  3896. for ac_dir in \
  3897. /usr/X11/include \
  3898. /usr/X11R6/include \
  3899. /usr/X11R5/include \
  3900. /usr/X11R4/include \
  3901. \
  3902. /usr/include/X11 \
  3903. /usr/include/X11R6 \
  3904. /usr/include/X11R5 \
  3905. /usr/include/X11R4 \
  3906. \
  3907. /usr/local/X11/include \
  3908. /usr/local/X11R6/include \
  3909. /usr/local/X11R5/include \
  3910. /usr/local/X11R4/include \
  3911. \
  3912. /usr/local/include/X11 \
  3913. /usr/local/include/X11R6 \
  3914. /usr/local/include/X11R5 \
  3915. /usr/local/include/X11R4 \
  3916. \
  3917. /usr/X386/include \
  3918. /usr/x386/include \
  3919. /usr/XFree86/include/X11 \
  3920. \
  3921. /usr/include \
  3922. /usr/local/include \
  3923. /usr/unsupported/include \
  3924. /usr/athena/include \
  3925. /usr/local/x11r5/include \
  3926. /usr/lpp/Xamples/include \
  3927. \
  3928. /usr/openwin/include \
  3929. /usr/openwin/share/include \
  3930. ; \
  3931. do
  3932. if test -r "$ac_dir/$x_direct_test_include"; then
  3933. ac_x_includes=$ac_dir
  3934. break
  3935. fi
  3936. done
  3937. fi
  3938. rm -f conftest*
  3939. fi # $ac_x_includes = NO
  3940. if test "$ac_x_libraries" = NO; then
  3941. # Check for the libraries.
  3942. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  3943. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  3944. # See if we find them without any special options.
  3945. # Don't add to $LIBS permanently.
  3946. ac_save_LIBS="$LIBS"
  3947. LIBS="-l$x_direct_test_library $LIBS"
  3948. cat > conftest.$ac_ext <<EOF
  3949. #line 4319 "configure"
  3950. #include "confdefs.h"
  3951. int main() {
  3952. ${x_direct_test_function}()
  3953. ; return 0; }
  3954. EOF
  3955. if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3956. rm -rf conftest*
  3957. LIBS="$ac_save_LIBS"
  3958. # We can link X programs with no special library path.
  3959. ac_x_libraries=
  3960. else
  3961. echo "configure: failed program was:" >&5
  3962. cat conftest.$ac_ext >&5
  3963. rm -rf conftest*
  3964. LIBS="$ac_save_LIBS"
  3965. # First see if replacing the include by lib works.
  3966. # Check X11 before X11Rn because it is often a symlink to the current release.
  3967. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  3968. /usr/X11/lib \
  3969. /usr/X11R6/lib \
  3970. /usr/X11R5/lib \
  3971. /usr/X11R4/lib \
  3972. \
  3973. /usr/lib/X11 \
  3974. /usr/lib/X11R6 \
  3975. /usr/lib/X11R5 \
  3976. /usr/lib/X11R4 \
  3977. \
  3978. /usr/local/X11/lib \
  3979. /usr/local/X11R6/lib \
  3980. /usr/local/X11R5/lib \
  3981. /usr/local/X11R4/lib \
  3982. \
  3983. /usr/local/lib/X11 \
  3984. /usr/local/lib/X11R6 \
  3985. /usr/local/lib/X11R5 \
  3986. /usr/local/lib/X11R4 \
  3987. \
  3988. /usr/X386/lib \
  3989. /usr/x386/lib \
  3990. /usr/XFree86/lib/X11 \
  3991. \
  3992. /usr/lib \
  3993. /usr/local/lib \
  3994. /usr/unsupported/lib \
  3995. /usr/athena/lib \
  3996. /usr/local/x11r5/lib \
  3997. /usr/lpp/Xamples/lib \
  3998. /lib/usr/lib/X11 \
  3999. \
  4000. /usr/openwin/lib \
  4001. /usr/openwin/share/lib \
  4002. ; \
  4003. do
  4004. for ac_extension in a so sl; do
  4005. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  4006. ac_x_libraries=$ac_dir
  4007. break 2
  4008. fi
  4009. done
  4010. done
  4011. fi
  4012. rm -f conftest*
  4013. fi # $ac_x_libraries = NO
  4014. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  4015. # Didn't find X anywhere. Cache the known absence of X.
  4016. ac_cv_have_x="have_x=no"
  4017. else
  4018. # Record where we found X for the cache.
  4019. ac_cv_have_x="have_x=yes \
  4020. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  4021. fi
  4022. fi
  4023. fi
  4024. eval "$ac_cv_have_x"
  4025. fi # $with_x != no
  4026. if test "$have_x" != yes; then
  4027. echo "$ac_t""$have_x" 1>&6
  4028. no_x=yes
  4029. else
  4030. # If each of the values was on the command line, it overrides each guess.
  4031. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  4032. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  4033. # Update the cache value to reflect the command line values.
  4034. ac_cv_have_x="have_x=yes \
  4035. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  4036. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  4037. fi
  4038. if test "$no_x" = yes; then
  4039. # Not all programs may use this symbol, but it does not hurt to define it.
  4040. cat >> confdefs.h <<\EOF
  4041. #define X_DISPLAY_MISSING 1
  4042. EOF
  4043. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  4044. else
  4045. if test -n "$x_includes"; then
  4046. X_CFLAGS="$X_CFLAGS -I$x_includes"
  4047. fi
  4048. # It would also be nice to do this for all -L options, not just this one.
  4049. if test -n "$x_libraries"; then
  4050. X_LIBS="$X_LIBS -L$x_libraries"
  4051. # For Solaris; some versions of Sun CC require a space after -R and
  4052. # others require no space. Words are not sufficient . . . .
  4053. case "`(uname -sr) 2>/dev/null`" in
  4054. "SunOS 5"*)
  4055. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  4056. echo "configure:4432: checking whether -R must be followed by a space" >&5
  4057. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  4058. cat > conftest.$ac_ext <<EOF
  4059. #line 4435 "configure"
  4060. #include "confdefs.h"
  4061. int main() {
  4062. ; return 0; }
  4063. EOF
  4064. if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4065. rm -rf conftest*
  4066. ac_R_nospace=yes
  4067. else
  4068. echo "configure: failed program was:" >&5
  4069. cat conftest.$ac_ext >&5
  4070. rm -rf conftest*
  4071. ac_R_nospace=no
  4072. fi
  4073. rm -f conftest*
  4074. if test $ac_R_nospace = yes; then
  4075. echo "$ac_t""no" 1>&6
  4076. X_LIBS="$X_LIBS -R$x_libraries"
  4077. else
  4078. LIBS="$ac_xsave_LIBS -R $x_libraries"
  4079. cat > conftest.$ac_ext <<EOF
  4080. #line 4458 "configure"
  4081. #include "confdefs.h"
  4082. int main() {
  4083. ; return 0; }
  4084. EOF
  4085. if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4086. rm -rf conftest*
  4087. ac_R_space=yes
  4088. else
  4089. echo "configure: failed program was:" >&5
  4090. cat conftest.$ac_ext >&5
  4091. rm -rf conftest*
  4092. ac_R_space=no
  4093. fi
  4094. rm -f conftest*
  4095. if test $ac_R_space = yes; then
  4096. echo "$ac_t""yes" 1>&6
  4097. X_LIBS="$X_LIBS -R $x_libraries"
  4098. else
  4099. echo "$ac_t""neither works" 1>&6
  4100. fi
  4101. fi
  4102. LIBS="$ac_xsave_LIBS"
  4103. esac
  4104. fi
  4105. # Check for system-dependent libraries X programs must link with.
  4106. # Do this before checking for the system-independent R6 libraries
  4107. # (-lICE), since we may need -lsocket or whatever for X linking.
  4108. if test "$ISC" = yes; then
  4109. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  4110. else
  4111. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  4112. # libraries were built with DECnet support. And karl@cs.umb.edu says
  4113. # the Alpha needs dnet_stub (dnet does not exist).
  4114. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  4115. echo "configure:4497: checking for dnet_ntoa in -ldnet" >&5
  4116. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  4117. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4118. echo $ac_n "(cached) $ac_c" 1>&6
  4119. else
  4120. ac_save_LIBS="$LIBS"
  4121. LIBS="-ldnet $LIBS"
  4122. cat > conftest.$ac_ext <<EOF
  4123. #line 4505 "configure"
  4124. #include "confdefs.h"
  4125. /* Override any gcc2 internal prototype to avoid an error. */
  4126. /* We use char because int might match the return type of a gcc2
  4127. builtin and then its argument prototype would still apply. */
  4128. char dnet_ntoa();
  4129. int main() {
  4130. dnet_ntoa()
  4131. ; return 0; }
  4132. EOF
  4133. if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4134. rm -rf conftest*
  4135. eval "ac_cv_lib_$ac_lib_var=yes"
  4136. else
  4137. echo "configure: failed program was:" >&5
  4138. cat conftest.$ac_ext >&5
  4139. rm -rf conftest*
  4140. eval "ac_cv_lib_$ac_lib_var=no"
  4141. fi
  4142. rm -f conftest*
  4143. LIBS="$ac_save_LIBS"
  4144. fi
  4145. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4146. echo "$ac_t""yes" 1>&6
  4147. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  4148. else
  4149. echo "$ac_t""no" 1>&6
  4150. fi
  4151. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  4152. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  4153. echo "configure:4538: checking for dnet_ntoa in -ldnet_stub" >&5
  4154. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  4155. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4156. echo $ac_n "(cached) $ac_c" 1>&6
  4157. else
  4158. ac_save_LIBS="$LIBS"
  4159. LIBS="-ldnet_stub $LIBS"
  4160. cat > conftest.$ac_ext <<EOF
  4161. #line 4546 "configure"
  4162. #include "confdefs.h"
  4163. /* Override any gcc2 internal prototype to avoid an error. */
  4164. /* We use char because int might match the return type of a gcc2
  4165. builtin and then its argument prototype would still apply. */
  4166. char dnet_ntoa();
  4167. int main() {
  4168. dnet_ntoa()
  4169. ; return 0; }
  4170. EOF
  4171. if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4172. rm -rf conftest*
  4173. eval "ac_cv_lib_$ac_lib_var=yes"
  4174. else
  4175. echo "configure: failed program was:" >&5
  4176. cat conftest.$ac_ext >&5
  4177. rm -rf conftest*
  4178. eval "ac_cv_lib_$ac_lib_var=no"
  4179. fi
  4180. rm -f conftest*
  4181. LIBS="$ac_save_LIBS"
  4182. fi
  4183. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4184. echo "$ac_t""yes" 1>&6
  4185. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  4186. else
  4187. echo "$ac_t""no" 1>&6
  4188. fi
  4189. fi
  4190. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  4191. # to get the SysV transport functions.
  4192. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  4193. # needs -lnsl.
  4194. # The nsl library prevents programs from opening the X display
  4195. # on Irix 5.2, according to dickey@clark.net.
  4196. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  4197. echo "configure:4586: checking for gethostbyname" >&5
  4198. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  4199. echo $ac_n "(cached) $ac_c" 1>&6
  4200. else
  4201. cat > conftest.$ac_ext <<EOF
  4202. #line 4591 "configure"
  4203. #include "confdefs.h"
  4204. /* System header to define __stub macros and hopefully few prototypes,
  4205. which can conflict with char gethostbyname(); below. */
  4206. #include <assert.h>
  4207. /* Override any gcc2 internal prototype to avoid an error. */
  4208. /* We use char because int might match the return type of a gcc2
  4209. builtin and then its argument prototype would still apply. */
  4210. char gethostbyname();
  4211. int main() {
  4212. /* The GNU C library defines this for functions which it implements
  4213. to always fail with ENOSYS. Some functions are actually named
  4214. something starting with __ and the normal name is an alias. */
  4215. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  4216. choke me
  4217. #else
  4218. gethostbyname();
  4219. #endif
  4220. ; return 0; }
  4221. EOF
  4222. if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4223. rm -rf conftest*
  4224. eval "ac_cv_func_gethostbyname=yes"
  4225. else
  4226. echo "configure: failed program was:" >&5
  4227. cat conftest.$ac_ext >&5
  4228. rm -rf conftest*
  4229. eval "ac_cv_func_gethostbyname=no"
  4230. fi
  4231. rm -f conftest*
  4232. fi
  4233. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  4234. echo "$ac_t""yes" 1>&6
  4235. :
  4236. else
  4237. echo "$ac_t""no" 1>&6
  4238. fi
  4239. if test $ac_cv_func_gethostbyname = no; then
  4240. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  4241. echo "configure:4635: checking for gethostbyname in -lnsl" >&5
  4242. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  4243. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4244. echo $ac_n "(cached) $ac_c" 1>&6
  4245. else
  4246. ac_save_LIBS="$LIBS"
  4247. LIBS="-lnsl $LIBS"
  4248. cat > conftest.$ac_ext <<EOF
  4249. #line 4643 "configure"
  4250. #include "confdefs.h"
  4251. /* Override any gcc2 internal prototype to avoid an error. */
  4252. /* We use char because int might match the return type of a gcc2
  4253. builtin and then its argument prototype would still apply. */
  4254. char gethostbyname();
  4255. int main() {
  4256. gethostbyname()
  4257. ; return 0; }
  4258. EOF
  4259. if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4260. rm -rf conftest*
  4261. eval "ac_cv_lib_$ac_lib_var=yes"
  4262. else
  4263. echo "configure: failed program was:" >&5
  4264. cat conftest.$ac_ext >&5
  4265. rm -rf conftest*
  4266. eval "ac_cv_lib_$ac_lib_var=no"
  4267. fi
  4268. rm -f conftest*
  4269. LIBS="$ac_save_LIBS"
  4270. fi
  4271. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4272. echo "$ac_t""yes" 1>&6
  4273. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  4274. else
  4275. echo "$ac_t""no" 1>&6
  4276. fi
  4277. fi
  4278. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  4279. # socket/setsockopt and other routines are undefined under SCO ODT
  4280. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  4281. # on later versions), says simon@lia.di.epfl.ch: it contains
  4282. # gethostby* variants that don't use the nameserver (or something).
  4283. # -lsocket must be given before -lnsl if both are needed.
  4284. # We assume that if connect needs -lnsl, so does gethostbyname.
  4285. echo $ac_n "checking for connect""... $ac_c" 1>&6
  4286. echo "configure:4684: checking for connect" >&5
  4287. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  4288. echo $ac_n "(cached) $ac_c" 1>&6
  4289. else
  4290. cat > conftest.$ac_ext <<EOF
  4291. #line 4689 "configure"
  4292. #include "confdefs.h"
  4293. /* System header to define __stub macros and hopefully few prototypes,
  4294. which can conflict with char connect(); below. */
  4295. #include <assert.h>
  4296. /* Override any gcc2 internal prototype to avoid an error. */
  4297. /* We use char because int might match the return type of a gcc2
  4298. builtin and then its argument prototype would still apply. */
  4299. char connect();
  4300. int main() {
  4301. /* The GNU C library defines this for functions which it implements
  4302. to always fail with ENOSYS. Some functions are actually named
  4303. something starting with __ and the normal name is an alias. */
  4304. #if defined (__stub_connect) || defined (__stub___connect)
  4305. choke me
  4306. #else
  4307. connect();
  4308. #endif
  4309. ; return 0; }
  4310. EOF
  4311. if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4312. rm -rf conftest*
  4313. eval "ac_cv_func_connect=yes"
  4314. else
  4315. echo "configure: failed program was:" >&5
  4316. cat conftest.$ac_ext >&5
  4317. rm -rf conftest*
  4318. eval "ac_cv_func_connect=no"
  4319. fi
  4320. rm -f conftest*
  4321. fi
  4322. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  4323. echo "$ac_t""yes" 1>&6
  4324. :
  4325. else
  4326. echo "$ac_t""no" 1>&6
  4327. fi
  4328. if test $ac_cv_func_connect = no; then
  4329. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  4330. echo "configure:4733: checking for connect in -lsocket" >&5
  4331. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  4332. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4333. echo $ac_n "(cached) $ac_c" 1>&6
  4334. else
  4335. ac_save_LIBS="$LIBS"
  4336. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  4337. cat > conftest.$ac_ext <<EOF
  4338. #line 4741 "configure"
  4339. #include "confdefs.h"
  4340. /* Override any gcc2 internal prototype to avoid an error. */
  4341. /* We use char because int might match the return type of a gcc2
  4342. builtin and then its argument prototype would still apply. */
  4343. char connect();
  4344. int main() {
  4345. connect()
  4346. ; return 0; }
  4347. EOF
  4348. if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4349. rm -rf conftest*
  4350. eval "ac_cv_lib_$ac_lib_var=yes"
  4351. else
  4352. echo "configure: failed program was:" >&5
  4353. cat conftest.$ac_ext >&5
  4354. rm -rf conftest*
  4355. eval "ac_cv_lib_$ac_lib_var=no"
  4356. fi
  4357. rm -f conftest*
  4358. LIBS="$ac_save_LIBS"
  4359. fi
  4360. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4361. echo "$ac_t""yes" 1>&6
  4362. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  4363. else
  4364. echo "$ac_t""no" 1>&6
  4365. fi
  4366. fi
  4367. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  4368. echo $ac_n "checking for remove""... $ac_c" 1>&6
  4369. echo "configure:4776: checking for remove" >&5
  4370. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  4371. echo $ac_n "(cached) $ac_c" 1>&6
  4372. else
  4373. cat > conftest.$ac_ext <<EOF
  4374. #line 4781 "configure"
  4375. #include "confdefs.h"
  4376. /* System header to define __stub macros and hopefully few prototypes,
  4377. which can conflict with char remove(); below. */
  4378. #include <assert.h>
  4379. /* Override any gcc2 internal prototype to avoid an error. */
  4380. /* We use char because int might match the return type of a gcc2
  4381. builtin and then its argument prototype would still apply. */
  4382. char remove();
  4383. int main() {
  4384. /* The GNU C library defines this for functions which it implements
  4385. to always fail with ENOSYS. Some functions are actually named
  4386. something starting with __ and the normal name is an alias. */
  4387. #if defined (__stub_remove) || defined (__stub___remove)
  4388. choke me
  4389. #else
  4390. remove();
  4391. #endif
  4392. ; return 0; }
  4393. EOF
  4394. if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4395. rm -rf conftest*
  4396. eval "ac_cv_func_remove=yes"
  4397. else
  4398. echo "configure: failed program was:" >&5
  4399. cat conftest.$ac_ext >&5
  4400. rm -rf conftest*
  4401. eval "ac_cv_func_remove=no"
  4402. fi
  4403. rm -f conftest*
  4404. fi
  4405. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  4406. echo "$ac_t""yes" 1>&6
  4407. :
  4408. else
  4409. echo "$ac_t""no" 1>&6
  4410. fi
  4411. if test $ac_cv_func_remove = no; then
  4412. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  4413. echo "configure:4825: checking for remove in -lposix" >&5
  4414. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  4415. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4416. echo $ac_n "(cached) $ac_c" 1>&6
  4417. else
  4418. ac_save_LIBS="$LIBS"
  4419. LIBS="-lposix $LIBS"
  4420. cat > conftest.$ac_ext <<EOF
  4421. #line 4833 "configure"
  4422. #include "confdefs.h"
  4423. /* Override any gcc2 internal prototype to avoid an error. */
  4424. /* We use char because int might match the return type of a gcc2
  4425. builtin and then its argument prototype would still apply. */
  4426. char remove();
  4427. int main() {
  4428. remove()
  4429. ; return 0; }
  4430. EOF
  4431. if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4432. rm -rf conftest*
  4433. eval "ac_cv_lib_$ac_lib_var=yes"
  4434. else
  4435. echo "configure: failed program was:" >&5
  4436. cat conftest.$ac_ext >&5
  4437. rm -rf conftest*
  4438. eval "ac_cv_lib_$ac_lib_var=no"
  4439. fi
  4440. rm -f conftest*
  4441. LIBS="$ac_save_LIBS"
  4442. fi
  4443. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4444. echo "$ac_t""yes" 1>&6
  4445. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  4446. else
  4447. echo "$ac_t""no" 1>&6
  4448. fi
  4449. fi
  4450. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  4451. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  4452. echo "configure:4868: checking for shmat" >&5
  4453. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  4454. echo $ac_n "(cached) $ac_c" 1>&6
  4455. else
  4456. cat > conftest.$ac_ext <<EOF
  4457. #line 4873 "configure"
  4458. #include "confdefs.h"
  4459. /* System header to define __stub macros and hopefully few prototypes,
  4460. which can conflict with char shmat(); below. */
  4461. #include <assert.h>
  4462. /* Override any gcc2 internal prototype to avoid an error. */
  4463. /* We use char because int might match the return type of a gcc2
  4464. builtin and then its argument prototype would still apply. */
  4465. char shmat();
  4466. int main() {
  4467. /* The GNU C library defines this for functions which it implements
  4468. to always fail with ENOSYS. Some functions are actually named
  4469. something starting with __ and the normal name is an alias. */
  4470. #if defined (__stub_shmat) || defined (__stub___shmat)
  4471. choke me
  4472. #else
  4473. shmat();
  4474. #endif
  4475. ; return 0; }
  4476. EOF
  4477. if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4478. rm -rf conftest*
  4479. eval "ac_cv_func_shmat=yes"
  4480. else
  4481. echo "configure: failed program was:" >&5
  4482. cat conftest.$ac_ext >&5
  4483. rm -rf conftest*
  4484. eval "ac_cv_func_shmat=no"
  4485. fi
  4486. rm -f conftest*
  4487. fi
  4488. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  4489. echo "$ac_t""yes" 1>&6
  4490. :
  4491. else
  4492. echo "$ac_t""no" 1>&6
  4493. fi
  4494. if test $ac_cv_func_shmat = no; then
  4495. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  4496. echo "configure:4917: checking for shmat in -lipc" >&5
  4497. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  4498. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4499. echo $ac_n "(cached) $ac_c" 1>&6
  4500. else
  4501. ac_save_LIBS="$LIBS"
  4502. LIBS="-lipc $LIBS"
  4503. cat > conftest.$ac_ext <<EOF
  4504. #line 4925 "configure"
  4505. #include "confdefs.h"
  4506. /* Override any gcc2 internal prototype to avoid an error. */
  4507. /* We use char because int might match the return type of a gcc2
  4508. builtin and then its argument prototype would still apply. */
  4509. char shmat();
  4510. int main() {
  4511. shmat()
  4512. ; return 0; }
  4513. EOF
  4514. if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4515. rm -rf conftest*
  4516. eval "ac_cv_lib_$ac_lib_var=yes"
  4517. else
  4518. echo "configure: failed program was:" >&5
  4519. cat conftest.$ac_ext >&5
  4520. rm -rf conftest*
  4521. eval "ac_cv_lib_$ac_lib_var=no"
  4522. fi
  4523. rm -f conftest*
  4524. LIBS="$ac_save_LIBS"
  4525. fi
  4526. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4527. echo "$ac_t""yes" 1>&6
  4528. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  4529. else
  4530. echo "$ac_t""no" 1>&6
  4531. fi
  4532. fi
  4533. fi
  4534. # Check for libraries that X11R6 Xt/Xaw programs need.
  4535. ac_save_LDFLAGS="$LDFLAGS"
  4536. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  4537. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  4538. # check for ICE first), but we must link in the order -lSM -lICE or
  4539. # we get undefined symbols. So assume we have SM if we have ICE.
  4540. # These have to be linked with before -lX11, unlike the other
  4541. # libraries we check for below, so use a different variable.
  4542. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  4543. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  4544. echo "configure:4969: checking for IceConnectionNumber in -lICE" >&5
  4545. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  4546. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4547. echo $ac_n "(cached) $ac_c" 1>&6
  4548. else
  4549. ac_save_LIBS="$LIBS"
  4550. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  4551. cat > conftest.$ac_ext <<EOF
  4552. #line 4977 "configure"
  4553. #include "confdefs.h"
  4554. /* Override any gcc2 internal prototype to avoid an error. */
  4555. /* We use char because int might match the return type of a gcc2
  4556. builtin and then its argument prototype would still apply. */
  4557. char IceConnectionNumber();
  4558. int main() {
  4559. IceConnectionNumber()
  4560. ; return 0; }
  4561. EOF
  4562. if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4563. rm -rf conftest*
  4564. eval "ac_cv_lib_$ac_lib_var=yes"
  4565. else
  4566. echo "configure: failed program was:" >&5
  4567. cat conftest.$ac_ext >&5
  4568. rm -rf conftest*
  4569. eval "ac_cv_lib_$ac_lib_var=no"
  4570. fi
  4571. rm -f conftest*
  4572. LIBS="$ac_save_LIBS"
  4573. fi
  4574. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4575. echo "$ac_t""yes" 1>&6
  4576. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  4577. else
  4578. echo "$ac_t""no" 1>&6
  4579. fi
  4580. LDFLAGS="$ac_save_LDFLAGS"
  4581. fi
  4582. if test "$no_x" != "yes"; then
  4583. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  4584. fi
  4585. XCFLAGS="$X_CFLAGS"
  4586. fi # COMPILE_ENVIRONMENT
  4587. AS_BIN=$AS
  4588. AR_FLAGS='cr $@'
  4589. AR_LIST='$(AR) t'
  4590. AR_EXTRACT='$(AR) x'
  4591. AR_DELETE='$(AR) d'
  4592. AS='$(CC)'
  4593. AS_DASH_C_FLAG='-c'
  4594. DLL_PREFIX=lib
  4595. LIB_PREFIX=lib
  4596. DLL_SUFFIX=.so
  4597. OBJ_SUFFIX=o
  4598. LIB_SUFFIX=a
  4599. ASM_SUFFIX=s
  4600. IMPORT_LIB_SUFFIX=
  4601. TARGET_MD_ARCH=unix
  4602. DIRENT_INO=d_ino
  4603. CYGWIN_WRAPPER=
  4604. WIN_TOP_SRC=
  4605. MOZ_USER_DIR=".mozilla"
  4606. HOST_AR='$(AR)'
  4607. HOST_AR_FLAGS='$(AR_FLAGS)'
  4608. MOZ_JPEG_CFLAGS=
  4609. MOZ_JPEG_LIBS='$(call EXPAND_LIBNAME_PATH,mozjpeg,$(DEPTH)/jpeg)'
  4610. MOZ_ZLIB_CFLAGS=
  4611. MOZ_ZLIB_LIBS='$(call EXPAND_LIBNAME_PATH,mozz,$(DEPTH)/modules/zlib/src)'
  4612. MOZ_BZ2_CFLAGS=
  4613. MOZ_BZ2_LIBS='$(call EXPAND_LIBNAME_PATH,bz2,$(DEPTH)/modules/libbz2/src)'
  4614. MOZ_PNG_CFLAGS=
  4615. MOZ_PNG_LIBS='$(call EXPAND_LIBNAME_PATH,mozpng,$(DEPTH)/modules/libimg/png)'
  4616. MOZ_JS_LIBS='-L$(LIBXUL_DIST)/bin -lmozjs'
  4617. DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/bin -lxpcom -lxpcom_core'
  4618. MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin'
  4619. XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/bin -lxpcom'
  4620. LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) -lxul'
  4621. XPCOM_GLUE_LDOPTS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) $(XPCOM_FROZEN_LDOPTS)'
  4622. XPCOM_STANDALONE_GLUE_LDOPTS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX)'
  4623. MOZ_COMPONENT_NSPR_LIBS='-L$(LIBXUL_DIST)/bin $(NSPR_LIBS)'
  4624. MOZ_XPCOM_OBSOLETE_LIBS='-L$(LIBXUL_DIST)/lib -lxpcom_compat'
  4625. USE_DEPENDENT_LIBS=1
  4626. _PLATFORM_DEFAULT_TOOLKIT=cairo-gtk2
  4627. MOZ_GFX_TOOLKIT='$(MOZ_WIDGET_TOOLKIT)'
  4628. MOZ_ENABLE_POSTSCRIPT=1
  4629. if test -n "$CROSS_COMPILE"; then
  4630. OS_TARGET="${target_os}"
  4631. OS_ARCH=`echo $target_os | sed -e 's|/|_|g'`
  4632. OS_RELEASE=
  4633. case "${target_os}" in
  4634. linux*) OS_ARCH=Linux OS_TARGET=Linux ;;
  4635. kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD OS_TARGET=GNU_kFreeBSD ;;
  4636. solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
  4637. mingw*) OS_ARCH=WINNT ;;
  4638. wince*) OS_ARCH=WINCE ;;
  4639. darwin*) OS_ARCH=Darwin OS_TARGET=Darwin ;;
  4640. esac
  4641. else
  4642. OS_TARGET=`uname -s`
  4643. OS_ARCH=`uname -s | sed -e 's|/|_|g'`
  4644. OS_RELEASE=`uname -r`
  4645. fi
  4646. # Before this used `uname -m` when not cross compiling
  4647. # but that breaks when you have a 64 bit kernel with a 32 bit userland.
  4648. OS_TEST="${target_cpu}"
  4649. _COMPILER_PREFIX=
  4650. HOST_OS_ARCH=`echo $host_os | sed -e 's|/|_|g'`
  4651. #######################################################################
  4652. # Master "Core Components" macros for getting the OS target #
  4653. #######################################################################
  4654. #
  4655. # Note: OS_TARGET should be specified on the command line for gmake.
  4656. # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.
  4657. # The difference between the Win95 target and the WinNT target is that
  4658. # the WinNT target uses Windows NT specific features not available
  4659. # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)
  4660. # at lesser performance (the Win95 target uses threads; the WinNT target
  4661. # uses fibers).
  4662. #
  4663. # When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target
  4664. # is built. See: win16_3.11.mk for lots more about the Win16 target.
  4665. #
  4666. # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
  4667. # cross-compilation.
  4668. #
  4669. #
  4670. # The following hack allows one to build on a WIN95 machine (as if
  4671. # s/he were cross-compiling on a WINNT host for a WIN95 target).
  4672. # It also accomodates for MKS's uname.exe. If you never intend
  4673. # to do development on a WIN95 machine, you don't need this hack.
  4674. #
  4675. case "$OS_ARCH" in
  4676. WIN95)
  4677. OS_ARCH=WINNT
  4678. OS_TARGET=WIN95
  4679. ;;
  4680. Windows_95)
  4681. OS_ARCH=Windows_NT
  4682. OS_TARGET=WIN95
  4683. ;;
  4684. Windows_98)
  4685. OS_ARCH=Windows_NT
  4686. OS_TARGET=WIN95
  4687. ;;
  4688. CYGWIN_9*|CYGWIN_ME*)
  4689. OS_ARCH='CYGWIN_NT-4.0'
  4690. OS_TARGET=WIN95
  4691. ;;
  4692. esac
  4693. #
  4694. # Define and override various archtecture-specific variables, including
  4695. # HOST_OS_ARCH
  4696. # OS_ARCH
  4697. # OS_TEST
  4698. # OS_TARGET
  4699. # OS_RELEASE
  4700. # OS_MINOR_RELEASE
  4701. #
  4702. case "$HOST_OS_ARCH" in
  4703. cygwin*|mingw*|mks*|msvc*)
  4704. HOST_OS_ARCH=WINNT
  4705. ;;
  4706. linux*)
  4707. HOST_OS_ARCH=Linux
  4708. ;;
  4709. solaris*)
  4710. HOST_OS_ARCH=SunOS
  4711. ;;
  4712. BSD_386)
  4713. HOST_OS_ARCH=BSD
  4714. ;;
  4715. dgux)
  4716. HOST_OS_ARCH=DGUX
  4717. ;;
  4718. IRIX64)
  4719. HOST_OS_ARCH=IRIX
  4720. ;;
  4721. UNIX_SV)
  4722. if "`cat /etc/bcheckrc | grep -c NCR 2>/dev/null`" != "0"; then
  4723. HOST_OS_ARCH=NCR
  4724. else
  4725. HOST_OS_ARCH=UNIXWARE
  4726. fi
  4727. ;;
  4728. ncr)
  4729. HOST_OS_ARCH=NCR
  4730. ;;
  4731. UNIX_SYSTEM_V)
  4732. HOST_OS_ARCH=NEC
  4733. ;;
  4734. OSF1)
  4735. ;;
  4736. *OpenVMS*)
  4737. HOST_OS_ARCH=OpenVMS
  4738. ;;
  4739. OS_2)
  4740. HOST_OS_ARCH=OS2
  4741. ;;
  4742. QNX)
  4743. ;;
  4744. SCO_SV)
  4745. HOST_OS_ARCH=SCOOS
  4746. ;;
  4747. SINIX-N | SINIX-Y | SINIX-Z |ReliantUNIX-M)
  4748. HOST_OS_ARCH=SINIX
  4749. ;;
  4750. UnixWare)
  4751. HOST_OS_ARCH=UNIXWARE
  4752. ;;
  4753. esac
  4754. case "$OS_ARCH" in
  4755. WINNT)
  4756. OS_TEST=`uname -p`
  4757. ;;
  4758. Windows_NT)
  4759. #
  4760. # If uname -s returns "Windows_NT", we assume that we are using
  4761. # the uname.exe in MKS toolkit.
  4762. #
  4763. # The -r option of MKS uname only returns the major version number.
  4764. # So we need to use its -v option to get the minor version number.
  4765. # Moreover, it doesn't have the -p option, so we need to use uname -m.
  4766. #
  4767. OS_ARCH=WINNT
  4768. OS_TARGET=WINNT
  4769. OS_MINOR_RELEASE=`uname -v`
  4770. if test "$OS_MINOR_RELEASE" = "00"; then
  4771. OS_MINOR_RELEASE=0
  4772. fi
  4773. OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}"
  4774. ;;
  4775. CYGWIN32_NT|CYGWIN_NT*|MINGW*_NT*)
  4776. #
  4777. # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using
  4778. # the uname.exe in the Cygwin tools.
  4779. # Prior to the Beta 20 release, Cygwin was called GNU-Win32.
  4780. # If uname -s returns "CYGWIN32/NT", we assume that we are using
  4781. # the uname.exe in the GNU-Win32 tools.
  4782. # If uname -s returns MINGW32_NT-5.1, we assume that we are using
  4783. # the uname.exe in the MSYS tools.
  4784. #
  4785. OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'`
  4786. OS_ARCH=WINNT
  4787. OS_TARGET=WINNT
  4788. ;;
  4789. AIX)
  4790. OS_RELEASE=`uname -v`.`uname -r`
  4791. OS_TEST=${target_cpu}
  4792. ;;
  4793. BSD_386)
  4794. OS_ARCH=BSD
  4795. ;;
  4796. dgux)
  4797. OS_ARCH=DGUX
  4798. ;;
  4799. IRIX64)
  4800. OS_ARCH=IRIX
  4801. ;;
  4802. UNIX_SV)
  4803. if "`cat /etc/bcheckrc | grep -c NCR 2>/dev/null`" != "0"; then
  4804. OS_ARCH=NCR
  4805. else
  4806. OS_ARCH=UNIXWARE
  4807. OS_RELEASE=`uname -v`
  4808. fi
  4809. ;;
  4810. ncr)
  4811. OS_ARCH=NCR
  4812. ;;
  4813. UNIX_SYSTEM_V)
  4814. OS_ARCH=NEC
  4815. ;;
  4816. OSF1)
  4817. case `uname -v` in
  4818. 148)
  4819. OS_RELEASE=V3.2C
  4820. ;;
  4821. 564)
  4822. OS_RELEASE=V4.0B
  4823. ;;
  4824. 878)
  4825. OS_RELEASE=V4.0D
  4826. ;;
  4827. esac
  4828. ;;
  4829. *OpenVMS*)
  4830. OS_ARCH=OpenVMS
  4831. OS_RELEASE=`uname -v`
  4832. OS_TEST=`uname -p`
  4833. ;;
  4834. OS_2)
  4835. OS_ARCH=OS2
  4836. OS_TARGET=OS2
  4837. OS_RELEASE=`uname -v`
  4838. ;;
  4839. QNX)
  4840. if test "$OS_TARGET" != "NTO"; then
  4841. OS_RELEASE=`uname -v | sed 's/^\([0-9]\)\([0-9]*\)$/\1.\2/'`
  4842. fi
  4843. OS_TEST=x86
  4844. ;;
  4845. SCO_SV)
  4846. OS_ARCH=SCOOS
  4847. OS_RELEASE=5.0
  4848. ;;
  4849. SINIX-N | SINIX-Y | SINIX-Z |ReliantUNIX-M)
  4850. OS_ARCH=SINIX
  4851. OS_TEST=`uname -p`
  4852. ;;
  4853. UnixWare)
  4854. OS_ARCH=UNIXWARE
  4855. OS_RELEASE=`uname -v`
  4856. ;;
  4857. WINCE)
  4858. OS_ARCH=WINCE
  4859. OS_TARGET=WINCE
  4860. ;;
  4861. Darwin)
  4862. case "${target_cpu}" in
  4863. powerpc*)
  4864. OS_TEST=ppc
  4865. ;;
  4866. i*86*)
  4867. OS_TEST=i386
  4868. ;;
  4869. *)
  4870. if test -z "$CROSS_COMPILE" ; then
  4871. OS_TEST=`uname -p`
  4872. fi
  4873. ;;
  4874. esac
  4875. ;;
  4876. esac
  4877. if test "$OS_ARCH" = "NCR"; then
  4878. OS_RELEASE=`awk '{print $3}' /etc/.relid | sed 's/^\([0-9]\)\(.\)\(..\)\(.*\)$/\2.\3/'`
  4879. fi
  4880. # Only set CPU_ARCH if we recognize the value of OS_TEST
  4881. case "$OS_TEST" in
  4882. *86 | i86pc)
  4883. CPU_ARCH=x86
  4884. ;;
  4885. powerpc* | ppc | rs6000)
  4886. CPU_ARCH=ppc
  4887. ;;
  4888. Alpha | alpha | ALPHA)
  4889. CPU_ARCH=Alpha
  4890. ;;
  4891. sun4u | sparc*)
  4892. CPU_ARCH=sparc
  4893. ;;
  4894. x86_64 | ia64)
  4895. CPU_ARCH="$OS_TEST"
  4896. ;;
  4897. esac
  4898. if test -z "$OS_TARGET"; then
  4899. OS_TARGET=$OS_ARCH
  4900. fi
  4901. if test "$OS_TARGET" = "WIN95"; then
  4902. OS_RELEASE="4.0"
  4903. fi
  4904. if test "$OS_TARGET" = "WIN16"; then
  4905. OS_RELEASE=
  4906. fi
  4907. OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
  4908. if test "$GNU_CC"; then
  4909. # FIXME: Let us build with strict aliasing. bug 414641.
  4910. CFLAGS="$CFLAGS -fno-strict-aliasing"
  4911. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
  4912. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
  4913. DSO_LDOPTS='-shared'
  4914. if test "$GCC_USE_GNU_LD"; then
  4915. # Don't allow undefined symbols in libraries
  4916. DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
  4917. fi
  4918. WARNINGS_AS_ERRORS='-Werror'
  4919. DSO_CFLAGS=''
  4920. DSO_PIC_CFLAGS='-fPIC'
  4921. _MOZ_RTTI_FLAGS_ON=${_COMPILER_PREFIX}-frtti
  4922. _MOZ_RTTI_FLAGS_OFF=${_COMPILER_PREFIX}-fno-rtti
  4923. _MOZ_EXCEPTIONS_FLAGS_ON='-fhandle-exceptions'
  4924. _MOZ_EXCEPTIONS_FLAGS_OFF='-fno-handle-exceptions'
  4925. # Turn on GNU specific features
  4926. # -Wall - turn on all warnings
  4927. # -pedantic - make compiler warn about non-ANSI stuff, and
  4928. # be a little bit stricter
  4929. # Warnings slamm took out for now (these were giving more noise than help):
  4930. # -Wbad-function-cast - warns when casting a function to a new return type
  4931. # -Wconversion - complained when char's or short's were used a function args
  4932. # -Wshadow - removed because it generates more noise than help --pete
  4933. _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wall -W -Wno-unused -Wpointer-arith"
  4934. if test "$CPU_ARCH" != "ia64" && test "$CPU_ARCH" != "sparc" \
  4935. && test -z "$INTEL_CC"; then
  4936. # don't use -Wcast-align on ia64 or sparc, it's noisy on those platforms
  4937. # icc doesn't support this flag.
  4938. _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wcast-align"
  4939. fi
  4940. _PEDANTIC=1
  4941. if test -z "$INTEL_CC"; then
  4942. _IGNORE_LONG_LONG_WARNINGS=1
  4943. _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -W"
  4944. else
  4945. _IGNORE_LONG_LONG_WARNINGS=
  4946. fi
  4947. _DEFINES_CFLAGS='-include $(DEPTH)/mozilla-config.h -DMOZILLA_CLIENT'
  4948. _USE_CPP_INCLUDE_FLAG=1
  4949. else
  4950. MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
  4951. MKCSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
  4952. DSO_LDOPTS='-shared'
  4953. if test "$GNU_LD"; then
  4954. # Don't allow undefined symbols in libraries
  4955. DSO_LDOPTS="$DSO_LDOPTS -z defs"
  4956. fi
  4957. DSO_CFLAGS=''
  4958. DSO_PIC_CFLAGS='-KPIC'
  4959. _DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
  4960. fi
  4961. if test "$GNU_CXX"; then
  4962. # FIXME: Let us build with strict aliasing. bug 414641.
  4963. CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
  4964. # Turn on GNU specific features
  4965. _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor"
  4966. if test "$CPU_ARCH" != "ia64" && test "$CPU_ARCH" != "sparc" \
  4967. && test -z "$INTEL_CC"; then
  4968. # don't use -Wcast-align on ia64 or sparc, it's noisy on those platforms
  4969. # icc doesn't support this flag.
  4970. _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wcast-align"
  4971. fi
  4972. _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/mozilla-config.h'
  4973. _USE_CPP_INCLUDE_FLAG=1
  4974. else
  4975. _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_MOZILLA_CONFIG_H_ $(ACDEFINES)'
  4976. fi
  4977. MKSHLIB_FORCE_ALL=
  4978. MKSHLIB_UNFORCE_ALL=
  4979. if test "$COMPILE_ENVIRONMENT"; then
  4980. if test "$GNU_CC"; then
  4981. echo $ac_n "checking whether ld has archive extraction flags""... $ac_c" 1>&6
  4982. echo "configure:5456: checking whether ld has archive extraction flags" >&5
  4983. if eval "test \"`echo '$''{'ac_cv_mkshlib_force_and_unforce'+set}'`\" = set"; then
  4984. echo $ac_n "(cached) $ac_c" 1>&6
  4985. else
  4986. _SAVE_LDFLAGS=$LDFLAGS; _SAVE_LIBS=$LIBS
  4987. ac_cv_mkshlib_force_and_unforce="no"
  4988. exec 3<&0 <<LOOP_INPUT
  4989. force="-Wl,--whole-archive"; unforce="-Wl,--no-whole-archive"
  4990. force="-Wl,-z -Wl,allextract"; unforce="-Wl,-z -Wl,defaultextract"
  4991. force="-Wl,-all"; unforce="-Wl,-none"
  4992. LOOP_INPUT
  4993. while read line
  4994. do
  4995. eval $line
  4996. LDFLAGS=$force
  4997. LIBS=$unforce
  4998. cat > conftest.$ac_ext <<EOF
  4999. #line 5473 "configure"
  5000. #include "confdefs.h"
  5001. int main() {
  5002. ; return 0; }
  5003. EOF
  5004. if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5005. rm -rf conftest*
  5006. ac_cv_mkshlib_force_and_unforce=$line; break
  5007. else
  5008. echo "configure: failed program was:" >&5
  5009. cat conftest.$ac_ext >&5
  5010. fi
  5011. rm -f conftest*
  5012. done
  5013. exec 0<&3 3<&-
  5014. LDFLAGS=$_SAVE_LDFLAGS; LIBS=$_SAVE_LIBS
  5015. fi
  5016. if test "$ac_cv_mkshlib_force_and_unforce" = "no"; then
  5017. echo "$ac_t""no" 1>&6
  5018. else
  5019. echo "$ac_t""yes" 1>&6
  5020. eval $ac_cv_mkshlib_force_and_unforce
  5021. MKSHLIB_FORCE_ALL=$force
  5022. MKSHLIB_UNFORCE_ALL=$unforce
  5023. fi
  5024. fi # GNU_CC
  5025. fi # COMPILE_ENVIRONMENT
  5026. if test "$COMPILE_ENVIRONMENT"; then
  5027. configure_static_assert_macros='
  5028. #define CONFIGURE_STATIC_ASSERT(condition) CONFIGURE_STATIC_ASSERT_IMPL(condition, __LINE__)
  5029. #define CONFIGURE_STATIC_ASSERT_IMPL(condition, line) CONFIGURE_STATIC_ASSERT_IMPL2(condition, line)
  5030. #define CONFIGURE_STATIC_ASSERT_IMPL2(condition, line) typedef int static_assert_line_##line[(condition) ? 1 : -1]
  5031. '
  5032. echo $ac_n "checking that static assertion macros used in autoconf tests work""... $ac_c" 1>&6
  5033. echo "configure:5513: checking that static assertion macros used in autoconf tests work" >&5
  5034. if eval "test \"`echo '$''{'ac_cv_static_assertion_macros_work'+set}'`\" = set"; then
  5035. echo $ac_n "(cached) $ac_c" 1>&6
  5036. else
  5037. ac_ext=c
  5038. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5039. ac_cpp='$CPP $CPPFLAGS'
  5040. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5041. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5042. cross_compiling=$ac_cv_prog_cc_cross
  5043. ac_cv_static_assertion_macros_work="yes"
  5044. cat > conftest.$ac_ext <<EOF
  5045. #line 5527 "configure"
  5046. #include "confdefs.h"
  5047. $configure_static_assert_macros
  5048. int main() {
  5049. CONFIGURE_STATIC_ASSERT(1)
  5050. ; return 0; }
  5051. EOF
  5052. if { (eval echo configure:5534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5053. :
  5054. else
  5055. echo "configure: failed program was:" >&5
  5056. cat conftest.$ac_ext >&5
  5057. rm -rf conftest*
  5058. ac_cv_static_assertion_macros_work="no"
  5059. fi
  5060. rm -f conftest*
  5061. cat > conftest.$ac_ext <<EOF
  5062. #line 5544 "configure"
  5063. #include "confdefs.h"
  5064. $configure_static_assert_macros
  5065. int main() {
  5066. CONFIGURE_STATIC_ASSERT(0)
  5067. ; return 0; }
  5068. EOF
  5069. if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5070. rm -rf conftest*
  5071. ac_cv_static_assertion_macros_work="no"
  5072. else
  5073. echo "configure: failed program was:" >&5
  5074. cat conftest.$ac_ext >&5
  5075. fi
  5076. rm -f conftest*
  5077. ac_ext=C
  5078. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5079. ac_cpp='$CXXCPP $CPPFLAGS'
  5080. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5081. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5082. cross_compiling=$ac_cv_prog_cxx_cross
  5083. cat > conftest.$ac_ext <<EOF
  5084. #line 5567 "configure"
  5085. #include "confdefs.h"
  5086. $configure_static_assert_macros
  5087. int main() {
  5088. CONFIGURE_STATIC_ASSERT(1)
  5089. ; return 0; }
  5090. EOF
  5091. if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5092. :
  5093. else
  5094. echo "configure: failed program was:" >&5
  5095. cat conftest.$ac_ext >&5
  5096. rm -rf conftest*
  5097. ac_cv_static_assertion_macros_work="no"
  5098. fi
  5099. rm -f conftest*
  5100. cat > conftest.$ac_ext <<EOF
  5101. #line 5584 "configure"
  5102. #include "confdefs.h"
  5103. $configure_static_assert_macros
  5104. int main() {
  5105. CONFIGURE_STATIC_ASSERT(0)
  5106. ; return 0; }
  5107. EOF
  5108. if { (eval echo configure:5591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5109. rm -rf conftest*
  5110. ac_cv_static_assertion_macros_work="no"
  5111. else
  5112. echo "configure: failed program was:" >&5
  5113. cat conftest.$ac_ext >&5
  5114. fi
  5115. rm -f conftest*
  5116. ac_ext=c
  5117. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5118. ac_cpp='$CPP $CPPFLAGS'
  5119. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5120. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5121. cross_compiling=$ac_cv_prog_cc_cross
  5122. fi
  5123. echo "$ac_t"""$ac_cv_static_assertion_macros_work"" 1>&6
  5124. if test "$ac_cv_static_assertion_macros_work" = "no"; then
  5125. { echo "configure: error: Compiler cannot compile macros used in autoconf tests." 1>&2; exit 1; }
  5126. fi
  5127. fi # COMPILE_ENVIRONMENT
  5128. if test "$COMPILE_ENVIRONMENT"; then
  5129. ac_ext=c
  5130. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5131. ac_cpp='$CPP $CPPFLAGS'
  5132. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5133. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5134. cross_compiling=$ac_cv_prog_cc_cross
  5135. echo $ac_n "checking for 64-bit OS""... $ac_c" 1>&6
  5136. echo "configure:5626: checking for 64-bit OS" >&5
  5137. cat > conftest.$ac_ext <<EOF
  5138. #line 5628 "configure"
  5139. #include "confdefs.h"
  5140. $configure_static_assert_macros
  5141. int main() {
  5142. CONFIGURE_STATIC_ASSERT(sizeof(void*) == 8)
  5143. ; return 0; }
  5144. EOF
  5145. if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5146. rm -rf conftest*
  5147. result="yes"
  5148. else
  5149. echo "configure: failed program was:" >&5
  5150. cat conftest.$ac_ext >&5
  5151. rm -rf conftest*
  5152. result="no"
  5153. fi
  5154. rm -f conftest*
  5155. echo "$ac_t"""$result"" 1>&6
  5156. if test "$result" = "yes"; then
  5157. cat >> confdefs.h <<\EOF
  5158. #define HAVE_64BIT_OS 1
  5159. EOF
  5160. HAVE_64BIT_OS=1
  5161. fi
  5162. ac_ext=c
  5163. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5164. ac_cpp='$CPP $CPPFLAGS'
  5165. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5166. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5167. cross_compiling=$ac_cv_prog_cc_cross
  5168. fi # COMPILE_ENVIRONMENT
  5169. MOZ_OS2_HIGH_MEMORY=1
  5170. # Check whether --enable-os2-high-mem or --disable-os2-high-mem was given.
  5171. if test "${enable_os2_high_mem+set}" = set; then
  5172. enableval="$enable_os2_high_mem"
  5173. if test "$enableval" = "no"; then
  5174. MOZ_OS2_HIGH_MEMORY=
  5175. elif test "$enableval" = "yes"; then
  5176. MOZ_OS2_HIGH_MEMORY=1
  5177. else
  5178. { echo "configure: error: Option, os2-high-mem, does not take an argument ($enableval)." 1>&2; exit 1; }
  5179. fi
  5180. fi
  5181. case "$host" in
  5182. *-beos*)
  5183. HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE -DNO_X11"
  5184. HOST_NSPR_MDCPUCFG='\"md/_beos.cfg\"'
  5185. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
  5186. ;;
  5187. *cygwin*|*mingw*|*mks*|*msvc*|*wince)
  5188. if test -n "$_WIN32_MSVC"; then
  5189. HOST_AR=lib
  5190. HOST_AR_FLAGS='-NOLOGO -OUT:"$@"'
  5191. HOST_CFLAGS="$HOST_CFLAGS -TC -nologo -Fd\$(HOST_PDBFILE)"
  5192. HOST_RANLIB='echo ranlib'
  5193. else
  5194. HOST_CFLAGS="$HOST_CFLAGS -mno-cygwin"
  5195. fi
  5196. HOST_CFLAGS="$HOST_CFLAGS -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -DNO_X11"
  5197. HOST_NSPR_MDCPUCFG='\"md/_winnt.cfg\"'
  5198. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
  5199. HOST_BIN_SUFFIX=.exe
  5200. case "$host" in
  5201. x86_64-*)
  5202. HOST_CFLAGS="$HOST_CFLAGS -D_WIN64 -D_AMD64_ -D_M_AMD64"
  5203. ;;
  5204. esac
  5205. case "$host" in
  5206. *mingw*)
  5207. ;;
  5208. *)
  5209. CYGWIN_WRAPPER="${srcdir}/build/cygwin-wrapper"
  5210. if test "`echo ${srcdir} | grep -c ^/ 2>/dev/null`" = 0; then
  5211. _pwd=`pwd`
  5212. CYGWIN_WRAPPER="${_pwd}/${srcdir}/build/cygwin-wrapper"
  5213. fi
  5214. if test "`${PERL} -v | grep -c cygwin 2>/dev/null`" = 0; then
  5215. AS_PERL=1
  5216. PERL="${CYGWIN_WRAPPER} $PERL"
  5217. fi
  5218. if test "`${PYTHON} -c 'import sys; print sys.platform;'`" != "cygwin"; then
  5219. PYTHON="${CYGWIN_WRAPPER} $PYTHON"
  5220. fi
  5221. ;;
  5222. esac
  5223. ;;
  5224. *-darwin*)
  5225. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX -DNO_X11"
  5226. HOST_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
  5227. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
  5228. MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
  5229. LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) $(LIBXUL_DIST)/bin/XUL -lobjc'
  5230. ;;
  5231. *-linux*|*-kfreebsd*-gnu)
  5232. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
  5233. HOST_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
  5234. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
  5235. ;;
  5236. *os2*)
  5237. HOST_CFLAGS="$HOST_CFLAGS -DXP_OS2 -DNO_X11 -Zomf"
  5238. HOST_NSPR_MDCPUCFG='\"md/_os2.cfg\"'
  5239. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
  5240. HOST_BIN_SUFFIX=.exe
  5241. MOZ_FIX_LINK_PATHS=
  5242. ;;
  5243. *-osf*)
  5244. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
  5245. HOST_NSPR_MDCPUCFG='\"md/_osf1.cfg\"'
  5246. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
  5247. ;;
  5248. *)
  5249. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
  5250. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
  5251. ;;
  5252. esac
  5253. MOZILLA_VERSION=`$PERL $srcdir/config/milestone.pl -topsrcdir $srcdir`
  5254. FIREFOX_VERSION=`cat $topsrcdir/browser/config/version.txt`
  5255. THUNDERBIRD_VERSION=`cat $topsrcdir/mail/config/version.txt`
  5256. SUNBIRD_VERSION=`cat $topsrcdir/calendar/sunbird/config/version.txt`
  5257. SEAMONKEY_VERSION=`cat $topsrcdir/suite/config/version.txt`
  5258. cat >> confdefs.h <<EOF
  5259. #define MOZILLA_VERSION "$MOZILLA_VERSION"
  5260. EOF
  5261. cat >> confdefs.h <<EOF
  5262. #define MOZILLA_VERSION_U $MOZILLA_VERSION
  5263. EOF
  5264. case "$target" in
  5265. *-aix*)
  5266. cat >> confdefs.h <<\EOF
  5267. #define AIX 1
  5268. EOF
  5269. if test ! "$GNU_CC"; then
  5270. if test ! "$HAVE_64BIT_OS"; then
  5271. # Compiling with Visual Age C++ object model compat is the
  5272. # default. To compile with object model ibm, add
  5273. # AIX_OBJMODEL=ibm to .mozconfig.
  5274. if test "$AIX_OBJMODEL" = "ibm"; then
  5275. CXXFLAGS="$CXXFLAGS -qobjmodel=ibm"
  5276. else
  5277. AIX_OBJMODEL=compat
  5278. fi
  5279. else
  5280. AIX_OBJMODEL=compat
  5281. fi
  5282. DSO_LDOPTS='-qmkshrobj=1'
  5283. DSO_CFLAGS='-qflag=w:w'
  5284. DSO_PIC_CFLAGS=
  5285. LDFLAGS="$LDFLAGS -Wl,-brtl -blibpath:/usr/lib:/lib"
  5286. echo "configure: warning: Clearing MOZ_FIX_LINK_PATHS till we can fix bug 332075." 1>&2
  5287. MOZ_FIX_LINK_PATHS=
  5288. MKSHLIB='$(CXX) $(DSO_LDOPTS) -o $@'
  5289. MKCSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  5290. if test "$COMPILE_ENVIRONMENT"; then
  5291. ac_ext=C
  5292. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5293. ac_cpp='$CXXCPP $CPPFLAGS'
  5294. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5295. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5296. cross_compiling=$ac_cv_prog_cxx_cross
  5297. echo $ac_n "checking for VisualAge C++ compiler version >= 6.0.0.3""... $ac_c" 1>&6
  5298. echo "configure:5815: checking for VisualAge C++ compiler version >= 6.0.0.3" >&5
  5299. cat > conftest.$ac_ext <<EOF
  5300. #line 5817 "configure"
  5301. #include "confdefs.h"
  5302. int main() {
  5303. #if (__IBMCPP__ < 600)
  5304. #error "Bad compiler"
  5305. #endif
  5306. ; return 0; }
  5307. EOF
  5308. if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5309. rm -rf conftest*
  5310. _BAD_COMPILER=
  5311. else
  5312. echo "configure: failed program was:" >&5
  5313. cat conftest.$ac_ext >&5
  5314. rm -rf conftest*
  5315. _BAD_COMPILER=1
  5316. fi
  5317. rm -f conftest*
  5318. if test -n "$_BAD_COMPILER"; then
  5319. echo "$ac_t""no" 1>&6
  5320. { echo "configure: error: VisualAge C++ version 6.0.0.3 or higher is required to build." 1>&2; exit 1; }
  5321. else
  5322. echo "$ac_t""yes" 1>&6
  5323. fi
  5324. ac_ext=c
  5325. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5326. ac_cpp='$CPP $CPPFLAGS'
  5327. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5328. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5329. cross_compiling=$ac_cv_prog_cc_cross
  5330. TARGET_COMPILER_ABI="ibmc"
  5331. CC_VERSION=`lslpp -Lcq vac.C 2>/dev/null | awk -F: '{ print $3 }'`
  5332. CXX_VERSION=`lslpp -Lcq vacpp.cmp.core 2>/dev/null | awk -F: '{ print $3 }'`
  5333. fi
  5334. fi
  5335. case "${target_os}" in
  5336. aix4.1*)
  5337. DLL_SUFFIX='_shr.a'
  5338. ;;
  5339. esac
  5340. if test "$COMPILE_ENVIRONMENT"; then
  5341. for ac_hdr in sys/inttypes.h
  5342. do
  5343. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5344. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5345. echo "configure:5864: checking for $ac_hdr" >&5
  5346. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5347. echo $ac_n "(cached) $ac_c" 1>&6
  5348. else
  5349. cat > conftest.$ac_ext <<EOF
  5350. #line 5869 "configure"
  5351. #include "confdefs.h"
  5352. #include <$ac_hdr>
  5353. EOF
  5354. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5355. { (eval echo configure:5874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5356. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5357. if test -z "$ac_err"; then
  5358. rm -rf conftest*
  5359. eval "ac_cv_header_$ac_safe=yes"
  5360. else
  5361. echo "$ac_err" >&5
  5362. echo "configure: failed program was:" >&5
  5363. cat conftest.$ac_ext >&5
  5364. rm -rf conftest*
  5365. eval "ac_cv_header_$ac_safe=no"
  5366. fi
  5367. rm -f conftest*
  5368. fi
  5369. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5370. echo "$ac_t""yes" 1>&6
  5371. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5372. cat >> confdefs.h <<EOF
  5373. #define $ac_tr_hdr 1
  5374. EOF
  5375. else
  5376. echo "$ac_t""no" 1>&6
  5377. fi
  5378. done
  5379. fi
  5380. cat >> confdefs.h <<\EOF
  5381. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  5382. EOF
  5383. ;;
  5384. *-beos*)
  5385. no_x=yes
  5386. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
  5387. _PLATFORM_DEFAULT_TOOLKIT="cairo-beos"
  5388. DSO_LDOPTS='-nostart'
  5389. TK_LIBS='-lbe -lroot'
  5390. LIBS="$LIBS -lbe"
  5391. if test "$COMPILE_ENVIRONMENT"; then
  5392. echo $ac_n "checking for main in -lbind""... $ac_c" 1>&6
  5393. echo "configure:5916: checking for main in -lbind" >&5
  5394. ac_lib_var=`echo bind'_'main | sed 'y%./+-%__p_%'`
  5395. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5396. echo $ac_n "(cached) $ac_c" 1>&6
  5397. else
  5398. ac_save_LIBS="$LIBS"
  5399. LIBS="-lbind $LIBS"
  5400. cat > conftest.$ac_ext <<EOF
  5401. #line 5924 "configure"
  5402. #include "confdefs.h"
  5403. int main() {
  5404. main()
  5405. ; return 0; }
  5406. EOF
  5407. if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5408. rm -rf conftest*
  5409. eval "ac_cv_lib_$ac_lib_var=yes"
  5410. else
  5411. echo "configure: failed program was:" >&5
  5412. cat conftest.$ac_ext >&5
  5413. rm -rf conftest*
  5414. eval "ac_cv_lib_$ac_lib_var=no"
  5415. fi
  5416. rm -f conftest*
  5417. LIBS="$ac_save_LIBS"
  5418. fi
  5419. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5420. echo "$ac_t""yes" 1>&6
  5421. LIBS="$LIBS -lbind"
  5422. else
  5423. echo "$ac_t""no" 1>&6
  5424. fi
  5425. echo $ac_n "checking for main in -lzeta""... $ac_c" 1>&6
  5426. echo "configure:5952: checking for main in -lzeta" >&5
  5427. ac_lib_var=`echo zeta'_'main | sed 'y%./+-%__p_%'`
  5428. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5429. echo $ac_n "(cached) $ac_c" 1>&6
  5430. else
  5431. ac_save_LIBS="$LIBS"
  5432. LIBS="-lzeta $LIBS"
  5433. cat > conftest.$ac_ext <<EOF
  5434. #line 5960 "configure"
  5435. #include "confdefs.h"
  5436. int main() {
  5437. main()
  5438. ; return 0; }
  5439. EOF
  5440. if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5441. rm -rf conftest*
  5442. eval "ac_cv_lib_$ac_lib_var=yes"
  5443. else
  5444. echo "configure: failed program was:" >&5
  5445. cat conftest.$ac_ext >&5
  5446. rm -rf conftest*
  5447. eval "ac_cv_lib_$ac_lib_var=no"
  5448. fi
  5449. rm -f conftest*
  5450. LIBS="$ac_save_LIBS"
  5451. fi
  5452. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5453. echo "$ac_t""yes" 1>&6
  5454. LIBS="$LIBS -lzeta"
  5455. else
  5456. echo "$ac_t""no" 1>&6
  5457. fi
  5458. fi
  5459. _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wno-multichar"
  5460. _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-multichar"
  5461. _MOZ_USE_RTTI=1
  5462. USE_DEPENDENT_LIBS=
  5463. MOZ_USER_DIR="Mozilla"
  5464. ;;
  5465. *-bsdi*)
  5466. _PEDANTIC=
  5467. _IGNORE_LONG_LONG_WARNINGS=
  5468. case $OS_RELEASE in
  5469. 4.*|5.*)
  5470. STRIP="$STRIP -d"
  5471. ;;
  5472. *)
  5473. DSO_CFLAGS=''
  5474. DSO_LDOPTS='-r'
  5475. _WARNINGS_CFLAGS="-Wall"
  5476. _WARNINGS_CXXFLAGS="-Wall"
  5477. # The test above doesn't work properly, at least on 3.1.
  5478. MKSHLIB_FORCE_ALL=''
  5479. MKSHLIB_UNFORCE_ALL=''
  5480. ;;
  5481. esac
  5482. ;;
  5483. *-darwin*)
  5484. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  5485. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  5486. MOZ_OPTIMIZE_FLAGS="-O2"
  5487. _PEDANTIC=
  5488. CFLAGS="$CFLAGS -fpascal-strings -fno-common"
  5489. CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"
  5490. DLL_SUFFIX=".dylib"
  5491. DSO_LDOPTS=''
  5492. STRIP="$STRIP -x -S"
  5493. _PLATFORM_DEFAULT_TOOLKIT='cairo-cocoa'
  5494. MOZ_ENABLE_POSTSCRIPT=
  5495. TARGET_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
  5496. LDFLAGS="$LDFLAGS -framework Cocoa"
  5497. # The ExceptionHandling framework is needed for Objective-C exception
  5498. # logging code in nsObjCExceptions.h. Currently we only use that in debug
  5499. # builds.
  5500. MOZ_DEBUG_LDFLAGS="$MOZ_DEBUG_LDFLAGS -framework ExceptionHandling"
  5501. # set MACOSX to generate lib/mac/MoreFiles/Makefile
  5502. MACOSX=1
  5503. echo $ac_n "checking for -dead_strip option to ld""... $ac_c" 1>&6
  5504. echo "configure:6036: checking for -dead_strip option to ld" >&5
  5505. _SAVE_LDFLAGS=$LDFLAGS
  5506. LDFLAGS="$LDFLAGS -Wl,-dead_strip"
  5507. cat > conftest.$ac_ext <<EOF
  5508. #line 6040 "configure"
  5509. #include "confdefs.h"
  5510. int main() {
  5511. return 0;
  5512. ; return 0; }
  5513. EOF
  5514. if { (eval echo configure:6047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5515. rm -rf conftest*
  5516. _HAVE_DEAD_STRIP=1
  5517. else
  5518. echo "configure: failed program was:" >&5
  5519. cat conftest.$ac_ext >&5
  5520. rm -rf conftest*
  5521. _HAVE_DEAD_STRIP=
  5522. fi
  5523. rm -f conftest*
  5524. if test -n "$_HAVE_DEAD_STRIP" ; then
  5525. echo "$ac_t""yes" 1>&6
  5526. MOZ_OPTIMIZE_LDFLAGS="-Wl,-dead_strip"
  5527. else
  5528. echo "$ac_t""no" 1>&6
  5529. fi
  5530. LDFLAGS=$_SAVE_LDFLAGS
  5531. ;;
  5532. *-freebsd*)
  5533. if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` != "elf"; then
  5534. DLL_SUFFIX=".so.1.0"
  5535. DSO_LDOPTS="-shared"
  5536. fi
  5537. if test ! "$GNU_CC"; then
  5538. DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
  5539. fi
  5540. # Can't have force w/o an unforce.
  5541. # # Hack for FreeBSD 2.2
  5542. # if test -z "$MKSHLIB_FORCE_ALL"; then
  5543. # MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
  5544. # MKSHLIB_UNFORCE_ALL=''
  5545. # fi
  5546. ;;
  5547. *-hpux*)
  5548. DLL_SUFFIX=".sl"
  5549. if test ! "$GNU_CC"; then
  5550. DSO_LDOPTS='-b -Wl,+s'
  5551. DSO_CFLAGS=""
  5552. DSO_PIC_CFLAGS="+Z"
  5553. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -o $@'
  5554. MKCSHLIB='$(LD) -b +s -L$(LIBXUL_DIST)/bin -o $@'
  5555. CXXFLAGS="$CXXFLAGS -Wc,-ansi_for_scope,on"
  5556. else
  5557. DSO_LDOPTS='-b -E +s'
  5558. MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -L$(LIBXUL_DIST)/lib -o $@'
  5559. MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -L$(LIBXUL_DIST)/lib -o $@'
  5560. fi
  5561. MOZ_POST_PROGRAM_COMMAND='chatr +s enable'
  5562. cat >> confdefs.h <<\EOF
  5563. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  5564. EOF
  5565. ;;
  5566. *-irix5*)
  5567. cat >> confdefs.h <<\EOF
  5568. #define IRIX 1
  5569. EOF
  5570. DSO_LDOPTS='-elf -shared'
  5571. if test "$GNU_CC"; then
  5572. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  5573. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  5574. MKSHLIB_FORCE_ALL='-Wl,-all'
  5575. MKSHLIB_UNFORCE_ALL='-Wl,-none'
  5576. CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS"
  5577. else
  5578. MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
  5579. MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
  5580. MKSHLIB_FORCE_ALL='-all'
  5581. MKSHLIB_UNFORCE_ALL='-none'
  5582. fi
  5583. ;;
  5584. *-irix6*)
  5585. cat >> confdefs.h <<\EOF
  5586. #define IRIX 1
  5587. EOF
  5588. USE_N32=1
  5589. TARGET_COMPILER_ABI=n32
  5590. DSO_LDOPTS='-elf -shared'
  5591. MKSHLIB='$(CCC) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  5592. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  5593. _MOZ_EXCEPTIONS_FLAGS_OFF="-LANG:exceptions=OFF"
  5594. _MOZ_EXCEPTIONS_FLAGS_ON="-LANG:exceptions=ON"
  5595. if test "$GNU_CC"; then
  5596. MKSHLIB_FORCE_ALL='-Wl,-all'
  5597. MKSHLIB_UNFORCE_ALL='-Wl,-none'
  5598. _WARNINGS_CFLAGS="-Wall"
  5599. _WARNINGS_CXXFLAGS="-Wall"
  5600. CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS"
  5601. else
  5602. MKSHLIB_FORCE_ALL='-all'
  5603. MKSHLIB_UNFORCE_ALL='-none'
  5604. AR_LIST="$AR t"
  5605. AR_EXTRACT="$AR x"
  5606. AR_DELETE="$AR d"
  5607. AR='$(CXX) -ar'
  5608. AR_FLAGS='-o $@'
  5609. CFLAGS="$CFLAGS -woff 3262 -G 4"
  5610. CXXFLAGS="$CXXFLAGS -woff 3262 -G 4"
  5611. if test -n "$USE_N32"; then
  5612. ASFLAGS="$ASFLAGS -n32"
  5613. CFLAGS="$CFLAGS -n32"
  5614. CXXFLAGS="$CXXFLAGS -n32"
  5615. LDFLAGS="$LDFLAGS -n32"
  5616. fi
  5617. cat >> confdefs.h <<\EOF
  5618. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  5619. EOF
  5620. echo "configure: warning: Clearing MOZ_FIX_LINK_PATHS for OSF/1 as fix for bug 333545 (till the reference bug 332075 is fixed." 1>&2
  5621. MOZ_FIX_LINK_PATHS=
  5622. fi
  5623. if test -z "$GNU_CXX"; then
  5624. MIPSPRO_CXX=1
  5625. fi
  5626. ;;
  5627. *-*linux*)
  5628. if test "$GNU_CC"; then
  5629. GCC_VERSION=`$CC -v 2>&1 | awk '/^gcc version/ { print $3 }'`
  5630. case $GCC_VERSION in
  5631. 4.1.*|4.2.*)
  5632. # -Os is broken on gcc 4.1.x and 4.2.x, we need to tweak it to get good results.
  5633. MOZ_OPTIMIZE_SIZE_TWEAK="-finline-limit=50"
  5634. esac
  5635. fi
  5636. TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
  5637. MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions $MOZ_OPTIMIZE_SIZE_TWEAK"
  5638. MOZ_DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb,
  5639. # and that combo is not yet good at
  5640. # debugging inlined functions (even
  5641. # when using DWARF2 as the debugging
  5642. # format)
  5643. MOZ_MEMORY=1
  5644. case "${target_cpu}" in
  5645. alpha*)
  5646. CFLAGS="$CFLAGS -mieee"
  5647. CXXFLAGS="$CXXFLAGS -mieee"
  5648. ;;
  5649. i*86)
  5650. USE_ELF_DYNSTR_GC=1
  5651. MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS=1
  5652. ;;
  5653. mips*)
  5654. CFLAGS="$CFLAGS -Wa,-xgot"
  5655. CXXFLAGS="$CXXFLAGS -Wa,-xgot"
  5656. ;;
  5657. esac
  5658. ;;
  5659. *-wince*)
  5660. MOZ_TOOLS_DIR=`echo $MOZ_TOOLS`
  5661. AR_LIST="$AR -list"
  5662. AR_EXTRACT="$AR -extract"
  5663. AR_DELETE="$AR d"
  5664. AR_FLAGS='-OUT:"$@"'
  5665. DSO_CFLAGS=
  5666. DSO_PIC_CFLAGS=
  5667. DLL_SUFFIX=.dll
  5668. BIN_SUFFIX='.exe'
  5669. RC=rc.exe
  5670. # certain versions of cygwin's makedepend barf on the
  5671. # #include <string> vs -I./dist/include/string issue so don't use it
  5672. SYSTEM_MAKEDEPEND=
  5673. HOST_CC=cl
  5674. HOST_CXX=cl
  5675. HOST_LD=link
  5676. HOST_AR='lib -OUT:$@'
  5677. HOST_RANLIB='echo ranlib'
  5678. HOST_CFLAGS="$HOST_CFLAGS -D_X86_"
  5679. WARNINGS_AS_ERRORS='-WX'
  5680. MOZ_OPTIMIZE_FLAGS='-O1'
  5681. AR_FLAGS='-NOLOGO -OUT:"$@"'
  5682. ASM_SUFFIX=asm
  5683. CFLAGS="$CFLAGS -W3 -Gy -Fd\$(PDBFILE)"
  5684. CXXFLAGS="$CXXFLAGS -W3 -Gy -Fd\$(PDBFILE)"
  5685. DLL_PREFIX=
  5686. DOXYGEN=:
  5687. DSO_LDOPTS=-SUBSYSTEM:WINDOWSCE
  5688. DYNAMIC_XPCOM_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcom_core.lib'
  5689. GARBAGE=
  5690. IMPORT_LIB_SUFFIX=lib
  5691. LIBS="$LIBS"
  5692. LIBXUL_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
  5693. LIB_PREFIX=
  5694. LIB_SUFFIX=lib
  5695. MKCSHLIB='$(LD) -NOLOGO -DLL -OUT:$@ $(DSO_LDOPTS)'
  5696. MKSHLIB='$(LD) -NOLOGO -DLL -OUT:$@ $(DSO_LDOPTS)'
  5697. MKSHLIB_FORCE_ALL=
  5698. MKSHLIB_UNFORCE_ALL=
  5699. MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
  5700. MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
  5701. MOZ_DEBUG_FLAGS='-Zi'
  5702. MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
  5703. MOZ_FIX_LINK_PATHS=
  5704. MOZ_JS_LIBS='$(LIBXUL_DIST)/lib/js$(MOZ_BITS)$(VERSION_NUMBER).lib'
  5705. MOZ_XPCOM_OBSOLETE_LIBS='$(LIBXUL_DIST)/lib/xpcom_compat.lib'
  5706. OBJ_SUFFIX=obj
  5707. RANLIB='echo not_ranlib'
  5708. STRIP='echo not_strip'
  5709. TARGET_NSPR_MDCPUCFG='\"md/_wince.cfg\"'
  5710. UNZIP=unzip
  5711. XARGS=xargs
  5712. XPCOM_FROZEN_LDOPTS='$(LIBXUL_DIST)/lib/xpcom.lib'
  5713. ZIP=zip
  5714. LIBIDL_CFLAGS="-I$MOZ_TOOLS_DIR/include ${GLIB_CFLAGS}"
  5715. LIBIDL_LIBS="$MOZ_TOOLS_DIR/lib/libidl-0.6_s.lib $MOZ_TOOLS_DIR/lib/glib-1.2_s.lib"
  5716. STATIC_LIBIDL=1
  5717. cat >> confdefs.h <<\EOF
  5718. #define HAVE_SNPRINTF 1
  5719. EOF
  5720. cat >> confdefs.h <<\EOF
  5721. #define _WINDOWS 1
  5722. EOF
  5723. cat >> confdefs.h <<\EOF
  5724. #define _WIN32 1
  5725. EOF
  5726. cat >> confdefs.h <<\EOF
  5727. #define WIN32 1
  5728. EOF
  5729. cat >> confdefs.h <<\EOF
  5730. #define XP_WIN 1
  5731. EOF
  5732. cat >> confdefs.h <<\EOF
  5733. #define XP_WIN32 1
  5734. EOF
  5735. cat >> confdefs.h <<\EOF
  5736. #define HW_THREADS 1
  5737. EOF
  5738. cat >> confdefs.h <<\EOF
  5739. #define STDC_HEADERS 1
  5740. EOF
  5741. cat >> confdefs.h <<\EOF
  5742. #define NEW_H <new>
  5743. EOF
  5744. cat >> confdefs.h <<\EOF
  5745. #define WIN32_LEAN_AND_MEAN 1
  5746. EOF
  5747. TARGET_MD_ARCH=win32
  5748. _PLATFORM_DEFAULT_TOOLKIT='windows'
  5749. BIN_SUFFIX='.exe'
  5750. USE_SHORT_LIBNAME=1
  5751. MOZ_ENABLE_POSTSCRIPT=
  5752. MOZ_USER_DIR="Mozilla"
  5753. ;;
  5754. *-mingw*|*-cygwin*|*-msvc*|*-mks*)
  5755. DSO_CFLAGS=
  5756. DSO_PIC_CFLAGS=
  5757. DLL_SUFFIX=.dll
  5758. RC=rc.exe
  5759. # certain versions of cygwin's makedepend barf on the
  5760. # #include <string> vs -I./dist/include/string issue so don't use it
  5761. SYSTEM_MAKEDEPEND=
  5762. if test -n "$GNU_CC"; then
  5763. CC="$CC -mno-cygwin"
  5764. CXX="$CXX -mno-cygwin"
  5765. CPP="$CPP -mno-cygwin"
  5766. CFLAGS="$CFLAGS -mms-bitfields"
  5767. CXXFLAGS="$CXXFLAGS -mms-bitfields"
  5768. DSO_LDOPTS='-shared'
  5769. MKSHLIB='$(CXX) $(DSO_LDOPTS) -o $@'
  5770. MKCSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  5771. RC='$(WINDRES)'
  5772. # Use temp file for windres (bug 213281)
  5773. RCFLAGS='-O coff --use-temp-file'
  5774. # mingw doesn't require kernel32, user32, and advapi32 explicitly
  5775. LIBS="$LIBS -lgdi32 -lwinmm -lwsock32"
  5776. MOZ_JS_LIBS='-L$(LIBXUL_DIST)/lib -ljs$(MOZ_BITS)$(VERSION_NUMBER)'
  5777. MOZ_FIX_LINK_PATHS=
  5778. DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib -lxpcom -lxpcom_core'
  5779. XPCOM_FROZEN_LDOPTS='-L$(LIBXUL_DIST)/lib -lxpcom'
  5780. DLL_PREFIX=
  5781. IMPORT_LIB_SUFFIX=dll.a
  5782. else
  5783. TARGET_COMPILER_ABI=msvc
  5784. HOST_CC='$(CC)'
  5785. HOST_CXX='$(CXX)'
  5786. HOST_LD='$(LD)'
  5787. AR='lib -NOLOGO -OUT:"$@"'
  5788. AR_FLAGS=
  5789. RANLIB='echo not_ranlib'
  5790. STRIP='echo not_strip'
  5791. XARGS=xargs
  5792. ZIP=zip
  5793. UNZIP=unzip
  5794. DOXYGEN=:
  5795. GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb'
  5796. OBJ_SUFFIX=obj
  5797. LIB_SUFFIX=lib
  5798. DLL_PREFIX=
  5799. LIB_PREFIX=
  5800. IMPORT_LIB_SUFFIX=lib
  5801. MKSHLIB='$(LD) -NOLOGO -DLL -OUT:$@ -PDB:$(PDBFILE) $(DSO_LDOPTS)'
  5802. MKCSHLIB='$(LD) -NOLOGO -DLL -OUT:$@ -PDB:$(PDBFILE) $(DSO_LDOPTS)'
  5803. MKSHLIB_FORCE_ALL=
  5804. MKSHLIB_UNFORCE_ALL=
  5805. DSO_LDOPTS=-SUBSYSTEM:WINDOWS
  5806. CFLAGS="$CFLAGS -W3 -Gy -Fd\$(PDBFILE)"
  5807. CXXFLAGS="$CXXFLAGS -W3 -Gy -Fd\$(PDBFILE)"
  5808. LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib"
  5809. MOZ_DEBUG_FLAGS='-Zi'
  5810. MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
  5811. WARNINGS_AS_ERRORS='-WX'
  5812. MOZ_OPTIMIZE_FLAGS='-O1'
  5813. MOZ_JS_LIBS='$(LIBXUL_DIST)/lib/js$(MOZ_BITS)$(VERSION_NUMBER).lib'
  5814. MOZ_FIX_LINK_PATHS=
  5815. DYNAMIC_XPCOM_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcom_core.lib'
  5816. XPCOM_FROZEN_LDOPTS='$(LIBXUL_DIST)/lib/xpcom.lib'
  5817. LIBXUL_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
  5818. MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
  5819. MOZ_XPCOM_OBSOLETE_LIBS='$(LIBXUL_DIST)/lib/xpcom_compat.lib'
  5820. if test $_MSC_VER -ge 1400; then
  5821. case "$target" in
  5822. i*86-*)
  5823. LDFLAGS="$LDFLAGS -NXCOMPAT -SAFESEH"
  5824. ;;
  5825. *)
  5826. LDFLAGS="$LDFLAGS -NXCOMPAT"
  5827. ;;
  5828. esac
  5829. PROFILE_GEN_CFLAGS="-GL"
  5830. PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
  5831. PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
  5832. PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE"
  5833. if test -n "$_USE_DYNAMICBASE"; then
  5834. LDFLAGS="$LDFLAGS -DYNAMICBASE"
  5835. fi
  5836. fi
  5837. fi
  5838. MOZ_JPEG_LIBS='$(call EXPAND_LIBNAME_PATH,jpeg$(MOZ_BITS)$(VERSION_NUMBER),$(DEPTH)/jpeg)'
  5839. MOZ_PNG_LIBS='$(call EXPAND_LIBNAME_PATH,png,$(DEPTH)/modules/libimg/png)'
  5840. cat >> confdefs.h <<\EOF
  5841. #define HAVE_SNPRINTF 1
  5842. EOF
  5843. cat >> confdefs.h <<\EOF
  5844. #define _WINDOWS 1
  5845. EOF
  5846. cat >> confdefs.h <<\EOF
  5847. #define _WIN32 1
  5848. EOF
  5849. cat >> confdefs.h <<\EOF
  5850. #define WIN32 1
  5851. EOF
  5852. cat >> confdefs.h <<\EOF
  5853. #define XP_WIN 1
  5854. EOF
  5855. cat >> confdefs.h <<\EOF
  5856. #define XP_WIN32 1
  5857. EOF
  5858. cat >> confdefs.h <<\EOF
  5859. #define HW_THREADS 1
  5860. EOF
  5861. cat >> confdefs.h <<\EOF
  5862. #define STDC_HEADERS 1
  5863. EOF
  5864. cat >> confdefs.h <<\EOF
  5865. #define NEW_H <new>
  5866. EOF
  5867. cat >> confdefs.h <<\EOF
  5868. #define WIN32_LEAN_AND_MEAN 1
  5869. EOF
  5870. TARGET_MD_ARCH=win32
  5871. _PLATFORM_DEFAULT_TOOLKIT='cairo-windows'
  5872. BIN_SUFFIX='.exe'
  5873. USE_SHORT_LIBNAME=1
  5874. MOZ_ENABLE_POSTSCRIPT=
  5875. MOZ_USER_DIR="Mozilla"
  5876. TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"'
  5877. no_x=yes
  5878. cat >> confdefs.h <<\EOF
  5879. #define NO_X11 1
  5880. EOF
  5881. case "$host" in
  5882. *-mingw*)
  5883. CYGPATH_W=echo
  5884. CYGPATH_S=cat
  5885. MOZ_BUILD_ROOT=`cd $MOZ_BUILD_ROOT && pwd -W`
  5886. ;;
  5887. *-cygwin*|*-msvc*|*-mks*)
  5888. CYGPATH_W="cygpath -a -w"
  5889. CYGPATH_S="sed -e s|\\\\|/|g"
  5890. MOZ_BUILD_ROOT=`$CYGPATH_W $MOZ_BUILD_ROOT | $CYGPATH_S`
  5891. ;;
  5892. esac
  5893. case "$host" in
  5894. *-mingw*|*-cygwin*|*-msvc*|*-mks*)
  5895. if test -z "$MOZ_TOOLS"; then
  5896. { echo "configure: error: MOZ_TOOLS is not set" 1>&2; exit 1; }
  5897. fi
  5898. MOZ_TOOLS_DIR=`cd $MOZ_TOOLS && pwd`
  5899. if test "$?" != "0" || test -z "$MOZ_TOOLS_DIR"; then
  5900. { echo "configure: error: cd \$MOZ_TOOLS failed. MOZ_TOOLS ==? $MOZ_TOOLS" 1>&2; exit 1; }
  5901. fi
  5902. if test `echo ${PATH}: | grep -ic "$MOZ_TOOLS_DIR/bin:"` = 0; then
  5903. { echo "configure: error: \$MOZ_TOOLS\\bin must be in your path." 1>&2; exit 1; }
  5904. fi
  5905. MOZ_TOOLS_DIR=`$CYGPATH_W $MOZ_TOOLS_DIR | $CYGPATH_S`
  5906. if test -n "$GLIB_PREFIX"; then
  5907. _GLIB_PREFIX_DIR=`cd $GLIB_PREFIX && pwd`
  5908. if test "$?" = "0"; then
  5909. if test `echo ${PATH}: | grep -ic "$_GLIB_PREFIX_DIR/bin:"` = 0; then
  5910. { echo "configure: error: GLIB_PREFIX must be in your \$PATH." 1>&2; exit 1; }
  5911. fi
  5912. _GLIB_PREFIX_DIR=`$CYGPATH_W $_GLIB_PREFIX_DIR | $CYGPATH_S`
  5913. else
  5914. { echo "configure: error: GLIB_PREFIX is set but "${GLIB_PREFIX}" is not a directory." 1>&2; exit 1; }
  5915. fi
  5916. else
  5917. _GLIB_PREFIX_DIR=$MOZ_TOOLS_DIR
  5918. fi
  5919. if test ! -f "${_GLIB_PREFIX_DIR}/include/glib.h"; then
  5920. { echo "configure: error: Cannot find $_GLIB_PREFIX_DIR/include/glib.h ." 1>&2; exit 1; }
  5921. fi
  5922. GLIB_CFLAGS="-I${_GLIB_PREFIX_DIR}/include"
  5923. if test -f "${_GLIB_PREFIX_DIR}/lib/glib-1.2_s.lib"; then
  5924. GLIB_LIBS="${_GLIB_PREFIX_DIR}/lib/glib-1.2_s.lib"
  5925. elif test -f "${_GLIB_PREFIX_DIR}/lib/glib-1.2.lib"; then
  5926. GLIB_LIBS="${_GLIB_PREFIX_DIR}/lib/glib-1.2.lib"
  5927. else
  5928. { echo "configure: error: Cannot find $_GLIB_PREFIX_DIR/lib/glib-1.2.lib or $_GLIB_PREFIX_DIR/lib/glib-1.2_s.lib" 1>&2; exit 1; }
  5929. fi
  5930. if test -n "$LIBIDL_PREFIX"; then
  5931. _LIBIDL_PREFIX_DIR=`cd $LIBIDL_PREFIX && pwd`
  5932. if test "$?" = "0"; then
  5933. if test `echo ${PATH}: | grep -ic "$_LIBIDL_PREFIX_DIR/bin:"` = 0; then
  5934. { echo "configure: error: LIBIDL_PREFIX must be in your \$PATH." 1>&2; exit 1; }
  5935. fi
  5936. _LIBIDL_PREFIX_DIR=`$CYGPATH_W $_LIBIDL_PREFIX_DIR | $CYGPATH_S`
  5937. else
  5938. { echo "configure: error: LIBIDL_PREFIX is set but "${LIBIDL_PREFIX}" is not a directory." 1>&2; exit 1; }
  5939. fi
  5940. else
  5941. _LIBIDL_PREFIX_DIR=$MOZ_TOOLS_DIR
  5942. fi
  5943. if test ! -f "${_LIBIDL_PREFIX_DIR}/include/libIDL/IDL.h"; then
  5944. { echo "configure: error: Cannot find $_LIBIDL_PREFIX_DIR/include/libIDL/IDL.h ." 1>&2; exit 1; }
  5945. fi
  5946. LIBIDL_CFLAGS="-I${_LIBIDL_PREFIX_DIR}/include ${GLIB_CFLAGS}"
  5947. if test -f "${_LIBIDL_PREFIX_DIR}/lib/libidl-0.6_s.lib"; then
  5948. LIBIDL_LIBS="${_LIBIDL_PREFIX_DIR}/lib/libidl-0.6_s.lib"
  5949. STATIC_LIBIDL=1
  5950. elif test -f "${_LIBIDL_PREFIX_DIR}/lib/libidl-0.6.lib"; then
  5951. LIBIDL_LIBS="${_LIBIDL_PREFIX_DIR}/lib/libidl-0.6.lib"
  5952. else
  5953. { echo "configure: error: Cannot find $_LIBIDL_PREFIX_DIR/lib/libidl-0.6.lib or $_LIBIDL_PREFIX_DIR/lib/libidl-0.6_s.lib" 1>&2; exit 1; }
  5954. fi
  5955. LIBIDL_LIBS="${LIBIDL_LIBS} ${GLIB_LIBS}"
  5956. ;;
  5957. *) # else cross-compiling
  5958. if test -n "$GLIB_PREFIX"; then
  5959. GLIB_CFLAGS="-I${GLIB_PREFIX}/include"
  5960. if test -f "${GLIB_PREFIX}/lib/glib-1.2_s.lib"; then
  5961. GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2_s.lib"
  5962. elif test -f "${GLIB_PREFIX}/lib/glib-1.2.lib"; then
  5963. GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2.lib"
  5964. else
  5965. { echo "configure: error: Cannot find $GLIB_PREFIX/lib/glib-1.2.lib or $GLIB_PREFIX/lib/glib-1.2_s.lib" 1>&2; exit 1; }
  5966. fi
  5967. fi
  5968. if test -n "$LIBIDL_PREFIX"; then
  5969. LIBIDL_CFLAGS="-I${LIBIDL_PREFIX}/include ${GLIB_CFLAGS}"
  5970. if test -f "${LIBIDL_PREFIX}/lib/libIDL-0.6_s.lib"; then
  5971. LIBIDL_LIBS="${LIBIDL_PREFIX}/lib/libIDL-0.6_s.lib"
  5972. STATIC_LIBIDL=1
  5973. elif test -f "${LIBIDL_PREFIX}/lib/libIDL-0.6.lib"; then
  5974. LIBIDL_LIBS="${LIBIDL_PREFIX}/lib/libIDL-0.6.lib"
  5975. else
  5976. { echo "configure: error: Cannot find $LIBIDL_PREFIX/lib/libIDL-0.6.lib or $LIBIDL_PREFIX/lib/libIDL-0.6_s.lib" 1>&2; exit 1; }
  5977. fi
  5978. fi
  5979. LIBIDL_LIBS="${LIBIDL_LIBS} ${GLIB_LIBS}"
  5980. ;;
  5981. esac
  5982. case "$host_os" in
  5983. cygwin*|msvc*|mks*)
  5984. echo "configure: warning: Using a cygwin build environment is unsupported. Configure cannot check for the presence of necessary headers. Please upgrade to MozillaBuild; see http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites" 1>&2
  5985. ;;
  5986. *)
  5987. for ac_hdr in mmintrin.h oleacc.idl
  5988. do
  5989. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5990. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5991. echo "configure:6579: checking for $ac_hdr" >&5
  5992. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5993. echo $ac_n "(cached) $ac_c" 1>&6
  5994. else
  5995. cat > conftest.$ac_ext <<EOF
  5996. #line 6584 "configure"
  5997. #include "confdefs.h"
  5998. #include <$ac_hdr>
  5999. EOF
  6000. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6001. { (eval echo configure:6589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6002. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6003. if test -z "$ac_err"; then
  6004. rm -rf conftest*
  6005. eval "ac_cv_header_$ac_safe=yes"
  6006. else
  6007. echo "$ac_err" >&5
  6008. echo "configure: failed program was:" >&5
  6009. cat conftest.$ac_ext >&5
  6010. rm -rf conftest*
  6011. eval "ac_cv_header_$ac_safe=no"
  6012. fi
  6013. rm -f conftest*
  6014. fi
  6015. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6016. echo "$ac_t""yes" 1>&6
  6017. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6018. cat >> confdefs.h <<EOF
  6019. #define $ac_tr_hdr 1
  6020. EOF
  6021. else
  6022. echo "$ac_t""no" 1>&6
  6023. fi
  6024. done
  6025. ac_ext=C
  6026. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6027. ac_cpp='$CXXCPP $CPPFLAGS'
  6028. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6029. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6030. cross_compiling=$ac_cv_prog_cxx_cross
  6031. for ac_hdr in atlbase.h wpcapi.h
  6032. do
  6033. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6034. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6035. echo "configure:6628: checking for $ac_hdr" >&5
  6036. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6037. echo $ac_n "(cached) $ac_c" 1>&6
  6038. else
  6039. cat > conftest.$ac_ext <<EOF
  6040. #line 6633 "configure"
  6041. #include "confdefs.h"
  6042. #include <$ac_hdr>
  6043. EOF
  6044. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6045. { (eval echo configure:6638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6046. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6047. if test -z "$ac_err"; then
  6048. rm -rf conftest*
  6049. eval "ac_cv_header_$ac_safe=yes"
  6050. else
  6051. echo "$ac_err" >&5
  6052. echo "configure: failed program was:" >&5
  6053. cat conftest.$ac_ext >&5
  6054. rm -rf conftest*
  6055. eval "ac_cv_header_$ac_safe=no"
  6056. fi
  6057. rm -f conftest*
  6058. fi
  6059. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6060. echo "$ac_t""yes" 1>&6
  6061. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6062. cat >> confdefs.h <<EOF
  6063. #define $ac_tr_hdr 1
  6064. EOF
  6065. else
  6066. echo "$ac_t""no" 1>&6
  6067. fi
  6068. done
  6069. ac_ext=c
  6070. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6071. ac_cpp='$CPP $CPPFLAGS'
  6072. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6073. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6074. cross_compiling=$ac_cv_prog_cc_cross
  6075. ;;
  6076. esac
  6077. case "$target" in
  6078. i*86-*)
  6079. cat >> confdefs.h <<\EOF
  6080. #define _X86_ 1
  6081. EOF
  6082. ;;
  6083. alpha-*)
  6084. cat >> confdefs.h <<\EOF
  6085. #define _ALPHA_ 1
  6086. EOF
  6087. ;;
  6088. mips-*)
  6089. cat >> confdefs.h <<\EOF
  6090. #define _MIPS_ 1
  6091. EOF
  6092. ;;
  6093. x86_64-*)
  6094. cat >> confdefs.h <<\EOF
  6095. #define _AMD64_ 1
  6096. EOF
  6097. cat >> confdefs.h <<\EOF
  6098. #define _M_AMD64 1
  6099. EOF
  6100. AS=ml64
  6101. ASM_SUFFIX=asm
  6102. MIDL_FLAGS="${MIDL_FLAGS} -env x64"
  6103. ;;
  6104. ia64-*)
  6105. cat >> confdefs.h <<\EOF
  6106. #define _IA64_ 1
  6107. EOF
  6108. cat >> confdefs.h <<\EOF
  6109. #define _M_IA64 1
  6110. EOF
  6111. MIDL_FLAGS="${MIDL_FLAGS} -env ia64"
  6112. ;;
  6113. *)
  6114. cat >> confdefs.h <<\EOF
  6115. #define _CPU_ARCH_NOT_DEFINED 1
  6116. EOF
  6117. ;;
  6118. esac
  6119. if test "$HAVE_64BIT_OS"; then
  6120. cat >> confdefs.h <<\EOF
  6121. #define _WIN64 1
  6122. EOF
  6123. OS_BITS=64
  6124. else
  6125. OS_BITS=32
  6126. fi
  6127. ;;
  6128. *-netbsd*)
  6129. DSO_CFLAGS=''
  6130. CFLAGS="$CFLAGS -Dunix"
  6131. CXXFLAGS="$CXXFLAGS -Dunix"
  6132. if $CC -E - -dM </dev/null | grep __ELF__ >/dev/null; then
  6133. DLL_SUFFIX=".so"
  6134. DSO_PIC_CFLAGS='-fPIC -DPIC'
  6135. DSO_LDOPTS='-shared'
  6136. BIN_FLAGS='-Wl,--export-dynamic'
  6137. else
  6138. DSO_PIC_CFLAGS='-fPIC -DPIC'
  6139. DLL_SUFFIX=".so.1.0"
  6140. DSO_LDOPTS='-shared'
  6141. fi
  6142. # This will fail on a.out systems prior to 1.5.1_ALPHA.
  6143. MKSHLIB_FORCE_ALL='-Wl,--whole-archive'
  6144. MKSHLIB_UNFORCE_ALL='-Wl,--no-whole-archive'
  6145. if test "$LIBRUNPATH"; then
  6146. DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
  6147. fi
  6148. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX) -o $@'
  6149. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX) -o $@'
  6150. ;;
  6151. *-nto*)
  6152. cat >> confdefs.h <<\EOF
  6153. #define NTO 1
  6154. EOF
  6155. cat >> confdefs.h <<\EOF
  6156. #define _QNX_SOURCE 1
  6157. EOF
  6158. cat >> confdefs.h <<\EOF
  6159. #define _i386 1
  6160. EOF
  6161. OS_TARGET=NTO
  6162. WARNINGS_AS_ERRORS=''
  6163. MOZ_OPTIMIZE_FLAGS="-O"
  6164. MOZ_DEBUG_FLAGS="-gstabs"
  6165. USE_PTHREADS=1
  6166. _PEDANTIC=
  6167. LIBS="$LIBS -lsocket -lstdc++"
  6168. _DEFINES_CFLAGS='-Wp,-include -Wp,$(DEPTH)/mozilla-config.h -DMOZILLA_CLIENT -D_POSIX_C_SOURCE=199506'
  6169. _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -Wp,-include -Wp,$(DEPTH)/mozilla-config.h -D_POSIX_C_SOURCE=199506'
  6170. if test "$with_x" != "yes"
  6171. then
  6172. _PLATFORM_DEFAULT_TOOLKIT="photon"
  6173. TK_CFLAGS='-I/usr/include/photon'
  6174. TK_LIBS='-lph'
  6175. fi
  6176. case "${target_cpu}" in
  6177. ppc*)
  6178. cat >> confdefs.h <<\EOF
  6179. #define HAVE_VA_LIST_AS_ARRAY 1
  6180. EOF
  6181. ;;
  6182. esac
  6183. case "${host_cpu}" in
  6184. i*86)
  6185. USE_ELF_DYNSTR_GC=1
  6186. ;;
  6187. esac
  6188. ;;
  6189. *-openbsd*)
  6190. DLL_SUFFIX=".so.1.0"
  6191. DSO_CFLAGS=''
  6192. DSO_PIC_CFLAGS='-fPIC'
  6193. DSO_LDOPTS='-shared -fPIC'
  6194. if test "$LIBRUNPATH"; then
  6195. DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
  6196. fi
  6197. ;;
  6198. *-openvms*)
  6199. cat >> confdefs.h <<\EOF
  6200. #define NO_PW_GECOS 1
  6201. EOF
  6202. cat >> confdefs.h <<\EOF
  6203. #define NO_UDSOCK 1
  6204. EOF
  6205. cat >> confdefs.h <<\EOF
  6206. #define POLL_WITH_XCONNECTIONNUMBER 1
  6207. EOF
  6208. USE_PTHREADS=1
  6209. MKSHLIB_FORCE_ALL='-all'
  6210. MKSHLIB_UNFORCE_ALL='-none'
  6211. AS='as'
  6212. AS_DASH_C_FLAG='-Wc/names=as_is'
  6213. AR_FLAGS='c $@'
  6214. DSO_LDOPTS='-shared -auto_symvec'
  6215. DSO_PIC_CFLAGS=
  6216. MOZ_DEBUG_LDFLAGS='-g'
  6217. COMPAQ_CXX=1
  6218. CC_VERSION=`$CC -V 2>&1 | awk '/ C / { print $3 }'`
  6219. CXX_VERSION=`$CXX -V 2>&1 | awk '/ C\+\+ / { print $3 }'`
  6220. ;;
  6221. *-os2*)
  6222. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  6223. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
  6224. cat >> confdefs.h <<\EOF
  6225. #define XP_OS2 1
  6226. EOF
  6227. USE_SHORT_LIBNAME=1
  6228. DLL_PREFIX=
  6229. LIB_PREFIX=
  6230. LIB_SUFFIX=lib
  6231. BIN_SUFFIX=".exe"
  6232. DLL_SUFFIX=".dll"
  6233. IMPORT_LIB_SUFFIX=lib
  6234. DSO_PIC_CFLAGS=
  6235. TARGET_MD_ARCH=os2
  6236. _PLATFORM_DEFAULT_TOOLKIT="cairo-os2"
  6237. MOZ_ENABLE_POSTSCRIPT=
  6238. RC=rc.exe
  6239. RCFLAGS='-n'
  6240. MOZ_USER_DIR="Mozilla"
  6241. if test "$MOZTOOLS"; then
  6242. MOZ_TOOLS_DIR=`echo $MOZTOOLS | sed -e 's|\\\\|/|g'`
  6243. else
  6244. { echo "configure: error: MOZTOOLS is not set" 1>&2; exit 1; }
  6245. fi
  6246. # EMX/GCC build
  6247. if test -n "$GNU_CC"; then
  6248. cat >> confdefs.h <<\EOF
  6249. #define OS2 1
  6250. EOF
  6251. cat >> confdefs.h <<\EOF
  6252. #define XP_OS2_EMX 1
  6253. EOF
  6254. cat >> confdefs.h <<\EOF
  6255. #define OS2EMX_PLAIN_CHAR 1
  6256. EOF
  6257. cat >> confdefs.h <<\EOF
  6258. #define TCPV40HDRS 1
  6259. EOF
  6260. AR=emxomfar
  6261. AR_FLAGS='r $@'
  6262. CFLAGS="$CFLAGS -Zomf"
  6263. CXXFLAGS="$CXXFLAGS -Zomf"
  6264. DSO_LDOPTS='-Zdll'
  6265. BIN_FLAGS='-Zlinker /ST:0x100000'
  6266. IMPLIB='emximp -o'
  6267. FILTER='emxexp -o'
  6268. LDFLAGS='-Zmap'
  6269. WARNINGS_AS_ERRORS='-Werror'
  6270. MOZ_DEBUG_FLAGS="-g -fno-inline"
  6271. MOZ_OPTIMIZE_FLAGS="-O2"
  6272. MOZ_OPTIMIZE_LDFLAGS="-s -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
  6273. MOZ_XPCOM_OBSOLETE_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcomct.lib'
  6274. DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcomcor.lib'
  6275. LIBXUL_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
  6276. if test -n "$MOZ_OS2_HIGH_MEMORY"; then
  6277. DSO_LDOPTS="$DSO_LDOPTS -Zhigh-mem"
  6278. LDFLAGS="$LDFLAGS -Zhigh-mem"
  6279. MOZ_OPTIMIZE_LDFLAGS="$MOZ_OPTIMIZE_LDFLAGS -Zhigh-mem"
  6280. cat >> confdefs.h <<\EOF
  6281. #define MOZ_OS2_HIGH_MEMORY 1
  6282. EOF
  6283. fi
  6284. # GCC for OS/2 currently predefines these, but we don't want them
  6285. _DEFINES_CFLAGS="$_DEFINES_CFLAGS -Uunix -U__unix -U__unix__"
  6286. _DEFINES_CXXFLAGS="$_DEFINES_CXXFLAGS -Uunix -U__unix -U__unix__"
  6287. echo $ac_n "checking for __declspec(dllexport)""... $ac_c" 1>&6
  6288. echo "configure:6921: checking for __declspec(dllexport)" >&5
  6289. if eval "test \"`echo '$''{'ac_os2_declspec'+set}'`\" = set"; then
  6290. echo $ac_n "(cached) $ac_c" 1>&6
  6291. else
  6292. cat > conftest.$ac_ext <<EOF
  6293. #line 6926 "configure"
  6294. #include "confdefs.h"
  6295. __declspec(dllexport) void ac_os2_declspec(void) {}
  6296. int main() {
  6297. return 0;
  6298. ; return 0; }
  6299. EOF
  6300. if { (eval echo configure:6933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6301. rm -rf conftest*
  6302. ac_os2_declspec="yes"
  6303. else
  6304. echo "configure: failed program was:" >&5
  6305. cat conftest.$ac_ext >&5
  6306. rm -rf conftest*
  6307. ac_os2_declspec="no"
  6308. fi
  6309. rm -f conftest*
  6310. fi
  6311. echo "$ac_t""$ac_os2_declspec" 1>&6
  6312. if test "$ac_os2_declspec" = "yes"; then
  6313. FILTER='true'
  6314. MOZ_OS2_USE_DECLSPEC='1'
  6315. fi
  6316. # Visual Age C++ build
  6317. elif test "$VACPP" = "yes"; then
  6318. MOZ_BUILD_ROOT=`pwd -D`
  6319. OBJ_SUFFIX=obj
  6320. AR=-ilib
  6321. AR_FLAGS='/NOL /NOI /O:$(subst /,\\,$@)'
  6322. AR_LIST='/L'
  6323. AR_EXTRACT='-*'
  6324. AR_DELETE='-'
  6325. AS=alp
  6326. ASFLAGS='-Mb'
  6327. AS_DASH_C_FLAG=''
  6328. ASM_SUFFIX=asm
  6329. LD='-ilink'
  6330. CFLAGS="/Q /qlibansi /Gm+ /Su4 /Mp /Tl9"
  6331. CXXFLAGS="/Q /qlibansi /Gm+ /Su4 /Mp /Tl9 /Gx+"
  6332. MOZ_DEBUG_FLAGS="/Ti+"
  6333. WARNINGS_AS_ERRORS='-WX'
  6334. MOZ_OPTIMIZE_FLAGS="/O+ /Gl+ /G5 /qarch=pentium"
  6335. LDFLAGS="/NOL /M"
  6336. MOZ_DEBUG_LDFLAGS="/DE"
  6337. MOZ_OPTIMIZE_LDFLAGS="/OPTFUNC /EXEPACK:2 /PACKCODE /PACKDATA"
  6338. DSO_LDOPTS=''
  6339. DSO_PIC_CFLAGS=
  6340. IMPLIB='implib /NOL /NOI'
  6341. FILTER='cppfilt -q -B -P'
  6342. cat >> confdefs.h <<\EOF
  6343. #define NO_ANSI_KEYWORDS 1
  6344. EOF
  6345. cat >> confdefs.h <<\EOF
  6346. #define OS2 4
  6347. EOF
  6348. cat >> confdefs.h <<\EOF
  6349. #define _X86_ 1
  6350. EOF
  6351. cat >> confdefs.h <<\EOF
  6352. #define XP_OS2_VACPP 1
  6353. EOF
  6354. cat >> confdefs.h <<\EOF
  6355. #define TCPV40HDRS 1
  6356. EOF
  6357. cat >> confdefs.h <<\EOF
  6358. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  6359. EOF
  6360. cat >> confdefs.h <<\EOF
  6361. #define STDC_HEADERS 1
  6362. EOF
  6363. MOZ_COMPONENT_NSPR_LIBS='$(NSPR_LIBS)'
  6364. MKSHLIB='$(LD) $(DSO_LDOPTS)'
  6365. MKCSHLIB='$(LD) $(DSO_LDOPTS)'
  6366. MOZ_JS_LIBS='$(LIBXUL_DIST)/lib/mozjs.lib'
  6367. MOZ_XPCOM_OBSOLETE_LIBS='$(LIBXUL_DIST)/lib/xpcomct.lib'
  6368. DYNAMIC_XPCOM_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcomcor.lib'
  6369. LIBXUL_LIBS='$(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
  6370. fi
  6371. ;;
  6372. alpha*-*-osf*)
  6373. if test "$GNU_CC"; then
  6374. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$@ -o $@'
  6375. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$@ -o $@'
  6376. else
  6377. MOZ_DEBUG_FLAGS='-g'
  6378. ASFLAGS='-I$(topsrcdir)/xpcom/reflect/xptcall/public -g'
  6379. CFLAGS="$CFLAGS -ieee"
  6380. CXXFLAGS="$CXXFLAGS "'-noexceptions -ieee -ptr $(DIST)/cxx_repository'
  6381. DSO_LDOPTS='-shared -msym -expect_unresolved \* -update_registry $(DIST)/so_locations'
  6382. DSO_CFLAGS=
  6383. DSO_PIC_CFLAGS=
  6384. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -soname $@ -o $@'
  6385. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -soname $@ -o $@'
  6386. MKSHLIB_FORCE_ALL='-all'
  6387. MKSHLIB_UNFORCE_ALL='-none'
  6388. cat >> confdefs.h <<\EOF
  6389. #define NSCAP_DISABLE_TEST_DONTQUERY_CASES 1
  6390. EOF
  6391. cat >> confdefs.h <<\EOF
  6392. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  6393. EOF
  6394. fi
  6395. if test -z "$GNU_CXX"; then
  6396. COMPAQ_CXX=1
  6397. fi
  6398. cat >> confdefs.h <<\EOF
  6399. #define NEED_USLEEP_PROTOTYPE 1
  6400. EOF
  6401. ;;
  6402. *-qnx*)
  6403. DIRENT_INO=d_stat.st_ino
  6404. cat >> confdefs.h <<\EOF
  6405. #define NSCAP_DISABLE_TEST_DONTQUERY_CASES 1
  6406. EOF
  6407. cat >> confdefs.h <<\EOF
  6408. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  6409. EOF
  6410. cat >> confdefs.h <<\EOF
  6411. #define STDC_HEADERS 1
  6412. EOF
  6413. if test "$no_x" = "yes"; then
  6414. _PLATFORM_DEFAULT_TOOLKIT='photon'
  6415. TK_CFLAGS='-I/usr/nto/include/photon'
  6416. TK_LIBS='-lphoton -lphrender'
  6417. fi
  6418. ;;
  6419. *-sco*)
  6420. cat >> confdefs.h <<\EOF
  6421. #define NSCAP_DISABLE_TEST_DONTQUERY_CASES 1
  6422. EOF
  6423. cat >> confdefs.h <<\EOF
  6424. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  6425. EOF
  6426. CXXFLAGS="$CXXFLAGS -I/usr/include/CC"
  6427. if test ! "$GNU_CC"; then
  6428. DSO_LDOPTS='-G'
  6429. fi
  6430. ;;
  6431. *-solaris*)
  6432. cat >> confdefs.h <<\EOF
  6433. #define SOLARIS 1
  6434. EOF
  6435. TARGET_NSPR_MDCPUCFG='\"md/_solaris.cfg\"'
  6436. SYSTEM_MAKEDEPEND=
  6437. # $ORIGIN/.. is for shared libraries under components/ to locate shared
  6438. # libraries one level up (e.g. libnspr4.so)
  6439. LDFLAGS="$LDFLAGS -z ignore -R '\$\$ORIGIN:\$\$ORIGIN/..'"
  6440. MOZ_MEMORY=1
  6441. if test -z "$GNU_CC"; then
  6442. NS_USE_NATIVE=1
  6443. MOZ_FIX_LINK_PATHS='-R $(LIBXUL_DIST)/bin'
  6444. cat >> confdefs.h <<\EOF
  6445. #define NSCAP_DISABLE_DEBUG_PTR_TYPES 1
  6446. EOF
  6447. if test "$CPU_ARCH" != "sparc"; then
  6448. CFLAGS="$CFLAGS -xlibmieee -xstrconst -xbuiltin=%all"
  6449. CXXFLAGS="$CXXFLAGS -xlibmieee -xbuiltin=%all -features=tmplife -norunpath"
  6450. else
  6451. # Do not use -xbuiltin on SPARC to get around a bug of compiler
  6452. CFLAGS="$CFLAGS -xlibmieee -xstrconst -xbuiltin=%none"
  6453. CXXFLAGS="$CXXFLAGS -xlibmieee -xbuiltin=%none -features=tmplife -norunpath"
  6454. fi
  6455. LDFLAGS="-xildoff -z lazyload -z combreloc $LDFLAGS"
  6456. if test -z "$CROSS_COMPILE" && test -f /usr/lib/ld/map.noexstk; then
  6457. _SAVE_LDFLAGS=$LDFLAGS
  6458. LDFLAGS="-M /usr/lib/ld/map.noexstk $LDFLAGS"
  6459. cat > conftest.$ac_ext <<EOF
  6460. #line 7119 "configure"
  6461. #include "confdefs.h"
  6462. #include <stdio.h>
  6463. int main() {
  6464. printf("Hello World\n");
  6465. ; return 0; }
  6466. EOF
  6467. if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6468. :
  6469. else
  6470. echo "configure: failed program was:" >&5
  6471. cat conftest.$ac_ext >&5
  6472. rm -rf conftest*
  6473. LDFLAGS=$_SAVE_LDFLAGS
  6474. fi
  6475. rm -f conftest*
  6476. fi
  6477. WARNINGS_AS_ERRORS='-Werror'
  6478. MOZ_OPTIMIZE_FLAGS="-xO4"
  6479. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -h $@ -o $@'
  6480. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -z muldefs -h $@ -o $@'
  6481. MKSHLIB_FORCE_ALL='-z allextract'
  6482. MKSHLIB_UNFORCE_ALL='-z defaultextract'
  6483. DSO_LDOPTS='-G -z muldefs'
  6484. AR_LIST="$AR t"
  6485. AR_EXTRACT="$AR x"
  6486. AR_DELETE="$AR d"
  6487. AR='$(CXX) -xar'
  6488. AR_FLAGS='-o $@'
  6489. AS='/usr/ccs/bin/as'
  6490. ASFLAGS="$ASFLAGS -K PIC -L -P -D_ASM -D__STDC__=0"
  6491. AS_DASH_C_FLAG=''
  6492. TARGET_COMPILER_ABI="sunc"
  6493. CC_VERSION=`$CC -V 2>&1 | grep '^cc:' 2>/dev/null | $AWK -F\: '{ print $2 }'`
  6494. CXX_VERSION=`$CXX -V 2>&1 | grep '^CC:' 2>/dev/null | $AWK -F\: '{ print $2 }'`
  6495. echo $ac_n "checking for Forte compiler version >= WS6U2""... $ac_c" 1>&6
  6496. echo "configure:7155: checking for Forte compiler version >= WS6U2" >&5
  6497. ac_ext=C
  6498. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6499. ac_cpp='$CXXCPP $CPPFLAGS'
  6500. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6501. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6502. cross_compiling=$ac_cv_prog_cxx_cross
  6503. cat > conftest.$ac_ext <<EOF
  6504. #line 7165 "configure"
  6505. #include "confdefs.h"
  6506. int main() {
  6507. #if (__SUNPRO_CC < 0x530)
  6508. #error "Denied"
  6509. #endif
  6510. ; return 0; }
  6511. EOF
  6512. if { (eval echo configure:7174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6513. rm -rf conftest*
  6514. _BAD_COMPILER=
  6515. else
  6516. echo "configure: failed program was:" >&5
  6517. cat conftest.$ac_ext >&5
  6518. rm -rf conftest*
  6519. _BAD_COMPILER=1
  6520. fi
  6521. rm -f conftest*
  6522. if test -n "$_BAD_COMPILER"; then
  6523. _res="no"
  6524. { echo "configure: error: Forte version WS6U2 or higher is required to build. Your compiler version is $CC_VERSION ." 1>&2; exit 1; }
  6525. else
  6526. _res="yes"
  6527. fi
  6528. echo "$ac_t""$_res" 1>&6
  6529. ac_ext=c
  6530. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6531. ac_cpp='$CPP $CPPFLAGS'
  6532. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6533. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6534. cross_compiling=$ac_cv_prog_cc_cross
  6535. else
  6536. ASFLAGS="$ASFLAGS -fPIC"
  6537. DSO_LDOPTS='-G'
  6538. _WARNINGS_CFLAGS=''
  6539. _WARNINGS_CXXFLAGS=''
  6540. if test "$OS_RELEASE" = "5.3"; then
  6541. cat >> confdefs.h <<\EOF
  6542. #define MUST_UNDEF_HAVE_BOOLEAN_AFTER_INCLUDES 1
  6543. EOF
  6544. fi
  6545. fi
  6546. if test "$OS_RELEASE" = "5.5.1"; then
  6547. cat >> confdefs.h <<\EOF
  6548. #define NEED_USLEEP_PROTOTYPE 1
  6549. EOF
  6550. fi
  6551. ;;
  6552. *-sunos*)
  6553. DSO_LDOPTS='-Bdynamic'
  6554. MKSHLIB='-$(LD) $(DSO_LDOPTS) -o $@'
  6555. MKCSHLIB='-$(LD) $(DSO_LDOPTS) -o $@'
  6556. cat >> confdefs.h <<\EOF
  6557. #define SUNOS4 1
  6558. EOF
  6559. cat >> confdefs.h <<\EOF
  6560. #define SPRINTF_RETURNS_STRING 1
  6561. EOF
  6562. case "$(target_os)" in
  6563. sunos4.1*)
  6564. DLL_SUFFIX='.so.1.0'
  6565. ;;
  6566. esac
  6567. ;;
  6568. *-sysv4.2uw7*)
  6569. NSPR_LIBS="-lnspr$NSPR_VERSION -lplc$NSPR_VERSION -lplds$NSPR_VERSION -L/usr/ccs/lib -lcrt"
  6570. ;;
  6571. *-os2*)
  6572. HOST_NSPR_MDCPUCFG='\"md/_os2.cfg\"'
  6573. ;;
  6574. esac
  6575. cat >> confdefs.h <<EOF
  6576. #define D_INO $DIRENT_INO
  6577. EOF
  6578. NO_LD_ARCHIVE_FLAGS=
  6579. if test -z "$MKSHLIB_FORCE_ALL" || test -z "$MKSHLIB_UNFORCE_ALL"; then
  6580. NO_LD_ARCHIVE_FLAGS=1
  6581. fi
  6582. case "$target" in
  6583. *-os2*)
  6584. NO_LD_ARCHIVE_FLAGS=
  6585. ;;
  6586. *-aix4.3*|*-aix5*)
  6587. NO_LD_ARCHIVE_FLAGS=
  6588. ;;
  6589. *-openvms*)
  6590. NO_LD_ARCHIVE_FLAGS=
  6591. ;;
  6592. *-msvc*|*-mks*|*-mingw*|*-cygwin*|*-wince)
  6593. if test -z "$GNU_CC"; then
  6594. NO_LD_ARCHIVE_FLAGS=
  6595. fi
  6596. ;;
  6597. esac
  6598. case "$target" in
  6599. *-hpux*)
  6600. cat >> confdefs.h <<\EOF
  6601. #define MOZ_OJI_REQUIRE_THREAD_SAFE_ON_STARTUP 1
  6602. EOF
  6603. ;;
  6604. esac
  6605. case "$target" in
  6606. *-linux*|*-kfreebsd*-gnu)
  6607. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
  6608. ;;
  6609. *-solaris*)
  6610. if test -z "$GNU_CC"; then
  6611. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-M $(BUILD_TOOLS)/gnu-ld-scripts/components-mapfile'
  6612. else
  6613. if test -z "$GCC_USE_GNU_LD"; then
  6614. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-M -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-mapfile'
  6615. else
  6616. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
  6617. fi
  6618. fi
  6619. ;;
  6620. *-nto*)
  6621. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
  6622. ;;
  6623. *-darwin*)
  6624. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-exported_symbols_list -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-export-list'
  6625. ;;
  6626. *-cygwin*|*-mingw*|*-mks*|*-msvc|*-wince)
  6627. if test -n "$GNU_CC"; then
  6628. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
  6629. fi
  6630. ;;
  6631. esac
  6632. if test -z "$COMPILE_ENVIRONMENT"; then
  6633. SKIP_COMPILER_CHECKS=1
  6634. SKIP_LIBRARY_CHECKS=1
  6635. fi
  6636. if test -z "$SKIP_COMPILER_CHECKS"; then
  6637. ac_ext=c
  6638. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6639. ac_cpp='$CPP $CPPFLAGS'
  6640. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6641. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6642. cross_compiling=$ac_cv_prog_cc_cross
  6643. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  6644. echo "configure:7325: checking for ANSI C header files" >&5
  6645. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  6646. echo $ac_n "(cached) $ac_c" 1>&6
  6647. else
  6648. cat > conftest.$ac_ext <<EOF
  6649. #line 7330 "configure"
  6650. #include "confdefs.h"
  6651. #include <stdlib.h>
  6652. #include <stdarg.h>
  6653. #include <string.h>
  6654. #include <float.h>
  6655. EOF
  6656. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6657. { (eval echo configure:7338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6658. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6659. if test -z "$ac_err"; then
  6660. rm -rf conftest*
  6661. ac_cv_header_stdc=yes
  6662. else
  6663. echo "$ac_err" >&5
  6664. echo "configure: failed program was:" >&5
  6665. cat conftest.$ac_ext >&5
  6666. rm -rf conftest*
  6667. ac_cv_header_stdc=no
  6668. fi
  6669. rm -f conftest*
  6670. if test $ac_cv_header_stdc = yes; then
  6671. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6672. cat > conftest.$ac_ext <<EOF
  6673. #line 7355 "configure"
  6674. #include "confdefs.h"
  6675. #include <string.h>
  6676. EOF
  6677. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6678. egrep "memchr" >/dev/null 2>&1; then
  6679. :
  6680. else
  6681. rm -rf conftest*
  6682. ac_cv_header_stdc=no
  6683. fi
  6684. rm -f conftest*
  6685. fi
  6686. if test $ac_cv_header_stdc = yes; then
  6687. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6688. cat > conftest.$ac_ext <<EOF
  6689. #line 7373 "configure"
  6690. #include "confdefs.h"
  6691. #include <stdlib.h>
  6692. EOF
  6693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6694. egrep "free" >/dev/null 2>&1; then
  6695. :
  6696. else
  6697. rm -rf conftest*
  6698. ac_cv_header_stdc=no
  6699. fi
  6700. rm -f conftest*
  6701. fi
  6702. if test $ac_cv_header_stdc = yes; then
  6703. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6704. if test "$cross_compiling" = yes; then
  6705. :
  6706. else
  6707. cat > conftest.$ac_ext <<EOF
  6708. #line 7394 "configure"
  6709. #include "confdefs.h"
  6710. #include <ctype.h>
  6711. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6712. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6713. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6714. int main () { int i; for (i = 0; i < 256; i++)
  6715. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  6716. exit (0); }
  6717. EOF
  6718. if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6719. then
  6720. :
  6721. else
  6722. echo "configure: failed program was:" >&5
  6723. cat conftest.$ac_ext >&5
  6724. rm -fr conftest*
  6725. ac_cv_header_stdc=no
  6726. fi
  6727. rm -fr conftest*
  6728. fi
  6729. fi
  6730. fi
  6731. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  6732. if test $ac_cv_header_stdc = yes; then
  6733. cat >> confdefs.h <<\EOF
  6734. #define STDC_HEADERS 1
  6735. EOF
  6736. fi
  6737. echo $ac_n "checking for working const""... $ac_c" 1>&6
  6738. echo "configure:7429: checking for working const" >&5
  6739. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  6740. echo $ac_n "(cached) $ac_c" 1>&6
  6741. else
  6742. cat > conftest.$ac_ext <<EOF
  6743. #line 7434 "configure"
  6744. #include "confdefs.h"
  6745. int main() {
  6746. /* Ultrix mips cc rejects this. */
  6747. typedef int charset[2]; const charset x;
  6748. /* SunOS 4.1.1 cc rejects this. */
  6749. char const *const *ccp;
  6750. char **p;
  6751. /* NEC SVR4.0.2 mips cc rejects this. */
  6752. struct point {int x, y;};
  6753. static struct point const zero = {0,0};
  6754. /* AIX XL C 1.02.0.0 rejects this.
  6755. It does not let you subtract one const X* pointer from another in an arm
  6756. of an if-expression whose if-part is not a constant expression */
  6757. const char *g = "string";
  6758. ccp = &g + (g ? g-g : 0);
  6759. /* HPUX 7.0 cc rejects these. */
  6760. ++ccp;
  6761. p = (char**) ccp;
  6762. ccp = (char const *const *) p;
  6763. { /* SCO 3.2v4 cc rejects this. */
  6764. char *t;
  6765. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6766. *t++ = 0;
  6767. }
  6768. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6769. int x[] = {25, 17};
  6770. const int *foo = &x[0];
  6771. ++foo;
  6772. }
  6773. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6774. typedef const int *iptr;
  6775. iptr p = 0;
  6776. ++p;
  6777. }
  6778. { /* AIX XL C 1.02.0.0 rejects this saying
  6779. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6780. struct s { int j; const int *ap[3]; };
  6781. struct s *b; b->j = 5;
  6782. }
  6783. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6784. const int foo = 10;
  6785. }
  6786. ; return 0; }
  6787. EOF
  6788. if { (eval echo configure:7483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6789. rm -rf conftest*
  6790. ac_cv_c_const=yes
  6791. else
  6792. echo "configure: failed program was:" >&5
  6793. cat conftest.$ac_ext >&5
  6794. rm -rf conftest*
  6795. ac_cv_c_const=no
  6796. fi
  6797. rm -f conftest*
  6798. fi
  6799. echo "$ac_t""$ac_cv_c_const" 1>&6
  6800. if test $ac_cv_c_const = no; then
  6801. cat >> confdefs.h <<\EOF
  6802. #define const
  6803. EOF
  6804. fi
  6805. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  6806. echo "configure:7504: checking for mode_t" >&5
  6807. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  6808. echo $ac_n "(cached) $ac_c" 1>&6
  6809. else
  6810. cat > conftest.$ac_ext <<EOF
  6811. #line 7509 "configure"
  6812. #include "confdefs.h"
  6813. #include <sys/types.h>
  6814. #if STDC_HEADERS
  6815. #include <stdlib.h>
  6816. #include <stddef.h>
  6817. #endif
  6818. EOF
  6819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6820. egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6821. rm -rf conftest*
  6822. ac_cv_type_mode_t=yes
  6823. else
  6824. rm -rf conftest*
  6825. ac_cv_type_mode_t=no
  6826. fi
  6827. rm -f conftest*
  6828. fi
  6829. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  6830. if test $ac_cv_type_mode_t = no; then
  6831. cat >> confdefs.h <<\EOF
  6832. #define mode_t int
  6833. EOF
  6834. fi
  6835. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  6836. echo "configure:7537: checking for off_t" >&5
  6837. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  6838. echo $ac_n "(cached) $ac_c" 1>&6
  6839. else
  6840. cat > conftest.$ac_ext <<EOF
  6841. #line 7542 "configure"
  6842. #include "confdefs.h"
  6843. #include <sys/types.h>
  6844. #if STDC_HEADERS
  6845. #include <stdlib.h>
  6846. #include <stddef.h>
  6847. #endif
  6848. EOF
  6849. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6850. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6851. rm -rf conftest*
  6852. ac_cv_type_off_t=yes
  6853. else
  6854. rm -rf conftest*
  6855. ac_cv_type_off_t=no
  6856. fi
  6857. rm -f conftest*
  6858. fi
  6859. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  6860. if test $ac_cv_type_off_t = no; then
  6861. cat >> confdefs.h <<\EOF
  6862. #define off_t long
  6863. EOF
  6864. fi
  6865. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  6866. echo "configure:7570: checking for pid_t" >&5
  6867. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  6868. echo $ac_n "(cached) $ac_c" 1>&6
  6869. else
  6870. cat > conftest.$ac_ext <<EOF
  6871. #line 7575 "configure"
  6872. #include "confdefs.h"
  6873. #include <sys/types.h>
  6874. #if STDC_HEADERS
  6875. #include <stdlib.h>
  6876. #include <stddef.h>
  6877. #endif
  6878. EOF
  6879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6880. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6881. rm -rf conftest*
  6882. ac_cv_type_pid_t=yes
  6883. else
  6884. rm -rf conftest*
  6885. ac_cv_type_pid_t=no
  6886. fi
  6887. rm -f conftest*
  6888. fi
  6889. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  6890. if test $ac_cv_type_pid_t = no; then
  6891. cat >> confdefs.h <<\EOF
  6892. #define pid_t int
  6893. EOF
  6894. fi
  6895. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  6896. echo "configure:7603: checking for size_t" >&5
  6897. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  6898. echo $ac_n "(cached) $ac_c" 1>&6
  6899. else
  6900. cat > conftest.$ac_ext <<EOF
  6901. #line 7608 "configure"
  6902. #include "confdefs.h"
  6903. #include <sys/types.h>
  6904. #if STDC_HEADERS
  6905. #include <stdlib.h>
  6906. #include <stddef.h>
  6907. #endif
  6908. EOF
  6909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6910. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6911. rm -rf conftest*
  6912. ac_cv_type_size_t=yes
  6913. else
  6914. rm -rf conftest*
  6915. ac_cv_type_size_t=no
  6916. fi
  6917. rm -f conftest*
  6918. fi
  6919. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  6920. if test $ac_cv_type_size_t = no; then
  6921. cat >> confdefs.h <<\EOF
  6922. #define size_t unsigned
  6923. EOF
  6924. fi
  6925. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  6926. echo "configure:7636: checking for st_blksize in struct stat" >&5
  6927. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  6928. echo $ac_n "(cached) $ac_c" 1>&6
  6929. else
  6930. cat > conftest.$ac_ext <<EOF
  6931. #line 7641 "configure"
  6932. #include "confdefs.h"
  6933. #include <sys/types.h>
  6934. #include <sys/stat.h>
  6935. int main() {
  6936. struct stat s; s.st_blksize;
  6937. ; return 0; }
  6938. EOF
  6939. if { (eval echo configure:7649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6940. rm -rf conftest*
  6941. ac_cv_struct_st_blksize=yes
  6942. else
  6943. echo "configure: failed program was:" >&5
  6944. cat conftest.$ac_ext >&5
  6945. rm -rf conftest*
  6946. ac_cv_struct_st_blksize=no
  6947. fi
  6948. rm -f conftest*
  6949. fi
  6950. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  6951. if test $ac_cv_struct_st_blksize = yes; then
  6952. cat >> confdefs.h <<\EOF
  6953. #define HAVE_ST_BLKSIZE 1
  6954. EOF
  6955. fi
  6956. echo $ac_n "checking for siginfo_t""... $ac_c" 1>&6
  6957. echo "configure:7670: checking for siginfo_t" >&5
  6958. if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then
  6959. echo $ac_n "(cached) $ac_c" 1>&6
  6960. else
  6961. cat > conftest.$ac_ext <<EOF
  6962. #line 7675 "configure"
  6963. #include "confdefs.h"
  6964. #define _POSIX_C_SOURCE 199506L
  6965. #include <signal.h>
  6966. int main() {
  6967. siginfo_t* info;
  6968. ; return 0; }
  6969. EOF
  6970. if { (eval echo configure:7683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6971. rm -rf conftest*
  6972. ac_cv_siginfo_t=true
  6973. else
  6974. echo "configure: failed program was:" >&5
  6975. cat conftest.$ac_ext >&5
  6976. rm -rf conftest*
  6977. ac_cv_siginfo_t=false
  6978. fi
  6979. rm -f conftest*
  6980. fi
  6981. if test "$ac_cv_siginfo_t" = true ; then
  6982. cat >> confdefs.h <<\EOF
  6983. #define HAVE_SIGINFO_T 1
  6984. EOF
  6985. echo "$ac_t""yes" 1>&6
  6986. else
  6987. echo "$ac_t""no" 1>&6
  6988. fi
  6989. if test "$VACPP" = "yes"; then
  6990. cat >> confdefs.h <<\EOF
  6991. #define __size_t 1
  6992. EOF
  6993. cat >> confdefs.h <<\EOF
  6994. #define __off_t 1
  6995. EOF
  6996. fi
  6997. echo $ac_n "checking for int16_t""... $ac_c" 1>&6
  6998. echo "configure:7717: checking for int16_t" >&5
  6999. if eval "test \"`echo '$''{'ac_cv_int16_t'+set}'`\" = set"; then
  7000. echo $ac_n "(cached) $ac_c" 1>&6
  7001. else
  7002. cat > conftest.$ac_ext <<EOF
  7003. #line 7722 "configure"
  7004. #include "confdefs.h"
  7005. #include <stdio.h>
  7006. #include <sys/types.h>
  7007. int main() {
  7008. int16_t foo = 0;
  7009. ; return 0; }
  7010. EOF
  7011. if { (eval echo configure:7730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7012. rm -rf conftest*
  7013. ac_cv_int16_t=true
  7014. else
  7015. echo "configure: failed program was:" >&5
  7016. cat conftest.$ac_ext >&5
  7017. rm -rf conftest*
  7018. ac_cv_int16_t=false
  7019. fi
  7020. rm -f conftest*
  7021. fi
  7022. if test "$ac_cv_int16_t" = true ; then
  7023. cat >> confdefs.h <<\EOF
  7024. #define HAVE_INT16_T 1
  7025. EOF
  7026. echo "$ac_t""yes" 1>&6
  7027. else
  7028. echo "$ac_t""no" 1>&6
  7029. fi
  7030. echo $ac_n "checking for int32_t""... $ac_c" 1>&6
  7031. echo "configure:7752: checking for int32_t" >&5
  7032. if eval "test \"`echo '$''{'ac_cv_int32_t'+set}'`\" = set"; then
  7033. echo $ac_n "(cached) $ac_c" 1>&6
  7034. else
  7035. cat > conftest.$ac_ext <<EOF
  7036. #line 7757 "configure"
  7037. #include "confdefs.h"
  7038. #include <stdio.h>
  7039. #include <sys/types.h>
  7040. int main() {
  7041. int32_t foo = 0;
  7042. ; return 0; }
  7043. EOF
  7044. if { (eval echo configure:7765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7045. rm -rf conftest*
  7046. ac_cv_int32_t=true
  7047. else
  7048. echo "configure: failed program was:" >&5
  7049. cat conftest.$ac_ext >&5
  7050. rm -rf conftest*
  7051. ac_cv_int32_t=false
  7052. fi
  7053. rm -f conftest*
  7054. fi
  7055. if test "$ac_cv_int32_t" = true ; then
  7056. cat >> confdefs.h <<\EOF
  7057. #define HAVE_INT32_T 1
  7058. EOF
  7059. echo "$ac_t""yes" 1>&6
  7060. else
  7061. echo "$ac_t""no" 1>&6
  7062. fi
  7063. echo $ac_n "checking for int64_t""... $ac_c" 1>&6
  7064. echo "configure:7787: checking for int64_t" >&5
  7065. if eval "test \"`echo '$''{'ac_cv_int64_t'+set}'`\" = set"; then
  7066. echo $ac_n "(cached) $ac_c" 1>&6
  7067. else
  7068. cat > conftest.$ac_ext <<EOF
  7069. #line 7792 "configure"
  7070. #include "confdefs.h"
  7071. #include <stdio.h>
  7072. #include <sys/types.h>
  7073. int main() {
  7074. int64_t foo = 0;
  7075. ; return 0; }
  7076. EOF
  7077. if { (eval echo configure:7800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7078. rm -rf conftest*
  7079. ac_cv_int64_t=true
  7080. else
  7081. echo "configure: failed program was:" >&5
  7082. cat conftest.$ac_ext >&5
  7083. rm -rf conftest*
  7084. ac_cv_int64_t=false
  7085. fi
  7086. rm -f conftest*
  7087. fi
  7088. if test "$ac_cv_int64_t" = true ; then
  7089. cat >> confdefs.h <<\EOF
  7090. #define HAVE_INT64_T 1
  7091. EOF
  7092. echo "$ac_t""yes" 1>&6
  7093. else
  7094. echo "$ac_t""no" 1>&6
  7095. fi
  7096. echo $ac_n "checking for int64""... $ac_c" 1>&6
  7097. echo "configure:7822: checking for int64" >&5
  7098. if eval "test \"`echo '$''{'ac_cv_int64'+set}'`\" = set"; then
  7099. echo $ac_n "(cached) $ac_c" 1>&6
  7100. else
  7101. cat > conftest.$ac_ext <<EOF
  7102. #line 7827 "configure"
  7103. #include "confdefs.h"
  7104. #include <stdio.h>
  7105. #include <sys/types.h>
  7106. int main() {
  7107. int64 foo = 0;
  7108. ; return 0; }
  7109. EOF
  7110. if { (eval echo configure:7835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7111. rm -rf conftest*
  7112. ac_cv_int64=true
  7113. else
  7114. echo "configure: failed program was:" >&5
  7115. cat conftest.$ac_ext >&5
  7116. rm -rf conftest*
  7117. ac_cv_int64=false
  7118. fi
  7119. rm -f conftest*
  7120. fi
  7121. if test "$ac_cv_int64" = true ; then
  7122. cat >> confdefs.h <<\EOF
  7123. #define HAVE_INT64 1
  7124. EOF
  7125. echo "$ac_t""yes" 1>&6
  7126. else
  7127. echo "$ac_t""no" 1>&6
  7128. fi
  7129. echo $ac_n "checking for uint""... $ac_c" 1>&6
  7130. echo "configure:7857: checking for uint" >&5
  7131. if eval "test \"`echo '$''{'ac_cv_uint'+set}'`\" = set"; then
  7132. echo $ac_n "(cached) $ac_c" 1>&6
  7133. else
  7134. cat > conftest.$ac_ext <<EOF
  7135. #line 7862 "configure"
  7136. #include "confdefs.h"
  7137. #include <stdio.h>
  7138. #include <sys/types.h>
  7139. int main() {
  7140. uint foo = 0;
  7141. ; return 0; }
  7142. EOF
  7143. if { (eval echo configure:7870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7144. rm -rf conftest*
  7145. ac_cv_uint=true
  7146. else
  7147. echo "configure: failed program was:" >&5
  7148. cat conftest.$ac_ext >&5
  7149. rm -rf conftest*
  7150. ac_cv_uint=false
  7151. fi
  7152. rm -f conftest*
  7153. fi
  7154. if test "$ac_cv_uint" = true ; then
  7155. cat >> confdefs.h <<\EOF
  7156. #define HAVE_UINT 1
  7157. EOF
  7158. echo "$ac_t""yes" 1>&6
  7159. else
  7160. echo "$ac_t""no" 1>&6
  7161. fi
  7162. echo $ac_n "checking for uint_t""... $ac_c" 1>&6
  7163. echo "configure:7892: checking for uint_t" >&5
  7164. if eval "test \"`echo '$''{'ac_cv_uint_t'+set}'`\" = set"; then
  7165. echo $ac_n "(cached) $ac_c" 1>&6
  7166. else
  7167. cat > conftest.$ac_ext <<EOF
  7168. #line 7897 "configure"
  7169. #include "confdefs.h"
  7170. #include <stdio.h>
  7171. #include <sys/types.h>
  7172. int main() {
  7173. uint_t foo = 0;
  7174. ; return 0; }
  7175. EOF
  7176. if { (eval echo configure:7905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7177. rm -rf conftest*
  7178. ac_cv_uint_t=true
  7179. else
  7180. echo "configure: failed program was:" >&5
  7181. cat conftest.$ac_ext >&5
  7182. rm -rf conftest*
  7183. ac_cv_uint_t=false
  7184. fi
  7185. rm -f conftest*
  7186. fi
  7187. if test "$ac_cv_uint_t" = true ; then
  7188. cat >> confdefs.h <<\EOF
  7189. #define HAVE_UINT_T 1
  7190. EOF
  7191. echo "$ac_t""yes" 1>&6
  7192. else
  7193. echo "$ac_t""no" 1>&6
  7194. fi
  7195. echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
  7196. echo "configure:7927: checking for uint16_t" >&5
  7197. if eval "test \"`echo '$''{'ac_cv_uint16_t'+set}'`\" = set"; then
  7198. echo $ac_n "(cached) $ac_c" 1>&6
  7199. else
  7200. cat > conftest.$ac_ext <<EOF
  7201. #line 7932 "configure"
  7202. #include "confdefs.h"
  7203. #include <stdio.h>
  7204. #include <sys/types.h>
  7205. int main() {
  7206. uint16_t foo = 0;
  7207. ; return 0; }
  7208. EOF
  7209. if { (eval echo configure:7940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7210. rm -rf conftest*
  7211. ac_cv_uint16_t=true
  7212. else
  7213. echo "configure: failed program was:" >&5
  7214. cat conftest.$ac_ext >&5
  7215. rm -rf conftest*
  7216. ac_cv_uint16_t=false
  7217. fi
  7218. rm -f conftest*
  7219. fi
  7220. if test "$ac_cv_uint16_t" = true ; then
  7221. cat >> confdefs.h <<\EOF
  7222. #define HAVE_UINT16_T 1
  7223. EOF
  7224. echo "$ac_t""yes" 1>&6
  7225. else
  7226. echo "$ac_t""no" 1>&6
  7227. fi
  7228. ac_ext=C
  7229. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7230. ac_cpp='$CXXCPP $CPPFLAGS'
  7231. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7232. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7233. cross_compiling=$ac_cv_prog_cxx_cross
  7234. echo $ac_n "checking for uname.domainname""... $ac_c" 1>&6
  7235. echo "configure:7971: checking for uname.domainname" >&5
  7236. if eval "test \"`echo '$''{'ac_cv_have_uname_domainname_field'+set}'`\" = set"; then
  7237. echo $ac_n "(cached) $ac_c" 1>&6
  7238. else
  7239. cat > conftest.$ac_ext <<EOF
  7240. #line 7976 "configure"
  7241. #include "confdefs.h"
  7242. #include <sys/utsname.h>
  7243. int main() {
  7244. struct utsname *res; char *domain;
  7245. (void)uname(res); if (res != 0) { domain = res->domainname; }
  7246. ; return 0; }
  7247. EOF
  7248. if { (eval echo configure:7984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7249. rm -rf conftest*
  7250. ac_cv_have_uname_domainname_field=true
  7251. else
  7252. echo "configure: failed program was:" >&5
  7253. cat conftest.$ac_ext >&5
  7254. rm -rf conftest*
  7255. ac_cv_have_uname_domainname_field=false
  7256. fi
  7257. rm -f conftest*
  7258. fi
  7259. if test "$ac_cv_have_uname_domainname_field" = "true"; then
  7260. cat >> confdefs.h <<\EOF
  7261. #define HAVE_UNAME_DOMAINNAME_FIELD 1
  7262. EOF
  7263. echo "$ac_t""yes" 1>&6
  7264. else
  7265. echo "$ac_t""no" 1>&6
  7266. fi
  7267. echo $ac_n "checking for uname.__domainname""... $ac_c" 1>&6
  7268. echo "configure:8008: checking for uname.__domainname" >&5
  7269. if eval "test \"`echo '$''{'ac_cv_have_uname_us_domainname_field'+set}'`\" = set"; then
  7270. echo $ac_n "(cached) $ac_c" 1>&6
  7271. else
  7272. cat > conftest.$ac_ext <<EOF
  7273. #line 8013 "configure"
  7274. #include "confdefs.h"
  7275. #include <sys/utsname.h>
  7276. int main() {
  7277. struct utsname *res; char *domain;
  7278. (void)uname(res); if (res != 0) { domain = res->__domainname; }
  7279. ; return 0; }
  7280. EOF
  7281. if { (eval echo configure:8021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7282. rm -rf conftest*
  7283. ac_cv_have_uname_us_domainname_field=true
  7284. else
  7285. echo "configure: failed program was:" >&5
  7286. cat conftest.$ac_ext >&5
  7287. rm -rf conftest*
  7288. ac_cv_have_uname_us_domainname_field=false
  7289. fi
  7290. rm -f conftest*
  7291. fi
  7292. if test "$ac_cv_have_uname_us_domainname_field" = "true"; then
  7293. cat >> confdefs.h <<\EOF
  7294. #define HAVE_UNAME_US_DOMAINNAME_FIELD 1
  7295. EOF
  7296. echo "$ac_t""yes" 1>&6
  7297. else
  7298. echo "$ac_t""no" 1>&6
  7299. fi
  7300. ac_ext=c
  7301. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7302. ac_cpp='$CPP $CPPFLAGS'
  7303. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7304. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7305. cross_compiling=$ac_cv_prog_cc_cross
  7306. echo $ac_n "checking for usable wchar_t (2 bytes, unsigned)""... $ac_c" 1>&6
  7307. echo "configure:8054: checking for usable wchar_t (2 bytes, unsigned)" >&5
  7308. if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_v2'+set}'`\" = set"; then
  7309. echo $ac_n "(cached) $ac_c" 1>&6
  7310. else
  7311. cat > conftest.$ac_ext <<EOF
  7312. #line 8059 "configure"
  7313. #include "confdefs.h"
  7314. #include <stddef.h>
  7315. $configure_static_assert_macros
  7316. int main() {
  7317. CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);
  7318. CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)
  7319. ; return 0; }
  7320. EOF
  7321. if { (eval echo configure:8068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7322. rm -rf conftest*
  7323. ac_cv_have_usable_wchar_v2="yes"
  7324. else
  7325. echo "configure: failed program was:" >&5
  7326. cat conftest.$ac_ext >&5
  7327. rm -rf conftest*
  7328. ac_cv_have_usable_wchar_v2="no"
  7329. fi
  7330. rm -f conftest*
  7331. fi
  7332. echo "$ac_t""$ac_cv_have_usable_wchar_v2" 1>&6
  7333. if test "$ac_cv_have_usable_wchar_v2" = "yes"; then
  7334. cat >> confdefs.h <<\EOF
  7335. #define HAVE_CPP_2BYTE_WCHAR_T 1
  7336. EOF
  7337. HAVE_CPP_2BYTE_WCHAR_T=1
  7338. else
  7339. ac_ext=C
  7340. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7341. ac_cpp='$CXXCPP $CPPFLAGS'
  7342. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7343. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7344. cross_compiling=$ac_cv_prog_cxx_cross
  7345. _SAVE_CXXFLAGS=$CXXFLAGS
  7346. CXXFLAGS="$CXXFLAGS -fshort-wchar"
  7347. echo $ac_n "checking for compiler -fshort-wchar option""... $ac_c" 1>&6
  7348. echo "configure:8101: checking for compiler -fshort-wchar option" >&5
  7349. if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_option_v2'+set}'`\" = set"; then
  7350. echo $ac_n "(cached) $ac_c" 1>&6
  7351. else
  7352. cat > conftest.$ac_ext <<EOF
  7353. #line 8106 "configure"
  7354. #include "confdefs.h"
  7355. #include <stddef.h>
  7356. $configure_static_assert_macros
  7357. int main() {
  7358. CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);
  7359. CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)
  7360. ; return 0; }
  7361. EOF
  7362. if { (eval echo configure:8115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7363. rm -rf conftest*
  7364. ac_cv_have_usable_wchar_option_v2="yes"
  7365. else
  7366. echo "configure: failed program was:" >&5
  7367. cat conftest.$ac_ext >&5
  7368. rm -rf conftest*
  7369. ac_cv_have_usable_wchar_option_v2="no"
  7370. fi
  7371. rm -f conftest*
  7372. fi
  7373. echo "$ac_t""$ac_cv_have_usable_wchar_option_v2" 1>&6
  7374. if test "$ac_cv_have_usable_wchar_option_v2" = "yes"; then
  7375. cat >> confdefs.h <<\EOF
  7376. #define HAVE_CPP_2BYTE_WCHAR_T 1
  7377. EOF
  7378. HAVE_CPP_2BYTE_WCHAR_T=1
  7379. else
  7380. CXXFLAGS=$_SAVE_CXXFLAGS
  7381. fi
  7382. ac_ext=c
  7383. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7384. ac_cpp='$CPP $CPPFLAGS'
  7385. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7386. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7387. cross_compiling=$ac_cv_prog_cc_cross
  7388. fi
  7389. if test "$GNU_CC"; then
  7390. echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
  7391. echo "configure:8149: checking for visibility(hidden) attribute" >&5
  7392. if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
  7393. echo $ac_n "(cached) $ac_c" 1>&6
  7394. else
  7395. cat > conftest.c <<EOF
  7396. int foo __attribute__ ((visibility ("hidden"))) = 1;
  7397. EOF
  7398. ac_cv_visibility_hidden=no
  7399. if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  7400. if egrep '\.(hidden|private_extern).*foo' conftest.s >/dev/null; then
  7401. ac_cv_visibility_hidden=yes
  7402. fi
  7403. fi
  7404. rm -f conftest.cs
  7405. fi
  7406. echo "$ac_t""$ac_cv_visibility_hidden" 1>&6
  7407. if test "$ac_cv_visibility_hidden" = "yes"; then
  7408. cat >> confdefs.h <<\EOF
  7409. #define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
  7410. EOF
  7411. echo $ac_n "checking for visibility(default) attribute""... $ac_c" 1>&6
  7412. echo "configure:8174: checking for visibility(default) attribute" >&5
  7413. if eval "test \"`echo '$''{'ac_cv_visibility_default'+set}'`\" = set"; then
  7414. echo $ac_n "(cached) $ac_c" 1>&6
  7415. else
  7416. cat > conftest.c <<EOF
  7417. int foo __attribute__ ((visibility ("default"))) = 1;
  7418. EOF
  7419. ac_cv_visibility_default=no
  7420. if ${CC-cc} -fvisibility=hidden -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  7421. if ! egrep '\.(hidden|private_extern).*foo' conftest.s >/dev/null; then
  7422. ac_cv_visibility_default=yes
  7423. fi
  7424. fi
  7425. rm -f conftest.cs
  7426. fi
  7427. echo "$ac_t""$ac_cv_visibility_default" 1>&6
  7428. if test "$ac_cv_visibility_default" = "yes"; then
  7429. cat >> confdefs.h <<\EOF
  7430. #define HAVE_VISIBILITY_ATTRIBUTE 1
  7431. EOF
  7432. echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
  7433. echo "configure:8199: checking for visibility pragma support" >&5
  7434. if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
  7435. echo $ac_n "(cached) $ac_c" 1>&6
  7436. else
  7437. cat > conftest.c <<EOF
  7438. #pragma GCC visibility push(hidden)
  7439. int foo_hidden = 1;
  7440. #pragma GCC visibility push(default)
  7441. int foo_default = 1;
  7442. EOF
  7443. ac_cv_visibility_pragma=no
  7444. if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
  7445. if egrep '\.(hidden|private_extern).*foo_hidden' conftest.s >/dev/null; then
  7446. if ! egrep '\.(hidden|private_extern).*foo_default' conftest.s > /dev/null; then
  7447. ac_cv_visibility_pragma=yes
  7448. fi
  7449. fi
  7450. fi
  7451. rm -f conftest.cs
  7452. fi
  7453. echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
  7454. if test "$ac_cv_visibility_pragma" = "yes"; then
  7455. echo $ac_n "checking For gcc visibility bug with class-level attributes (GCC bug 26905)""... $ac_c" 1>&6
  7456. echo "configure:8224: checking For gcc visibility bug with class-level attributes (GCC bug 26905)" >&5
  7457. if eval "test \"`echo '$''{'ac_cv_have_visibility_class_bug'+set}'`\" = set"; then
  7458. echo $ac_n "(cached) $ac_c" 1>&6
  7459. else
  7460. cat > conftest.c <<EOF
  7461. #pragma GCC visibility push(hidden)
  7462. struct __attribute__ ((visibility ("default"))) TestStruct {
  7463. static void Init();
  7464. };
  7465. __attribute__ ((visibility ("default"))) void TestFunc() {
  7466. TestStruct::Init();
  7467. }
  7468. EOF
  7469. ac_cv_have_visibility_class_bug=no
  7470. if ! ${CXX-g++} ${CXXFLAGS} ${DSO_PIC_CFLAGS} ${DSO_LDOPTS} -S -o conftest.S conftest.c > /dev/null 2>&1 ; then
  7471. ac_cv_have_visibility_class_bug=yes
  7472. else
  7473. if test `egrep -c '@PLT|\\$stub' conftest.S` = 0; then
  7474. ac_cv_have_visibility_class_bug=yes
  7475. fi
  7476. fi
  7477. rm -rf conftest.{c,S}
  7478. fi
  7479. echo "$ac_t""$ac_cv_have_visibility_class_bug" 1>&6
  7480. echo $ac_n "checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)""... $ac_c" 1>&6
  7481. echo "configure:8252: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5
  7482. if eval "test \"`echo '$''{'ac_cv_have_visibility_builtin_bug'+set}'`\" = set"; then
  7483. echo $ac_n "(cached) $ac_c" 1>&6
  7484. else
  7485. cat > conftest.c <<EOF
  7486. #pragma GCC visibility push(hidden)
  7487. #pragma GCC visibility push(default)
  7488. #include <string.h>
  7489. #pragma GCC visibility pop
  7490. __attribute__ ((visibility ("default"))) void Func() {
  7491. char c[100];
  7492. memset(c, 0, sizeof(c));
  7493. }
  7494. EOF
  7495. ac_cv_have_visibility_builtin_bug=no
  7496. if ! ${CC-cc} ${CFLAGS} ${DSO_PIC_CFLAGS} ${DSO_LDOPTS} -O2 -S -o conftest.S conftest.c > /dev/null 2>&1 ; then
  7497. ac_cv_have_visibility_builtin_bug=yes
  7498. else
  7499. if test `grep -c "@PLT" conftest.S` = 0; then
  7500. ac_cv_visibility_builtin_bug=yes
  7501. fi
  7502. fi
  7503. rm -f conftest.{c,S}
  7504. fi
  7505. echo "$ac_t""$ac_cv_have_visibility_builtin_bug" 1>&6
  7506. if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \
  7507. "$ac_cv_have_visibility_class_bug" = "no"; then
  7508. VISIBILITY_FLAGS='-I$(DIST)/include/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
  7509. WRAP_SYSTEM_INCLUDES=1
  7510. else
  7511. VISIBILITY_FLAGS='-fvisibility=hidden'
  7512. fi # have visibility pragma bug
  7513. fi # have visibility pragma
  7514. fi # have visibility(default) attribute
  7515. fi # have visibility(hidden) attribute
  7516. fi # GNU_CC
  7517. ac_header_dirent=no
  7518. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  7519. do
  7520. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7521. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  7522. echo "configure:8300: checking for $ac_hdr that defines DIR" >&5
  7523. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  7524. echo $ac_n "(cached) $ac_c" 1>&6
  7525. else
  7526. cat > conftest.$ac_ext <<EOF
  7527. #line 8305 "configure"
  7528. #include "confdefs.h"
  7529. #include <sys/types.h>
  7530. #include <$ac_hdr>
  7531. int main() {
  7532. DIR *dirp = 0;
  7533. ; return 0; }
  7534. EOF
  7535. if { (eval echo configure:8313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7536. rm -rf conftest*
  7537. eval "ac_cv_header_dirent_$ac_safe=yes"
  7538. else
  7539. echo "configure: failed program was:" >&5
  7540. cat conftest.$ac_ext >&5
  7541. rm -rf conftest*
  7542. eval "ac_cv_header_dirent_$ac_safe=no"
  7543. fi
  7544. rm -f conftest*
  7545. fi
  7546. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  7547. echo "$ac_t""yes" 1>&6
  7548. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7549. cat >> confdefs.h <<EOF
  7550. #define $ac_tr_hdr 1
  7551. EOF
  7552. ac_header_dirent=$ac_hdr; break
  7553. else
  7554. echo "$ac_t""no" 1>&6
  7555. fi
  7556. done
  7557. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  7558. if test $ac_header_dirent = dirent.h; then
  7559. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  7560. echo "configure:8338: checking for opendir in -ldir" >&5
  7561. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  7562. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7563. echo $ac_n "(cached) $ac_c" 1>&6
  7564. else
  7565. ac_save_LIBS="$LIBS"
  7566. LIBS="-ldir $LIBS"
  7567. cat > conftest.$ac_ext <<EOF
  7568. #line 8346 "configure"
  7569. #include "confdefs.h"
  7570. /* Override any gcc2 internal prototype to avoid an error. */
  7571. /* We use char because int might match the return type of a gcc2
  7572. builtin and then its argument prototype would still apply. */
  7573. char opendir();
  7574. int main() {
  7575. opendir()
  7576. ; return 0; }
  7577. EOF
  7578. if { (eval echo configure:8357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7579. rm -rf conftest*
  7580. eval "ac_cv_lib_$ac_lib_var=yes"
  7581. else
  7582. echo "configure: failed program was:" >&5
  7583. cat conftest.$ac_ext >&5
  7584. rm -rf conftest*
  7585. eval "ac_cv_lib_$ac_lib_var=no"
  7586. fi
  7587. rm -f conftest*
  7588. LIBS="$ac_save_LIBS"
  7589. fi
  7590. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7591. echo "$ac_t""yes" 1>&6
  7592. LIBS="$LIBS -ldir"
  7593. else
  7594. echo "$ac_t""no" 1>&6
  7595. fi
  7596. else
  7597. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  7598. echo "configure:8379: checking for opendir in -lx" >&5
  7599. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  7600. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7601. echo $ac_n "(cached) $ac_c" 1>&6
  7602. else
  7603. ac_save_LIBS="$LIBS"
  7604. LIBS="-lx $LIBS"
  7605. cat > conftest.$ac_ext <<EOF
  7606. #line 8387 "configure"
  7607. #include "confdefs.h"
  7608. /* Override any gcc2 internal prototype to avoid an error. */
  7609. /* We use char because int might match the return type of a gcc2
  7610. builtin and then its argument prototype would still apply. */
  7611. char opendir();
  7612. int main() {
  7613. opendir()
  7614. ; return 0; }
  7615. EOF
  7616. if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7617. rm -rf conftest*
  7618. eval "ac_cv_lib_$ac_lib_var=yes"
  7619. else
  7620. echo "configure: failed program was:" >&5
  7621. cat conftest.$ac_ext >&5
  7622. rm -rf conftest*
  7623. eval "ac_cv_lib_$ac_lib_var=no"
  7624. fi
  7625. rm -f conftest*
  7626. LIBS="$ac_save_LIBS"
  7627. fi
  7628. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7629. echo "$ac_t""yes" 1>&6
  7630. LIBS="$LIBS -lx"
  7631. else
  7632. echo "$ac_t""no" 1>&6
  7633. fi
  7634. fi
  7635. case "$target_os" in
  7636. freebsd*)
  7637. # for stuff like -lXshm
  7638. CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
  7639. ;;
  7640. esac
  7641. for ac_hdr in sys/byteorder.h compat.h getopt.h
  7642. do
  7643. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7644. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7645. echo "configure:8430: checking for $ac_hdr" >&5
  7646. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7647. echo $ac_n "(cached) $ac_c" 1>&6
  7648. else
  7649. cat > conftest.$ac_ext <<EOF
  7650. #line 8435 "configure"
  7651. #include "confdefs.h"
  7652. #include <$ac_hdr>
  7653. EOF
  7654. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7655. { (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7656. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7657. if test -z "$ac_err"; then
  7658. rm -rf conftest*
  7659. eval "ac_cv_header_$ac_safe=yes"
  7660. else
  7661. echo "$ac_err" >&5
  7662. echo "configure: failed program was:" >&5
  7663. cat conftest.$ac_ext >&5
  7664. rm -rf conftest*
  7665. eval "ac_cv_header_$ac_safe=no"
  7666. fi
  7667. rm -f conftest*
  7668. fi
  7669. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7670. echo "$ac_t""yes" 1>&6
  7671. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7672. cat >> confdefs.h <<EOF
  7673. #define $ac_tr_hdr 1
  7674. EOF
  7675. else
  7676. echo "$ac_t""no" 1>&6
  7677. fi
  7678. done
  7679. for ac_hdr in sys/bitypes.h memory.h unistd.h
  7680. do
  7681. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7682. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7683. echo "configure:8470: checking for $ac_hdr" >&5
  7684. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7685. echo $ac_n "(cached) $ac_c" 1>&6
  7686. else
  7687. cat > conftest.$ac_ext <<EOF
  7688. #line 8475 "configure"
  7689. #include "confdefs.h"
  7690. #include <$ac_hdr>
  7691. EOF
  7692. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7693. { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7694. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7695. if test -z "$ac_err"; then
  7696. rm -rf conftest*
  7697. eval "ac_cv_header_$ac_safe=yes"
  7698. else
  7699. echo "$ac_err" >&5
  7700. echo "configure: failed program was:" >&5
  7701. cat conftest.$ac_ext >&5
  7702. rm -rf conftest*
  7703. eval "ac_cv_header_$ac_safe=no"
  7704. fi
  7705. rm -f conftest*
  7706. fi
  7707. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7708. echo "$ac_t""yes" 1>&6
  7709. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7710. cat >> confdefs.h <<EOF
  7711. #define $ac_tr_hdr 1
  7712. EOF
  7713. else
  7714. echo "$ac_t""no" 1>&6
  7715. fi
  7716. done
  7717. for ac_hdr in gnu/libc-version.h nl_types.h
  7718. do
  7719. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7720. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7721. echo "configure:8510: checking for $ac_hdr" >&5
  7722. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7723. echo $ac_n "(cached) $ac_c" 1>&6
  7724. else
  7725. cat > conftest.$ac_ext <<EOF
  7726. #line 8515 "configure"
  7727. #include "confdefs.h"
  7728. #include <$ac_hdr>
  7729. EOF
  7730. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7731. { (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7732. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7733. if test -z "$ac_err"; then
  7734. rm -rf conftest*
  7735. eval "ac_cv_header_$ac_safe=yes"
  7736. else
  7737. echo "$ac_err" >&5
  7738. echo "configure: failed program was:" >&5
  7739. cat conftest.$ac_ext >&5
  7740. rm -rf conftest*
  7741. eval "ac_cv_header_$ac_safe=no"
  7742. fi
  7743. rm -f conftest*
  7744. fi
  7745. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7746. echo "$ac_t""yes" 1>&6
  7747. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7748. cat >> confdefs.h <<EOF
  7749. #define $ac_tr_hdr 1
  7750. EOF
  7751. else
  7752. echo "$ac_t""no" 1>&6
  7753. fi
  7754. done
  7755. for ac_hdr in malloc.h
  7756. do
  7757. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7758. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7759. echo "configure:8550: checking for $ac_hdr" >&5
  7760. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7761. echo $ac_n "(cached) $ac_c" 1>&6
  7762. else
  7763. cat > conftest.$ac_ext <<EOF
  7764. #line 8555 "configure"
  7765. #include "confdefs.h"
  7766. #include <$ac_hdr>
  7767. EOF
  7768. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7769. { (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7770. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7771. if test -z "$ac_err"; then
  7772. rm -rf conftest*
  7773. eval "ac_cv_header_$ac_safe=yes"
  7774. else
  7775. echo "$ac_err" >&5
  7776. echo "configure: failed program was:" >&5
  7777. cat conftest.$ac_ext >&5
  7778. rm -rf conftest*
  7779. eval "ac_cv_header_$ac_safe=no"
  7780. fi
  7781. rm -f conftest*
  7782. fi
  7783. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7784. echo "$ac_t""yes" 1>&6
  7785. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7786. cat >> confdefs.h <<EOF
  7787. #define $ac_tr_hdr 1
  7788. EOF
  7789. else
  7790. echo "$ac_t""no" 1>&6
  7791. fi
  7792. done
  7793. for ac_hdr in X11/XKBlib.h
  7794. do
  7795. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7796. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7797. echo "configure:8590: checking for $ac_hdr" >&5
  7798. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7799. echo $ac_n "(cached) $ac_c" 1>&6
  7800. else
  7801. cat > conftest.$ac_ext <<EOF
  7802. #line 8595 "configure"
  7803. #include "confdefs.h"
  7804. #include <$ac_hdr>
  7805. EOF
  7806. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7807. { (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7808. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7809. if test -z "$ac_err"; then
  7810. rm -rf conftest*
  7811. eval "ac_cv_header_$ac_safe=yes"
  7812. else
  7813. echo "$ac_err" >&5
  7814. echo "configure: failed program was:" >&5
  7815. cat conftest.$ac_ext >&5
  7816. rm -rf conftest*
  7817. eval "ac_cv_header_$ac_safe=no"
  7818. fi
  7819. rm -f conftest*
  7820. fi
  7821. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7822. echo "$ac_t""yes" 1>&6
  7823. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7824. cat >> confdefs.h <<EOF
  7825. #define $ac_tr_hdr 1
  7826. EOF
  7827. else
  7828. echo "$ac_t""no" 1>&6
  7829. fi
  7830. done
  7831. for ac_hdr in sys/statvfs.h sys/statfs.h sys/vfs.h sys/mount.h
  7832. do
  7833. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7834. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7835. echo "configure:8631: checking for $ac_hdr" >&5
  7836. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7837. echo $ac_n "(cached) $ac_c" 1>&6
  7838. else
  7839. cat > conftest.$ac_ext <<EOF
  7840. #line 8636 "configure"
  7841. #include "confdefs.h"
  7842. #include <$ac_hdr>
  7843. EOF
  7844. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7845. { (eval echo configure:8641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7846. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7847. if test -z "$ac_err"; then
  7848. rm -rf conftest*
  7849. eval "ac_cv_header_$ac_safe=yes"
  7850. else
  7851. echo "$ac_err" >&5
  7852. echo "configure: failed program was:" >&5
  7853. cat conftest.$ac_ext >&5
  7854. rm -rf conftest*
  7855. eval "ac_cv_header_$ac_safe=no"
  7856. fi
  7857. rm -f conftest*
  7858. fi
  7859. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7860. echo "$ac_t""yes" 1>&6
  7861. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7862. cat >> confdefs.h <<EOF
  7863. #define $ac_tr_hdr 1
  7864. EOF
  7865. else
  7866. echo "$ac_t""no" 1>&6
  7867. fi
  7868. done
  7869. for ac_hdr in mmintrin.h
  7870. do
  7871. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7872. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7873. echo "configure:8672: checking for $ac_hdr" >&5
  7874. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7875. echo $ac_n "(cached) $ac_c" 1>&6
  7876. else
  7877. cat > conftest.$ac_ext <<EOF
  7878. #line 8677 "configure"
  7879. #include "confdefs.h"
  7880. #include <$ac_hdr>
  7881. EOF
  7882. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7883. { (eval echo configure:8682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7884. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7885. if test -z "$ac_err"; then
  7886. rm -rf conftest*
  7887. eval "ac_cv_header_$ac_safe=yes"
  7888. else
  7889. echo "$ac_err" >&5
  7890. echo "configure: failed program was:" >&5
  7891. cat conftest.$ac_ext >&5
  7892. rm -rf conftest*
  7893. eval "ac_cv_header_$ac_safe=no"
  7894. fi
  7895. rm -f conftest*
  7896. fi
  7897. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7898. echo "$ac_t""yes" 1>&6
  7899. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7900. cat >> confdefs.h <<EOF
  7901. #define $ac_tr_hdr 1
  7902. EOF
  7903. else
  7904. echo "$ac_t""no" 1>&6
  7905. fi
  7906. done
  7907. ac_ext=C
  7908. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7909. ac_cpp='$CXXCPP $CPPFLAGS'
  7910. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7911. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7912. cross_compiling=$ac_cv_prog_cxx_cross
  7913. NEW_H=new.h
  7914. ac_safe=`echo "new" | sed 'y%./+-%__p_%'`
  7915. echo $ac_n "checking for new""... $ac_c" 1>&6
  7916. echo "configure:8719: checking for new" >&5
  7917. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7918. echo $ac_n "(cached) $ac_c" 1>&6
  7919. else
  7920. cat > conftest.$ac_ext <<EOF
  7921. #line 8724 "configure"
  7922. #include "confdefs.h"
  7923. #include <new>
  7924. EOF
  7925. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7926. { (eval echo configure:8729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7927. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7928. if test -z "$ac_err"; then
  7929. rm -rf conftest*
  7930. eval "ac_cv_header_$ac_safe=yes"
  7931. else
  7932. echo "$ac_err" >&5
  7933. echo "configure: failed program was:" >&5
  7934. cat conftest.$ac_ext >&5
  7935. rm -rf conftest*
  7936. eval "ac_cv_header_$ac_safe=no"
  7937. fi
  7938. rm -f conftest*
  7939. fi
  7940. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7941. echo "$ac_t""yes" 1>&6
  7942. NEW_H=new
  7943. else
  7944. echo "$ac_t""no" 1>&6
  7945. fi
  7946. cat >> confdefs.h <<EOF
  7947. #define NEW_H <$NEW_H>
  7948. EOF
  7949. ac_ext=c
  7950. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7951. ac_cpp='$CPP $CPPFLAGS'
  7952. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7953. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7954. cross_compiling=$ac_cv_prog_cc_cross
  7955. # Check whether --enable-dtrace or --disable-dtrace was given.
  7956. if test "${enable_dtrace+set}" = set; then
  7957. enableval="$enable_dtrace"
  7958. enable_dtrace="yes"
  7959. fi
  7960. if test "x$enable_dtrace" = "xyes"; then
  7961. ac_safe=`echo "sys/sdt.h" | sed 'y%./+-%__p_%'`
  7962. echo $ac_n "checking for sys/sdt.h""... $ac_c" 1>&6
  7963. echo "configure:8771: checking for sys/sdt.h" >&5
  7964. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7965. echo $ac_n "(cached) $ac_c" 1>&6
  7966. else
  7967. cat > conftest.$ac_ext <<EOF
  7968. #line 8776 "configure"
  7969. #include "confdefs.h"
  7970. #include <sys/sdt.h>
  7971. EOF
  7972. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7973. { (eval echo configure:8781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7974. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7975. if test -z "$ac_err"; then
  7976. rm -rf conftest*
  7977. eval "ac_cv_header_$ac_safe=yes"
  7978. else
  7979. echo "$ac_err" >&5
  7980. echo "configure: failed program was:" >&5
  7981. cat conftest.$ac_ext >&5
  7982. rm -rf conftest*
  7983. eval "ac_cv_header_$ac_safe=no"
  7984. fi
  7985. rm -f conftest*
  7986. fi
  7987. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7988. echo "$ac_t""yes" 1>&6
  7989. HAVE_DTRACE=1
  7990. else
  7991. echo "$ac_t""no" 1>&6
  7992. fi
  7993. if test -n "$HAVE_DTRACE"; then
  7994. cat >> confdefs.h <<\EOF
  7995. #define INCLUDE_MOZILLA_DTRACE 1
  7996. EOF
  7997. else
  7998. { echo "configure: error: dtrace enabled but sys/sdt.h not found" 1>&2; exit 1; };
  7999. fi
  8000. fi
  8001. case $target in
  8002. *-aix4.3*|*-aix5*)
  8003. ;;
  8004. *)
  8005. for ac_hdr in sys/cdefs.h
  8006. do
  8007. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  8008. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  8009. echo "configure:8821: checking for $ac_hdr" >&5
  8010. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  8011. echo $ac_n "(cached) $ac_c" 1>&6
  8012. else
  8013. cat > conftest.$ac_ext <<EOF
  8014. #line 8826 "configure"
  8015. #include "confdefs.h"
  8016. #include <$ac_hdr>
  8017. EOF
  8018. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8019. { (eval echo configure:8831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8020. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8021. if test -z "$ac_err"; then
  8022. rm -rf conftest*
  8023. eval "ac_cv_header_$ac_safe=yes"
  8024. else
  8025. echo "$ac_err" >&5
  8026. echo "configure: failed program was:" >&5
  8027. cat conftest.$ac_ext >&5
  8028. rm -rf conftest*
  8029. eval "ac_cv_header_$ac_safe=no"
  8030. fi
  8031. rm -f conftest*
  8032. fi
  8033. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8034. echo "$ac_t""yes" 1>&6
  8035. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  8036. cat >> confdefs.h <<EOF
  8037. #define $ac_tr_hdr 1
  8038. EOF
  8039. else
  8040. echo "$ac_t""no" 1>&6
  8041. fi
  8042. done
  8043. ;;
  8044. esac
  8045. case $target in
  8046. *-hpux11.*)
  8047. ;;
  8048. *)
  8049. echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
  8050. echo "configure:8865: checking for gethostbyname_r in -lc_r" >&5
  8051. ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
  8052. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8053. echo $ac_n "(cached) $ac_c" 1>&6
  8054. else
  8055. ac_save_LIBS="$LIBS"
  8056. LIBS="-lc_r $LIBS"
  8057. cat > conftest.$ac_ext <<EOF
  8058. #line 8873 "configure"
  8059. #include "confdefs.h"
  8060. /* Override any gcc2 internal prototype to avoid an error. */
  8061. /* We use char because int might match the return type of a gcc2
  8062. builtin and then its argument prototype would still apply. */
  8063. char gethostbyname_r();
  8064. int main() {
  8065. gethostbyname_r()
  8066. ; return 0; }
  8067. EOF
  8068. if { (eval echo configure:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8069. rm -rf conftest*
  8070. eval "ac_cv_lib_$ac_lib_var=yes"
  8071. else
  8072. echo "configure: failed program was:" >&5
  8073. cat conftest.$ac_ext >&5
  8074. rm -rf conftest*
  8075. eval "ac_cv_lib_$ac_lib_var=no"
  8076. fi
  8077. rm -f conftest*
  8078. LIBS="$ac_save_LIBS"
  8079. fi
  8080. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8081. echo "$ac_t""yes" 1>&6
  8082. ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  8083. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8084. cat >> confdefs.h <<EOF
  8085. #define $ac_tr_lib 1
  8086. EOF
  8087. LIBS="-lc_r $LIBS"
  8088. else
  8089. echo "$ac_t""no" 1>&6
  8090. fi
  8091. ;;
  8092. esac
  8093. case $target in
  8094. *-darwin*)
  8095. ;;
  8096. *-beos*)
  8097. ;;
  8098. *)
  8099. echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
  8100. echo "configure:8921: checking for atan in -lm" >&5
  8101. ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
  8102. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8103. echo $ac_n "(cached) $ac_c" 1>&6
  8104. else
  8105. ac_save_LIBS="$LIBS"
  8106. LIBS="-lm $LIBS"
  8107. cat > conftest.$ac_ext <<EOF
  8108. #line 8929 "configure"
  8109. #include "confdefs.h"
  8110. /* Override any gcc2 internal prototype to avoid an error. */
  8111. /* We use char because int might match the return type of a gcc2
  8112. builtin and then its argument prototype would still apply. */
  8113. char atan();
  8114. int main() {
  8115. atan()
  8116. ; return 0; }
  8117. EOF
  8118. if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8119. rm -rf conftest*
  8120. eval "ac_cv_lib_$ac_lib_var=yes"
  8121. else
  8122. echo "configure: failed program was:" >&5
  8123. cat conftest.$ac_ext >&5
  8124. rm -rf conftest*
  8125. eval "ac_cv_lib_$ac_lib_var=no"
  8126. fi
  8127. rm -f conftest*
  8128. LIBS="$ac_save_LIBS"
  8129. fi
  8130. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8131. echo "$ac_t""yes" 1>&6
  8132. ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  8133. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8134. cat >> confdefs.h <<EOF
  8135. #define $ac_tr_lib 1
  8136. EOF
  8137. LIBS="-lm $LIBS"
  8138. else
  8139. echo "$ac_t""no" 1>&6
  8140. fi
  8141. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  8142. echo "configure:8968: checking for dlopen in -ldl" >&5
  8143. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  8144. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8145. echo $ac_n "(cached) $ac_c" 1>&6
  8146. else
  8147. ac_save_LIBS="$LIBS"
  8148. LIBS="-ldl $LIBS"
  8149. cat > conftest.$ac_ext <<EOF
  8150. #line 8976 "configure"
  8151. #include "confdefs.h"
  8152. /* Override any gcc2 internal prototype to avoid an error. */
  8153. /* We use char because int might match the return type of a gcc2
  8154. builtin and then its argument prototype would still apply. */
  8155. char dlopen();
  8156. int main() {
  8157. dlopen()
  8158. ; return 0; }
  8159. EOF
  8160. if { (eval echo configure:8987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8161. rm -rf conftest*
  8162. eval "ac_cv_lib_$ac_lib_var=yes"
  8163. else
  8164. echo "configure: failed program was:" >&5
  8165. cat conftest.$ac_ext >&5
  8166. rm -rf conftest*
  8167. eval "ac_cv_lib_$ac_lib_var=no"
  8168. fi
  8169. rm -f conftest*
  8170. LIBS="$ac_save_LIBS"
  8171. fi
  8172. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8173. echo "$ac_t""yes" 1>&6
  8174. ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
  8175. echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
  8176. echo "configure:9004: checking for dlfcn.h" >&5
  8177. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  8178. echo $ac_n "(cached) $ac_c" 1>&6
  8179. else
  8180. cat > conftest.$ac_ext <<EOF
  8181. #line 9009 "configure"
  8182. #include "confdefs.h"
  8183. #include <dlfcn.h>
  8184. EOF
  8185. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8186. { (eval echo configure:9014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8187. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8188. if test -z "$ac_err"; then
  8189. rm -rf conftest*
  8190. eval "ac_cv_header_$ac_safe=yes"
  8191. else
  8192. echo "$ac_err" >&5
  8193. echo "configure: failed program was:" >&5
  8194. cat conftest.$ac_ext >&5
  8195. rm -rf conftest*
  8196. eval "ac_cv_header_$ac_safe=no"
  8197. fi
  8198. rm -f conftest*
  8199. fi
  8200. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8201. echo "$ac_t""yes" 1>&6
  8202. LIBS="-ldl $LIBS"
  8203. cat >> confdefs.h <<\EOF
  8204. #define HAVE_LIBDL 1
  8205. EOF
  8206. else
  8207. echo "$ac_t""no" 1>&6
  8208. fi
  8209. else
  8210. echo "$ac_t""no" 1>&6
  8211. fi
  8212. ;;
  8213. esac
  8214. _SAVE_CFLAGS="$CFLAGS"
  8215. CFLAGS="$CFLAGS -D_GNU_SOURCE"
  8216. for ac_func in dladdr
  8217. do
  8218. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  8219. echo "configure:9051: checking for $ac_func" >&5
  8220. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  8221. echo $ac_n "(cached) $ac_c" 1>&6
  8222. else
  8223. cat > conftest.$ac_ext <<EOF
  8224. #line 9056 "configure"
  8225. #include "confdefs.h"
  8226. /* System header to define __stub macros and hopefully few prototypes,
  8227. which can conflict with char $ac_func(); below. */
  8228. #include <assert.h>
  8229. /* Override any gcc2 internal prototype to avoid an error. */
  8230. /* We use char because int might match the return type of a gcc2
  8231. builtin and then its argument prototype would still apply. */
  8232. char $ac_func();
  8233. int main() {
  8234. /* The GNU C library defines this for functions which it implements
  8235. to always fail with ENOSYS. Some functions are actually named
  8236. something starting with __ and the normal name is an alias. */
  8237. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8238. choke me
  8239. #else
  8240. $ac_func();
  8241. #endif
  8242. ; return 0; }
  8243. EOF
  8244. if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8245. rm -rf conftest*
  8246. eval "ac_cv_func_$ac_func=yes"
  8247. else
  8248. echo "configure: failed program was:" >&5
  8249. cat conftest.$ac_ext >&5
  8250. rm -rf conftest*
  8251. eval "ac_cv_func_$ac_func=no"
  8252. fi
  8253. rm -f conftest*
  8254. fi
  8255. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  8256. echo "$ac_t""yes" 1>&6
  8257. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  8258. cat >> confdefs.h <<EOF
  8259. #define $ac_tr_func 1
  8260. EOF
  8261. else
  8262. echo "$ac_t""no" 1>&6
  8263. fi
  8264. done
  8265. CFLAGS="$_SAVE_CFLAGS"
  8266. if test ! "$GNU_CXX"; then
  8267. case $target in
  8268. *-aix*)
  8269. echo $ac_n "checking for demangle in -lC_r""... $ac_c" 1>&6
  8270. echo "configure:9110: checking for demangle in -lC_r" >&5
  8271. ac_lib_var=`echo C_r'_'demangle | sed 'y%./+-%__p_%'`
  8272. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8273. echo $ac_n "(cached) $ac_c" 1>&6
  8274. else
  8275. ac_save_LIBS="$LIBS"
  8276. LIBS="-lC_r $LIBS"
  8277. cat > conftest.$ac_ext <<EOF
  8278. #line 9118 "configure"
  8279. #include "confdefs.h"
  8280. /* Override any gcc2 internal prototype to avoid an error. */
  8281. /* We use char because int might match the return type of a gcc2
  8282. builtin and then its argument prototype would still apply. */
  8283. char demangle();
  8284. int main() {
  8285. demangle()
  8286. ; return 0; }
  8287. EOF
  8288. if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8289. rm -rf conftest*
  8290. eval "ac_cv_lib_$ac_lib_var=yes"
  8291. else
  8292. echo "configure: failed program was:" >&5
  8293. cat conftest.$ac_ext >&5
  8294. rm -rf conftest*
  8295. eval "ac_cv_lib_$ac_lib_var=no"
  8296. fi
  8297. rm -f conftest*
  8298. LIBS="$ac_save_LIBS"
  8299. fi
  8300. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8301. echo "$ac_t""yes" 1>&6
  8302. ac_tr_lib=HAVE_LIB`echo C_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  8303. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8304. cat >> confdefs.h <<EOF
  8305. #define $ac_tr_lib 1
  8306. EOF
  8307. LIBS="-lC_r $LIBS"
  8308. else
  8309. echo "$ac_t""no" 1>&6
  8310. fi
  8311. ;;
  8312. *)
  8313. echo $ac_n "checking for demangle in -lC""... $ac_c" 1>&6
  8314. echo "configure:9159: checking for demangle in -lC" >&5
  8315. ac_lib_var=`echo C'_'demangle | sed 'y%./+-%__p_%'`
  8316. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8317. echo $ac_n "(cached) $ac_c" 1>&6
  8318. else
  8319. ac_save_LIBS="$LIBS"
  8320. LIBS="-lC $LIBS"
  8321. cat > conftest.$ac_ext <<EOF
  8322. #line 9167 "configure"
  8323. #include "confdefs.h"
  8324. /* Override any gcc2 internal prototype to avoid an error. */
  8325. /* We use char because int might match the return type of a gcc2
  8326. builtin and then its argument prototype would still apply. */
  8327. char demangle();
  8328. int main() {
  8329. demangle()
  8330. ; return 0; }
  8331. EOF
  8332. if { (eval echo configure:9178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8333. rm -rf conftest*
  8334. eval "ac_cv_lib_$ac_lib_var=yes"
  8335. else
  8336. echo "configure: failed program was:" >&5
  8337. cat conftest.$ac_ext >&5
  8338. rm -rf conftest*
  8339. eval "ac_cv_lib_$ac_lib_var=no"
  8340. fi
  8341. rm -f conftest*
  8342. LIBS="$ac_save_LIBS"
  8343. fi
  8344. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8345. echo "$ac_t""yes" 1>&6
  8346. ac_tr_lib=HAVE_LIB`echo C | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  8347. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8348. cat >> confdefs.h <<EOF
  8349. #define $ac_tr_lib 1
  8350. EOF
  8351. LIBS="-lC $LIBS"
  8352. else
  8353. echo "$ac_t""no" 1>&6
  8354. fi
  8355. ;;
  8356. esac
  8357. fi
  8358. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  8359. echo "configure:9209: checking for socket in -lsocket" >&5
  8360. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  8361. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8362. echo $ac_n "(cached) $ac_c" 1>&6
  8363. else
  8364. ac_save_LIBS="$LIBS"
  8365. LIBS="-lsocket $LIBS"
  8366. cat > conftest.$ac_ext <<EOF
  8367. #line 9217 "configure"
  8368. #include "confdefs.h"
  8369. /* Override any gcc2 internal prototype to avoid an error. */
  8370. /* We use char because int might match the return type of a gcc2
  8371. builtin and then its argument prototype would still apply. */
  8372. char socket();
  8373. int main() {
  8374. socket()
  8375. ; return 0; }
  8376. EOF
  8377. if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8378. rm -rf conftest*
  8379. eval "ac_cv_lib_$ac_lib_var=yes"
  8380. else
  8381. echo "configure: failed program was:" >&5
  8382. cat conftest.$ac_ext >&5
  8383. rm -rf conftest*
  8384. eval "ac_cv_lib_$ac_lib_var=no"
  8385. fi
  8386. rm -f conftest*
  8387. LIBS="$ac_save_LIBS"
  8388. fi
  8389. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8390. echo "$ac_t""yes" 1>&6
  8391. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  8392. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  8393. cat >> confdefs.h <<EOF
  8394. #define $ac_tr_lib 1
  8395. EOF
  8396. LIBS="-lsocket $LIBS"
  8397. else
  8398. echo "$ac_t""no" 1>&6
  8399. fi
  8400. XLDFLAGS="$X_LIBS"
  8401. XLIBS="$X_EXTRA_LIBS"
  8402. if test "$no_x" = "yes"; then
  8403. cat >> confdefs.h <<\EOF
  8404. #define NO_X11 1
  8405. EOF
  8406. else
  8407. cat >> confdefs.h <<EOF
  8408. #define FUNCPROTO 15
  8409. EOF
  8410. XLIBS="-lX11 $XLIBS"
  8411. _SAVE_LDFLAGS="$LDFLAGS"
  8412. LDFLAGS="$XLDFLAGS $LDFLAGS"
  8413. echo $ac_n "checking for XDrawLines in -lX11""... $ac_c" 1>&6
  8414. echo "configure:9273: checking for XDrawLines in -lX11" >&5
  8415. ac_lib_var=`echo X11'_'XDrawLines | sed 'y%./+-%__p_%'`
  8416. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8417. echo $ac_n "(cached) $ac_c" 1>&6
  8418. else
  8419. ac_save_LIBS="$LIBS"
  8420. LIBS="-lX11 $XLIBS $LIBS"
  8421. cat > conftest.$ac_ext <<EOF
  8422. #line 9281 "configure"
  8423. #include "confdefs.h"
  8424. /* Override any gcc2 internal prototype to avoid an error. */
  8425. /* We use char because int might match the return type of a gcc2
  8426. builtin and then its argument prototype would still apply. */
  8427. char XDrawLines();
  8428. int main() {
  8429. XDrawLines()
  8430. ; return 0; }
  8431. EOF
  8432. if { (eval echo configure:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8433. rm -rf conftest*
  8434. eval "ac_cv_lib_$ac_lib_var=yes"
  8435. else
  8436. echo "configure: failed program was:" >&5
  8437. cat conftest.$ac_ext >&5
  8438. rm -rf conftest*
  8439. eval "ac_cv_lib_$ac_lib_var=no"
  8440. fi
  8441. rm -f conftest*
  8442. LIBS="$ac_save_LIBS"
  8443. fi
  8444. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8445. echo "$ac_t""yes" 1>&6
  8446. X11_LIBS="-lX11"
  8447. else
  8448. echo "$ac_t""no" 1>&6
  8449. MISSING_X="$MISSING_X -lX11"
  8450. fi
  8451. echo $ac_n "checking for XextAddDisplay in -lXext""... $ac_c" 1>&6
  8452. echo "configure:9314: checking for XextAddDisplay in -lXext" >&5
  8453. ac_lib_var=`echo Xext'_'XextAddDisplay | sed 'y%./+-%__p_%'`
  8454. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8455. echo $ac_n "(cached) $ac_c" 1>&6
  8456. else
  8457. ac_save_LIBS="$LIBS"
  8458. LIBS="-lXext $XLIBS $LIBS"
  8459. cat > conftest.$ac_ext <<EOF
  8460. #line 9322 "configure"
  8461. #include "confdefs.h"
  8462. /* Override any gcc2 internal prototype to avoid an error. */
  8463. /* We use char because int might match the return type of a gcc2
  8464. builtin and then its argument prototype would still apply. */
  8465. char XextAddDisplay();
  8466. int main() {
  8467. XextAddDisplay()
  8468. ; return 0; }
  8469. EOF
  8470. if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8471. rm -rf conftest*
  8472. eval "ac_cv_lib_$ac_lib_var=yes"
  8473. else
  8474. echo "configure: failed program was:" >&5
  8475. cat conftest.$ac_ext >&5
  8476. rm -rf conftest*
  8477. eval "ac_cv_lib_$ac_lib_var=no"
  8478. fi
  8479. rm -f conftest*
  8480. LIBS="$ac_save_LIBS"
  8481. fi
  8482. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8483. echo "$ac_t""yes" 1>&6
  8484. XEXT_LIBS="-lXext"
  8485. else
  8486. echo "$ac_t""no" 1>&6
  8487. MISSING_X="$MISSING_X -lXext"
  8488. fi
  8489. echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
  8490. echo "configure:9357: checking for XtFree in -lXt" >&5
  8491. ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'`
  8492. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8493. echo $ac_n "(cached) $ac_c" 1>&6
  8494. else
  8495. ac_save_LIBS="$LIBS"
  8496. LIBS="-lXt $LIBS"
  8497. cat > conftest.$ac_ext <<EOF
  8498. #line 9365 "configure"
  8499. #include "confdefs.h"
  8500. /* Override any gcc2 internal prototype to avoid an error. */
  8501. /* We use char because int might match the return type of a gcc2
  8502. builtin and then its argument prototype would still apply. */
  8503. char XtFree();
  8504. int main() {
  8505. XtFree()
  8506. ; return 0; }
  8507. EOF
  8508. if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8509. rm -rf conftest*
  8510. eval "ac_cv_lib_$ac_lib_var=yes"
  8511. else
  8512. echo "configure: failed program was:" >&5
  8513. cat conftest.$ac_ext >&5
  8514. rm -rf conftest*
  8515. eval "ac_cv_lib_$ac_lib_var=no"
  8516. fi
  8517. rm -f conftest*
  8518. LIBS="$ac_save_LIBS"
  8519. fi
  8520. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8521. echo "$ac_t""yes" 1>&6
  8522. XT_LIBS="-lXt"
  8523. else
  8524. echo "$ac_t""no" 1>&6
  8525. unset ac_cv_lib_Xt_XtFree
  8526. echo $ac_n "checking for IceFlush in -lICE""... $ac_c" 1>&6
  8527. echo "configure:9397: checking for IceFlush in -lICE" >&5
  8528. ac_lib_var=`echo ICE'_'IceFlush | sed 'y%./+-%__p_%'`
  8529. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8530. echo $ac_n "(cached) $ac_c" 1>&6
  8531. else
  8532. ac_save_LIBS="$LIBS"
  8533. LIBS="-lICE $XT_LIBS $XLIBS $LIBS"
  8534. cat > conftest.$ac_ext <<EOF
  8535. #line 9405 "configure"
  8536. #include "confdefs.h"
  8537. /* Override any gcc2 internal prototype to avoid an error. */
  8538. /* We use char because int might match the return type of a gcc2
  8539. builtin and then its argument prototype would still apply. */
  8540. char IceFlush();
  8541. int main() {
  8542. IceFlush()
  8543. ; return 0; }
  8544. EOF
  8545. if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8546. rm -rf conftest*
  8547. eval "ac_cv_lib_$ac_lib_var=yes"
  8548. else
  8549. echo "configure: failed program was:" >&5
  8550. cat conftest.$ac_ext >&5
  8551. rm -rf conftest*
  8552. eval "ac_cv_lib_$ac_lib_var=no"
  8553. fi
  8554. rm -f conftest*
  8555. LIBS="$ac_save_LIBS"
  8556. fi
  8557. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8558. echo "$ac_t""yes" 1>&6
  8559. XT_LIBS="-lICE $XT_LIBS"
  8560. else
  8561. echo "$ac_t""no" 1>&6
  8562. fi
  8563. echo $ac_n "checking for SmcCloseConnection in -lSM""... $ac_c" 1>&6
  8564. echo "configure:9437: checking for SmcCloseConnection in -lSM" >&5
  8565. ac_lib_var=`echo SM'_'SmcCloseConnection | sed 'y%./+-%__p_%'`
  8566. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8567. echo $ac_n "(cached) $ac_c" 1>&6
  8568. else
  8569. ac_save_LIBS="$LIBS"
  8570. LIBS="-lSM $XT_LIBS $XLIBS $LIBS"
  8571. cat > conftest.$ac_ext <<EOF
  8572. #line 9445 "configure"
  8573. #include "confdefs.h"
  8574. /* Override any gcc2 internal prototype to avoid an error. */
  8575. /* We use char because int might match the return type of a gcc2
  8576. builtin and then its argument prototype would still apply. */
  8577. char SmcCloseConnection();
  8578. int main() {
  8579. SmcCloseConnection()
  8580. ; return 0; }
  8581. EOF
  8582. if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8583. rm -rf conftest*
  8584. eval "ac_cv_lib_$ac_lib_var=yes"
  8585. else
  8586. echo "configure: failed program was:" >&5
  8587. cat conftest.$ac_ext >&5
  8588. rm -rf conftest*
  8589. eval "ac_cv_lib_$ac_lib_var=no"
  8590. fi
  8591. rm -f conftest*
  8592. LIBS="$ac_save_LIBS"
  8593. fi
  8594. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8595. echo "$ac_t""yes" 1>&6
  8596. XT_LIBS="-lSM $XT_LIBS"
  8597. else
  8598. echo "$ac_t""no" 1>&6
  8599. fi
  8600. echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
  8601. echo "configure:9477: checking for XtFree in -lXt" >&5
  8602. ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'`
  8603. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8604. echo $ac_n "(cached) $ac_c" 1>&6
  8605. else
  8606. ac_save_LIBS="$LIBS"
  8607. LIBS="-lXt $X_PRE_LIBS $XT_LIBS $XLIBS $LIBS"
  8608. cat > conftest.$ac_ext <<EOF
  8609. #line 9485 "configure"
  8610. #include "confdefs.h"
  8611. /* Override any gcc2 internal prototype to avoid an error. */
  8612. /* We use char because int might match the return type of a gcc2
  8613. builtin and then its argument prototype would still apply. */
  8614. char XtFree();
  8615. int main() {
  8616. XtFree()
  8617. ; return 0; }
  8618. EOF
  8619. if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8620. rm -rf conftest*
  8621. eval "ac_cv_lib_$ac_lib_var=yes"
  8622. else
  8623. echo "configure: failed program was:" >&5
  8624. cat conftest.$ac_ext >&5
  8625. rm -rf conftest*
  8626. eval "ac_cv_lib_$ac_lib_var=no"
  8627. fi
  8628. rm -f conftest*
  8629. LIBS="$ac_save_LIBS"
  8630. fi
  8631. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8632. echo "$ac_t""yes" 1>&6
  8633. XT_LIBS="-lXt $XT_LIBS"
  8634. else
  8635. echo "$ac_t""no" 1>&6
  8636. MISSING_X="$MISSING_X -lXt"
  8637. fi
  8638. fi
  8639. # AIX needs the motif library linked before libXt to prevent
  8640. # crashes in plugins linked against Motif - Bug #98892
  8641. case "${target_os}" in
  8642. aix*)
  8643. XT_LIBS="-lXm $XT_LIBS"
  8644. ;;
  8645. esac
  8646. echo $ac_n "checking for XShmCreateImage in -lXext""... $ac_c" 1>&6
  8647. echo "configure:9530: checking for XShmCreateImage in -lXext" >&5
  8648. ac_lib_var=`echo Xext'_'XShmCreateImage | sed 'y%./+-%__p_%'`
  8649. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8650. echo $ac_n "(cached) $ac_c" 1>&6
  8651. else
  8652. ac_save_LIBS="$LIBS"
  8653. LIBS="-lXext $XLIBS $XEXT_LIBS $LIBS"
  8654. cat > conftest.$ac_ext <<EOF
  8655. #line 9538 "configure"
  8656. #include "confdefs.h"
  8657. /* Override any gcc2 internal prototype to avoid an error. */
  8658. /* We use char because int might match the return type of a gcc2
  8659. builtin and then its argument prototype would still apply. */
  8660. char XShmCreateImage();
  8661. int main() {
  8662. XShmCreateImage()
  8663. ; return 0; }
  8664. EOF
  8665. if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8666. rm -rf conftest*
  8667. eval "ac_cv_lib_$ac_lib_var=yes"
  8668. else
  8669. echo "configure: failed program was:" >&5
  8670. cat conftest.$ac_ext >&5
  8671. rm -rf conftest*
  8672. eval "ac_cv_lib_$ac_lib_var=no"
  8673. fi
  8674. rm -f conftest*
  8675. LIBS="$ac_save_LIBS"
  8676. fi
  8677. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8678. echo "$ac_t""yes" 1>&6
  8679. _HAVE_XSHM_XEXT=1
  8680. else
  8681. echo "$ac_t""no" 1>&6
  8682. fi
  8683. ac_safe=`echo "X11/extensions/XShm.h" | sed 'y%./+-%__p_%'`
  8684. echo $ac_n "checking for X11/extensions/XShm.h""... $ac_c" 1>&6
  8685. echo "configure:9571: checking for X11/extensions/XShm.h" >&5
  8686. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  8687. echo $ac_n "(cached) $ac_c" 1>&6
  8688. else
  8689. cat > conftest.$ac_ext <<EOF
  8690. #line 9576 "configure"
  8691. #include "confdefs.h"
  8692. #include <X11/extensions/XShm.h>
  8693. EOF
  8694. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8695. { (eval echo configure:9581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8696. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8697. if test -z "$ac_err"; then
  8698. rm -rf conftest*
  8699. eval "ac_cv_header_$ac_safe=yes"
  8700. else
  8701. echo "$ac_err" >&5
  8702. echo "configure: failed program was:" >&5
  8703. cat conftest.$ac_ext >&5
  8704. rm -rf conftest*
  8705. eval "ac_cv_header_$ac_safe=no"
  8706. fi
  8707. rm -f conftest*
  8708. fi
  8709. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8710. echo "$ac_t""yes" 1>&6
  8711. :
  8712. else
  8713. echo "$ac_t""no" 1>&6
  8714. fi
  8715. if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" &&
  8716. test -n "$_HAVE_XSHM_XEXT"; then
  8717. cat >> confdefs.h <<\EOF
  8718. #define HAVE_XSHM 1
  8719. EOF
  8720. fi
  8721. echo $ac_n "checking for XieFloGeometry in -lXIE""... $ac_c" 1>&6
  8722. echo "configure:9611: checking for XieFloGeometry in -lXIE" >&5
  8723. ac_lib_var=`echo XIE'_'XieFloGeometry | sed 'y%./+-%__p_%'`
  8724. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8725. echo $ac_n "(cached) $ac_c" 1>&6
  8726. else
  8727. ac_save_LIBS="$LIBS"
  8728. LIBS="-lXIE $XLIBS $XEXT_LIBS $LIBS"
  8729. cat > conftest.$ac_ext <<EOF
  8730. #line 9619 "configure"
  8731. #include "confdefs.h"
  8732. /* Override any gcc2 internal prototype to avoid an error. */
  8733. /* We use char because int might match the return type of a gcc2
  8734. builtin and then its argument prototype would still apply. */
  8735. char XieFloGeometry();
  8736. int main() {
  8737. XieFloGeometry()
  8738. ; return 0; }
  8739. EOF
  8740. if { (eval echo configure:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8741. rm -rf conftest*
  8742. eval "ac_cv_lib_$ac_lib_var=yes"
  8743. else
  8744. echo "configure: failed program was:" >&5
  8745. cat conftest.$ac_ext >&5
  8746. rm -rf conftest*
  8747. eval "ac_cv_lib_$ac_lib_var=no"
  8748. fi
  8749. rm -f conftest*
  8750. LIBS="$ac_save_LIBS"
  8751. fi
  8752. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8753. echo "$ac_t""yes" 1>&6
  8754. MOZ_XIE_LIBS="-lXIE"
  8755. else
  8756. echo "$ac_t""no" 1>&6
  8757. fi
  8758. ac_safe=`echo "X11/extensions/XIElib.h" | sed 'y%./+-%__p_%'`
  8759. echo $ac_n "checking for X11/extensions/XIElib.h""... $ac_c" 1>&6
  8760. echo "configure:9652: checking for X11/extensions/XIElib.h" >&5
  8761. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  8762. echo $ac_n "(cached) $ac_c" 1>&6
  8763. else
  8764. cat > conftest.$ac_ext <<EOF
  8765. #line 9657 "configure"
  8766. #include "confdefs.h"
  8767. #include <X11/extensions/XIElib.h>
  8768. EOF
  8769. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8770. { (eval echo configure:9662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8771. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8772. if test -z "$ac_err"; then
  8773. rm -rf conftest*
  8774. eval "ac_cv_header_$ac_safe=yes"
  8775. else
  8776. echo "$ac_err" >&5
  8777. echo "configure: failed program was:" >&5
  8778. cat conftest.$ac_ext >&5
  8779. rm -rf conftest*
  8780. eval "ac_cv_header_$ac_safe=no"
  8781. fi
  8782. rm -f conftest*
  8783. fi
  8784. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8785. echo "$ac_t""yes" 1>&6
  8786. :
  8787. else
  8788. echo "$ac_t""no" 1>&6
  8789. fi
  8790. if test "$MOZ_XIE_LIBS"; then
  8791. case $target in
  8792. *-hpux*)
  8793. ;;
  8794. *)
  8795. HAVE_XIE=1
  8796. ;;
  8797. esac
  8798. fi
  8799. LDFLAGS="$_SAVE_LDFLAGS"
  8800. # Check whether --with-freetype-prefix or --without-freetype-prefix was given.
  8801. if test "${with_freetype_prefix+set}" = set; then
  8802. withval="$with_freetype_prefix"
  8803. ft_config_prefix="$withval"
  8804. else
  8805. ft_config_prefix=""
  8806. fi
  8807. # Check whether --with-freetype-exec-prefix or --without-freetype-exec-prefix was given.
  8808. if test "${with_freetype_exec_prefix+set}" = set; then
  8809. withval="$with_freetype_exec_prefix"
  8810. ft_config_exec_prefix="$withval"
  8811. else
  8812. ft_config_exec_prefix=""
  8813. fi
  8814. # Check whether --enable-freetypetest or --disable-freetypetest was given.
  8815. if test "${enable_freetypetest+set}" = set; then
  8816. enableval="$enable_freetypetest"
  8817. :
  8818. else
  8819. enable_fttest=yes
  8820. fi
  8821. if test x$ft_config_exec_prefix != x ; then
  8822. ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
  8823. if test x${FT2_CONFIG+set} != xset ; then
  8824. FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
  8825. fi
  8826. fi
  8827. if test x$ft_config_prefix != x ; then
  8828. ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
  8829. if test x${FT2_CONFIG+set} != xset ; then
  8830. FT2_CONFIG=$ft_config_prefix/bin/freetype-config
  8831. fi
  8832. fi
  8833. # Extract the first word of "freetype-config", so it can be a program name with args.
  8834. set dummy freetype-config; ac_word=$2
  8835. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8836. echo "configure:9736: checking for $ac_word" >&5
  8837. if eval "test \"`echo '$''{'ac_cv_path_FT2_CONFIG'+set}'`\" = set"; then
  8838. echo $ac_n "(cached) $ac_c" 1>&6
  8839. else
  8840. case "$FT2_CONFIG" in
  8841. /*)
  8842. ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
  8843. ;;
  8844. ?:/*)
  8845. ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a dos path.
  8846. ;;
  8847. *)
  8848. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8849. ac_dummy="$PATH"
  8850. for ac_dir in $ac_dummy; do
  8851. test -z "$ac_dir" && ac_dir=.
  8852. if test -f $ac_dir/$ac_word; then
  8853. ac_cv_path_FT2_CONFIG="$ac_dir/$ac_word"
  8854. break
  8855. fi
  8856. done
  8857. IFS="$ac_save_ifs"
  8858. test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no"
  8859. ;;
  8860. esac
  8861. fi
  8862. FT2_CONFIG="$ac_cv_path_FT2_CONFIG"
  8863. if test -n "$FT2_CONFIG"; then
  8864. echo "$ac_t""$FT2_CONFIG" 1>&6
  8865. else
  8866. echo "$ac_t""no" 1>&6
  8867. fi
  8868. min_ft_version=6.1.0
  8869. echo $ac_n "checking for FreeType - version >= $min_ft_version""... $ac_c" 1>&6
  8870. echo "configure:9772: checking for FreeType - version >= $min_ft_version" >&5
  8871. no_ft=""
  8872. if test "$FT2_CONFIG" = "no" ; then
  8873. no_ft=yes
  8874. else
  8875. FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
  8876. FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
  8877. ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
  8878. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  8879. ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
  8880. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  8881. ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
  8882. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  8883. ft_min_major_version=`echo $min_ft_version | \
  8884. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  8885. ft_min_minor_version=`echo $min_ft_version | \
  8886. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  8887. ft_min_micro_version=`echo $min_ft_version | \
  8888. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  8889. if test "x$enable_fttest" = "xyes" ; then
  8890. ft_config_is_lt=no
  8891. if test $ft_config_major_version -lt $ft_min_major_version ; then
  8892. ft_config_is_lt=yes
  8893. else
  8894. if test $ft_config_major_version -eq $ft_min_major_version ; then
  8895. if test $ft_config_minor_version -lt $ft_min_minor_version ; then
  8896. ft_config_is_lt=yes
  8897. else
  8898. if test $ft_config_minor_version -eq $ft_min_minor_version ; then
  8899. if test $ft_config_micro_version -lt $ft_min_micro_version ; then
  8900. ft_config_is_lt=yes
  8901. fi
  8902. fi
  8903. fi
  8904. fi
  8905. fi
  8906. if test "x$ft_config_is_lt" = "xyes" ; then
  8907. _HAVE_FREETYPE2=
  8908. echo "$ac_t""no" 1>&6
  8909. else
  8910. ac_save_CFLAGS="$CFLAGS"
  8911. ac_save_LIBS="$LIBS"
  8912. CFLAGS="$CFLAGS $FT2_CFLAGS"
  8913. LIBS="$FT2_LIBS $LIBS"
  8914. if test "$cross_compiling" = yes; then
  8915. echo $ac_n "cross compiling; assumed OK... $ac_c"
  8916. else
  8917. cat > conftest.$ac_ext <<EOF
  8918. #line 9820 "configure"
  8919. #include "confdefs.h"
  8920. #include <ft2build.h>
  8921. #include FT_FREETYPE_H
  8922. #include <stdio.h>
  8923. #include <stdlib.h>
  8924. int
  8925. main()
  8926. {
  8927. FT_Library library;
  8928. FT_Error error;
  8929. error = FT_Init_FreeType(&library);
  8930. if (error)
  8931. return 1;
  8932. else
  8933. {
  8934. FT_Done_FreeType(library);
  8935. return 0;
  8936. }
  8937. }
  8938. EOF
  8939. if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  8940. then
  8941. :
  8942. else
  8943. echo "configure: failed program was:" >&5
  8944. cat conftest.$ac_ext >&5
  8945. rm -fr conftest*
  8946. no_ft=yes
  8947. fi
  8948. rm -fr conftest*
  8949. fi
  8950. CFLAGS="$ac_save_CFLAGS"
  8951. LIBS="$ac_save_LIBS"
  8952. fi # test $ft_config_version -lt $ft_min_version
  8953. fi # test "x$enable_fttest" = "xyes"
  8954. fi # test "$FT2_CONFIG" = "no"
  8955. if test "x$ft_config_is_lt" != "xyes" ; then
  8956. if test "x$no_ft" = x ; then
  8957. echo "$ac_t""yes" 1>&6
  8958. _HAVE_FREETYPE2=1
  8959. else
  8960. echo "$ac_t""no" 1>&6
  8961. if test "$FT2_CONFIG" = "no" ; then
  8962. echo "*** The freetype-config script installed by FreeType 2 could not be found."
  8963. echo "*** If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in"
  8964. echo "*** your path, or set the FT2_CONFIG environment variable to the"
  8965. echo "*** full path to freetype-config."
  8966. else
  8967. echo "*** The FreeType test program failed to run. If your system uses"
  8968. echo "*** shared libraries and they are installed outside the normal"
  8969. echo "*** system library path, make sure the variable LD_LIBRARY_PATH"
  8970. echo "*** (or whatever is appropiate for your system) is correctly set."
  8971. fi
  8972. FT2_CFLAGS=""
  8973. FT2_LIBS=""
  8974. _HAVE_FREETYPE2=
  8975. fi
  8976. fi
  8977. if test "$_HAVE_FREETYPE2"; then
  8978. _SAVE_LIBS="$LIBS"
  8979. _SAVE_CFLAGS="$CFLAGS"
  8980. LIBS="$LIBS $FT2_LIBS"
  8981. CFLAGS="$CFLAGS $FT2_CFLAGS"
  8982. echo $ac_n "checking for FT_Bitmap_Size.y_ppem""... $ac_c" 1>&6
  8983. echo "configure:9896: checking for FT_Bitmap_Size.y_ppem" >&5
  8984. if eval "test \"`echo '$''{'ac_cv_member_FT_Bitmap_Size_y_ppem'+set}'`\" = set"; then
  8985. echo $ac_n "(cached) $ac_c" 1>&6
  8986. else
  8987. cat > conftest.$ac_ext <<EOF
  8988. #line 9901 "configure"
  8989. #include "confdefs.h"
  8990. #include <ft2build.h>
  8991. #include FT_FREETYPE_H
  8992. int main() {
  8993. FT_Bitmap_Size s;
  8994. if (sizeof s.y_ppem) return 0;
  8995. return 1
  8996. ; return 0; }
  8997. EOF
  8998. if { (eval echo configure:9911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8999. rm -rf conftest*
  9000. ac_cv_member_FT_Bitmap_Size_y_ppem=yes
  9001. else
  9002. echo "configure: failed program was:" >&5
  9003. cat conftest.$ac_ext >&5
  9004. rm -rf conftest*
  9005. ac_cv_member_FT_Bitmap_Size_y_ppem=no
  9006. fi
  9007. rm -f conftest*
  9008. fi
  9009. echo "$ac_t""$ac_cv_member_FT_Bitmap_Size_y_ppem" 1>&6
  9010. if test "$ac_cv_member_FT_Bitmap_Size_y_ppem" = yes; then
  9011. HAVE_FT_BITMAP_SIZE_Y_PPEM=1
  9012. else
  9013. HAVE_FT_BITMAP_SIZE_Y_PPEM=0
  9014. fi
  9015. cat >> confdefs.h <<EOF
  9016. #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
  9017. EOF
  9018. for ac_func in FT_GlyphSlot_Embolden FT_Load_Sfnt_Table FT_Select_Size
  9019. do
  9020. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  9021. echo "configure:9937: checking for $ac_func" >&5
  9022. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  9023. echo $ac_n "(cached) $ac_c" 1>&6
  9024. else
  9025. cat > conftest.$ac_ext <<EOF
  9026. #line 9942 "configure"
  9027. #include "confdefs.h"
  9028. /* System header to define __stub macros and hopefully few prototypes,
  9029. which can conflict with char $ac_func(); below. */
  9030. #include <assert.h>
  9031. /* Override any gcc2 internal prototype to avoid an error. */
  9032. /* We use char because int might match the return type of a gcc2
  9033. builtin and then its argument prototype would still apply. */
  9034. char $ac_func();
  9035. int main() {
  9036. /* The GNU C library defines this for functions which it implements
  9037. to always fail with ENOSYS. Some functions are actually named
  9038. something starting with __ and the normal name is an alias. */
  9039. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9040. choke me
  9041. #else
  9042. $ac_func();
  9043. #endif
  9044. ; return 0; }
  9045. EOF
  9046. if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9047. rm -rf conftest*
  9048. eval "ac_cv_func_$ac_func=yes"
  9049. else
  9050. echo "configure: failed program was:" >&5
  9051. cat conftest.$ac_ext >&5
  9052. rm -rf conftest*
  9053. eval "ac_cv_func_$ac_func=no"
  9054. fi
  9055. rm -f conftest*
  9056. fi
  9057. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  9058. echo "$ac_t""yes" 1>&6
  9059. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  9060. cat >> confdefs.h <<EOF
  9061. #define $ac_tr_func 1
  9062. EOF
  9063. else
  9064. echo "$ac_t""no" 1>&6
  9065. fi
  9066. done
  9067. LIBS="$_SAVE_LIBS"
  9068. CFLAGS="$_SAVE_CFLAGS"
  9069. fi
  9070. fi # $no_x
  9071. case "$target_os" in
  9072. darwin*)
  9073. USE_PTHREADS=1
  9074. ;;
  9075. *)
  9076. echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
  9077. echo "configure:10008: checking for pthread_create in -lpthreads" >&5
  9078. echo "
  9079. #include <pthread.h>
  9080. #include <stdlib.h>
  9081. void *foo(void *v) { int a = 1; }
  9082. int main() {
  9083. pthread_t t;
  9084. if (!pthread_create(&t, 0, &foo, 0)) {
  9085. pthread_join(t, 0);
  9086. }
  9087. exit(0);
  9088. }" > dummy.c ;
  9089. echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5;
  9090. ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5;
  9091. _res=$? ;
  9092. rm -f dummy.c dummy${ac_exeext} ;
  9093. if test "$_res" = "0"; then
  9094. echo "$ac_t""yes" 1>&6
  9095. USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
  9096. else
  9097. echo "$ac_t""no" 1>&6
  9098. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  9099. echo "configure:10031: checking for pthread_create in -lpthread" >&5
  9100. echo "
  9101. #include <pthread.h>
  9102. #include <stdlib.h>
  9103. void *foo(void *v) { int a = 1; }
  9104. int main() {
  9105. pthread_t t;
  9106. if (!pthread_create(&t, 0, &foo, 0)) {
  9107. pthread_join(t, 0);
  9108. }
  9109. exit(0);
  9110. }" > dummy.c ;
  9111. echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5;
  9112. ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5;
  9113. _res=$? ;
  9114. rm -f dummy.c dummy${ac_exeext} ;
  9115. if test "$_res" = "0"; then
  9116. echo "$ac_t""yes" 1>&6
  9117. USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
  9118. else
  9119. echo "$ac_t""no" 1>&6
  9120. echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
  9121. echo "configure:10054: checking for pthread_create in -lc_r" >&5
  9122. echo "
  9123. #include <pthread.h>
  9124. #include <stdlib.h>
  9125. void *foo(void *v) { int a = 1; }
  9126. int main() {
  9127. pthread_t t;
  9128. if (!pthread_create(&t, 0, &foo, 0)) {
  9129. pthread_join(t, 0);
  9130. }
  9131. exit(0);
  9132. }" > dummy.c ;
  9133. echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5;
  9134. ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5;
  9135. _res=$? ;
  9136. rm -f dummy.c dummy${ac_exeext} ;
  9137. if test "$_res" = "0"; then
  9138. echo "$ac_t""yes" 1>&6
  9139. USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
  9140. else
  9141. echo "$ac_t""no" 1>&6
  9142. echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
  9143. echo "configure:10077: checking for pthread_create in -lc" >&5
  9144. echo "
  9145. #include <pthread.h>
  9146. #include <stdlib.h>
  9147. void *foo(void *v) { int a = 1; }
  9148. int main() {
  9149. pthread_t t;
  9150. if (!pthread_create(&t, 0, &foo, 0)) {
  9151. pthread_join(t, 0);
  9152. }
  9153. exit(0);
  9154. }" > dummy.c ;
  9155. echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5;
  9156. ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5;
  9157. _res=$? ;
  9158. rm -f dummy.c dummy${ac_exeext} ;
  9159. if test "$_res" = "0"; then
  9160. echo "$ac_t""yes" 1>&6
  9161. USE_PTHREADS=1
  9162. else
  9163. echo "$ac_t""no" 1>&6
  9164. fi
  9165. fi
  9166. fi
  9167. fi
  9168. ;;
  9169. esac
  9170. # Check whether --with-pthreads or --without-pthreads was given.
  9171. if test "${with_pthreads+set}" = set; then
  9172. withval="$with_pthreads"
  9173. if test "$withval" = "yes"; then
  9174. if test "$USE_PTHREADS"x = x; then
  9175. { echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; exit 1; };
  9176. fi
  9177. elif test "$withval" = "no"; then
  9178. USE_PTHREADS=
  9179. _PTHREAD_LDFLAGS=
  9180. else
  9181. { echo "configure: error: Option, pthreads, does not take an argument ($withval)." 1>&2; exit 1; }
  9182. fi
  9183. fi
  9184. if test "$USE_PTHREADS"x != x
  9185. then
  9186. rm -f conftest*
  9187. ac_cv_have_dash_pthread=no
  9188. echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
  9189. echo "configure:10136: checking whether ${CC-cc} accepts -pthread" >&5
  9190. echo 'int main() { return 0; }' | cat > conftest.c
  9191. ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
  9192. if test $? -eq 0; then
  9193. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
  9194. ac_cv_have_dash_pthread=yes
  9195. case "$target_os" in
  9196. freebsd*)
  9197. # Freebsd doesn't use -pthread for compiles, it uses them for linking
  9198. ;;
  9199. *)
  9200. CFLAGS="$CFLAGS -pthread"
  9201. CXXFLAGS="$CXXFLAGS -pthread"
  9202. ;;
  9203. esac
  9204. fi
  9205. fi
  9206. rm -f conftest*
  9207. echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
  9208. ac_cv_have_dash_pthreads=no
  9209. if test "$ac_cv_have_dash_pthread" = "no"; then
  9210. echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
  9211. echo "configure:10159: checking whether ${CC-cc} accepts -pthreads" >&5
  9212. echo 'int main() { return 0; }' | cat > conftest.c
  9213. ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
  9214. if test $? -eq 0; then
  9215. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
  9216. ac_cv_have_dash_pthreads=yes
  9217. CFLAGS="$CFLAGS -pthreads"
  9218. CXXFLAGS="$CXXFLAGS -pthreads"
  9219. fi
  9220. fi
  9221. rm -f conftest*
  9222. echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6
  9223. fi
  9224. case "$target" in
  9225. *-*-freebsd*)
  9226. cat >> confdefs.h <<\EOF
  9227. #define _REENTRANT 1
  9228. EOF
  9229. cat >> confdefs.h <<\EOF
  9230. #define _THREAD_SAFE 1
  9231. EOF
  9232. if test "$ac_cv_have_dash_pthread" = "yes"; then
  9233. _PTHREAD_LDFLAGS="-pthread"
  9234. else
  9235. _PTHREAD_LDFLAGS="-lc_r"
  9236. fi
  9237. ;;
  9238. *-*-openbsd*|*-*-bsdi*)
  9239. cat >> confdefs.h <<\EOF
  9240. #define _REENTRANT 1
  9241. EOF
  9242. cat >> confdefs.h <<\EOF
  9243. #define _THREAD_SAFE 1
  9244. EOF
  9245. if test "$ac_cv_have_dash_pthread" = "yes"; then
  9246. _PTHREAD_LDFLAGS="-pthread"
  9247. fi
  9248. ;;
  9249. *-*-linux*|*-*-kfreebsd*-gnu)
  9250. cat >> confdefs.h <<\EOF
  9251. #define _REENTRANT 1
  9252. EOF
  9253. ;;
  9254. *-*-nto*)
  9255. cat >> confdefs.h <<\EOF
  9256. #define _REENTRANT 1
  9257. EOF
  9258. ;;
  9259. *-aix4.3*|*-aix5*)
  9260. cat >> confdefs.h <<\EOF
  9261. #define _REENTRANT 1
  9262. EOF
  9263. ;;
  9264. *-hpux11.*)
  9265. cat >> confdefs.h <<\EOF
  9266. #define _REENTRANT 1
  9267. EOF
  9268. ;;
  9269. alpha*-*-osf*)
  9270. cat >> confdefs.h <<\EOF
  9271. #define _REENTRANT 1
  9272. EOF
  9273. ;;
  9274. *-*-solaris*)
  9275. cat >> confdefs.h <<\EOF
  9276. #define _REENTRANT 1
  9277. EOF
  9278. if test ! "$GNU_CC"; then
  9279. CFLAGS="$CFLAGS -mt"
  9280. CXXFLAGS="$CXXFLAGS -mt"
  9281. fi
  9282. ;;
  9283. esac
  9284. LDFLAGS="${_PTHREAD_LDFLAGS} ${LDFLAGS}"
  9285. fi
  9286. echo $ac_n "checking whether mmap() sees write()s""... $ac_c" 1>&6
  9287. echo "configure:10254: checking whether mmap() sees write()s" >&5
  9288. mmap_test_prog='
  9289. #include <stdlib.h>
  9290. #include <unistd.h>
  9291. #include <sys/mman.h>
  9292. #include <sys/types.h>
  9293. #include <sys/stat.h>
  9294. #include <fcntl.h>
  9295. char fname[] = "conftest.file";
  9296. char zbuff[1024]; /* Fractional page is probably worst case */
  9297. int main() {
  9298. char *map;
  9299. int fd;
  9300. int i;
  9301. unlink(fname);
  9302. fd = open(fname, O_RDWR | O_CREAT, 0660);
  9303. if(fd<0) return 1;
  9304. unlink(fname);
  9305. write(fd, zbuff, sizeof(zbuff));
  9306. lseek(fd, 0, SEEK_SET);
  9307. map = (char*)mmap(0, sizeof(zbuff), PROT_READ, MAP_SHARED, fd, 0);
  9308. if(map==(char*)-1) return 2;
  9309. for(i=0; fname[i]; i++) {
  9310. int rc = write(fd, &fname[i], 1);
  9311. if(map[i]!=fname[i]) return 4;
  9312. }
  9313. return 0;
  9314. }
  9315. '
  9316. if test "$cross_compiling" = yes; then
  9317. result="yes"
  9318. else
  9319. cat > conftest.$ac_ext <<EOF
  9320. #line 10293 "configure"
  9321. #include "confdefs.h"
  9322. $mmap_test_prog
  9323. EOF
  9324. if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  9325. then
  9326. result="yes"
  9327. else
  9328. echo "configure: failed program was:" >&5
  9329. cat conftest.$ac_ext >&5
  9330. rm -fr conftest*
  9331. result="no"
  9332. fi
  9333. rm -fr conftest*
  9334. fi
  9335. echo "$ac_t"""$result"" 1>&6
  9336. if test "$result" = "no"; then
  9337. cat >> confdefs.h <<\EOF
  9338. #define MMAP_MISSES_WRITES 1
  9339. EOF
  9340. fi
  9341. if test $ac_cv_prog_gcc = yes; then
  9342. echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  9343. echo "configure:10322: checking whether ${CC-cc} needs -traditional" >&5
  9344. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  9345. echo $ac_n "(cached) $ac_c" 1>&6
  9346. else
  9347. ac_pattern="Autoconf.*'x'"
  9348. cat > conftest.$ac_ext <<EOF
  9349. #line 10328 "configure"
  9350. #include "confdefs.h"
  9351. #include <sgtty.h>
  9352. Autoconf TIOCGETP
  9353. EOF
  9354. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9355. egrep "$ac_pattern" >/dev/null 2>&1; then
  9356. rm -rf conftest*
  9357. ac_cv_prog_gcc_traditional=yes
  9358. else
  9359. rm -rf conftest*
  9360. ac_cv_prog_gcc_traditional=no
  9361. fi
  9362. rm -f conftest*
  9363. if test $ac_cv_prog_gcc_traditional = no; then
  9364. cat > conftest.$ac_ext <<EOF
  9365. #line 10346 "configure"
  9366. #include "confdefs.h"
  9367. #include <termio.h>
  9368. Autoconf TCGETA
  9369. EOF
  9370. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9371. egrep "$ac_pattern" >/dev/null 2>&1; then
  9372. rm -rf conftest*
  9373. ac_cv_prog_gcc_traditional=yes
  9374. fi
  9375. rm -f conftest*
  9376. fi
  9377. fi
  9378. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  9379. if test $ac_cv_prog_gcc_traditional = yes; then
  9380. CC="$CC -traditional"
  9381. fi
  9382. fi
  9383. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  9384. echo "configure:10368: checking for 8-bit clean memcmp" >&5
  9385. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  9386. echo $ac_n "(cached) $ac_c" 1>&6
  9387. else
  9388. if test "$cross_compiling" = yes; then
  9389. ac_cv_func_memcmp_clean=no
  9390. else
  9391. cat > conftest.$ac_ext <<EOF
  9392. #line 10376 "configure"
  9393. #include "confdefs.h"
  9394. main()
  9395. {
  9396. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  9397. exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  9398. }
  9399. EOF
  9400. if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  9401. then
  9402. ac_cv_func_memcmp_clean=yes
  9403. else
  9404. echo "configure: failed program was:" >&5
  9405. cat conftest.$ac_ext >&5
  9406. rm -fr conftest*
  9407. ac_cv_func_memcmp_clean=no
  9408. fi
  9409. rm -fr conftest*
  9410. fi
  9411. fi
  9412. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  9413. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
  9414. for ac_func in random strerror lchown fchmod snprintf statvfs memmove rint stat64 lstat64 truncate64 statvfs64
  9415. do
  9416. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  9417. echo "configure:10406: checking for $ac_func" >&5
  9418. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  9419. echo $ac_n "(cached) $ac_c" 1>&6
  9420. else
  9421. cat > conftest.$ac_ext <<EOF
  9422. #line 10411 "configure"
  9423. #include "confdefs.h"
  9424. /* System header to define __stub macros and hopefully few prototypes,
  9425. which can conflict with char $ac_func(); below. */
  9426. #include <assert.h>
  9427. /* Override any gcc2 internal prototype to avoid an error. */
  9428. /* We use char because int might match the return type of a gcc2
  9429. builtin and then its argument prototype would still apply. */
  9430. char $ac_func();
  9431. int main() {
  9432. /* The GNU C library defines this for functions which it implements
  9433. to always fail with ENOSYS. Some functions are actually named
  9434. something starting with __ and the normal name is an alias. */
  9435. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9436. choke me
  9437. #else
  9438. $ac_func();
  9439. #endif
  9440. ; return 0; }
  9441. EOF
  9442. if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9443. rm -rf conftest*
  9444. eval "ac_cv_func_$ac_func=yes"
  9445. else
  9446. echo "configure: failed program was:" >&5
  9447. cat conftest.$ac_ext >&5
  9448. rm -rf conftest*
  9449. eval "ac_cv_func_$ac_func=no"
  9450. fi
  9451. rm -f conftest*
  9452. fi
  9453. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  9454. echo "$ac_t""yes" 1>&6
  9455. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  9456. cat >> confdefs.h <<EOF
  9457. #define $ac_tr_func 1
  9458. EOF
  9459. else
  9460. echo "$ac_t""no" 1>&6
  9461. fi
  9462. done
  9463. for ac_func in flockfile getpagesize
  9464. do
  9465. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  9466. echo "configure:10461: checking for $ac_func" >&5
  9467. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  9468. echo $ac_n "(cached) $ac_c" 1>&6
  9469. else
  9470. cat > conftest.$ac_ext <<EOF
  9471. #line 10466 "configure"
  9472. #include "confdefs.h"
  9473. /* System header to define __stub macros and hopefully few prototypes,
  9474. which can conflict with char $ac_func(); below. */
  9475. #include <assert.h>
  9476. /* Override any gcc2 internal prototype to avoid an error. */
  9477. /* We use char because int might match the return type of a gcc2
  9478. builtin and then its argument prototype would still apply. */
  9479. char $ac_func();
  9480. int main() {
  9481. /* The GNU C library defines this for functions which it implements
  9482. to always fail with ENOSYS. Some functions are actually named
  9483. something starting with __ and the normal name is an alias. */
  9484. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9485. choke me
  9486. #else
  9487. $ac_func();
  9488. #endif
  9489. ; return 0; }
  9490. EOF
  9491. if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9492. rm -rf conftest*
  9493. eval "ac_cv_func_$ac_func=yes"
  9494. else
  9495. echo "configure: failed program was:" >&5
  9496. cat conftest.$ac_ext >&5
  9497. rm -rf conftest*
  9498. eval "ac_cv_func_$ac_func=no"
  9499. fi
  9500. rm -f conftest*
  9501. fi
  9502. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  9503. echo "$ac_t""yes" 1>&6
  9504. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  9505. cat >> confdefs.h <<EOF
  9506. #define $ac_tr_func 1
  9507. EOF
  9508. else
  9509. echo "$ac_t""no" 1>&6
  9510. fi
  9511. done
  9512. if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "100200"; then
  9513. for ac_func in localtime_r strtok_r
  9514. do
  9515. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  9516. echo "configure:10518: checking for $ac_func" >&5
  9517. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  9518. echo $ac_n "(cached) $ac_c" 1>&6
  9519. else
  9520. cat > conftest.$ac_ext <<EOF
  9521. #line 10523 "configure"
  9522. #include "confdefs.h"
  9523. /* System header to define __stub macros and hopefully few prototypes,
  9524. which can conflict with char $ac_func(); below. */
  9525. #include <assert.h>
  9526. /* Override any gcc2 internal prototype to avoid an error. */
  9527. /* We use char because int might match the return type of a gcc2
  9528. builtin and then its argument prototype would still apply. */
  9529. char $ac_func();
  9530. int main() {
  9531. /* The GNU C library defines this for functions which it implements
  9532. to always fail with ENOSYS. Some functions are actually named
  9533. something starting with __ and the normal name is an alias. */
  9534. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9535. choke me
  9536. #else
  9537. $ac_func();
  9538. #endif
  9539. ; return 0; }
  9540. EOF
  9541. if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9542. rm -rf conftest*
  9543. eval "ac_cv_func_$ac_func=yes"
  9544. else
  9545. echo "configure: failed program was:" >&5
  9546. cat conftest.$ac_ext >&5
  9547. rm -rf conftest*
  9548. eval "ac_cv_func_$ac_func=no"
  9549. fi
  9550. rm -f conftest*
  9551. fi
  9552. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  9553. echo "$ac_t""yes" 1>&6
  9554. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  9555. cat >> confdefs.h <<EOF
  9556. #define $ac_tr_func 1
  9557. EOF
  9558. else
  9559. echo "$ac_t""no" 1>&6
  9560. fi
  9561. done
  9562. fi
  9563. if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "100300"; then
  9564. ac_ext=C
  9565. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9566. ac_cpp='$CXXCPP $CPPFLAGS'
  9567. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9568. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9569. cross_compiling=$ac_cv_prog_cxx_cross
  9570. echo $ac_n "checking for wcrtomb""... $ac_c" 1>&6
  9571. echo "configure:10582: checking for wcrtomb" >&5
  9572. if eval "test \"`echo '$''{'ac_cv_have_wcrtomb'+set}'`\" = set"; then
  9573. echo $ac_n "(cached) $ac_c" 1>&6
  9574. else
  9575. cat > conftest.$ac_ext <<EOF
  9576. #line 10587 "configure"
  9577. #include "confdefs.h"
  9578. #include <wchar.h>
  9579. int main() {
  9580. mbstate_t ps={0};wcrtomb(0,'f',&ps);
  9581. ; return 0; }
  9582. EOF
  9583. if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9584. rm -rf conftest*
  9585. ac_cv_have_wcrtomb="yes"
  9586. else
  9587. echo "configure: failed program was:" >&5
  9588. cat conftest.$ac_ext >&5
  9589. rm -rf conftest*
  9590. ac_cv_have_wcrtomb="no"
  9591. fi
  9592. rm -f conftest*
  9593. fi
  9594. echo "$ac_t""$ac_cv_have_wcrtomb" 1>&6
  9595. if test "$ac_cv_have_wcrtomb" = "yes"; then
  9596. cat >> confdefs.h <<\EOF
  9597. #define HAVE_WCRTOMB 1
  9598. EOF
  9599. fi
  9600. echo $ac_n "checking for mbrtowc""... $ac_c" 1>&6
  9601. echo "configure:10614: checking for mbrtowc" >&5
  9602. if eval "test \"`echo '$''{'ac_cv_have_mbrtowc'+set}'`\" = set"; then
  9603. echo $ac_n "(cached) $ac_c" 1>&6
  9604. else
  9605. cat > conftest.$ac_ext <<EOF
  9606. #line 10619 "configure"
  9607. #include "confdefs.h"
  9608. #include <wchar.h>
  9609. int main() {
  9610. mbstate_t ps={0};mbrtowc(0,0,0,&ps);
  9611. ; return 0; }
  9612. EOF
  9613. if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9614. rm -rf conftest*
  9615. ac_cv_have_mbrtowc="yes"
  9616. else
  9617. echo "configure: failed program was:" >&5
  9618. cat conftest.$ac_ext >&5
  9619. rm -rf conftest*
  9620. ac_cv_have_mbrtowc="no"
  9621. fi
  9622. rm -f conftest*
  9623. fi
  9624. echo "$ac_t""$ac_cv_have_mbrtowc" 1>&6
  9625. if test "$ac_cv_have_mbrtowc" = "yes"; then
  9626. cat >> confdefs.h <<\EOF
  9627. #define HAVE_MBRTOWC 1
  9628. EOF
  9629. fi
  9630. ac_ext=c
  9631. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9632. ac_cpp='$CPP $CPPFLAGS'
  9633. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9634. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9635. cross_compiling=$ac_cv_prog_cc_cross
  9636. fi
  9637. echo $ac_n "checking for res_ninit()""... $ac_c" 1>&6
  9638. echo "configure:10655: checking for res_ninit()" >&5
  9639. if eval "test \"`echo '$''{'ac_cv_func_res_ninit'+set}'`\" = set"; then
  9640. echo $ac_n "(cached) $ac_c" 1>&6
  9641. else
  9642. cat > conftest.$ac_ext <<EOF
  9643. #line 10660 "configure"
  9644. #include "confdefs.h"
  9645. #ifdef linux
  9646. #define _BSD_SOURCE 1
  9647. #endif
  9648. #include <resolv.h>
  9649. int main() {
  9650. int foo = res_ninit(&_res);
  9651. ; return 0; }
  9652. EOF
  9653. if { (eval echo configure:10672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9654. rm -rf conftest*
  9655. ac_cv_func_res_ninit=yes
  9656. else
  9657. echo "configure: failed program was:" >&5
  9658. cat conftest.$ac_ext >&5
  9659. rm -rf conftest*
  9660. ac_cv_func_res_ninit=no
  9661. fi
  9662. rm -f conftest*
  9663. fi
  9664. echo "$ac_t""$ac_cv_func_res_ninit" 1>&6
  9665. if test "$ac_cv_func_res_ninit" = "yes"; then
  9666. cat >> confdefs.h <<\EOF
  9667. #define HAVE_RES_NINIT 1
  9668. EOF
  9669. fi
  9670. ac_ext=C
  9671. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9672. ac_cpp='$CXXCPP $CPPFLAGS'
  9673. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9674. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9675. cross_compiling=$ac_cv_prog_cxx_cross
  9676. echo $ac_n "checking for gnu_get_libc_version()""... $ac_c" 1>&6
  9677. echo "configure:10702: checking for gnu_get_libc_version()" >&5
  9678. if eval "test \"`echo '$''{'ac_cv_func_gnu_get_libc_version'+set}'`\" = set"; then
  9679. echo $ac_n "(cached) $ac_c" 1>&6
  9680. else
  9681. cat > conftest.$ac_ext <<EOF
  9682. #line 10707 "configure"
  9683. #include "confdefs.h"
  9684. #ifdef HAVE_GNU_LIBC_VERSION_H
  9685. #include <gnu/libc-version.h>
  9686. #endif
  9687. int main() {
  9688. const char *glibc_version = gnu_get_libc_version();
  9689. ; return 0; }
  9690. EOF
  9691. if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9692. rm -rf conftest*
  9693. ac_cv_func_gnu_get_libc_version=yes
  9694. else
  9695. echo "configure: failed program was:" >&5
  9696. cat conftest.$ac_ext >&5
  9697. rm -rf conftest*
  9698. ac_cv_func_gnu_get_libc_version=no
  9699. fi
  9700. rm -f conftest*
  9701. fi
  9702. echo "$ac_t""$ac_cv_func_gnu_get_libc_version" 1>&6
  9703. if test "$ac_cv_func_gnu_get_libc_version" = "yes"; then
  9704. cat >> confdefs.h <<\EOF
  9705. #define HAVE_GNU_GET_LIBC_VERSION 1
  9706. EOF
  9707. fi
  9708. case $target_os in
  9709. os2*|msvc*|mks*|cygwin*|mingw*|darwin*|wince*|beos*)
  9710. ;;
  9711. *)
  9712. echo $ac_n "checking for iconv in -lc""... $ac_c" 1>&6
  9713. echo "configure:10747: checking for iconv in -lc" >&5
  9714. ac_lib_var=`echo c'_'iconv | sed 'y%./+-%__p_%'`
  9715. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9716. echo $ac_n "(cached) $ac_c" 1>&6
  9717. else
  9718. ac_save_LIBS="$LIBS"
  9719. LIBS="-lc $LIBS"
  9720. cat > conftest.$ac_ext <<EOF
  9721. #line 10755 "configure"
  9722. #include "confdefs.h"
  9723. /* Override any gcc2 internal prototype to avoid an error. */
  9724. #ifdef __cplusplus
  9725. extern "C"
  9726. #endif
  9727. /* We use char because int might match the return type of a gcc2
  9728. builtin and then its argument prototype would still apply. */
  9729. char iconv();
  9730. int main() {
  9731. iconv()
  9732. ; return 0; }
  9733. EOF
  9734. if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9735. rm -rf conftest*
  9736. eval "ac_cv_lib_$ac_lib_var=yes"
  9737. else
  9738. echo "configure: failed program was:" >&5
  9739. cat conftest.$ac_ext >&5
  9740. rm -rf conftest*
  9741. eval "ac_cv_lib_$ac_lib_var=no"
  9742. fi
  9743. rm -f conftest*
  9744. LIBS="$ac_save_LIBS"
  9745. fi
  9746. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9747. echo "$ac_t""yes" 1>&6
  9748. _ICONV_LIBS="$_ICONV_LIBS"
  9749. else
  9750. echo "$ac_t""no" 1>&6
  9751. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  9752. echo "configure:10788: checking for iconv in -liconv" >&5
  9753. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  9754. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9755. echo $ac_n "(cached) $ac_c" 1>&6
  9756. else
  9757. ac_save_LIBS="$LIBS"
  9758. LIBS="-liconv $LIBS"
  9759. cat > conftest.$ac_ext <<EOF
  9760. #line 10796 "configure"
  9761. #include "confdefs.h"
  9762. /* Override any gcc2 internal prototype to avoid an error. */
  9763. #ifdef __cplusplus
  9764. extern "C"
  9765. #endif
  9766. /* We use char because int might match the return type of a gcc2
  9767. builtin and then its argument prototype would still apply. */
  9768. char iconv();
  9769. int main() {
  9770. iconv()
  9771. ; return 0; }
  9772. EOF
  9773. if { (eval echo configure:10810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9774. rm -rf conftest*
  9775. eval "ac_cv_lib_$ac_lib_var=yes"
  9776. else
  9777. echo "configure: failed program was:" >&5
  9778. cat conftest.$ac_ext >&5
  9779. rm -rf conftest*
  9780. eval "ac_cv_lib_$ac_lib_var=no"
  9781. fi
  9782. rm -f conftest*
  9783. LIBS="$ac_save_LIBS"
  9784. fi
  9785. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9786. echo "$ac_t""yes" 1>&6
  9787. _ICONV_LIBS="$_ICONV_LIBS -liconv"
  9788. else
  9789. echo "$ac_t""no" 1>&6
  9790. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  9791. echo "configure:10829: checking for libiconv in -liconv" >&5
  9792. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  9793. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9794. echo $ac_n "(cached) $ac_c" 1>&6
  9795. else
  9796. ac_save_LIBS="$LIBS"
  9797. LIBS="-liconv $LIBS"
  9798. cat > conftest.$ac_ext <<EOF
  9799. #line 10837 "configure"
  9800. #include "confdefs.h"
  9801. /* Override any gcc2 internal prototype to avoid an error. */
  9802. #ifdef __cplusplus
  9803. extern "C"
  9804. #endif
  9805. /* We use char because int might match the return type of a gcc2
  9806. builtin and then its argument prototype would still apply. */
  9807. char libiconv();
  9808. int main() {
  9809. libiconv()
  9810. ; return 0; }
  9811. EOF
  9812. if { (eval echo configure:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9813. rm -rf conftest*
  9814. eval "ac_cv_lib_$ac_lib_var=yes"
  9815. else
  9816. echo "configure: failed program was:" >&5
  9817. cat conftest.$ac_ext >&5
  9818. rm -rf conftest*
  9819. eval "ac_cv_lib_$ac_lib_var=no"
  9820. fi
  9821. rm -f conftest*
  9822. LIBS="$ac_save_LIBS"
  9823. fi
  9824. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9825. echo "$ac_t""yes" 1>&6
  9826. _ICONV_LIBS="$_ICONV_LIBS -liconv"
  9827. else
  9828. echo "$ac_t""no" 1>&6
  9829. fi
  9830. fi
  9831. fi
  9832. _SAVE_LIBS=$LIBS
  9833. LIBS="$LIBS $_ICONV_LIBS"
  9834. echo $ac_n "checking for iconv()""... $ac_c" 1>&6
  9835. echo "configure:10878: checking for iconv()" >&5
  9836. if eval "test \"`echo '$''{'ac_cv_func_iconv'+set}'`\" = set"; then
  9837. echo $ac_n "(cached) $ac_c" 1>&6
  9838. else
  9839. cat > conftest.$ac_ext <<EOF
  9840. #line 10883 "configure"
  9841. #include "confdefs.h"
  9842. #include <stdlib.h>
  9843. #include <iconv.h>
  9844. int main() {
  9845. iconv_t h = iconv_open("", "");
  9846. iconv(h, NULL, NULL, NULL, NULL);
  9847. iconv_close(h);
  9848. ; return 0; }
  9849. EOF
  9850. if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9851. rm -rf conftest*
  9852. ac_cv_func_iconv=yes
  9853. else
  9854. echo "configure: failed program was:" >&5
  9855. cat conftest.$ac_ext >&5
  9856. rm -rf conftest*
  9857. ac_cv_func_iconv=no
  9858. fi
  9859. rm -f conftest*
  9860. fi
  9861. echo "$ac_t""$ac_cv_func_iconv" 1>&6
  9862. if test "$ac_cv_func_iconv" = "yes"; then
  9863. cat >> confdefs.h <<\EOF
  9864. #define HAVE_ICONV 1
  9865. EOF
  9866. DYNAMIC_XPCOM_LIBS="$DYNAMIC_XPCOM_LIBS $_ICONV_LIBS"
  9867. LIBXUL_LIBS="$LIBXUL_LIBS $_ICONV_LIBS"
  9868. LIBICONV="$_ICONV_LIBS"
  9869. echo $ac_n "checking for iconv() with const input""... $ac_c" 1>&6
  9870. echo "configure:10921: checking for iconv() with const input" >&5
  9871. if eval "test \"`echo '$''{'ac_cv_func_const_iconv'+set}'`\" = set"; then
  9872. echo $ac_n "(cached) $ac_c" 1>&6
  9873. else
  9874. cat > conftest.$ac_ext <<EOF
  9875. #line 10926 "configure"
  9876. #include "confdefs.h"
  9877. #include <stdlib.h>
  9878. #include <iconv.h>
  9879. int main() {
  9880. const char *input = "testing";
  9881. iconv_t h = iconv_open("", "");
  9882. iconv(h, &input, NULL, NULL, NULL);
  9883. iconv_close(h);
  9884. ; return 0; }
  9885. EOF
  9886. if { (eval echo configure:10941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9887. rm -rf conftest*
  9888. ac_cv_func_const_iconv=yes
  9889. else
  9890. echo "configure: failed program was:" >&5
  9891. cat conftest.$ac_ext >&5
  9892. rm -rf conftest*
  9893. ac_cv_func_const_iconv=no
  9894. fi
  9895. rm -f conftest*
  9896. fi
  9897. echo "$ac_t""$ac_cv_func_const_iconv" 1>&6
  9898. if test "$ac_cv_func_const_iconv" = "yes"; then
  9899. cat >> confdefs.h <<\EOF
  9900. #define HAVE_ICONV_WITH_CONST_INPUT 1
  9901. EOF
  9902. fi
  9903. fi
  9904. LIBS=$_SAVE_LIBS
  9905. ;;
  9906. esac
  9907. echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
  9908. echo "configure:10970: checking for nl_langinfo and CODESET" >&5
  9909. if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
  9910. echo $ac_n "(cached) $ac_c" 1>&6
  9911. else
  9912. cat > conftest.$ac_ext <<EOF
  9913. #line 10975 "configure"
  9914. #include "confdefs.h"
  9915. #include <langinfo.h>
  9916. int main() {
  9917. char* cs = nl_langinfo(CODESET);
  9918. ; return 0; }
  9919. EOF
  9920. if { (eval echo configure:10982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9921. rm -rf conftest*
  9922. am_cv_langinfo_codeset=yes
  9923. else
  9924. echo "configure: failed program was:" >&5
  9925. cat conftest.$ac_ext >&5
  9926. rm -rf conftest*
  9927. am_cv_langinfo_codeset=no
  9928. fi
  9929. rm -f conftest*
  9930. fi
  9931. echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
  9932. if test $am_cv_langinfo_codeset = yes; then
  9933. cat >> confdefs.h <<\EOF
  9934. #define HAVE_LANGINFO_CODESET 1
  9935. EOF
  9936. HAVE_LANGINFO_CODESET=1
  9937. fi
  9938. ac_ext=c
  9939. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9940. ac_cpp='$CPP $CPPFLAGS'
  9941. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9942. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9943. cross_compiling=$ac_cv_prog_cc_cross
  9944. echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
  9945. echo "configure:11014: checking for an implementation of va_copy()" >&5
  9946. if eval "test \"`echo '$''{'ac_cv_va_copy'+set}'`\" = set"; then
  9947. echo $ac_n "(cached) $ac_c" 1>&6
  9948. else
  9949. if test "$cross_compiling" = yes; then
  9950. ac_cv_va_copy=no
  9951. else
  9952. cat > conftest.$ac_ext <<EOF
  9953. #line 11024 "configure"
  9954. #include "confdefs.h"
  9955. #include <stdarg.h>
  9956. void f (int i, ...) {
  9957. va_list args1, args2;
  9958. va_start (args1, i);
  9959. va_copy (args2, args1);
  9960. if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
  9961. exit (1);
  9962. va_end (args1); va_end (args2);
  9963. }
  9964. int main() { f (0, 42); return 0; }
  9965. EOF
  9966. if { (eval echo configure:11038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  9967. then
  9968. ac_cv_va_copy=yes
  9969. else
  9970. echo "configure: failed program was:" >&5
  9971. cat conftest.$ac_ext >&5
  9972. rm -fr conftest*
  9973. ac_cv_va_copy=no
  9974. fi
  9975. rm -fr conftest*
  9976. fi
  9977. fi
  9978. echo "$ac_t""$ac_cv_va_copy" 1>&6
  9979. echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6
  9980. echo "configure:11055: checking for an implementation of __va_copy()" >&5
  9981. if eval "test \"`echo '$''{'ac_cv___va_copy'+set}'`\" = set"; then
  9982. echo $ac_n "(cached) $ac_c" 1>&6
  9983. else
  9984. if test "$cross_compiling" = yes; then
  9985. ac_cv___va_copy=no
  9986. else
  9987. cat > conftest.$ac_ext <<EOF
  9988. #line 11065 "configure"
  9989. #include "confdefs.h"
  9990. #include <stdarg.h>
  9991. void f (int i, ...) {
  9992. va_list args1, args2;
  9993. va_start (args1, i);
  9994. __va_copy (args2, args1);
  9995. if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
  9996. exit (1);
  9997. va_end (args1); va_end (args2);
  9998. }
  9999. int main() { f (0, 42); return 0; }
  10000. EOF
  10001. if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10002. then
  10003. ac_cv___va_copy=yes
  10004. else
  10005. echo "configure: failed program was:" >&5
  10006. cat conftest.$ac_ext >&5
  10007. rm -fr conftest*
  10008. ac_cv___va_copy=no
  10009. fi
  10010. rm -fr conftest*
  10011. fi
  10012. fi
  10013. echo "$ac_t""$ac_cv___va_copy" 1>&6
  10014. echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6
  10015. echo "configure:11096: checking whether va_lists can be copied by value" >&5
  10016. if eval "test \"`echo '$''{'ac_cv_va_val_copy'+set}'`\" = set"; then
  10017. echo $ac_n "(cached) $ac_c" 1>&6
  10018. else
  10019. if test "$cross_compiling" = yes; then
  10020. ac_cv_va_val_copy=yes
  10021. else
  10022. cat > conftest.$ac_ext <<EOF
  10023. #line 11106 "configure"
  10024. #include "confdefs.h"
  10025. #include <stdarg.h>
  10026. void f (int i, ...) {
  10027. va_list args1, args2;
  10028. va_start (args1, i);
  10029. args2 = args1;
  10030. if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
  10031. exit (1);
  10032. va_end (args1); va_end (args2);
  10033. }
  10034. int main() { f (0, 42); return 0; }
  10035. EOF
  10036. if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10037. then
  10038. ac_cv_va_val_copy=yes
  10039. else
  10040. echo "configure: failed program was:" >&5
  10041. cat conftest.$ac_ext >&5
  10042. rm -fr conftest*
  10043. ac_cv_va_val_copy=no
  10044. fi
  10045. rm -fr conftest*
  10046. fi
  10047. fi
  10048. if test "x$ac_cv_va_copy" = "xyes"; then
  10049. cat >> confdefs.h <<\EOF
  10050. #define VA_COPY va_copy
  10051. EOF
  10052. cat >> confdefs.h <<\EOF
  10053. #define HAVE_VA_COPY 1
  10054. EOF
  10055. elif test "x$ac_cv___va_copy" = "xyes"; then
  10056. cat >> confdefs.h <<\EOF
  10057. #define VA_COPY __va_copy
  10058. EOF
  10059. cat >> confdefs.h <<\EOF
  10060. #define HAVE_VA_COPY 1
  10061. EOF
  10062. fi
  10063. if test "x$ac_cv_va_val_copy" = "xno"; then
  10064. cat >> confdefs.h <<\EOF
  10065. #define HAVE_VA_LIST_AS_ARRAY 1
  10066. EOF
  10067. fi
  10068. echo "$ac_t""$ac_cv_va_val_copy" 1>&6
  10069. case "$target" in
  10070. *-linux*)
  10071. _curdir=`pwd`
  10072. export _curdir
  10073. rm -rf conftest* _conftest
  10074. mkdir _conftest
  10075. cat >> conftest.C <<\EOF
  10076. #include <stdio.h>
  10077. #include <link.h>
  10078. #include <dlfcn.h>
  10079. #ifdef _dl_loaded
  10080. void __dump_link_map(void) {
  10081. struct link_map *map = _dl_loaded;
  10082. while (NULL != map) {printf("0x%08x %s\n", map->l_addr, map->l_name); map = map->l_next;}
  10083. }
  10084. int main() {
  10085. dlopen("./conftest1.so",RTLD_LAZY);
  10086. dlopen("./../_conftest/conftest1.so",RTLD_LAZY);
  10087. dlopen("CURDIR/_conftest/conftest1.so",RTLD_LAZY);
  10088. dlopen("CURDIR/_conftest/../_conftest/conftest1.so",RTLD_LAZY);
  10089. __dump_link_map();
  10090. }
  10091. #else
  10092. /* _dl_loaded isn't defined, so this should be either a libc5 (glibc1) system, or a glibc2 system that doesn't have the multiple load bug (i.e., RH6.0).*/
  10093. int main() { printf("./conftest1.so\n"); }
  10094. #endif
  10095. EOF
  10096. $PERL -p -i -e "s/CURDIR/\$ENV{_curdir}/g;" conftest.C
  10097. cat >> conftest1.C <<\EOF
  10098. #include <stdio.h>
  10099. void foo(void) {printf("foo in dll called\n");}
  10100. EOF
  10101. ${CXX-g++} -fPIC -c -g conftest1.C
  10102. ${CXX-g++} -shared -Wl,-h -Wl,conftest1.so -o conftest1.so conftest1.o
  10103. ${CXX-g++} -g conftest.C -o conftest -ldl
  10104. cp -f conftest1.so conftest _conftest
  10105. cd _conftest
  10106. if test `./conftest | grep conftest1.so | wc -l` -gt 1
  10107. then
  10108. echo
  10109. echo "*** Your libc has a bug that can result in loading the same dynamic"
  10110. echo "*** library multiple times. This bug is known to be fixed in glibc-2.0.7-32"
  10111. echo "*** or later. However, if you choose not to upgrade, the only effect"
  10112. echo "*** will be excessive memory usage at runtime."
  10113. echo
  10114. fi
  10115. cd ${_curdir}
  10116. rm -rf conftest* _conftest
  10117. ;;
  10118. esac
  10119. if test "$GNU_CXX"; then
  10120. echo $ac_n "checking for C++ exceptions flag""... $ac_c" 1>&6
  10121. echo "configure:11219: checking for C++ exceptions flag" >&5
  10122. if eval "test \"`echo '$''{'ac_cv_cxx_exceptions_flags'+set}'`\" = set"; then
  10123. echo $ac_n "(cached) $ac_c" 1>&6
  10124. else
  10125. echo "int main() { return 0; }" | cat > conftest.C
  10126. ${CXX-g++} ${CXXFLAGS} -c -fno-handle-exceptions conftest.C > conftest.out 2>&1
  10127. if egrep "warning.*renamed" conftest.out >/dev/null; then
  10128. ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions
  10129. else
  10130. ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-handle-exceptions
  10131. fi
  10132. rm -f conftest*
  10133. fi
  10134. echo "$ac_t""$ac_cv_cxx_exceptions_flags" 1>&6
  10135. _MOZ_EXCEPTIONS_FLAGS_OFF=$ac_cv_cxx_exceptions_flags
  10136. _MOZ_EXCEPTIONS_FLAGS_ON=`echo $ac_cv_cxx_exceptions_flags | sed 's|no-||'`
  10137. fi
  10138. ac_ext=C
  10139. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10140. ac_cpp='$CXXCPP $CPPFLAGS'
  10141. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10142. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10143. cross_compiling=$ac_cv_prog_cxx_cross
  10144. HAVE_GCC3_ABI=
  10145. if test "$GNU_CC"; then
  10146. echo $ac_n "checking for gcc 3.0 ABI""... $ac_c" 1>&6
  10147. echo "configure:11254: checking for gcc 3.0 ABI" >&5
  10148. if eval "test \"`echo '$''{'ac_cv_gcc_three_abi'+set}'`\" = set"; then
  10149. echo $ac_n "(cached) $ac_c" 1>&6
  10150. else
  10151. cat > conftest.$ac_ext <<EOF
  10152. #line 11259 "configure"
  10153. #include "confdefs.h"
  10154. int main() {
  10155. #if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */
  10156. return 0;
  10157. #else
  10158. #error Not gcc3.
  10159. #endif
  10160. ; return 0; }
  10161. EOF
  10162. if { (eval echo configure:11272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10163. rm -rf conftest*
  10164. ac_cv_gcc_three_abi="yes"
  10165. else
  10166. echo "configure: failed program was:" >&5
  10167. cat conftest.$ac_ext >&5
  10168. rm -rf conftest*
  10169. ac_cv_gcc_three_abi="no"
  10170. fi
  10171. rm -f conftest*
  10172. fi
  10173. echo "$ac_t""$ac_cv_gcc_three_abi" 1>&6
  10174. if test "$ac_cv_gcc_three_abi" = "yes"; then
  10175. TARGET_COMPILER_ABI="${TARGET_COMPILER_ABI-gcc3}"
  10176. HAVE_GCC3_ABI=1
  10177. else
  10178. TARGET_COMPILER_ABI="${TARGET_COMPILER_ABI-gcc2}"
  10179. fi
  10180. fi
  10181. echo $ac_n "checking for C++ \"explicit\" keyword""... $ac_c" 1>&6
  10182. echo "configure:11296: checking for C++ \"explicit\" keyword" >&5
  10183. if eval "test \"`echo '$''{'ac_cv_cpp_explicit'+set}'`\" = set"; then
  10184. echo $ac_n "(cached) $ac_c" 1>&6
  10185. else
  10186. cat > conftest.$ac_ext <<EOF
  10187. #line 11301 "configure"
  10188. #include "confdefs.h"
  10189. class X {
  10190. public: explicit X(int i) : i_(i) {}
  10191. private: int i_;
  10192. };
  10193. int main() {
  10194. X x(3);
  10195. ; return 0; }
  10196. EOF
  10197. if { (eval echo configure:11311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10198. rm -rf conftest*
  10199. ac_cv_cpp_explicit=yes
  10200. else
  10201. echo "configure: failed program was:" >&5
  10202. cat conftest.$ac_ext >&5
  10203. rm -rf conftest*
  10204. ac_cv_cpp_explicit=no
  10205. fi
  10206. rm -f conftest*
  10207. fi
  10208. echo "$ac_t""$ac_cv_cpp_explicit" 1>&6
  10209. if test "$ac_cv_cpp_explicit" = yes ; then
  10210. cat >> confdefs.h <<\EOF
  10211. #define HAVE_CPP_EXPLICIT 1
  10212. EOF
  10213. fi
  10214. echo $ac_n "checking for C++ \"typename\" keyword""... $ac_c" 1>&6
  10215. echo "configure:11332: checking for C++ \"typename\" keyword" >&5
  10216. if eval "test \"`echo '$''{'ac_cv_cpp_typename'+set}'`\" = set"; then
  10217. echo $ac_n "(cached) $ac_c" 1>&6
  10218. else
  10219. cat > conftest.$ac_ext <<EOF
  10220. #line 11337 "configure"
  10221. #include "confdefs.h"
  10222. class param {
  10223. public:
  10224. typedef unsigned long num_type;
  10225. };
  10226. template <class T> class tplt {
  10227. public:
  10228. typedef typename T::num_type t_num_type;
  10229. t_num_type foo(typename T::num_type num) {
  10230. return num;
  10231. }
  10232. };
  10233. int main() {
  10234. tplt<param> A;
  10235. A.foo(0);
  10236. ; return 0; }
  10237. EOF
  10238. if { (eval echo configure:11356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10239. rm -rf conftest*
  10240. ac_cv_cpp_typename=yes
  10241. else
  10242. echo "configure: failed program was:" >&5
  10243. cat conftest.$ac_ext >&5
  10244. rm -rf conftest*
  10245. ac_cv_cpp_typename=no
  10246. fi
  10247. rm -f conftest*
  10248. fi
  10249. echo "$ac_t""$ac_cv_cpp_typename" 1>&6
  10250. if test "$ac_cv_cpp_typename" = yes ; then
  10251. cat >> confdefs.h <<\EOF
  10252. #define HAVE_CPP_TYPENAME 1
  10253. EOF
  10254. fi
  10255. echo $ac_n "checking for modern C++ template specialization syntax support""... $ac_c" 1>&6
  10256. echo "configure:11377: checking for modern C++ template specialization syntax support" >&5
  10257. if eval "test \"`echo '$''{'ac_cv_cpp_modern_specialize_template_syntax'+set}'`\" = set"; then
  10258. echo $ac_n "(cached) $ac_c" 1>&6
  10259. else
  10260. cat > conftest.$ac_ext <<EOF
  10261. #line 11382 "configure"
  10262. #include "confdefs.h"
  10263. template <class T> struct X { int a; };
  10264. class Y {};
  10265. template <> struct X<Y> { double a; };
  10266. int main() {
  10267. X<int> int_x;
  10268. X<Y> y_x;
  10269. ; return 0; }
  10270. EOF
  10271. if { (eval echo configure:11392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10272. rm -rf conftest*
  10273. ac_cv_cpp_modern_specialize_template_syntax=yes
  10274. else
  10275. echo "configure: failed program was:" >&5
  10276. cat conftest.$ac_ext >&5
  10277. rm -rf conftest*
  10278. ac_cv_cpp_modern_specialize_template_syntax=no
  10279. fi
  10280. rm -f conftest*
  10281. fi
  10282. echo "$ac_t""$ac_cv_cpp_modern_specialize_template_syntax" 1>&6
  10283. if test "$ac_cv_cpp_modern_specialize_template_syntax" = yes ; then
  10284. cat >> confdefs.h <<\EOF
  10285. #define HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX 1
  10286. EOF
  10287. fi
  10288. echo $ac_n "checking whether partial template specialization works""... $ac_c" 1>&6
  10289. echo "configure:11414: checking whether partial template specialization works" >&5
  10290. if eval "test \"`echo '$''{'ac_cv_cpp_partial_specialization'+set}'`\" = set"; then
  10291. echo $ac_n "(cached) $ac_c" 1>&6
  10292. else
  10293. cat > conftest.$ac_ext <<EOF
  10294. #line 11419 "configure"
  10295. #include "confdefs.h"
  10296. template <class T> class Foo {};
  10297. template <class T> class Foo<T*> {};
  10298. int main() {
  10299. return 0;
  10300. ; return 0; }
  10301. EOF
  10302. if { (eval echo configure:11427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10303. rm -rf conftest*
  10304. ac_cv_cpp_partial_specialization=yes
  10305. else
  10306. echo "configure: failed program was:" >&5
  10307. cat conftest.$ac_ext >&5
  10308. rm -rf conftest*
  10309. ac_cv_cpp_partial_specialization=no
  10310. fi
  10311. rm -f conftest*
  10312. fi
  10313. echo "$ac_t""$ac_cv_cpp_partial_specialization" 1>&6
  10314. if test "$ac_cv_cpp_partial_specialization" = yes ; then
  10315. cat >> confdefs.h <<\EOF
  10316. #define HAVE_CPP_PARTIAL_SPECIALIZATION 1
  10317. EOF
  10318. fi
  10319. echo $ac_n "checking whether operators must be re-defined for templates derived from templates""... $ac_c" 1>&6
  10320. echo "configure:11448: checking whether operators must be re-defined for templates derived from templates" >&5
  10321. if eval "test \"`echo '$''{'ac_cv_need_derived_template_operators'+set}'`\" = set"; then
  10322. echo $ac_n "(cached) $ac_c" 1>&6
  10323. else
  10324. cat > conftest.$ac_ext <<EOF
  10325. #line 11453 "configure"
  10326. #include "confdefs.h"
  10327. template <class T> class Base { };
  10328. template <class T>
  10329. Base<T> operator+(const Base<T>& lhs, const Base<T>& rhs) { return lhs; }
  10330. template <class T> class Derived : public Base<T> { };
  10331. int main() {
  10332. Derived<char> a, b;
  10333. Base<char> c = a + b;
  10334. return 0;
  10335. ; return 0; }
  10336. EOF
  10337. if { (eval echo configure:11465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10338. rm -rf conftest*
  10339. ac_cv_need_derived_template_operators=no
  10340. else
  10341. echo "configure: failed program was:" >&5
  10342. cat conftest.$ac_ext >&5
  10343. rm -rf conftest*
  10344. ac_cv_need_derived_template_operators=yes
  10345. fi
  10346. rm -f conftest*
  10347. fi
  10348. echo "$ac_t""$ac_cv_need_derived_template_operators" 1>&6
  10349. if test "$ac_cv_need_derived_template_operators" = yes ; then
  10350. cat >> confdefs.h <<\EOF
  10351. #define NEED_CPP_DERIVED_TEMPLATE_OPERATORS 1
  10352. EOF
  10353. fi
  10354. echo $ac_n "checking whether we need to cast a derived template to pass as its base class""... $ac_c" 1>&6
  10355. echo "configure:11487: checking whether we need to cast a derived template to pass as its base class" >&5
  10356. if eval "test \"`echo '$''{'ac_cv_need_cpp_template_cast_to_base'+set}'`\" = set"; then
  10357. echo $ac_n "(cached) $ac_c" 1>&6
  10358. else
  10359. cat > conftest.$ac_ext <<EOF
  10360. #line 11492 "configure"
  10361. #include "confdefs.h"
  10362. template <class T> class Base { };
  10363. template <class T> class Derived : public Base<T> { };
  10364. template <class T> int foo(const Base<T>&) { return 0; }
  10365. int main() {
  10366. Derived<char> bar; return foo(bar);
  10367. ; return 0; }
  10368. EOF
  10369. if { (eval echo configure:11501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10370. rm -rf conftest*
  10371. ac_cv_need_cpp_template_cast_to_base=no
  10372. else
  10373. echo "configure: failed program was:" >&5
  10374. cat conftest.$ac_ext >&5
  10375. rm -rf conftest*
  10376. ac_cv_need_cpp_template_cast_to_base=yes
  10377. fi
  10378. rm -f conftest*
  10379. fi
  10380. echo "$ac_t""$ac_cv_need_cpp_template_cast_to_base" 1>&6
  10381. if test "$ac_cv_need_cpp_template_cast_to_base" = yes ; then
  10382. cat >> confdefs.h <<\EOF
  10383. #define NEED_CPP_TEMPLATE_CAST_TO_BASE 1
  10384. EOF
  10385. fi
  10386. echo $ac_n "checking whether the compiler can resolve const ambiguities for templates""... $ac_c" 1>&6
  10387. echo "configure:11522: checking whether the compiler can resolve const ambiguities for templates" >&5
  10388. if eval "test \"`echo '$''{'ac_cv_can_resolve_const_ambiguity'+set}'`\" = set"; then
  10389. echo $ac_n "(cached) $ac_c" 1>&6
  10390. else
  10391. cat > conftest.$ac_ext <<EOF
  10392. #line 11527 "configure"
  10393. #include "confdefs.h"
  10394. template <class T> class ptrClass {
  10395. public: T* ptr;
  10396. };
  10397. template <class T> T* a(ptrClass<T> *arg) {
  10398. return arg->ptr;
  10399. }
  10400. template <class T>
  10401. const T* a(const ptrClass<T> *arg) {
  10402. return arg->ptr;
  10403. }
  10404. int main() {
  10405. ptrClass<int> i;
  10406. a(&i);
  10407. ; return 0; }
  10408. EOF
  10409. if { (eval echo configure:11548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10410. rm -rf conftest*
  10411. ac_cv_can_resolve_const_ambiguity=yes
  10412. else
  10413. echo "configure: failed program was:" >&5
  10414. cat conftest.$ac_ext >&5
  10415. rm -rf conftest*
  10416. ac_cv_can_resolve_const_ambiguity=no
  10417. fi
  10418. rm -f conftest*
  10419. fi
  10420. echo "$ac_t""$ac_cv_can_resolve_const_ambiguity" 1>&6
  10421. if test "$ac_cv_can_resolve_const_ambiguity" = no ; then
  10422. cat >> confdefs.h <<\EOF
  10423. #define CANT_RESOLVE_CPP_CONST_AMBIGUITY 1
  10424. EOF
  10425. fi
  10426. echo $ac_n "checking whether the C++ \"using\" keyword can change access""... $ac_c" 1>&6
  10427. echo "configure:11570: checking whether the C++ \"using\" keyword can change access" >&5
  10428. if eval "test \"`echo '$''{'ac_cv_cpp_access_changing_using2'+set}'`\" = set"; then
  10429. echo $ac_n "(cached) $ac_c" 1>&6
  10430. else
  10431. cat > conftest.$ac_ext <<EOF
  10432. #line 11575 "configure"
  10433. #include "confdefs.h"
  10434. class A { protected: int foo() { return 0; } };
  10435. class B : public A { public: using A::foo; };
  10436. int main() {
  10437. B b; return b.foo();
  10438. ; return 0; }
  10439. EOF
  10440. if { (eval echo configure:11583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10441. rm -rf conftest*
  10442. cat > conftest.$ac_ext <<EOF
  10443. #line 11586 "configure"
  10444. #include "confdefs.h"
  10445. class A { public: int foo() { return 1; } };
  10446. class B : public A { private: using A::foo; };
  10447. int main() {
  10448. B b; return b.foo();
  10449. ; return 0; }
  10450. EOF
  10451. if { (eval echo configure:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10452. rm -rf conftest*
  10453. ac_cv_cpp_access_changing_using2=no
  10454. else
  10455. echo "configure: failed program was:" >&5
  10456. cat conftest.$ac_ext >&5
  10457. rm -rf conftest*
  10458. ac_cv_cpp_access_changing_using2=yes
  10459. fi
  10460. rm -f conftest*
  10461. else
  10462. echo "configure: failed program was:" >&5
  10463. cat conftest.$ac_ext >&5
  10464. rm -rf conftest*
  10465. ac_cv_cpp_access_changing_using2=no
  10466. fi
  10467. rm -f conftest*
  10468. fi
  10469. echo "$ac_t""$ac_cv_cpp_access_changing_using2" 1>&6
  10470. if test "$ac_cv_cpp_access_changing_using2" = yes ; then
  10471. cat >> confdefs.h <<\EOF
  10472. #define HAVE_CPP_ACCESS_CHANGING_USING 1
  10473. EOF
  10474. fi
  10475. echo $ac_n "checking whether the C++ \"using\" keyword resolves ambiguity""... $ac_c" 1>&6
  10476. echo "configure:11622: checking whether the C++ \"using\" keyword resolves ambiguity" >&5
  10477. if eval "test \"`echo '$''{'ac_cv_cpp_ambiguity_resolving_using'+set}'`\" = set"; then
  10478. echo $ac_n "(cached) $ac_c" 1>&6
  10479. else
  10480. cat > conftest.$ac_ext <<EOF
  10481. #line 11627 "configure"
  10482. #include "confdefs.h"
  10483. class X {
  10484. public: int go(const X&) {return 3;}
  10485. int jo(const X&) {return 3;}
  10486. };
  10487. class Y : public X {
  10488. public: int go(int) {return 2;}
  10489. int jo(int) {return 2;}
  10490. using X::jo;
  10491. private: using X::go;
  10492. };
  10493. int main() {
  10494. X x; Y y; y.jo(x);
  10495. ; return 0; }
  10496. EOF
  10497. if { (eval echo configure:11643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10498. rm -rf conftest*
  10499. ac_cv_cpp_ambiguity_resolving_using=yes
  10500. else
  10501. echo "configure: failed program was:" >&5
  10502. cat conftest.$ac_ext >&5
  10503. rm -rf conftest*
  10504. ac_cv_cpp_ambiguity_resolving_using=no
  10505. fi
  10506. rm -f conftest*
  10507. fi
  10508. echo "$ac_t""$ac_cv_cpp_ambiguity_resolving_using" 1>&6
  10509. if test "$ac_cv_cpp_ambiguity_resolving_using" = yes ; then
  10510. cat >> confdefs.h <<\EOF
  10511. #define HAVE_CPP_AMBIGUITY_RESOLVING_USING 1
  10512. EOF
  10513. fi
  10514. echo $ac_n "checking for \"std::\" namespace""... $ac_c" 1>&6
  10515. echo "configure:11664: checking for \"std::\" namespace" >&5
  10516. if eval "test \"`echo '$''{'ac_cv_cpp_namespace_std'+set}'`\" = set"; then
  10517. echo $ac_n "(cached) $ac_c" 1>&6
  10518. else
  10519. cat > conftest.$ac_ext <<EOF
  10520. #line 11669 "configure"
  10521. #include "confdefs.h"
  10522. #include <algorithm>
  10523. int main() {
  10524. return std::min(0, 1);
  10525. ; return 0; }
  10526. EOF
  10527. if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10528. rm -rf conftest*
  10529. ac_cv_cpp_namespace_std=yes
  10530. else
  10531. echo "configure: failed program was:" >&5
  10532. cat conftest.$ac_ext >&5
  10533. rm -rf conftest*
  10534. ac_cv_cpp_namespace_std=no
  10535. fi
  10536. rm -f conftest*
  10537. fi
  10538. echo "$ac_t""$ac_cv_cpp_namespace_std" 1>&6
  10539. if test "$ac_cv_cpp_namespace_std" = yes ; then
  10540. cat >> confdefs.h <<\EOF
  10541. #define HAVE_CPP_NAMESPACE_STD 1
  10542. EOF
  10543. fi
  10544. echo $ac_n "checking whether standard template operator!=() is ambiguous""... $ac_c" 1>&6
  10545. echo "configure:11697: checking whether standard template operator!=() is ambiguous" >&5
  10546. if eval "test \"`echo '$''{'ac_cv_cpp_unambiguous_std_notequal'+set}'`\" = set"; then
  10547. echo $ac_n "(cached) $ac_c" 1>&6
  10548. else
  10549. cat > conftest.$ac_ext <<EOF
  10550. #line 11702 "configure"
  10551. #include "confdefs.h"
  10552. #include <algorithm>
  10553. struct T1 {};
  10554. int operator==(const T1&, const T1&) { return 0; }
  10555. int operator!=(const T1&, const T1&) { return 0; }
  10556. int main() {
  10557. T1 a,b; return a != b;
  10558. ; return 0; }
  10559. EOF
  10560. if { (eval echo configure:11712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10561. rm -rf conftest*
  10562. ac_cv_cpp_unambiguous_std_notequal=unambiguous
  10563. else
  10564. echo "configure: failed program was:" >&5
  10565. cat conftest.$ac_ext >&5
  10566. rm -rf conftest*
  10567. ac_cv_cpp_unambiguous_std_notequal=ambiguous
  10568. fi
  10569. rm -f conftest*
  10570. fi
  10571. echo "$ac_t""$ac_cv_cpp_unambiguous_std_notequal" 1>&6
  10572. if test "$ac_cv_cpp_unambiguous_std_notequal" = unambiguous ; then
  10573. cat >> confdefs.h <<\EOF
  10574. #define HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL 1
  10575. EOF
  10576. fi
  10577. echo $ac_n "checking for C++ reinterpret_cast""... $ac_c" 1>&6
  10578. echo "configure:11734: checking for C++ reinterpret_cast" >&5
  10579. if eval "test \"`echo '$''{'ac_cv_cpp_reinterpret_cast'+set}'`\" = set"; then
  10580. echo $ac_n "(cached) $ac_c" 1>&6
  10581. else
  10582. cat > conftest.$ac_ext <<EOF
  10583. #line 11739 "configure"
  10584. #include "confdefs.h"
  10585. struct X { int i; };
  10586. struct Y { int i; };
  10587. int main() {
  10588. X x; X*const z = &x;Y*y = reinterpret_cast<Y*>(z);
  10589. ; return 0; }
  10590. EOF
  10591. if { (eval echo configure:11747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10592. rm -rf conftest*
  10593. ac_cv_cpp_reinterpret_cast=yes
  10594. else
  10595. echo "configure: failed program was:" >&5
  10596. cat conftest.$ac_ext >&5
  10597. rm -rf conftest*
  10598. ac_cv_cpp_reinterpret_cast=no
  10599. fi
  10600. rm -f conftest*
  10601. fi
  10602. echo "$ac_t""$ac_cv_cpp_reinterpret_cast" 1>&6
  10603. if test "$ac_cv_cpp_reinterpret_cast" = yes ; then
  10604. cat >> confdefs.h <<\EOF
  10605. #define HAVE_CPP_NEW_CASTS 1
  10606. EOF
  10607. fi
  10608. echo $ac_n "checking for C++ dynamic_cast to void*""... $ac_c" 1>&6
  10609. echo "configure:11768: checking for C++ dynamic_cast to void*" >&5
  10610. if eval "test \"`echo '$''{'ac_cv_cpp_dynamic_cast_void_ptr'+set}'`\" = set"; then
  10611. echo $ac_n "(cached) $ac_c" 1>&6
  10612. else
  10613. if test "$cross_compiling" = yes; then
  10614. ac_cv_cpp_dynamic_cast_void_ptr=no
  10615. else
  10616. cat > conftest.$ac_ext <<EOF
  10617. #line 11776 "configure"
  10618. #include "confdefs.h"
  10619. #ifdef __cplusplus
  10620. extern "C" void exit(int);
  10621. #endif
  10622. class X { int i; public: virtual ~X() { } };
  10623. class Y { int j; public: virtual ~Y() { } };
  10624. class Z : public X, public Y { int k; };
  10625. int main() {
  10626. Z mdo;
  10627. X *subx = (X*)&mdo;
  10628. Y *suby = (Y*)&mdo;
  10629. return !((((void*)&mdo != (void*)subx) &&
  10630. ((void*)&mdo == dynamic_cast<void*>(subx))) ||
  10631. (((void*)&mdo != (void*)suby) &&
  10632. ((void*)&mdo == dynamic_cast<void*>(suby))));
  10633. }
  10634. EOF
  10635. if { (eval echo configure:11795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10636. then
  10637. ac_cv_cpp_dynamic_cast_void_ptr=yes
  10638. else
  10639. echo "configure: failed program was:" >&5
  10640. cat conftest.$ac_ext >&5
  10641. rm -fr conftest*
  10642. ac_cv_cpp_dynamic_cast_void_ptr=no
  10643. fi
  10644. rm -fr conftest*
  10645. fi
  10646. fi
  10647. echo "$ac_t""$ac_cv_cpp_dynamic_cast_void_ptr" 1>&6
  10648. if test "$ac_cv_cpp_dynamic_cast_void_ptr" = yes ; then
  10649. cat >> confdefs.h <<\EOF
  10650. #define HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR 1
  10651. EOF
  10652. fi
  10653. echo $ac_n "checking whether C++ requires implementation of unused virtual methods""... $ac_c" 1>&6
  10654. echo "configure:11819: checking whether C++ requires implementation of unused virtual methods" >&5
  10655. if eval "test \"`echo '$''{'ac_cv_cpp_unused_required'+set}'`\" = set"; then
  10656. echo $ac_n "(cached) $ac_c" 1>&6
  10657. else
  10658. cat > conftest.$ac_ext <<EOF
  10659. #line 11824 "configure"
  10660. #include "confdefs.h"
  10661. class X {private: virtual void never_called();};
  10662. int main() {
  10663. X x;
  10664. ; return 0; }
  10665. EOF
  10666. if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10667. rm -rf conftest*
  10668. ac_cv_cpp_unused_required=no
  10669. else
  10670. echo "configure: failed program was:" >&5
  10671. cat conftest.$ac_ext >&5
  10672. rm -rf conftest*
  10673. ac_cv_cpp_unused_required=yes
  10674. fi
  10675. rm -f conftest*
  10676. fi
  10677. echo "$ac_t""$ac_cv_cpp_unused_required" 1>&6
  10678. if test "$ac_cv_cpp_unused_required" = yes ; then
  10679. cat >> confdefs.h <<\EOF
  10680. #define NEED_CPP_UNUSED_IMPLEMENTATIONS 1
  10681. EOF
  10682. fi
  10683. echo $ac_n "checking for trouble comparing to zero near std::operator!=()""... $ac_c" 1>&6
  10684. echo "configure:11854: checking for trouble comparing to zero near std::operator!=()" >&5
  10685. if eval "test \"`echo '$''{'ac_cv_trouble_comparing_to_zero'+set}'`\" = set"; then
  10686. echo $ac_n "(cached) $ac_c" 1>&6
  10687. else
  10688. cat > conftest.$ac_ext <<EOF
  10689. #line 11859 "configure"
  10690. #include "confdefs.h"
  10691. #include <algorithm>
  10692. template <class T> class Foo {};
  10693. class T2;
  10694. template <class T> int operator==(const T2*, const T&) { return 0; }
  10695. template <class T> int operator!=(const T2*, const T&) { return 0; }
  10696. int main() {
  10697. Foo<int> f; return (0 != f);
  10698. ; return 0; }
  10699. EOF
  10700. if { (eval echo configure:11870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10701. rm -rf conftest*
  10702. ac_cv_trouble_comparing_to_zero=no
  10703. else
  10704. echo "configure: failed program was:" >&5
  10705. cat conftest.$ac_ext >&5
  10706. rm -rf conftest*
  10707. ac_cv_trouble_comparing_to_zero=yes
  10708. fi
  10709. rm -f conftest*
  10710. fi
  10711. echo "$ac_t""$ac_cv_trouble_comparing_to_zero" 1>&6
  10712. if test "$ac_cv_trouble_comparing_to_zero" = yes ; then
  10713. cat >> confdefs.h <<\EOF
  10714. #define HAVE_CPP_TROUBLE_COMPARING_TO_ZERO 1
  10715. EOF
  10716. fi
  10717. ac_ext=c
  10718. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10719. ac_cpp='$CPP $CPPFLAGS'
  10720. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10721. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10722. cross_compiling=$ac_cv_prog_cc_cross
  10723. echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  10724. echo "configure:11902: checking for LC_MESSAGES" >&5
  10725. if eval "test \"`echo '$''{'ac_cv_i18n_lc_messages'+set}'`\" = set"; then
  10726. echo $ac_n "(cached) $ac_c" 1>&6
  10727. else
  10728. cat > conftest.$ac_ext <<EOF
  10729. #line 11907 "configure"
  10730. #include "confdefs.h"
  10731. #include <locale.h>
  10732. int main() {
  10733. int category = LC_MESSAGES;
  10734. ; return 0; }
  10735. EOF
  10736. if { (eval echo configure:11914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10737. rm -rf conftest*
  10738. ac_cv_i18n_lc_messages=yes
  10739. else
  10740. echo "configure: failed program was:" >&5
  10741. cat conftest.$ac_ext >&5
  10742. rm -rf conftest*
  10743. ac_cv_i18n_lc_messages=no
  10744. fi
  10745. rm -f conftest*
  10746. fi
  10747. echo "$ac_t""$ac_cv_i18n_lc_messages" 1>&6
  10748. if test "$ac_cv_i18n_lc_messages" = yes; then
  10749. cat >> confdefs.h <<\EOF
  10750. #define HAVE_I18N_LC_MESSAGES 1
  10751. EOF
  10752. fi
  10753. fi # SKIP_COMPILER_CHECKS
  10754. TARGET_XPCOM_ABI=
  10755. if test -n "${CPU_ARCH}" -a -n "${TARGET_COMPILER_ABI}"; then
  10756. TARGET_XPCOM_ABI="${CPU_ARCH}-${TARGET_COMPILER_ABI}"
  10757. fi
  10758. # External Packages
  10759. MOZ_ENABLE_LIBXUL=
  10760. # Check whether --with-libxul-sdk or --without-libxul-sdk was given.
  10761. if test "${with_libxul_sdk+set}" = set; then
  10762. withval="$with_libxul_sdk"
  10763. LIBXUL_SDK_DIR=$withval
  10764. fi
  10765. if test "$LIBXUL_SDK_DIR" = "yes"; then
  10766. { echo "configure: error: --with-libxul-sdk must specify a path" 1>&2; exit 1; }
  10767. elif test -n "$LIBXUL_SDK_DIR" -a "$LIBXUL_SDK_DIR" != "no"; then
  10768. LIBXUL_SDK=`cd "$LIBXUL_SDK_DIR" && pwd`
  10769. if test ! -f "$LIBXUL_SDK/sdk/include/xpcom-config.h"; then
  10770. { echo "configure: error: $LIBXUL_SDK/sdk/include/xpcom-config.h doesn't exist" 1>&2; exit 1; }
  10771. fi
  10772. MOZ_ENABLE_LIBXUL=1
  10773. fi
  10774. # Check whether --with-system-nspr or --without-system-nspr was given.
  10775. if test "${with_system_nspr+set}" = set; then
  10776. withval="$with_system_nspr"
  10777. if test "$withval" = "yes"; then
  10778. _USE_SYSTEM_NSPR=1
  10779. elif test "$withval" = "no"; then
  10780. :
  10781. else
  10782. { echo "configure: error: Option, system-nspr, does not take an argument ($withval)." 1>&2; exit 1; }
  10783. fi
  10784. fi
  10785. if test -n "$_USE_SYSTEM_NSPR"; then
  10786. # Check whether --with-nspr-prefix or --without-nspr-prefix was given.
  10787. if test "${with_nspr_prefix+set}" = set; then
  10788. withval="$with_nspr_prefix"
  10789. nspr_config_prefix="$withval"
  10790. else
  10791. nspr_config_prefix=""
  10792. fi
  10793. # Check whether --with-nspr-exec-prefix or --without-nspr-exec-prefix was given.
  10794. if test "${with_nspr_exec_prefix+set}" = set; then
  10795. withval="$with_nspr_exec_prefix"
  10796. nspr_config_exec_prefix="$withval"
  10797. else
  10798. nspr_config_exec_prefix=""
  10799. fi
  10800. if test -n "$nspr_config_exec_prefix"; then
  10801. nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix"
  10802. if test -z "$NSPR_CONFIG"; then
  10803. NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config
  10804. fi
  10805. fi
  10806. if test -n "$nspr_config_prefix"; then
  10807. nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix"
  10808. if test -z "$NSPR_CONFIG"; then
  10809. NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config
  10810. fi
  10811. fi
  10812. unset ac_cv_path_NSPR_CONFIG
  10813. # Extract the first word of "nspr-config", so it can be a program name with args.
  10814. set dummy nspr-config; ac_word=$2
  10815. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10816. echo "configure:12017: checking for $ac_word" >&5
  10817. if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then
  10818. echo $ac_n "(cached) $ac_c" 1>&6
  10819. else
  10820. case "$NSPR_CONFIG" in
  10821. /*)
  10822. ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a path.
  10823. ;;
  10824. ?:/*)
  10825. ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a dos path.
  10826. ;;
  10827. *)
  10828. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10829. ac_dummy="$PATH"
  10830. for ac_dir in $ac_dummy; do
  10831. test -z "$ac_dir" && ac_dir=.
  10832. if test -f $ac_dir/$ac_word; then
  10833. ac_cv_path_NSPR_CONFIG="$ac_dir/$ac_word"
  10834. break
  10835. fi
  10836. done
  10837. IFS="$ac_save_ifs"
  10838. test -z "$ac_cv_path_NSPR_CONFIG" && ac_cv_path_NSPR_CONFIG="no"
  10839. ;;
  10840. esac
  10841. fi
  10842. NSPR_CONFIG="$ac_cv_path_NSPR_CONFIG"
  10843. if test -n "$NSPR_CONFIG"; then
  10844. echo "$ac_t""$NSPR_CONFIG" 1>&6
  10845. else
  10846. echo "$ac_t""no" 1>&6
  10847. fi
  10848. min_nspr_version=4.7.0
  10849. echo $ac_n "checking for NSPR - version >= $min_nspr_version""... $ac_c" 1>&6
  10850. echo "configure:12052: checking for NSPR - version >= $min_nspr_version" >&5
  10851. no_nspr=""
  10852. if test "$NSPR_CONFIG" = "no"; then
  10853. no_nspr="yes"
  10854. else
  10855. NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags`
  10856. NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs`
  10857. nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \
  10858. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  10859. nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \
  10860. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  10861. nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \
  10862. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  10863. min_nspr_major_version=`echo $min_nspr_version | \
  10864. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  10865. min_nspr_minor_version=`echo $min_nspr_version | \
  10866. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  10867. min_nspr_micro_version=`echo $min_nspr_version | \
  10868. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  10869. if test "$nspr_config_major_version" -ne "$min_nspr_major_version"; then
  10870. no_nspr="yes"
  10871. elif test "$nspr_config_major_version" -eq "$min_nspr_major_version" &&
  10872. test "$nspr_config_minor_version" -lt "$min_nspr_minor_version"; then
  10873. no_nspr="yes"
  10874. elif test "$nspr_config_major_version" -eq "$min_nspr_major_version" &&
  10875. test "$nspr_config_minor_version" -eq "$min_nspr_minor_version" &&
  10876. test "$nspr_config_micro_version" -lt "$min_nspr_micro_version"; then
  10877. no_nspr="yes"
  10878. fi
  10879. fi
  10880. if test -z "$no_nspr"; then
  10881. echo "$ac_t""yes" 1>&6
  10882. MOZ_NATIVE_NSPR=1
  10883. else
  10884. echo "$ac_t""no" 1>&6
  10885. fi
  10886. fi
  10887. if test -n "$MOZ_NATIVE_NSPR"; then
  10888. _SAVE_CFLAGS=$CFLAGS
  10889. CFLAGS="$CFLAGS $NSPR_CFLAGS"
  10890. cat > conftest.$ac_ext <<EOF
  10891. #line 12103 "configure"
  10892. #include "confdefs.h"
  10893. #include "prlog.h"
  10894. int main() {
  10895. #ifndef PR_STATIC_ASSERT
  10896. #error PR_STATIC_ASSERT not defined
  10897. #endif
  10898. ; return 0; }
  10899. EOF
  10900. if { (eval echo configure:12112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10901. rm -rf conftest*
  10902. MOZ_NATIVE_NSPR=1
  10903. else
  10904. echo "configure: failed program was:" >&5
  10905. cat conftest.$ac_ext >&5
  10906. rm -rf conftest*
  10907. { echo "configure: error: system NSPR does not support PR_STATIC_ASSERT" 1>&2; exit 1; }
  10908. fi
  10909. rm -f conftest*
  10910. CFLAGS=$_SAVE_CFLAGS
  10911. else
  10912. NSPR_CFLAGS='`$(DEPTH)/nsprpub/config/nspr-config --prefix=$(LIBXUL_DIST) --includedir=$(LIBXUL_DIST)/include/nspr --cflags`'
  10913. # explicitly set libs for Visual Age C++ for OS/2
  10914. if test "$OS_ARCH" = "OS2" -a "$VACPP" = "yes"; then
  10915. NSPR_LIBS='$(LIBXUL_DIST)/lib/nspr'$NSPR_VERSION'.lib $(LIBXUL_DIST)/lib/plc'$NSPR_VERSION'.lib $(LIBXUL_DIST)/lib/plds'$NSPR_VERSION'.lib '$_PTHREAD_LDFLAGS''
  10916. elif test "$OS_ARCH" = "WINCE"; then
  10917. NSPR_CFLAGS='-I$(LIBXUL_DIST)/include/nspr'
  10918. NSPR_LIBS='$(LIBXUL_DIST)/lib/nspr'$NSPR_VERSION'.lib $(LIBXUL_DIST)/lib/plc'$NSPR_VERSION'.lib $(LIBXUL_DIST)/lib/plds'$NSPR_VERSION'.lib '
  10919. elif test "$OS_ARCH" = "WINNT"; then
  10920. NSPR_CFLAGS='-I$(LIBXUL_DIST)/include/nspr'
  10921. if test -n "$GNU_CC"; then
  10922. NSPR_LIBS="-L\$(LIBXUL_DIST)/lib -lnspr$NSPR_VERSION -lplc$NSPR_VERSION -lplds$NSPR_VERSION"
  10923. else
  10924. NSPR_LIBS='$(LIBXUL_DIST)/lib/nspr'$NSPR_VERSION'.lib $(LIBXUL_DIST)/lib/plc'$NSPR_VERSION'.lib $(LIBXUL_DIST)/lib/plds'$NSPR_VERSION'.lib '
  10925. fi
  10926. else
  10927. NSPR_LIBS='`$(DEPTH)/nsprpub/config/nspr-config --prefix=$(LIBXUL_DIST) --libdir=$(LIBXUL_DIST)/lib --libs`'
  10928. fi
  10929. fi
  10930. # Check whether --with-system-nss or --without-system-nss was given.
  10931. if test "${with_system_nss+set}" = set; then
  10932. withval="$with_system_nss"
  10933. if test "$withval" = "yes"; then
  10934. _USE_SYSTEM_NSS=1
  10935. elif test "$withval" = "no"; then
  10936. :
  10937. else
  10938. { echo "configure: error: Option, system-nss, does not take an argument ($withval)." 1>&2; exit 1; }
  10939. fi
  10940. fi
  10941. if test -n "$_USE_SYSTEM_NSS"; then
  10942. # Check whether --with-nss-prefix or --without-nss-prefix was given.
  10943. if test "${with_nss_prefix+set}" = set; then
  10944. withval="$with_nss_prefix"
  10945. nss_config_prefix="$withval"
  10946. else
  10947. nss_config_prefix=""
  10948. fi
  10949. # Check whether --with-nss-exec-prefix or --without-nss-exec-prefix was given.
  10950. if test "${with_nss_exec_prefix+set}" = set; then
  10951. withval="$with_nss_exec_prefix"
  10952. nss_config_exec_prefix="$withval"
  10953. else
  10954. nss_config_exec_prefix=""
  10955. fi
  10956. if test -n "$nss_config_exec_prefix"; then
  10957. nss_config_args="$nss_config_args --exec-prefix=$nss_config_exec_prefix"
  10958. if test -z "$NSS_CONFIG"; then
  10959. NSS_CONFIG=$nss_config_exec_prefix/bin/nss-config
  10960. fi
  10961. fi
  10962. if test -n "$nss_config_prefix"; then
  10963. nss_config_args="$nss_config_args --prefix=$nss_config_prefix"
  10964. if test -z "$NSS_CONFIG"; then
  10965. NSS_CONFIG=$nss_config_prefix/bin/nss-config
  10966. fi
  10967. fi
  10968. unset ac_cv_path_NSS_CONFIG
  10969. # Extract the first word of "nss-config", so it can be a program name with args.
  10970. set dummy nss-config; ac_word=$2
  10971. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10972. echo "configure:12194: checking for $ac_word" >&5
  10973. if eval "test \"`echo '$''{'ac_cv_path_NSS_CONFIG'+set}'`\" = set"; then
  10974. echo $ac_n "(cached) $ac_c" 1>&6
  10975. else
  10976. case "$NSS_CONFIG" in
  10977. /*)
  10978. ac_cv_path_NSS_CONFIG="$NSS_CONFIG" # Let the user override the test with a path.
  10979. ;;
  10980. ?:/*)
  10981. ac_cv_path_NSS_CONFIG="$NSS_CONFIG" # Let the user override the test with a dos path.
  10982. ;;
  10983. *)
  10984. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10985. ac_dummy="$PATH"
  10986. for ac_dir in $ac_dummy; do
  10987. test -z "$ac_dir" && ac_dir=.
  10988. if test -f $ac_dir/$ac_word; then
  10989. ac_cv_path_NSS_CONFIG="$ac_dir/$ac_word"
  10990. break
  10991. fi
  10992. done
  10993. IFS="$ac_save_ifs"
  10994. test -z "$ac_cv_path_NSS_CONFIG" && ac_cv_path_NSS_CONFIG="no"
  10995. ;;
  10996. esac
  10997. fi
  10998. NSS_CONFIG="$ac_cv_path_NSS_CONFIG"
  10999. if test -n "$NSS_CONFIG"; then
  11000. echo "$ac_t""$NSS_CONFIG" 1>&6
  11001. else
  11002. echo "$ac_t""no" 1>&6
  11003. fi
  11004. min_nss_version=3.12.0
  11005. echo $ac_n "checking for NSS - version >= $min_nss_version""... $ac_c" 1>&6
  11006. echo "configure:12229: checking for NSS - version >= $min_nss_version" >&5
  11007. no_nss=""
  11008. if test "$NSS_CONFIG" = "no"; then
  11009. no_nss="yes"
  11010. else
  11011. NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags`
  11012. NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs`
  11013. nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \
  11014. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  11015. nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \
  11016. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  11017. nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \
  11018. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  11019. min_nss_major_version=`echo $min_nss_version | \
  11020. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  11021. min_nss_minor_version=`echo $min_nss_version | \
  11022. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  11023. min_nss_micro_version=`echo $min_nss_version | \
  11024. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  11025. if test "$nss_config_major_version" -lt "$min_nss_major_version"; then
  11026. no_nss="yes"
  11027. elif test "$nss_config_major_version" -eq "$min_nss_major_version" &&
  11028. test "$nss_config_minor_version" -lt "$min_nss_minor_version"; then
  11029. no_nss="yes"
  11030. elif test "$nss_config_major_version" -eq "$min_nss_major_version" &&
  11031. test "$nss_config_minor_version" -eq "$min_nss_minor_version" &&
  11032. test "$nss_config_micro_version" -lt "$min_nss_micro_version"; then
  11033. no_nss="yes"
  11034. fi
  11035. fi
  11036. if test -z "$no_nss"; then
  11037. echo "$ac_t""yes" 1>&6
  11038. MOZ_NATIVE_NSS=1
  11039. else
  11040. echo "$ac_t""no" 1>&6
  11041. fi
  11042. fi
  11043. if test -n "$MOZ_NATIVE_NSS"; then
  11044. NSS_LIBS="$NSS_LIBS -lcrmf"
  11045. else
  11046. NSS_CFLAGS='-I$(LIBXUL_DIST)/include/nss'
  11047. NSS_DEP_LIBS="\
  11048. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)crmf.\$(LIB_SUFFIX) \
  11049. \$(LIBXUL_DIST)/lib/\$(DLL_PREFIX)smime$NSS_VERSION\$(DLL_SUFFIX) \
  11050. \$(LIBXUL_DIST)/lib/\$(DLL_PREFIX)ssl$NSS_VERSION\$(DLL_SUFFIX) \
  11051. \$(LIBXUL_DIST)/lib/\$(DLL_PREFIX)nss$NSS_VERSION\$(DLL_SUFFIX) \
  11052. \$(LIBXUL_DIST)/lib/\$(DLL_PREFIX)nssutil$NSS_VERSION\$(DLL_SUFFIX) \
  11053. \$(LIBXUL_DIST)/lib/\$(DLL_PREFIX)softokn$NSS_VERSION\$(DLL_SUFFIX)"
  11054. if test -z "$GNU_CC" && test "$OS_ARCH" = "WINNT" -o "$OS_ARCH" = "WINCE" -o "$OS_ARCH" = "OS2"; then
  11055. NSS_LIBS="\
  11056. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)crmf.\$(LIB_SUFFIX) \
  11057. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)smime$NSS_VERSION.\$(IMPORT_LIB_SUFFIX) \
  11058. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)ssl$NSS_VERSION.\$(IMPORT_LIB_SUFFIX) \
  11059. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)nss$NSS_VERSION.\$(IMPORT_LIB_SUFFIX) \
  11060. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)nssutil$NSS_VERSION.\$(IMPORT_LIB_SUFFIX) \
  11061. \$(LIBXUL_DIST)/lib/\$(LIB_PREFIX)softokn$NSS_VERSION.\$(IMPORT_LIB_SUFFIX)"
  11062. else
  11063. NSS_LIBS='$(LIBS_DIR)'" -lcrmf -lsmime$NSS_VERSION -lssl$NSS_VERSION -lnss$NSS_VERSION -lnssutil$NSS_VERSION -lsoftokn$NSS_VERSION"
  11064. fi
  11065. fi
  11066. if test -z "$SKIP_LIBRARY_CHECKS"; then
  11067. # Check whether --with-system-jpeg or --without-system-jpeg was given.
  11068. if test "${with_system_jpeg+set}" = set; then
  11069. withval="$with_system_jpeg"
  11070. JPEG_DIR=$withval
  11071. fi
  11072. _SAVE_CFLAGS=$CFLAGS
  11073. _SAVE_LDFLAGS=$LDFLAGS
  11074. _SAVE_LIBS=$LIBS
  11075. if test -n "${JPEG_DIR}" -a "${JPEG_DIR}" != "yes"; then
  11076. CFLAGS="-I${JPEG_DIR}/include $CFLAGS"
  11077. LDFLAGS="-L${JPEG_DIR}/lib $LDFLAGS"
  11078. fi
  11079. if test -z "$JPEG_DIR" -o "$JPEG_DIR" = no; then
  11080. SYSTEM_JPEG=
  11081. else
  11082. echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
  11083. echo "configure:12320: checking for jpeg_destroy_compress in -ljpeg" >&5
  11084. ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
  11085. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11086. echo $ac_n "(cached) $ac_c" 1>&6
  11087. else
  11088. ac_save_LIBS="$LIBS"
  11089. LIBS="-ljpeg $JPEG_LIBS $LIBS"
  11090. cat > conftest.$ac_ext <<EOF
  11091. #line 12328 "configure"
  11092. #include "confdefs.h"
  11093. /* Override any gcc2 internal prototype to avoid an error. */
  11094. /* We use char because int might match the return type of a gcc2
  11095. builtin and then its argument prototype would still apply. */
  11096. char jpeg_destroy_compress();
  11097. int main() {
  11098. jpeg_destroy_compress()
  11099. ; return 0; }
  11100. EOF
  11101. if { (eval echo configure:12339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11102. rm -rf conftest*
  11103. eval "ac_cv_lib_$ac_lib_var=yes"
  11104. else
  11105. echo "configure: failed program was:" >&5
  11106. cat conftest.$ac_ext >&5
  11107. rm -rf conftest*
  11108. eval "ac_cv_lib_$ac_lib_var=no"
  11109. fi
  11110. rm -f conftest*
  11111. LIBS="$ac_save_LIBS"
  11112. fi
  11113. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11114. echo "$ac_t""yes" 1>&6
  11115. SYSTEM_JPEG=1 JPEG_LIBS="-ljpeg $JPEG_LIBS"
  11116. else
  11117. echo "$ac_t""no" 1>&6
  11118. SYSTEM_JPEG=
  11119. fi
  11120. fi
  11121. if test "$SYSTEM_JPEG" = 1; then
  11122. LIBS="$JPEG_LIBS $LIBS"
  11123. cat > conftest.$ac_ext <<EOF
  11124. #line 12365 "configure"
  11125. #include "confdefs.h"
  11126. #include <stdio.h>
  11127. #include <sys/types.h>
  11128. #include <jpeglib.h>
  11129. int main() {
  11130. #if JPEG_LIB_VERSION < $MOZJPEG
  11131. #error "Insufficient JPEG library version ($MOZJPEG required)."
  11132. #endif
  11133. ; return 0; }
  11134. EOF
  11135. if { (eval echo configure:12376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11136. rm -rf conftest*
  11137. SYSTEM_JPEG=1
  11138. else
  11139. echo "configure: failed program was:" >&5
  11140. cat conftest.$ac_ext >&5
  11141. rm -rf conftest*
  11142. SYSTEM_JPEG= JPEG_CFLAGS= JPEG_LIBS=
  11143. fi
  11144. rm -f conftest*
  11145. fi
  11146. CFLAGS=$_SAVE_CFLAGS
  11147. LDFLAGS=$_SAVE_LDFLAGS
  11148. LIBS=$_SAVE_LIBS
  11149. if test -n "${JPEG_DIR}" -a -d "${JPEG_DIR}" -a "$SYSTEM_JPEG" = 1; then
  11150. JPEG_CFLAGS="-I${JPEG_DIR}/include"
  11151. JPEG_LIBS="-L${JPEG_DIR}/lib ${JPEG_LIBS}"
  11152. fi
  11153. # Check whether --with-system-zlib or --without-system-zlib was given.
  11154. if test "${with_system_zlib+set}" = set; then
  11155. withval="$with_system_zlib"
  11156. ZLIB_DIR=$withval
  11157. fi
  11158. _SAVE_CFLAGS=$CFLAGS
  11159. _SAVE_LDFLAGS=$LDFLAGS
  11160. _SAVE_LIBS=$LIBS
  11161. if test -n "${ZLIB_DIR}" -a "${ZLIB_DIR}" != "yes"; then
  11162. CFLAGS="-I${ZLIB_DIR}/include $CFLAGS"
  11163. LDFLAGS="-L${ZLIB_DIR}/lib $LDFLAGS"
  11164. fi
  11165. if test -z "$ZLIB_DIR" -o "$ZLIB_DIR" = no; then
  11166. SYSTEM_ZLIB=
  11167. else
  11168. echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
  11169. echo "configure:12414: checking for gzread in -lz" >&5
  11170. ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
  11171. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11172. echo $ac_n "(cached) $ac_c" 1>&6
  11173. else
  11174. ac_save_LIBS="$LIBS"
  11175. LIBS="-lz $ZLIB_LIBS $LIBS"
  11176. cat > conftest.$ac_ext <<EOF
  11177. #line 12422 "configure"
  11178. #include "confdefs.h"
  11179. /* Override any gcc2 internal prototype to avoid an error. */
  11180. /* We use char because int might match the return type of a gcc2
  11181. builtin and then its argument prototype would still apply. */
  11182. char gzread();
  11183. int main() {
  11184. gzread()
  11185. ; return 0; }
  11186. EOF
  11187. if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11188. rm -rf conftest*
  11189. eval "ac_cv_lib_$ac_lib_var=yes"
  11190. else
  11191. echo "configure: failed program was:" >&5
  11192. cat conftest.$ac_ext >&5
  11193. rm -rf conftest*
  11194. eval "ac_cv_lib_$ac_lib_var=no"
  11195. fi
  11196. rm -f conftest*
  11197. LIBS="$ac_save_LIBS"
  11198. fi
  11199. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11200. echo "$ac_t""yes" 1>&6
  11201. SYSTEM_ZLIB=1 ZLIB_LIBS="-lz $ZLIB_LIBS"
  11202. else
  11203. echo "$ac_t""no" 1>&6
  11204. SYSTEM_ZLIB= ZLIB_CFLAGS= ZLIB_LIBS=
  11205. fi
  11206. fi
  11207. if test "$SYSTEM_ZLIB" = 1; then
  11208. LIBS="$ZLIB_LIBS $LIBS"
  11209. cat > conftest.$ac_ext <<EOF
  11210. #line 12458 "configure"
  11211. #include "confdefs.h"
  11212. #include <stdio.h>
  11213. #include <string.h>
  11214. #include <zlib.h>
  11215. int main() {
  11216. #if ZLIB_VERNUM < $MOZZLIB
  11217. #error "Insufficient zlib version ($MOZZLIB required)."
  11218. #endif
  11219. ; return 0; }
  11220. EOF
  11221. if { (eval echo configure:12469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11222. rm -rf conftest*
  11223. SYSTEM_ZLIB=1
  11224. else
  11225. echo "configure: failed program was:" >&5
  11226. cat conftest.$ac_ext >&5
  11227. rm -rf conftest*
  11228. SYSTEM_ZLIB= ZLIB_CFLAGS= ZLIB_LIBS=
  11229. fi
  11230. rm -f conftest*
  11231. fi
  11232. CFLAGS=$_SAVE_CFLAGS
  11233. LDFLAGS=$_SAVE_LDFLAGS
  11234. LIBS=$_SAVE_LIBS
  11235. if test "${ZLIB_DIR}" -a -d "${ZLIB_DIR}" -a "$SYSTEM_ZLIB" = 1; then
  11236. ZLIB_CFLAGS="-I${ZLIB_DIR}/include"
  11237. ZLIB_LIBS="-L${ZLIB_DIR}/lib ${ZLIB_LIBS}"
  11238. fi
  11239. # Check whether --with-system-bz2 or --without-system-bz2 was given.
  11240. if test "${with_system_bz2+set}" = set; then
  11241. withval="$with_system_bz2"
  11242. BZ2_DIR=$withval
  11243. fi
  11244. _SAVE_CFLAGS=$CFLAGS
  11245. _SAVE_LDFLAGS=$LDFLAGS
  11246. _SAVE_LIBS=$LIBS
  11247. if test -n "${BZ2_DIR}" -a "${BZ2_DIR}" != "yes"; then
  11248. CFLAGS="-I${BZ2_DIR}/include $CFLAGS"
  11249. LDFLAGS="-L${BZ2_DIR}/lib $LDFLAGS"
  11250. fi
  11251. if test -z "$BZ2_DIR" -o "$BZ2_DIR" = no; then
  11252. SYSTEM_BZ2=
  11253. else
  11254. echo $ac_n "checking for BZ2_bzread in -lbz2""... $ac_c" 1>&6
  11255. echo "configure:12507: checking for BZ2_bzread in -lbz2" >&5
  11256. ac_lib_var=`echo bz2'_'BZ2_bzread | sed 'y%./+-%__p_%'`
  11257. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11258. echo $ac_n "(cached) $ac_c" 1>&6
  11259. else
  11260. ac_save_LIBS="$LIBS"
  11261. LIBS="-lbz2 $BZ2_LIBS $LIBS"
  11262. cat > conftest.$ac_ext <<EOF
  11263. #line 12515 "configure"
  11264. #include "confdefs.h"
  11265. /* Override any gcc2 internal prototype to avoid an error. */
  11266. /* We use char because int might match the return type of a gcc2
  11267. builtin and then its argument prototype would still apply. */
  11268. char BZ2_bzread();
  11269. int main() {
  11270. BZ2_bzread()
  11271. ; return 0; }
  11272. EOF
  11273. if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11274. rm -rf conftest*
  11275. eval "ac_cv_lib_$ac_lib_var=yes"
  11276. else
  11277. echo "configure: failed program was:" >&5
  11278. cat conftest.$ac_ext >&5
  11279. rm -rf conftest*
  11280. eval "ac_cv_lib_$ac_lib_var=no"
  11281. fi
  11282. rm -f conftest*
  11283. LIBS="$ac_save_LIBS"
  11284. fi
  11285. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11286. echo "$ac_t""yes" 1>&6
  11287. SYSTEM_BZ2=1 BZ2_LIBS="-lbz2"
  11288. else
  11289. echo "$ac_t""no" 1>&6
  11290. SYSTEM_BZ2= BZ2_CFLAGS= BZ2_LIBS=
  11291. fi
  11292. fi
  11293. CFLAGS=$_SAVE_CFLAGS
  11294. LDFLAGS=$_SAVE_LDFLAGS
  11295. LIBS=$_SAVE_LIBS
  11296. if test "${BZ2_DIR}" -a -d "${BZ2_DIR}" -a "$SYSTEM_BZ2" = 1; then
  11297. BZ2_CFLAGS="-I${BZ2_DIR}/include"
  11298. BZ2_LIBS="-L${BZ2_DIR}/lib ${MOZ_BZ2_LIBS}"
  11299. fi
  11300. # Check whether --with-system-png or --without-system-png was given.
  11301. if test "${with_system_png+set}" = set; then
  11302. withval="$with_system_png"
  11303. PNG_DIR=$withval
  11304. fi
  11305. _SAVE_CFLAGS=$CFLAGS
  11306. _SAVE_LDFLAGS=$LDFLAGS
  11307. _SAVE_LIBS=$LIBS
  11308. CFLAGS="$ZLIB_CFLAGS $CFLAGS"
  11309. LDFLAGS="$ZLIB_LIBS -lz $LDFLAGS"
  11310. if test -n "${PNG_DIR}" -a "${PNG_DIR}" != "yes"; then
  11311. CFLAGS="-I${PNG_DIR}/include $CFLAGS"
  11312. LDFLAGS="-L${PNG_DIR}/lib $LDFLAGS"
  11313. fi
  11314. if test -z "$PNG_DIR" -o "$PNG_DIR" = no; then
  11315. SYSTEM_PNG=
  11316. else
  11317. _SAVE_PNG_LIBS=$PNG_LIBS
  11318. echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
  11319. echo "configure:12578: checking for png_get_valid in -lpng" >&5
  11320. ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
  11321. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11322. echo $ac_n "(cached) $ac_c" 1>&6
  11323. else
  11324. ac_save_LIBS="$LIBS"
  11325. LIBS="-lpng $PNG_LIBS $LIBS"
  11326. cat > conftest.$ac_ext <<EOF
  11327. #line 12586 "configure"
  11328. #include "confdefs.h"
  11329. /* Override any gcc2 internal prototype to avoid an error. */
  11330. /* We use char because int might match the return type of a gcc2
  11331. builtin and then its argument prototype would still apply. */
  11332. char png_get_valid();
  11333. int main() {
  11334. png_get_valid()
  11335. ; return 0; }
  11336. EOF
  11337. if { (eval echo configure:12597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11338. rm -rf conftest*
  11339. eval "ac_cv_lib_$ac_lib_var=yes"
  11340. else
  11341. echo "configure: failed program was:" >&5
  11342. cat conftest.$ac_ext >&5
  11343. rm -rf conftest*
  11344. eval "ac_cv_lib_$ac_lib_var=no"
  11345. fi
  11346. rm -f conftest*
  11347. LIBS="$ac_save_LIBS"
  11348. fi
  11349. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11350. echo "$ac_t""yes" 1>&6
  11351. SYSTEM_PNG=1 PNG_LIBS="-lpng $PNG_LIBS"
  11352. else
  11353. echo "$ac_t""no" 1>&6
  11354. { echo "configure: error: --with-system-png requested but no working libpng found" 1>&2; exit 1; }
  11355. fi
  11356. echo $ac_n "checking for png_get_acTL in -lpng""... $ac_c" 1>&6
  11357. echo "configure:12619: checking for png_get_acTL in -lpng" >&5
  11358. ac_lib_var=`echo png'_'png_get_acTL | sed 'y%./+-%__p_%'`
  11359. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11360. echo $ac_n "(cached) $ac_c" 1>&6
  11361. else
  11362. ac_save_LIBS="$LIBS"
  11363. LIBS="-lpng $_SAVE_PNG_LIBS $LIBS"
  11364. cat > conftest.$ac_ext <<EOF
  11365. #line 12627 "configure"
  11366. #include "confdefs.h"
  11367. /* Override any gcc2 internal prototype to avoid an error. */
  11368. /* We use char because int might match the return type of a gcc2
  11369. builtin and then its argument prototype would still apply. */
  11370. char png_get_acTL();
  11371. int main() {
  11372. png_get_acTL()
  11373. ; return 0; }
  11374. EOF
  11375. if { (eval echo configure:12638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11376. rm -rf conftest*
  11377. eval "ac_cv_lib_$ac_lib_var=yes"
  11378. else
  11379. echo "configure: failed program was:" >&5
  11380. cat conftest.$ac_ext >&5
  11381. rm -rf conftest*
  11382. eval "ac_cv_lib_$ac_lib_var=no"
  11383. fi
  11384. rm -f conftest*
  11385. LIBS="$ac_save_LIBS"
  11386. fi
  11387. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11388. echo "$ac_t""yes" 1>&6
  11389. ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  11390. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  11391. cat >> confdefs.h <<EOF
  11392. #define $ac_tr_lib 1
  11393. EOF
  11394. LIBS="-lpng $LIBS"
  11395. else
  11396. echo "$ac_t""no" 1>&6
  11397. { echo "configure: error: --with-system-png won't work because the system's libpng doesn't have APNG support" 1>&2; exit 1; }
  11398. fi
  11399. fi
  11400. if test "$SYSTEM_PNG" = 1; then
  11401. LIBS="$PNG_LIBS $LIBS"
  11402. cat > conftest.$ac_ext <<EOF
  11403. #line 12670 "configure"
  11404. #include "confdefs.h"
  11405. #include <stdio.h>
  11406. #include <sys/types.h>
  11407. #include <png.h>
  11408. int main() {
  11409. #if PNG_LIBPNG_VER < $MOZPNG
  11410. #error "Insufficient libpng version ($MOZPNG required)."
  11411. #endif
  11412. #ifndef PNG_UINT_31_MAX
  11413. #error "Insufficient libpng version."
  11414. #endif
  11415. ; return 0; }
  11416. EOF
  11417. if { (eval echo configure:12684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11418. rm -rf conftest*
  11419. SYSTEM_PNG=1
  11420. else
  11421. echo "configure: failed program was:" >&5
  11422. cat conftest.$ac_ext >&5
  11423. rm -rf conftest*
  11424. { echo "configure: error: --with-system-png requested but no working libpng found" 1>&2; exit 1; }
  11425. fi
  11426. rm -f conftest*
  11427. fi
  11428. CFLAGS=$_SAVE_CFLAGS
  11429. LDFLAGS=$_SAVE_LDFLAGS
  11430. LIBS=$_SAVE_LIBS
  11431. if test "${PNG_DIR}" -a -d "${PNG_DIR}" -a "$SYSTEM_PNG" = 1; then
  11432. PNG_CFLAGS="-I${PNG_DIR}/include"
  11433. PNG_LIBS="-L${PNG_DIR}/lib ${PNG_LIBS}"
  11434. fi
  11435. fi # SKIP_LIBRARY_CHECKS
  11436. # Check whether --enable-system-hunspell or --disable-system-hunspell was given.
  11437. if test "${enable_system_hunspell+set}" = set; then
  11438. enableval="$enable_system_hunspell"
  11439. if test "$enableval" = "yes"; then
  11440. SYSTEM_HUNSPELL=1
  11441. elif test "$enableval" = "no"; then
  11442. :
  11443. else
  11444. { echo "configure: error: Option, system-hunspell, does not take an argument ($enableval)." 1>&2; exit 1; }
  11445. fi
  11446. fi
  11447. if test -n "$SYSTEM_HUNSPELL"; then
  11448. succeeded=no
  11449. if test -z "$PKG_CONFIG"; then
  11450. # Extract the first word of "pkg-config", so it can be a program name with args.
  11451. set dummy pkg-config; ac_word=$2
  11452. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11453. echo "configure:12726: checking for $ac_word" >&5
  11454. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  11455. echo $ac_n "(cached) $ac_c" 1>&6
  11456. else
  11457. case "$PKG_CONFIG" in
  11458. /*)
  11459. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11460. ;;
  11461. ?:/*)
  11462. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  11463. ;;
  11464. *)
  11465. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  11466. ac_dummy="$PATH"
  11467. for ac_dir in $ac_dummy; do
  11468. test -z "$ac_dir" && ac_dir=.
  11469. if test -f $ac_dir/$ac_word; then
  11470. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  11471. break
  11472. fi
  11473. done
  11474. IFS="$ac_save_ifs"
  11475. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11476. ;;
  11477. esac
  11478. fi
  11479. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11480. if test -n "$PKG_CONFIG"; then
  11481. echo "$ac_t""$PKG_CONFIG" 1>&6
  11482. else
  11483. echo "$ac_t""no" 1>&6
  11484. fi
  11485. fi
  11486. if test "$PKG_CONFIG" = "no" ; then
  11487. echo "*** The pkg-config script could not be found. Make sure it is"
  11488. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11489. echo "*** to the full path to pkg-config."
  11490. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11491. else
  11492. PKG_CONFIG_MIN_VERSION=0.9.0
  11493. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11494. echo $ac_n "checking for hunspell""... $ac_c" 1>&6
  11495. echo "configure:12770: checking for hunspell" >&5
  11496. if $PKG_CONFIG --exists "hunspell" ; then
  11497. echo "$ac_t""yes" 1>&6
  11498. succeeded=yes
  11499. echo $ac_n "checking MOZ_HUNSPELL_CFLAGS""... $ac_c" 1>&6
  11500. echo "configure:12777: checking MOZ_HUNSPELL_CFLAGS" >&5
  11501. MOZ_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell"`
  11502. echo "$ac_t""$MOZ_HUNSPELL_CFLAGS" 1>&6
  11503. echo $ac_n "checking MOZ_HUNSPELL_LIBS""... $ac_c" 1>&6
  11504. echo "configure:12782: checking MOZ_HUNSPELL_LIBS" >&5
  11505. ## Remove evil flags like -Wl,--export-dynamic
  11506. MOZ_HUNSPELL_LIBS="`$PKG_CONFIG --libs \"hunspell\" |sed s/-Wl,--export-dynamic//g`"
  11507. echo "$ac_t""$MOZ_HUNSPELL_LIBS" 1>&6
  11508. else
  11509. MOZ_HUNSPELL_CFLAGS=""
  11510. MOZ_HUNSPELL_LIBS=""
  11511. ## If we have a custom action on failure, don't print errors, but
  11512. ## do set a variable so people can do so.
  11513. MOZ_HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hunspell"`
  11514. echo $MOZ_HUNSPELL_PKG_ERRORS
  11515. fi
  11516. else
  11517. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11518. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11519. fi
  11520. fi
  11521. if test $succeeded = yes; then
  11522. :
  11523. else
  11524. if test "$COMPILE_ENVIRONMENT"; then
  11525. { echo "configure: error: Library requirements (hunspell) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  11526. fi
  11527. fi
  11528. fi
  11529. # Check whether --enable-glitz or --disable-glitz was given.
  11530. if test "${enable_glitz+set}" = set; then
  11531. enableval="$enable_glitz"
  11532. if test "$enableval" = "yes"; then
  11533. MOZ_ENABLE_GLITZ=1
  11534. elif test "$enableval" = "no"; then
  11535. MOZ_ENABLE_GLITZ=
  11536. else
  11537. { echo "configure: error: Option, glitz, does not take an argument ($enableval)." 1>&2; exit 1; }
  11538. fi
  11539. fi
  11540. if test "$MOZ_ENABLE_GLITZ"; then
  11541. cat >> confdefs.h <<\EOF
  11542. #define MOZ_ENABLE_GLITZ 1
  11543. EOF
  11544. fi
  11545. JAVA_INCLUDE_PATH=
  11546. # Check whether --with-java-include-path or --without-java-include-path was given.
  11547. if test "${with_java_include_path+set}" = set; then
  11548. withval="$with_java_include_path"
  11549. JAVA_INCLUDE_PATH=$withval
  11550. fi
  11551. JAVA_BIN_PATH=
  11552. # Check whether --with-java-bin-path or --without-java-bin-path was given.
  11553. if test "${with_java_bin_path+set}" = set; then
  11554. withval="$with_java_bin_path"
  11555. JAVA_BIN_PATH=$withval
  11556. fi
  11557. # Application
  11558. BUILD_STATIC_LIBS=
  11559. ENABLE_TESTS=1
  11560. MOZ_ACTIVEX_SCRIPTING_SUPPORT=
  11561. MOZ_BRANDING_DIRECTORY=
  11562. MOZ_CALENDAR=
  11563. MOZ_DBGRINFO_MODULES=
  11564. MOZ_ENABLE_CANVAS=1
  11565. MOZ_EXTENSIONS_ALL=" wallet xml-rpc venkman inspector irc typeaheadfind gnomevfs sroaming datetime finger cview layout-debug tasks sql xforms schema-validation reporter"
  11566. MOZ_FEEDS=1
  11567. MOZ_IMG_DECODERS_DEFAULT="png gif jpeg bmp xbm icon"
  11568. MOZ_IMG_ENCODERS_DEFAULT="png jpeg"
  11569. MOZ_IPCD=
  11570. MOZ_JAVAXPCOM=
  11571. MOZ_JSDEBUGGER=1
  11572. MOZ_JSLOADER=1
  11573. MOZ_LDAP_XPCOM=
  11574. MOZ_LIBART_CFLAGS=
  11575. MOZ_LIBART_LIBS=
  11576. MOZ_MAIL_NEWS=
  11577. MOZ_MATHML=1
  11578. MOZ_MOCHITEST=1
  11579. MOZ_MORK=1
  11580. MOZ_MORKREADER=
  11581. MOZ_AUTH_EXTENSION=1
  11582. MOZ_NO_ACTIVEX_SUPPORT=1
  11583. MOZ_NO_INSPECTOR_APIS=
  11584. MOZ_NO_XPCOM_OBSOLETE=
  11585. MOZ_NO_FAST_LOAD=
  11586. MOZ_OJI=1
  11587. MOZ_PERMISSIONS=1
  11588. MOZ_PLACES=
  11589. MOZ_PLAINTEXT_EDITOR_ONLY=
  11590. MOZ_PLUGINS=1
  11591. MOZ_PREF_EXTENSIONS=1
  11592. MOZ_PROFILELOCKING=1
  11593. MOZ_PROFILESHARING=1
  11594. MOZ_PSM=1
  11595. MOZ_PYTHON_EXTENSIONS="xpcom dom"
  11596. MOZ_PYTHON=
  11597. MOZ_PYTHON_DEBUG_SUFFIX=
  11598. MOZ_PYTHON_DLL_SUFFIX=
  11599. MOZ_PYTHON_INCLUDES=
  11600. MOZ_PYTHON_LIBS=
  11601. MOZ_PYTHON_PREFIX=
  11602. MOZ_PYTHON_VER=
  11603. MOZ_PYTHON_VER_DOTTED=
  11604. MOZ_RDF=1
  11605. MOZ_REFLOW_PERF=
  11606. MOZ_SAFE_BROWSING=
  11607. MOZ_HELP_VIEWER=
  11608. MOZ_SPELLCHECK=1
  11609. MOZ_STATIC_MAIL_BUILD=
  11610. MOZ_STORAGE=1
  11611. MOZ_SVG=1
  11612. MOZ_TIMELINE=
  11613. MOZ_UI_LOCALE=en-US
  11614. MOZ_UNIVERSALCHARDET=1
  11615. MOZ_URL_CLASSIFIER=
  11616. MOZ_USE_NATIVE_UCONV=
  11617. MOZ_V1_STRING_ABI=
  11618. MOZ_VIEW_SOURCE=1
  11619. MOZ_WEBSERVICES=
  11620. MOZ_XMLEXTRAS=1
  11621. MOZ_XPFE_COMPONENTS=1
  11622. MOZ_XPINSTALL=1
  11623. MOZ_XSLT_STANDALONE=
  11624. MOZ_XTF=1
  11625. MOZ_XUL=1
  11626. MOZ_XUL_APP=1
  11627. MOZ_ZIPWRITER=1
  11628. NS_PRINTING=1
  11629. NECKO_COOKIES=1
  11630. NECKO_DISK_CACHE=1
  11631. NECKO_PROTOCOLS_DEFAULT="about data file ftp gopher http res viewsource"
  11632. NECKO_SMALL_BUFFERS=
  11633. SUNCTL=
  11634. JS_STATIC_BUILD=
  11635. XPC_IDISPATCH_SUPPORT=
  11636. case "$target_os" in
  11637. darwin*)
  11638. ACCESSIBILITY=
  11639. ;;
  11640. *)
  11641. ACCESSIBILITY=1
  11642. ;;
  11643. esac
  11644. case "$target_os" in
  11645. msvc*|mks*|cygwin*|mingw*)
  11646. if test -z "$GNU_CC"; then
  11647. XPC_IDISPATCH_SUPPORT=1
  11648. MOZ_NO_ACTIVEX_SUPPORT=
  11649. MOZ_ACTIVEX_SCRIPTING_SUPPORT=1
  11650. fi
  11651. ;;
  11652. esac
  11653. # Check whether --enable-application or --disable-application was given.
  11654. if test "${enable_application+set}" = set; then
  11655. enableval="$enable_application"
  11656. MOZ_BUILD_APP=$enableval
  11657. fi
  11658. if test "$MOZ_BUILD_APP" = "macbrowser"; then
  11659. echo "configure: warning: --enable-application=macbrowser is deprecated. Use --enable-application=camino." 1>&2
  11660. MOZ_BUILD_APP=camino
  11661. fi
  11662. case "$MOZ_BUILD_APP" in
  11663. minimo)
  11664. MOZ_EMBEDDING_PROFILE=basic
  11665. ;;
  11666. *)
  11667. MOZ_EMBEDDING_PROFILE=default
  11668. ;;
  11669. esac
  11670. # Check whether --with-embedding-profile or --without-embedding-profile was given.
  11671. if test "${with_embedding_profile+set}" = set; then
  11672. withval="$with_embedding_profile"
  11673. MOZ_EMBEDDING_PROFILE=$withval
  11674. fi
  11675. case "$MOZ_EMBEDDING_PROFILE" in
  11676. default)
  11677. MOZ_EMBEDDING_LEVEL_DEFAULT=1
  11678. MOZ_EMBEDDING_LEVEL_BASIC=1
  11679. MOZ_EMBEDDING_LEVEL_MINIMAL=1
  11680. cat >> confdefs.h <<\EOF
  11681. #define MOZ_EMBEDDING_LEVEL_DEFAULT 1
  11682. EOF
  11683. cat >> confdefs.h <<\EOF
  11684. #define MOZ_EMBEDDING_LEVEL_BASIC 1
  11685. EOF
  11686. cat >> confdefs.h <<\EOF
  11687. #define MOZ_EMBEDDING_LEVEL_MINIMAL 1
  11688. EOF
  11689. ;;
  11690. basic)
  11691. MOZ_EMBEDDING_LEVEL_DEFAULT=
  11692. MOZ_EMBEDDING_LEVEL_BASIC=1
  11693. MOZ_EMBEDDING_LEVEL_MINIMAL=1
  11694. cat >> confdefs.h <<\EOF
  11695. #define MOZ_EMBEDDING_LEVEL_BASIC 1
  11696. EOF
  11697. cat >> confdefs.h <<\EOF
  11698. #define MOZ_EMBEDDING_LEVEL_MINIMAL 1
  11699. EOF
  11700. ENABLE_TESTS=
  11701. MOZ_ACTIVEX_SCRIPTING_SUPPORT=
  11702. MOZ_COMPOSER=
  11703. MOZ_ENABLE_CANVAS=
  11704. MOZ_ENABLE_POSTSCRIPT=
  11705. MOZ_EXTENSIONS_DEFAULT=" spatialnavigation"
  11706. MOZ_IMG_DECODERS_DEFAULT="png gif jpeg"
  11707. MOZ_IMG_ENCODERS_DEFAULT=
  11708. MOZ_IMG_ENCODERS=
  11709. MOZ_INSTALLER=
  11710. MOZ_JSDEBUGGER=
  11711. MOZ_LDAP_XPCOM=
  11712. MOZ_MAIL_NEWS=
  11713. MOZ_MATHML=
  11714. MOZ_AUTH_EXTENSION=
  11715. MOZ_NO_ACTIVEX_SUPPORT=1
  11716. MOZ_NO_INSPECTOR_APIS=1
  11717. MOZ_NO_XPCOM_OBSOLETE=1
  11718. MOZ_NO_FAST_LOAD=1
  11719. MOZ_OJI=
  11720. MOZ_PLAINTEXT_EDITOR_ONLY=1
  11721. # MOZ_PLUGINS=
  11722. MOZ_PREF_EXTENSIONS=
  11723. MOZ_PROFILELOCKING=
  11724. MOZ_PROFILESHARING=
  11725. MOZ_SPELLCHECK=
  11726. MOZ_SVG=
  11727. MOZ_UNIVERSALCHARDET=
  11728. MOZ_UPDATER=
  11729. MOZ_USE_NATIVE_UCONV=
  11730. MOZ_VIEW_SOURCE=
  11731. MOZ_XPFE_COMPONENTS=
  11732. MOZ_XPINSTALL=
  11733. MOZ_XTF=
  11734. MOZ_ZIPWRITER=
  11735. NECKO_DISK_CACHE=
  11736. NECKO_PROTOCOLS_DEFAULT="about data http file res"
  11737. NECKO_SMALL_BUFFERS=1
  11738. NS_DISABLE_LOGGING=1
  11739. NS_PRINTING=
  11740. JS_STATIC_BUILD=1
  11741. ;;
  11742. minimal)
  11743. MOZ_EMBEDDING_LEVEL_DEFAULT=
  11744. MOZ_EMBEDDING_LEVEL_BASIC=
  11745. MOZ_EMBEDDING_LEVEL_MINIMAL=1
  11746. cat >> confdefs.h <<\EOF
  11747. #define MOZ_EMBEDDING_LEVEL_MINIMAL 1
  11748. EOF
  11749. ENABLE_TESTS=
  11750. MOZ_ACTIVEX_SCRIPTING_SUPPORT=
  11751. MOZ_COMPOSER=
  11752. MOZ_ENABLE_CANVAS=
  11753. MOZ_ENABLE_POSTSCRIPT=
  11754. MOZ_EXTENSIONS_DEFAULT=" spatialnavigation"
  11755. MOZ_IMG_DECODERS_DEFAULT="png gif jpeg"
  11756. MOZ_IMG_ENCODERS_DEFAULT=
  11757. MOZ_IMG_ENCODERS=
  11758. MOZ_INSTALLER=
  11759. MOZ_JSDEBUGGER=
  11760. MOZ_LDAP_XPCOM=
  11761. MOZ_MAIL_NEWS=
  11762. MOZ_MATHML=
  11763. MOZ_AUTH_EXTENSION=
  11764. MOZ_NO_ACTIVEX_SUPPORT=1
  11765. MOZ_NO_INSPECTOR_APIS=1
  11766. MOZ_NO_XPCOM_OBSOLETE=1
  11767. MOZ_NO_FAST_LOAD=1
  11768. MOZ_OJI=
  11769. MOZ_PLAINTEXT_EDITOR_ONLY=1
  11770. MOZ_PLUGINS=
  11771. MOZ_PREF_EXTENSIONS=
  11772. MOZ_PROFILELOCKING=
  11773. MOZ_PROFILESHARING=
  11774. MOZ_SPELLCHECK=
  11775. MOZ_STORAGE=1
  11776. MOZ_PLACES=
  11777. MOZ_SVG=
  11778. MOZ_UNIVERSALCHARDET=
  11779. MOZ_UPDATER=
  11780. MOZ_USE_NATIVE_UCONV=1
  11781. MOZ_VIEW_SOURCE=
  11782. MOZ_XPFE_COMPONENTS=
  11783. MOZ_XPINSTALL=
  11784. MOZ_XTF=
  11785. MOZ_XUL=
  11786. MOZ_ZIPWRITER=
  11787. MOZ_RDF=
  11788. NECKO_DISK_CACHE=
  11789. NECKO_PROTOCOLS_DEFAULT="about data http file res"
  11790. NECKO_SMALL_BUFFERS=1
  11791. NS_DISABLE_LOGGING=1
  11792. NS_PRINTING=
  11793. JS_STATIC_BUILD=1
  11794. ;;
  11795. *)
  11796. { echo "configure: error: Unrecognized value: --with-embedding-profile=$MOZ_EMBEDDING_PROFILE" 1>&2; exit 1; }
  11797. ;;
  11798. esac
  11799. # Check whether --with-xulrunner-stub-name or --without-xulrunner-stub-name was given.
  11800. if test "${with_xulrunner_stub_name+set}" = set; then
  11801. withval="$with_xulrunner_stub_name"
  11802. XULRUNNER_STUB_NAME=$withval
  11803. fi
  11804. if test -z "$XULRUNNER_STUB_NAME"; then
  11805. case "$target_os" in
  11806. darwin*)
  11807. XULRUNNER_STUB_NAME=xulrunner
  11808. ;;
  11809. *)
  11810. XULRUNNER_STUB_NAME=xulrunner-stub
  11811. esac
  11812. fi
  11813. if test -z "$MOZ_BUILD_APP"; then
  11814. { echo "configure: error: --enable-application=APP was not specified and is required." 1>&2; exit 1; }
  11815. else
  11816. # We have a valid application only if it has a build.mk file in its top
  11817. # directory.
  11818. if test ! -f "${srcdir}/${MOZ_BUILD_APP}/build.mk" ; then
  11819. { echo "configure: error: --enable-application value not recognized (${MOZ_BUILD_APP}/build.mk does not exist)." 1>&2; exit 1; }
  11820. fi
  11821. fi
  11822. # Allow the application to influence configure with a confvars.sh script.
  11823. echo $ac_n "checking if app-specific confvars.sh exists""... $ac_c" 1>&6
  11824. echo "configure:13150: checking if app-specific confvars.sh exists" >&5
  11825. if test -f "${srcdir}/${MOZ_BUILD_APP}/confvars.sh" ; then
  11826. echo "$ac_t""${srcdir}/${MOZ_BUILD_APP}/confvars.sh" 1>&6
  11827. . "${srcdir}/${MOZ_BUILD_APP}/confvars.sh"
  11828. else
  11829. echo "$ac_t""no" 1>&6
  11830. fi
  11831. # Now is a good time to test for logic errors, define mismatches, etc.
  11832. case "$MOZ_BUILD_APP" in
  11833. xulrunner)
  11834. if test "$LIBXUL_SDK"; then
  11835. { echo "configure: error: Building XULRunner --with-libxul-sdk doesn't make sense; XULRunner provides the libxul SDK." 1>&2; exit 1; }
  11836. fi
  11837. ;;
  11838. *)
  11839. # Fix this case for folks who forget. Warn them.
  11840. if test -n "$LIBXUL_SDK" -a -z "$MOZ_XUL_APP"; then
  11841. echo "configure: warning: Setting MOZ_XUL_APP since LIBXUL_SDK was set. Add to confvars.sh!" 1>&2
  11842. MOZ_XUL_APP=1
  11843. fi
  11844. ;;
  11845. esac
  11846. # Special cases where we need to AC_DEFINE something. Also a holdover for apps
  11847. # that haven't made a confvars.sh yet. Don't add new stuff here, use
  11848. # MOZ_BUILD_APP.
  11849. case "$MOZ_BUILD_APP" in
  11850. suite)
  11851. cat >> confdefs.h <<\EOF
  11852. #define MOZ_SUITE 1
  11853. EOF
  11854. ;;
  11855. browser)
  11856. cat >> confdefs.h <<\EOF
  11857. #define MOZ_PHOENIX 1
  11858. EOF
  11859. ;;
  11860. minimo)
  11861. cat >> confdefs.h <<\EOF
  11862. #define MINIMO 1
  11863. EOF
  11864. ;;
  11865. mail)
  11866. cat >> confdefs.h <<\EOF
  11867. #define MOZ_THUNDERBIRD 1
  11868. EOF
  11869. ;;
  11870. composer)
  11871. cat >> confdefs.h <<\EOF
  11872. #define MOZ_STANDALONE_COMPOSER 1
  11873. EOF
  11874. ;;
  11875. calendar)
  11876. cat >> confdefs.h <<\EOF
  11877. #define MOZ_SUNBIRD 1
  11878. EOF
  11879. ;;
  11880. xulrunner)
  11881. cat >> confdefs.h <<\EOF
  11882. #define MOZ_XULRUNNER 1
  11883. EOF
  11884. ;;
  11885. camino)
  11886. cat >> confdefs.h <<\EOF
  11887. #define MOZ_MACBROWSER 1
  11888. EOF
  11889. ;;
  11890. content/xslt)
  11891. cat >> confdefs.h <<\EOF
  11892. #define TX_EXE 1
  11893. EOF
  11894. ;;
  11895. standalone)
  11896. MOZ_APP_NAME=mozilla
  11897. MOZ_APP_DISPLAYNAME=Mozilla
  11898. MOZ_APP_VERSION=$MOZILLA_VERSION
  11899. ;;
  11900. esac
  11901. cat >> confdefs.h <<EOF
  11902. #define MOZ_BUILD_APP $MOZ_BUILD_APP
  11903. EOF
  11904. if test "$MOZ_XUL_APP"; then
  11905. MOZ_PROFILESHARING=
  11906. cat >> confdefs.h <<\EOF
  11907. #define MOZ_XUL_APP 1
  11908. EOF
  11909. fi
  11910. # Toolkit Options
  11911. # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
  11912. if test "${enable_default_toolkit+set}" = set; then
  11913. enableval="$enable_default_toolkit"
  11914. _DEFAULT_TOOLKIT=$enableval
  11915. else
  11916. _DEFAULT_TOOLKIT=$_PLATFORM_DEFAULT_TOOLKIT
  11917. fi
  11918. if test "$_DEFAULT_TOOLKIT" = "photon" \
  11919. -o "$_DEFAULT_TOOLKIT" = "cairo-windows" \
  11920. -o "$_DEFAULT_TOOLKIT" = "cairo-gtk2" \
  11921. -o "$_DEFAULT_TOOLKIT" = "cairo-beos" \
  11922. -o "$_DEFAULT_TOOLKIT" = "cairo-os2" \
  11923. -o "$_DEFAULT_TOOLKIT" = "cairo-mac" \
  11924. -o "$_DEFAULT_TOOLKIT" = "cairo-cocoa"
  11925. then
  11926. MOZ_WIDGET_TOOLKIT=`echo "$_DEFAULT_TOOLKIT" | sed -e "s/,.*$//"`
  11927. else
  11928. if test "$no_x" != "yes"; then
  11929. { echo "configure: error: Toolkit must be cairo-gtk2." 1>&2; exit 1; }
  11930. else
  11931. { echo "configure: error: Toolkit must be $_PLATFORM_DEFAULT_TOOLKIT (if supported)." 1>&2; exit 1; }
  11932. fi
  11933. fi
  11934. cat >> confdefs.h <<EOF
  11935. #define MOZ_DEFAULT_TOOLKIT "$MOZ_WIDGET_TOOLKIT"
  11936. EOF
  11937. case "$MOZ_WIDGET_TOOLKIT" in
  11938. photon)
  11939. MOZ_ENABLE_PHOTON=1
  11940. cat >> confdefs.h <<\EOF
  11941. #define MOZ_WIDGET_PHOTON 1
  11942. EOF
  11943. ;;
  11944. cairo-windows)
  11945. MOZ_WIDGET_TOOLKIT=windows
  11946. MOZ_GFX_TOOLKIT=cairo
  11947. ;;
  11948. cairo-gtk2)
  11949. MOZ_WIDGET_TOOLKIT=gtk2
  11950. MOZ_GFX_TOOLKIT=cairo
  11951. MOZ_ENABLE_GTK2=1
  11952. MOZ_ENABLE_XREMOTE=1
  11953. TK_CFLAGS='$(MOZ_GTK2_CFLAGS)'
  11954. TK_LIBS='$(MOZ_GTK2_LIBS)'
  11955. cat >> confdefs.h <<\EOF
  11956. #define MOZ_WIDGET_GTK2 1
  11957. EOF
  11958. ;;
  11959. cairo-beos)
  11960. MOZ_WIDGET_TOOLKIT=beos
  11961. MOZ_GFX_TOOLKIT=cairo
  11962. TK_CFLAGS='$(MOZ_CAIRO_CFLAGS)'
  11963. TK_LIBS='$(MOZ_CAIRO_LIBS)'
  11964. ;;
  11965. cairo-os2)
  11966. MOZ_WIDGET_TOOLKIT=os2
  11967. MOZ_GFX_TOOLKIT=cairo
  11968. TK_CFLAGS='$(MOZ_CAIRO_CFLAGS)'
  11969. TK_LIBS='$(MOZ_CAIRO_LIBS)'
  11970. ;;
  11971. cairo-mac|cairo-cocoa)
  11972. if test "$MOZ_WIDGET_TOOLKIT" = "cairo-cocoa"; then
  11973. MOZ_WIDGET_TOOLKIT=cocoa
  11974. cat >> confdefs.h <<\EOF
  11975. #define MOZ_WIDGET_COCOA 1
  11976. EOF
  11977. MOZ_ENABLE_COCOA=1
  11978. else
  11979. MOZ_WIDGET_TOOLKIT=mac
  11980. fi
  11981. MOZ_GFX_TOOLKIT=cairo
  11982. MOZ_USER_DIR="Mozilla"
  11983. cat >> confdefs.h <<\EOF
  11984. #define XP_MACOSX 1
  11985. EOF
  11986. cat >> confdefs.h <<\EOF
  11987. #define TARGET_CARBON 1
  11988. EOF
  11989. cat >> confdefs.h <<\EOF
  11990. #define TARGET_API_MAC_CARBON 1
  11991. EOF
  11992. TK_LIBS='-framework Carbon'
  11993. TK_CFLAGS="-I${MACOS_SDK_DIR}/Developer/Headers/FlatCarbon"
  11994. CFLAGS="$CFLAGS $TK_CFLAGS"
  11995. CXXFLAGS="$CXXFLAGS $TK_CFLAGS"
  11996. ;;
  11997. esac
  11998. if test "$MOZ_ENABLE_XREMOTE"; then
  11999. cat >> confdefs.h <<\EOF
  12000. #define MOZ_ENABLE_XREMOTE 1
  12001. EOF
  12002. fi
  12003. if test "$COMPILE_ENVIRONMENT"; then
  12004. if test "$MOZ_ENABLE_GTK2"
  12005. then
  12006. succeeded=no
  12007. if test -z "$PKG_CONFIG"; then
  12008. # Extract the first word of "pkg-config", so it can be a program name with args.
  12009. set dummy pkg-config; ac_word=$2
  12010. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12011. echo "configure:13393: checking for $ac_word" >&5
  12012. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12013. echo $ac_n "(cached) $ac_c" 1>&6
  12014. else
  12015. case "$PKG_CONFIG" in
  12016. /*)
  12017. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12018. ;;
  12019. ?:/*)
  12020. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12021. ;;
  12022. *)
  12023. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12024. ac_dummy="$PATH"
  12025. for ac_dir in $ac_dummy; do
  12026. test -z "$ac_dir" && ac_dir=.
  12027. if test -f $ac_dir/$ac_word; then
  12028. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12029. break
  12030. fi
  12031. done
  12032. IFS="$ac_save_ifs"
  12033. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12034. ;;
  12035. esac
  12036. fi
  12037. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12038. if test -n "$PKG_CONFIG"; then
  12039. echo "$ac_t""$PKG_CONFIG" 1>&6
  12040. else
  12041. echo "$ac_t""no" 1>&6
  12042. fi
  12043. fi
  12044. if test "$PKG_CONFIG" = "no" ; then
  12045. echo "*** The pkg-config script could not be found. Make sure it is"
  12046. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12047. echo "*** to the full path to pkg-config."
  12048. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12049. else
  12050. PKG_CONFIG_MIN_VERSION=0.9.0
  12051. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12052. echo $ac_n "checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0""... $ac_c" 1>&6
  12053. echo "configure:13437: checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0" >&5
  12054. if $PKG_CONFIG --exists "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0" ; then
  12055. echo "$ac_t""yes" 1>&6
  12056. succeeded=yes
  12057. echo $ac_n "checking MOZ_GTK2_CFLAGS""... $ac_c" 1>&6
  12058. echo "configure:13444: checking MOZ_GTK2_CFLAGS" >&5
  12059. MOZ_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0"`
  12060. echo "$ac_t""$MOZ_GTK2_CFLAGS" 1>&6
  12061. echo $ac_n "checking MOZ_GTK2_LIBS""... $ac_c" 1>&6
  12062. echo "configure:13449: checking MOZ_GTK2_LIBS" >&5
  12063. ## Remove evil flags like -Wl,--export-dynamic
  12064. MOZ_GTK2_LIBS="`$PKG_CONFIG --libs \"gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`"
  12065. echo "$ac_t""$MOZ_GTK2_LIBS" 1>&6
  12066. else
  12067. MOZ_GTK2_CFLAGS=""
  12068. MOZ_GTK2_LIBS=""
  12069. ## If we have a custom action on failure, don't print errors, but
  12070. ## do set a variable so people can do so.
  12071. MOZ_GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0"`
  12072. echo $MOZ_GTK2_PKG_ERRORS
  12073. fi
  12074. else
  12075. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12076. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12077. fi
  12078. fi
  12079. if test $succeeded = yes; then
  12080. :
  12081. else
  12082. if test "$COMPILE_ENVIRONMENT"; then
  12083. { echo "configure: error: Library requirements (gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 gdk-x11-2.0 glib-2.0 gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  12084. fi
  12085. fi
  12086. fi
  12087. fi # COMPILE_ENVIRONMENT
  12088. if test "$MOZ_ENABLE_GTK2"
  12089. then
  12090. MOZ_ENABLE_STARTUP_NOTIFICATION=
  12091. # Check whether --enable-startup-notification or --disable-startup-notification was given.
  12092. if test "${enable_startup_notification+set}" = set; then
  12093. enableval="$enable_startup_notification"
  12094. if test "$enableval" = "yes"; then
  12095. MOZ_ENABLE_STARTUP_NOTIFICATION=force
  12096. elif test "$enableval" = "no"; then
  12097. MOZ_ENABLE_STARTUP_NOTIFICATION=
  12098. else
  12099. { echo "configure: error: Option, startup-notification, does not take an argument ($enableval)." 1>&2; exit 1; }
  12100. fi
  12101. fi
  12102. if test "$MOZ_ENABLE_STARTUP_NOTIFICATION"
  12103. then
  12104. succeeded=no
  12105. if test -z "$PKG_CONFIG"; then
  12106. # Extract the first word of "pkg-config", so it can be a program name with args.
  12107. set dummy pkg-config; ac_word=$2
  12108. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12109. echo "configure:13508: checking for $ac_word" >&5
  12110. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12111. echo $ac_n "(cached) $ac_c" 1>&6
  12112. else
  12113. case "$PKG_CONFIG" in
  12114. /*)
  12115. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12116. ;;
  12117. ?:/*)
  12118. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12119. ;;
  12120. *)
  12121. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12122. ac_dummy="$PATH"
  12123. for ac_dir in $ac_dummy; do
  12124. test -z "$ac_dir" && ac_dir=.
  12125. if test -f $ac_dir/$ac_word; then
  12126. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12127. break
  12128. fi
  12129. done
  12130. IFS="$ac_save_ifs"
  12131. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12132. ;;
  12133. esac
  12134. fi
  12135. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12136. if test -n "$PKG_CONFIG"; then
  12137. echo "$ac_t""$PKG_CONFIG" 1>&6
  12138. else
  12139. echo "$ac_t""no" 1>&6
  12140. fi
  12141. fi
  12142. if test "$PKG_CONFIG" = "no" ; then
  12143. echo "*** The pkg-config script could not be found. Make sure it is"
  12144. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12145. echo "*** to the full path to pkg-config."
  12146. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12147. else
  12148. PKG_CONFIG_MIN_VERSION=0.9.0
  12149. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12150. echo $ac_n "checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION""... $ac_c" 1>&6
  12151. echo "configure:13552: checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" >&5
  12152. if $PKG_CONFIG --exists "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" ; then
  12153. echo "$ac_t""yes" 1>&6
  12154. succeeded=yes
  12155. echo $ac_n "checking MOZ_STARTUP_NOTIFICATION_CFLAGS""... $ac_c" 1>&6
  12156. echo "configure:13559: checking MOZ_STARTUP_NOTIFICATION_CFLAGS" >&5
  12157. MOZ_STARTUP_NOTIFICATION_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION"`
  12158. echo "$ac_t""$MOZ_STARTUP_NOTIFICATION_CFLAGS" 1>&6
  12159. echo $ac_n "checking MOZ_STARTUP_NOTIFICATION_LIBS""... $ac_c" 1>&6
  12160. echo "configure:13564: checking MOZ_STARTUP_NOTIFICATION_LIBS" >&5
  12161. ## Remove evil flags like -Wl,--export-dynamic
  12162. MOZ_STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs \"libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12163. echo "$ac_t""$MOZ_STARTUP_NOTIFICATION_LIBS" 1>&6
  12164. else
  12165. MOZ_STARTUP_NOTIFICATION_CFLAGS=""
  12166. MOZ_STARTUP_NOTIFICATION_LIBS=""
  12167. ## If we have a custom action on failure, don't print errors, but
  12168. ## do set a variable so people can do so.
  12169. MOZ_STARTUP_NOTIFICATION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION"`
  12170. fi
  12171. else
  12172. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12173. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12174. fi
  12175. fi
  12176. if test $succeeded = yes; then
  12177. MOZ_ENABLE_STARTUP_NOTIFICATION=1
  12178. else
  12179. if test "$COMPILE_ENVIRONMENT"; then
  12180. if test "$MOZ_ENABLE_STARTUP_NOTIFICATION" = "force"
  12181. then
  12182. { echo "configure: error: * * * Could not find startup-notification >= $STARTUP_NOTIFICATION_VERSION" 1>&2; exit 1; }
  12183. fi
  12184. MOZ_ENABLE_STARTUP_NOTIFICATION=
  12185. fi
  12186. fi
  12187. fi
  12188. if test "$MOZ_ENABLE_STARTUP_NOTIFICATION"; then
  12189. cat >> confdefs.h <<\EOF
  12190. #define MOZ_ENABLE_STARTUP_NOTIFICATION 1
  12191. EOF
  12192. fi
  12193. TK_LIBS="$TK_LIBS $MOZ_STARTUP_NOTIFICATION_LIBS"
  12194. fi
  12195. if test "$MOZ_ENABLE_GTK2"
  12196. then
  12197. cat >> confdefs.h <<\EOF
  12198. #define MOZ_X11 1
  12199. EOF
  12200. MOZ_X11=1
  12201. fi
  12202. # Components and Features
  12203. # Check whether --enable-ui-locale or --disable-ui-locale was given.
  12204. if test "${enable_ui_locale+set}" = set; then
  12205. enableval="$enable_ui_locale"
  12206. MOZ_UI_LOCALE=$enableval
  12207. fi
  12208. # Check whether --enable-calendar or --disable-calendar was given.
  12209. if test "${enable_calendar+set}" = set; then
  12210. enableval="$enable_calendar"
  12211. if test "$enableval" = "yes"; then
  12212. MOZ_OLD_CALENDAR=1
  12213. elif test "$enableval" = "no"; then
  12214. MOZ_OLD_CALENDAR=
  12215. else
  12216. { echo "configure: error: Option, calendar, does not take an argument ($enableval)." 1>&2; exit 1; }
  12217. fi
  12218. fi
  12219. if test "$MOZ_OLD_CALENDAR"; then
  12220. echo "configure: warning: Building with the calendar extension is no longer supported." 1>&2
  12221. if test "$MOZ_THUNDERBIRD"; then
  12222. echo "configure: warning: Since you're trying to build mail, you could try adding" 1>&2
  12223. echo "configure: warning: '--enable-extensions=default,lightning' to your mozconfig" 1>&2
  12224. echo "configure: warning: and building WITH A FRESH TREE." 1>&2
  12225. fi
  12226. echo "configure: warning: For more information, please visit:" 1>&2
  12227. { echo "configure: error: http://www.mozilla.org/projects/calendar/" 1>&2; exit 1; }
  12228. fi
  12229. # Check whether --enable-mailnews or --disable-mailnews was given.
  12230. if test "${enable_mailnews+set}" = set; then
  12231. enableval="$enable_mailnews"
  12232. if test "$enableval" = "no"; then
  12233. MOZ_MAIL_NEWS=
  12234. elif test "$enableval" = "yes"; then
  12235. MOZ_MAIL_NEWS=1
  12236. else
  12237. { echo "configure: error: Option, mailnews, does not take an argument ($enableval)." 1>&2; exit 1; }
  12238. fi
  12239. fi
  12240. # Check whether --enable-ldap or --disable-ldap was given.
  12241. if test "${enable_ldap+set}" = set; then
  12242. enableval="$enable_ldap"
  12243. if test "$enableval" = "no"; then
  12244. MOZ_LDAP_XPCOM=
  12245. elif test "$enableval" = "yes"; then
  12246. MOZ_LDAP_XPCOM=1
  12247. else
  12248. { echo "configure: error: Option, ldap, does not take an argument ($enableval)." 1>&2; exit 1; }
  12249. fi
  12250. fi
  12251. # Check whether --enable-official-branding or --disable-official-branding was given.
  12252. if test "${enable_official_branding+set}" = set; then
  12253. enableval="$enable_official_branding"
  12254. if test "$enableval" = "yes"; then
  12255. case "$MOZ_BUILD_APP" in
  12256. browser)
  12257. MOZ_BRANDING_DIRECTORY=other-licenses/branding/firefox
  12258. MOZ_APP_DISPLAYNAME=Firefox
  12259. ;;
  12260. calendar)
  12261. MOZ_BRANDING_DIRECTORY=other-licenses/branding/sunbird
  12262. MOZ_APP_DISPLAYNAME=Sunbird
  12263. ;;
  12264. mail)
  12265. MOZ_BRANDING_DIRECTORY=other-licenses/branding/thunderbird
  12266. ;;
  12267. *)
  12268. { echo "configure: error: Official branding is only available for Firefox Sunbird and Thunderbird." 1>&2; exit 1; }
  12269. esac
  12270. elif test "$enableval" = "no"; then
  12271. :
  12272. else
  12273. { echo "configure: error: Option, official-branding, does not take an argument ($enableval)." 1>&2; exit 1; }
  12274. fi
  12275. fi
  12276. # Check whether --with-branding or --without-branding was given.
  12277. if test "${with_branding+set}" = set; then
  12278. withval="$with_branding"
  12279. MOZ_BRANDING_DIRECTORY=$withval
  12280. fi
  12281. REAL_BRANDING_DIRECTORY="${MOZ_BRANDING_DIRECTORY}"
  12282. if test -z "$REAL_BRANDING_DIRECTORY"; then
  12283. REAL_BRANDING_DIRECTORY=${MOZ_BUILD_APP}/branding/nightly
  12284. fi
  12285. if test -f "$topsrcdir/$REAL_BRANDING_DIRECTORY/configure.sh"; then
  12286. . "$topsrcdir/$REAL_BRANDING_DIRECTORY/configure.sh"
  12287. fi
  12288. # Check whether --with-distribution-id or --without-distribution-id was given.
  12289. if test "${with_distribution_id+set}" = set; then
  12290. withval="$with_distribution_id"
  12291. val=`echo $withval`
  12292. MOZ_DISTRIBUTION_ID="$val"
  12293. fi
  12294. if test -z "$MOZ_DISTRIBUTION_ID"; then
  12295. MOZ_DISTRIBUTION_ID="org.mozilla"
  12296. fi
  12297. cat >> confdefs.h <<EOF
  12298. #define MOZ_DISTRIBUTION_ID "$MOZ_DISTRIBUTION_ID"
  12299. EOF
  12300. if test "$MOZ_ENABLE_GTK2"
  12301. then
  12302. succeeded=no
  12303. if test -z "$PKG_CONFIG"; then
  12304. # Extract the first word of "pkg-config", so it can be a program name with args.
  12305. set dummy pkg-config; ac_word=$2
  12306. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12307. echo "configure:13776: checking for $ac_word" >&5
  12308. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12309. echo $ac_n "(cached) $ac_c" 1>&6
  12310. else
  12311. case "$PKG_CONFIG" in
  12312. /*)
  12313. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12314. ;;
  12315. ?:/*)
  12316. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12317. ;;
  12318. *)
  12319. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12320. ac_dummy="$PATH"
  12321. for ac_dir in $ac_dummy; do
  12322. test -z "$ac_dir" && ac_dir=.
  12323. if test -f $ac_dir/$ac_word; then
  12324. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12325. break
  12326. fi
  12327. done
  12328. IFS="$ac_save_ifs"
  12329. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12330. ;;
  12331. esac
  12332. fi
  12333. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12334. if test -n "$PKG_CONFIG"; then
  12335. echo "$ac_t""$PKG_CONFIG" 1>&6
  12336. else
  12337. echo "$ac_t""no" 1>&6
  12338. fi
  12339. fi
  12340. if test "$PKG_CONFIG" = "no" ; then
  12341. echo "*** The pkg-config script could not be found. Make sure it is"
  12342. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12343. echo "*** to the full path to pkg-config."
  12344. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12345. else
  12346. PKG_CONFIG_MIN_VERSION=0.9.0
  12347. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12348. echo $ac_n "checking for xft""... $ac_c" 1>&6
  12349. echo "configure:13820: checking for xft" >&5
  12350. if $PKG_CONFIG --exists "xft" ; then
  12351. echo "$ac_t""yes" 1>&6
  12352. succeeded=yes
  12353. echo $ac_n "checking MOZ_XFT_CFLAGS""... $ac_c" 1>&6
  12354. echo "configure:13827: checking MOZ_XFT_CFLAGS" >&5
  12355. MOZ_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft"`
  12356. echo "$ac_t""$MOZ_XFT_CFLAGS" 1>&6
  12357. echo $ac_n "checking MOZ_XFT_LIBS""... $ac_c" 1>&6
  12358. echo "configure:13832: checking MOZ_XFT_LIBS" >&5
  12359. ## Remove evil flags like -Wl,--export-dynamic
  12360. MOZ_XFT_LIBS="`$PKG_CONFIG --libs \"xft\" |sed s/-Wl,--export-dynamic//g`"
  12361. echo "$ac_t""$MOZ_XFT_LIBS" 1>&6
  12362. else
  12363. MOZ_XFT_CFLAGS=""
  12364. MOZ_XFT_LIBS=""
  12365. ## If we have a custom action on failure, don't print errors, but
  12366. ## do set a variable so people can do so.
  12367. MOZ_XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
  12368. echo $MOZ_XFT_PKG_ERRORS
  12369. fi
  12370. else
  12371. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12372. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12373. fi
  12374. fi
  12375. if test $succeeded = yes; then
  12376. :
  12377. else
  12378. if test "$COMPILE_ENVIRONMENT"; then
  12379. { echo "configure: error: Library requirements (xft) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  12380. fi
  12381. fi
  12382. succeeded=no
  12383. if test -z "$PKG_CONFIG"; then
  12384. # Extract the first word of "pkg-config", so it can be a program name with args.
  12385. set dummy pkg-config; ac_word=$2
  12386. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12387. echo "configure:13870: checking for $ac_word" >&5
  12388. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12389. echo $ac_n "(cached) $ac_c" 1>&6
  12390. else
  12391. case "$PKG_CONFIG" in
  12392. /*)
  12393. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12394. ;;
  12395. ?:/*)
  12396. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12397. ;;
  12398. *)
  12399. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12400. ac_dummy="$PATH"
  12401. for ac_dir in $ac_dummy; do
  12402. test -z "$ac_dir" && ac_dir=.
  12403. if test -f $ac_dir/$ac_word; then
  12404. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12405. break
  12406. fi
  12407. done
  12408. IFS="$ac_save_ifs"
  12409. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12410. ;;
  12411. esac
  12412. fi
  12413. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12414. if test -n "$PKG_CONFIG"; then
  12415. echo "$ac_t""$PKG_CONFIG" 1>&6
  12416. else
  12417. echo "$ac_t""no" 1>&6
  12418. fi
  12419. fi
  12420. if test "$PKG_CONFIG" = "no" ; then
  12421. echo "*** The pkg-config script could not be found. Make sure it is"
  12422. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12423. echo "*** to the full path to pkg-config."
  12424. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12425. else
  12426. PKG_CONFIG_MIN_VERSION=0.9.0
  12427. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12428. echo $ac_n "checking for pango >= $PANGO_VERSION""... $ac_c" 1>&6
  12429. echo "configure:13914: checking for pango >= $PANGO_VERSION" >&5
  12430. if $PKG_CONFIG --exists "pango >= $PANGO_VERSION" ; then
  12431. echo "$ac_t""yes" 1>&6
  12432. succeeded=yes
  12433. echo $ac_n "checking _PANGOCHK_CFLAGS""... $ac_c" 1>&6
  12434. echo "configure:13921: checking _PANGOCHK_CFLAGS" >&5
  12435. _PANGOCHK_CFLAGS=`$PKG_CONFIG --cflags "pango >= $PANGO_VERSION"`
  12436. echo "$ac_t""$_PANGOCHK_CFLAGS" 1>&6
  12437. echo $ac_n "checking _PANGOCHK_LIBS""... $ac_c" 1>&6
  12438. echo "configure:13926: checking _PANGOCHK_LIBS" >&5
  12439. ## Remove evil flags like -Wl,--export-dynamic
  12440. _PANGOCHK_LIBS="`$PKG_CONFIG --libs \"pango >= $PANGO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12441. echo "$ac_t""$_PANGOCHK_LIBS" 1>&6
  12442. else
  12443. _PANGOCHK_CFLAGS=""
  12444. _PANGOCHK_LIBS=""
  12445. ## If we have a custom action on failure, don't print errors, but
  12446. ## do set a variable so people can do so.
  12447. _PANGOCHK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango >= $PANGO_VERSION"`
  12448. echo $_PANGOCHK_PKG_ERRORS
  12449. fi
  12450. else
  12451. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12452. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12453. fi
  12454. fi
  12455. if test $succeeded = yes; then
  12456. :
  12457. else
  12458. if test "$COMPILE_ENVIRONMENT"; then
  12459. { echo "configure: error: Library requirements (pango >= $PANGO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  12460. fi
  12461. fi
  12462. succeeded=no
  12463. if test -z "$PKG_CONFIG"; then
  12464. # Extract the first word of "pkg-config", so it can be a program name with args.
  12465. set dummy pkg-config; ac_word=$2
  12466. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12467. echo "configure:13961: checking for $ac_word" >&5
  12468. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12469. echo $ac_n "(cached) $ac_c" 1>&6
  12470. else
  12471. case "$PKG_CONFIG" in
  12472. /*)
  12473. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12474. ;;
  12475. ?:/*)
  12476. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12477. ;;
  12478. *)
  12479. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12480. ac_dummy="$PATH"
  12481. for ac_dir in $ac_dummy; do
  12482. test -z "$ac_dir" && ac_dir=.
  12483. if test -f $ac_dir/$ac_word; then
  12484. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12485. break
  12486. fi
  12487. done
  12488. IFS="$ac_save_ifs"
  12489. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12490. ;;
  12491. esac
  12492. fi
  12493. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12494. if test -n "$PKG_CONFIG"; then
  12495. echo "$ac_t""$PKG_CONFIG" 1>&6
  12496. else
  12497. echo "$ac_t""no" 1>&6
  12498. fi
  12499. fi
  12500. if test "$PKG_CONFIG" = "no" ; then
  12501. echo "*** The pkg-config script could not be found. Make sure it is"
  12502. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12503. echo "*** to the full path to pkg-config."
  12504. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12505. else
  12506. PKG_CONFIG_MIN_VERSION=0.9.0
  12507. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12508. echo $ac_n "checking for pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION""... $ac_c" 1>&6
  12509. echo "configure:14005: checking for pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION" >&5
  12510. if $PKG_CONFIG --exists "pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION" ; then
  12511. echo "$ac_t""yes" 1>&6
  12512. succeeded=yes
  12513. echo $ac_n "checking MOZ_PANGO_CFLAGS""... $ac_c" 1>&6
  12514. echo "configure:14012: checking MOZ_PANGO_CFLAGS" >&5
  12515. MOZ_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION"`
  12516. echo "$ac_t""$MOZ_PANGO_CFLAGS" 1>&6
  12517. echo $ac_n "checking MOZ_PANGO_LIBS""... $ac_c" 1>&6
  12518. echo "configure:14017: checking MOZ_PANGO_LIBS" >&5
  12519. ## Remove evil flags like -Wl,--export-dynamic
  12520. MOZ_PANGO_LIBS="`$PKG_CONFIG --libs \"pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12521. echo "$ac_t""$MOZ_PANGO_LIBS" 1>&6
  12522. else
  12523. MOZ_PANGO_CFLAGS=""
  12524. MOZ_PANGO_LIBS=""
  12525. ## If we have a custom action on failure, don't print errors, but
  12526. ## do set a variable so people can do so.
  12527. MOZ_PANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION"`
  12528. echo $MOZ_PANGO_PKG_ERRORS
  12529. fi
  12530. else
  12531. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12532. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12533. fi
  12534. fi
  12535. if test $succeeded = yes; then
  12536. :
  12537. else
  12538. if test "$COMPILE_ENVIRONMENT"; then
  12539. { echo "configure: error: Library requirements (pango >= $PANGO_VERSION pangocairo >= $PANGO_VERSION pangoft2 >= $PANGO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  12540. fi
  12541. fi
  12542. fi
  12543. # Check whether --enable-postscript or --disable-postscript was given.
  12544. if test "${enable_postscript+set}" = set; then
  12545. enableval="$enable_postscript"
  12546. if test "$enableval" = "no"; then
  12547. MOZ_ENABLE_POSTSCRIPT=
  12548. elif test "$enableval" = "yes"; then
  12549. MOZ_ENABLE_POSTSCRIPT=1
  12550. else
  12551. { echo "configure: error: Option, postscript, does not take an argument ($enableval)." 1>&2; exit 1; }
  12552. fi
  12553. fi
  12554. if test "$MOZ_X11"
  12555. then
  12556. if test "$MOZ_ENABLE_GTK2"
  12557. then
  12558. MOZ_ENABLE_GNOMEVFS=1
  12559. MOZ_ENABLE_GCONF=1
  12560. MOZ_ENABLE_LIBGNOME=1
  12561. fi
  12562. # Check whether --enable-gnomevfs or --disable-gnomevfs was given.
  12563. if test "${enable_gnomevfs+set}" = set; then
  12564. enableval="$enable_gnomevfs"
  12565. if test "$enableval" = "no"; then
  12566. MOZ_ENABLE_GNOMEVFS=
  12567. elif test "$enableval" = "yes"; then
  12568. MOZ_ENABLE_GNOMEVFS=force
  12569. else
  12570. { echo "configure: error: Option, gnomevfs, does not take an argument ($enableval)." 1>&2; exit 1; }
  12571. fi
  12572. fi
  12573. if test "$MOZ_ENABLE_GNOMEVFS"
  12574. then
  12575. succeeded=no
  12576. if test -z "$PKG_CONFIG"; then
  12577. # Extract the first word of "pkg-config", so it can be a program name with args.
  12578. set dummy pkg-config; ac_word=$2
  12579. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12580. echo "configure:14094: checking for $ac_word" >&5
  12581. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12582. echo $ac_n "(cached) $ac_c" 1>&6
  12583. else
  12584. case "$PKG_CONFIG" in
  12585. /*)
  12586. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12587. ;;
  12588. ?:/*)
  12589. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12590. ;;
  12591. *)
  12592. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12593. ac_dummy="$PATH"
  12594. for ac_dir in $ac_dummy; do
  12595. test -z "$ac_dir" && ac_dir=.
  12596. if test -f $ac_dir/$ac_word; then
  12597. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12598. break
  12599. fi
  12600. done
  12601. IFS="$ac_save_ifs"
  12602. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12603. ;;
  12604. esac
  12605. fi
  12606. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12607. if test -n "$PKG_CONFIG"; then
  12608. echo "$ac_t""$PKG_CONFIG" 1>&6
  12609. else
  12610. echo "$ac_t""no" 1>&6
  12611. fi
  12612. fi
  12613. if test "$PKG_CONFIG" = "no" ; then
  12614. echo "*** The pkg-config script could not be found. Make sure it is"
  12615. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12616. echo "*** to the full path to pkg-config."
  12617. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12618. else
  12619. PKG_CONFIG_MIN_VERSION=0.9.0
  12620. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12621. echo $ac_n "checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION""... $ac_c" 1>&6
  12622. echo "configure:14138: checking for gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" >&5
  12623. if $PKG_CONFIG --exists "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" ; then
  12624. echo "$ac_t""yes" 1>&6
  12625. succeeded=yes
  12626. echo $ac_n "checking MOZ_GNOMEVFS_CFLAGS""... $ac_c" 1>&6
  12627. echo "configure:14145: checking MOZ_GNOMEVFS_CFLAGS" >&5
  12628. MOZ_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION"`
  12629. echo "$ac_t""$MOZ_GNOMEVFS_CFLAGS" 1>&6
  12630. echo $ac_n "checking MOZ_GNOMEVFS_LIBS""... $ac_c" 1>&6
  12631. echo "configure:14150: checking MOZ_GNOMEVFS_LIBS" >&5
  12632. ## Remove evil flags like -Wl,--export-dynamic
  12633. MOZ_GNOMEVFS_LIBS="`$PKG_CONFIG --libs \"gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12634. echo "$ac_t""$MOZ_GNOMEVFS_LIBS" 1>&6
  12635. else
  12636. MOZ_GNOMEVFS_CFLAGS=""
  12637. MOZ_GNOMEVFS_LIBS=""
  12638. ## If we have a custom action on failure, don't print errors, but
  12639. ## do set a variable so people can do so.
  12640. MOZ_GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= $GNOMEVFS_VERSION gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION"`
  12641. fi
  12642. else
  12643. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12644. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12645. fi
  12646. fi
  12647. if test $succeeded = yes; then
  12648. MOZ_GNOMEVFS_LIBS=`echo $MOZ_GNOMEVFS_LIBS | sed 's/-llinc\>//'`
  12649. MOZ_ENABLE_GNOMEVFS=1
  12650. else
  12651. if test "$COMPILE_ENVIRONMENT"; then
  12652. if test "$MOZ_ENABLE_GNOMEVFS" = "force"
  12653. then
  12654. { echo "configure: error: * * * Could not find gnome-vfs-module-2.0 >= $GNOMEVFS_VERSION" 1>&2; exit 1; }
  12655. fi
  12656. MOZ_ENABLE_GNOMEVFS=
  12657. fi
  12658. fi
  12659. fi
  12660. if test "$MOZ_ENABLE_GCONF"
  12661. then
  12662. succeeded=no
  12663. if test -z "$PKG_CONFIG"; then
  12664. # Extract the first word of "pkg-config", so it can be a program name with args.
  12665. set dummy pkg-config; ac_word=$2
  12666. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12667. echo "configure:14201: checking for $ac_word" >&5
  12668. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12669. echo $ac_n "(cached) $ac_c" 1>&6
  12670. else
  12671. case "$PKG_CONFIG" in
  12672. /*)
  12673. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12674. ;;
  12675. ?:/*)
  12676. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12677. ;;
  12678. *)
  12679. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12680. ac_dummy="$PATH"
  12681. for ac_dir in $ac_dummy; do
  12682. test -z "$ac_dir" && ac_dir=.
  12683. if test -f $ac_dir/$ac_word; then
  12684. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12685. break
  12686. fi
  12687. done
  12688. IFS="$ac_save_ifs"
  12689. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12690. ;;
  12691. esac
  12692. fi
  12693. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12694. if test -n "$PKG_CONFIG"; then
  12695. echo "$ac_t""$PKG_CONFIG" 1>&6
  12696. else
  12697. echo "$ac_t""no" 1>&6
  12698. fi
  12699. fi
  12700. if test "$PKG_CONFIG" = "no" ; then
  12701. echo "*** The pkg-config script could not be found. Make sure it is"
  12702. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12703. echo "*** to the full path to pkg-config."
  12704. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12705. else
  12706. PKG_CONFIG_MIN_VERSION=0.9.0
  12707. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12708. echo $ac_n "checking for gconf-2.0 >= $GCONF_VERSION""... $ac_c" 1>&6
  12709. echo "configure:14245: checking for gconf-2.0 >= $GCONF_VERSION" >&5
  12710. if $PKG_CONFIG --exists "gconf-2.0 >= $GCONF_VERSION" ; then
  12711. echo "$ac_t""yes" 1>&6
  12712. succeeded=yes
  12713. echo $ac_n "checking MOZ_GCONF_CFLAGS""... $ac_c" 1>&6
  12714. echo "configure:14252: checking MOZ_GCONF_CFLAGS" >&5
  12715. MOZ_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= $GCONF_VERSION"`
  12716. echo "$ac_t""$MOZ_GCONF_CFLAGS" 1>&6
  12717. echo $ac_n "checking MOZ_GCONF_LIBS""... $ac_c" 1>&6
  12718. echo "configure:14257: checking MOZ_GCONF_LIBS" >&5
  12719. ## Remove evil flags like -Wl,--export-dynamic
  12720. MOZ_GCONF_LIBS="`$PKG_CONFIG --libs \"gconf-2.0 >= $GCONF_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12721. echo "$ac_t""$MOZ_GCONF_LIBS" 1>&6
  12722. else
  12723. MOZ_GCONF_CFLAGS=""
  12724. MOZ_GCONF_LIBS=""
  12725. ## If we have a custom action on failure, don't print errors, but
  12726. ## do set a variable so people can do so.
  12727. MOZ_GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= $GCONF_VERSION"`
  12728. fi
  12729. else
  12730. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12731. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12732. fi
  12733. fi
  12734. if test $succeeded = yes; then
  12735. MOZ_GCONF_LIBS=`echo $MOZ_GCONF_LIBS | sed 's/-llinc\>//'`
  12736. MOZ_ENABLE_GCONF=1
  12737. else
  12738. if test "$COMPILE_ENVIRONMENT"; then
  12739. MOZ_ENABLE_GCONF=
  12740. fi
  12741. fi
  12742. fi
  12743. if test "$MOZ_ENABLE_GCONF"; then
  12744. cat >> confdefs.h <<\EOF
  12745. #define MOZ_ENABLE_GCONF 1
  12746. EOF
  12747. fi
  12748. if test "$MOZ_ENABLE_LIBGNOME"
  12749. then
  12750. succeeded=no
  12751. if test -z "$PKG_CONFIG"; then
  12752. # Extract the first word of "pkg-config", so it can be a program name with args.
  12753. set dummy pkg-config; ac_word=$2
  12754. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12755. echo "configure:14312: checking for $ac_word" >&5
  12756. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12757. echo $ac_n "(cached) $ac_c" 1>&6
  12758. else
  12759. case "$PKG_CONFIG" in
  12760. /*)
  12761. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12762. ;;
  12763. ?:/*)
  12764. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12765. ;;
  12766. *)
  12767. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12768. ac_dummy="$PATH"
  12769. for ac_dir in $ac_dummy; do
  12770. test -z "$ac_dir" && ac_dir=.
  12771. if test -f $ac_dir/$ac_word; then
  12772. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12773. break
  12774. fi
  12775. done
  12776. IFS="$ac_save_ifs"
  12777. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12778. ;;
  12779. esac
  12780. fi
  12781. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12782. if test -n "$PKG_CONFIG"; then
  12783. echo "$ac_t""$PKG_CONFIG" 1>&6
  12784. else
  12785. echo "$ac_t""no" 1>&6
  12786. fi
  12787. fi
  12788. if test "$PKG_CONFIG" = "no" ; then
  12789. echo "*** The pkg-config script could not be found. Make sure it is"
  12790. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12791. echo "*** to the full path to pkg-config."
  12792. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12793. else
  12794. PKG_CONFIG_MIN_VERSION=0.9.0
  12795. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12796. echo $ac_n "checking for libgnome-2.0 >= $LIBGNOME_VERSION""... $ac_c" 1>&6
  12797. echo "configure:14356: checking for libgnome-2.0 >= $LIBGNOME_VERSION" >&5
  12798. if $PKG_CONFIG --exists "libgnome-2.0 >= $LIBGNOME_VERSION" ; then
  12799. echo "$ac_t""yes" 1>&6
  12800. succeeded=yes
  12801. echo $ac_n "checking MOZ_LIBGNOME_CFLAGS""... $ac_c" 1>&6
  12802. echo "configure:14363: checking MOZ_LIBGNOME_CFLAGS" >&5
  12803. MOZ_LIBGNOME_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= $LIBGNOME_VERSION"`
  12804. echo "$ac_t""$MOZ_LIBGNOME_CFLAGS" 1>&6
  12805. echo $ac_n "checking MOZ_LIBGNOME_LIBS""... $ac_c" 1>&6
  12806. echo "configure:14368: checking MOZ_LIBGNOME_LIBS" >&5
  12807. ## Remove evil flags like -Wl,--export-dynamic
  12808. MOZ_LIBGNOME_LIBS="`$PKG_CONFIG --libs \"libgnome-2.0 >= $LIBGNOME_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12809. echo "$ac_t""$MOZ_LIBGNOME_LIBS" 1>&6
  12810. else
  12811. MOZ_LIBGNOME_CFLAGS=""
  12812. MOZ_LIBGNOME_LIBS=""
  12813. ## If we have a custom action on failure, don't print errors, but
  12814. ## do set a variable so people can do so.
  12815. MOZ_LIBGNOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnome-2.0 >= $LIBGNOME_VERSION"`
  12816. fi
  12817. else
  12818. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12819. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12820. fi
  12821. fi
  12822. if test $succeeded = yes; then
  12823. MOZ_LIBGNOME_LIBS=`echo $MOZ_LIBGNOME_LIBS | sed 's/-llinc\>//'`
  12824. MOZ_ENABLE_LIBGNOME=1
  12825. else
  12826. if test "$COMPILE_ENVIRONMENT"; then
  12827. MOZ_ENABLE_LIBGNOME=
  12828. fi
  12829. fi
  12830. fi
  12831. # The GNOME component is built if gtk2, gconf, gnome-vfs, and libgnome
  12832. # are all available.
  12833. if test "$MOZ_ENABLE_GTK2" -a "$MOZ_ENABLE_GCONF" -a \
  12834. "$MOZ_ENABLE_GNOMEVFS" -a "$MOZ_ENABLE_LIBGNOME"; then
  12835. MOZ_ENABLE_GNOME_COMPONENT=1
  12836. else
  12837. MOZ_ENABLE_GNOME_COMPONENT=
  12838. fi
  12839. fi
  12840. if test "$MOZ_ENABLE_GTK2"
  12841. then
  12842. MOZ_ENABLE_GNOMEUI=1
  12843. # Check whether --enable-gnomeui or --disable-gnomeui was given.
  12844. if test "${enable_gnomeui+set}" = set; then
  12845. enableval="$enable_gnomeui"
  12846. if test "$enableval" = "no"; then
  12847. MOZ_ENABLE_GNOMEUI=
  12848. elif test "$enableval" = "yes"; then
  12849. MOZ_ENABLE_GNOMEUI=force
  12850. else
  12851. { echo "configure: error: Option, gnomeui, does not take an argument ($enableval)." 1>&2; exit 1; }
  12852. fi
  12853. fi
  12854. if test "$MOZ_ENABLE_GNOMEUI"
  12855. then
  12856. succeeded=no
  12857. if test -z "$PKG_CONFIG"; then
  12858. # Extract the first word of "pkg-config", so it can be a program name with args.
  12859. set dummy pkg-config; ac_word=$2
  12860. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12861. echo "configure:14446: checking for $ac_word" >&5
  12862. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12863. echo $ac_n "(cached) $ac_c" 1>&6
  12864. else
  12865. case "$PKG_CONFIG" in
  12866. /*)
  12867. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12868. ;;
  12869. ?:/*)
  12870. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12871. ;;
  12872. *)
  12873. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12874. ac_dummy="$PATH"
  12875. for ac_dir in $ac_dummy; do
  12876. test -z "$ac_dir" && ac_dir=.
  12877. if test -f $ac_dir/$ac_word; then
  12878. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12879. break
  12880. fi
  12881. done
  12882. IFS="$ac_save_ifs"
  12883. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12884. ;;
  12885. esac
  12886. fi
  12887. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12888. if test -n "$PKG_CONFIG"; then
  12889. echo "$ac_t""$PKG_CONFIG" 1>&6
  12890. else
  12891. echo "$ac_t""no" 1>&6
  12892. fi
  12893. fi
  12894. if test "$PKG_CONFIG" = "no" ; then
  12895. echo "*** The pkg-config script could not be found. Make sure it is"
  12896. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12897. echo "*** to the full path to pkg-config."
  12898. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12899. else
  12900. PKG_CONFIG_MIN_VERSION=0.9.0
  12901. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12902. echo $ac_n "checking for libgnomeui-2.0 >= $GNOMEUI_VERSION""... $ac_c" 1>&6
  12903. echo "configure:14490: checking for libgnomeui-2.0 >= $GNOMEUI_VERSION" >&5
  12904. if $PKG_CONFIG --exists "libgnomeui-2.0 >= $GNOMEUI_VERSION" ; then
  12905. echo "$ac_t""yes" 1>&6
  12906. succeeded=yes
  12907. echo $ac_n "checking MOZ_GNOMEUI_CFLAGS""... $ac_c" 1>&6
  12908. echo "configure:14497: checking MOZ_GNOMEUI_CFLAGS" >&5
  12909. MOZ_GNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= $GNOMEUI_VERSION"`
  12910. echo "$ac_t""$MOZ_GNOMEUI_CFLAGS" 1>&6
  12911. echo $ac_n "checking MOZ_GNOMEUI_LIBS""... $ac_c" 1>&6
  12912. echo "configure:14502: checking MOZ_GNOMEUI_LIBS" >&5
  12913. ## Remove evil flags like -Wl,--export-dynamic
  12914. MOZ_GNOMEUI_LIBS="`$PKG_CONFIG --libs \"libgnomeui-2.0 >= $GNOMEUI_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12915. echo "$ac_t""$MOZ_GNOMEUI_LIBS" 1>&6
  12916. else
  12917. MOZ_GNOMEUI_CFLAGS=""
  12918. MOZ_GNOMEUI_LIBS=""
  12919. ## If we have a custom action on failure, don't print errors, but
  12920. ## do set a variable so people can do so.
  12921. MOZ_GNOMEUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= $GNOMEUI_VERSION"`
  12922. fi
  12923. else
  12924. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12925. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12926. fi
  12927. fi
  12928. if test $succeeded = yes; then
  12929. MOZ_GNOMEUI_LIBS=`echo $MOZ_GNOMEUI_LIBS | sed 's/-llinc\>//'`
  12930. MOZ_ENABLE_GNOMEUI=1
  12931. else
  12932. if test "$COMPILE_ENVIRONMENT"; then
  12933. if test "$MOZ_ENABLE_GNOMEUI" = "force"
  12934. then
  12935. { echo "configure: error: * * * Could not find libgnomeui-2.0 >= $GNOMEUI_VERSION" 1>&2; exit 1; }
  12936. fi
  12937. MOZ_ENABLE_GNOMEUI=
  12938. fi
  12939. fi
  12940. fi
  12941. if test "$MOZ_ENABLE_GNOMEUI"; then
  12942. cat >> confdefs.h <<\EOF
  12943. #define MOZ_ENABLE_GNOMEUI 1
  12944. EOF
  12945. fi
  12946. fi
  12947. if test "$MOZ_ENABLE_GTK2"
  12948. then
  12949. MOZ_ENABLE_DBUS=1
  12950. # Check whether --enable-dbus or --disable-dbus was given.
  12951. if test "${enable_dbus+set}" = set; then
  12952. enableval="$enable_dbus"
  12953. if test "$enableval" = "no"; then
  12954. MOZ_ENABLE_DBUS=
  12955. elif test "$enableval" = "yes"; then
  12956. MOZ_ENABLE_DBUS=1
  12957. else
  12958. { echo "configure: error: Option, dbus, does not take an argument ($enableval)." 1>&2; exit 1; }
  12959. fi
  12960. fi
  12961. if test "$MOZ_ENABLE_DBUS"
  12962. then
  12963. succeeded=no
  12964. if test -z "$PKG_CONFIG"; then
  12965. # Extract the first word of "pkg-config", so it can be a program name with args.
  12966. set dummy pkg-config; ac_word=$2
  12967. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12968. echo "configure:14579: checking for $ac_word" >&5
  12969. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12970. echo $ac_n "(cached) $ac_c" 1>&6
  12971. else
  12972. case "$PKG_CONFIG" in
  12973. /*)
  12974. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12975. ;;
  12976. ?:/*)
  12977. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12978. ;;
  12979. *)
  12980. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  12981. ac_dummy="$PATH"
  12982. for ac_dir in $ac_dummy; do
  12983. test -z "$ac_dir" && ac_dir=.
  12984. if test -f $ac_dir/$ac_word; then
  12985. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12986. break
  12987. fi
  12988. done
  12989. IFS="$ac_save_ifs"
  12990. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12991. ;;
  12992. esac
  12993. fi
  12994. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12995. if test -n "$PKG_CONFIG"; then
  12996. echo "$ac_t""$PKG_CONFIG" 1>&6
  12997. else
  12998. echo "$ac_t""no" 1>&6
  12999. fi
  13000. fi
  13001. if test "$PKG_CONFIG" = "no" ; then
  13002. echo "*** The pkg-config script could not be found. Make sure it is"
  13003. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13004. echo "*** to the full path to pkg-config."
  13005. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13006. else
  13007. PKG_CONFIG_MIN_VERSION=0.9.0
  13008. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13009. echo $ac_n "checking for dbus-glib-1 >= $DBUS_VERSION""... $ac_c" 1>&6
  13010. echo "configure:14623: checking for dbus-glib-1 >= $DBUS_VERSION" >&5
  13011. if $PKG_CONFIG --exists "dbus-glib-1 >= $DBUS_VERSION" ; then
  13012. echo "$ac_t""yes" 1>&6
  13013. succeeded=yes
  13014. echo $ac_n "checking MOZ_DBUS_GLIB_CFLAGS""... $ac_c" 1>&6
  13015. echo "configure:14630: checking MOZ_DBUS_GLIB_CFLAGS" >&5
  13016. MOZ_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= $DBUS_VERSION"`
  13017. echo "$ac_t""$MOZ_DBUS_GLIB_CFLAGS" 1>&6
  13018. echo $ac_n "checking MOZ_DBUS_GLIB_LIBS""... $ac_c" 1>&6
  13019. echo "configure:14635: checking MOZ_DBUS_GLIB_LIBS" >&5
  13020. ## Remove evil flags like -Wl,--export-dynamic
  13021. MOZ_DBUS_GLIB_LIBS="`$PKG_CONFIG --libs \"dbus-glib-1 >= $DBUS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  13022. echo "$ac_t""$MOZ_DBUS_GLIB_LIBS" 1>&6
  13023. else
  13024. MOZ_DBUS_GLIB_CFLAGS=""
  13025. MOZ_DBUS_GLIB_LIBS=""
  13026. ## If we have a custom action on failure, don't print errors, but
  13027. ## do set a variable so people can do so.
  13028. MOZ_DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_VERSION"`
  13029. echo $MOZ_DBUS_GLIB_PKG_ERRORS
  13030. fi
  13031. else
  13032. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13033. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13034. fi
  13035. fi
  13036. if test $succeeded = yes; then
  13037. :
  13038. else
  13039. if test "$COMPILE_ENVIRONMENT"; then
  13040. { echo "configure: error: Library requirements (dbus-glib-1 >= $DBUS_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  13041. fi
  13042. fi
  13043. cat >> confdefs.h <<\EOF
  13044. #define MOZ_ENABLE_DBUS 1
  13045. EOF
  13046. fi
  13047. fi
  13048. # Check whether --enable-crypto or --disable-crypto was given.
  13049. if test "${enable_crypto+set}" = set; then
  13050. enableval="$enable_crypto"
  13051. if test "$enableval" = "no"; then
  13052. MOZ_PSM=
  13053. elif test "$enableval" = "yes"; then
  13054. MOZ_PSM=1
  13055. else
  13056. { echo "configure: error: Option, crypto, does not take an argument ($enableval)." 1>&2; exit 1; }
  13057. fi
  13058. fi
  13059. # Check whether --enable-jsd or --disable-jsd was given.
  13060. if test "${enable_jsd+set}" = set; then
  13061. enableval="$enable_jsd"
  13062. if test "$enableval" = "no"; then
  13063. MOZ_JSDEBUGGER=
  13064. elif test "$enableval" = "yes"; then
  13065. MOZ_JSDEBUGGER=1
  13066. else
  13067. { echo "configure: error: Option, jsd, does not take an argument ($enableval)." 1>&2; exit 1; }
  13068. fi
  13069. fi
  13070. # Check whether --enable-plugins or --disable-plugins was given.
  13071. if test "${enable_plugins+set}" = set; then
  13072. enableval="$enable_plugins"
  13073. if test "$enableval" = "no"; then
  13074. MOZ_PLUGINS=
  13075. elif test "$enableval" = "yes"; then
  13076. MOZ_PLUGINS=1
  13077. else
  13078. { echo "configure: error: Option, plugins, does not take an argument ($enableval)." 1>&2; exit 1; }
  13079. fi
  13080. fi
  13081. # Check whether --enable-oji or --disable-oji was given.
  13082. if test "${enable_oji+set}" = set; then
  13083. enableval="$enable_oji"
  13084. if test "$enableval" = "no"; then
  13085. MOZ_OJI=
  13086. elif test "$enableval" = "yes"; then
  13087. MOZ_OJI=1
  13088. else
  13089. { echo "configure: error: Option, oji, does not take an argument ($enableval)." 1>&2; exit 1; }
  13090. fi
  13091. fi
  13092. if test -n "$MOZ_OJI"; then
  13093. cat >> confdefs.h <<\EOF
  13094. #define OJI 1
  13095. EOF
  13096. fi
  13097. IBMBIDI=1
  13098. cat >> confdefs.h <<\EOF
  13099. #define IBMBIDI 1
  13100. EOF
  13101. # Check whether --enable-ctl or --disable-ctl was given.
  13102. if test "${enable_ctl+set}" = set; then
  13103. enableval="$enable_ctl"
  13104. if test "$enableval" = "yes"; then
  13105. SUNCTL=1
  13106. elif test "$enableval" = "no"; then
  13107. SUNCTL=
  13108. else
  13109. { echo "configure: error: Option, ctl, does not take an argument ($enableval)." 1>&2; exit 1; }
  13110. fi
  13111. fi
  13112. # Check whether --enable-view-source or --disable-view-source was given.
  13113. if test "${enable_view_source+set}" = set; then
  13114. enableval="$enable_view_source"
  13115. if test "$enableval" = "no"; then
  13116. MOZ_VIEW_SOURCE=
  13117. elif test "$enableval" = "yes"; then
  13118. MOZ_VIEW_SOURCE=1
  13119. else
  13120. { echo "configure: error: Option, view-source, does not take an argument ($enableval)." 1>&2; exit 1; }
  13121. fi
  13122. fi
  13123. if test "$MOZ_VIEW_SOURCE"; then
  13124. cat >> confdefs.h <<\EOF
  13125. #define MOZ_VIEW_SOURCE 1
  13126. EOF
  13127. fi
  13128. # Check whether --enable-accessibility or --disable-accessibility was given.
  13129. if test "${enable_accessibility+set}" = set; then
  13130. enableval="$enable_accessibility"
  13131. if test "$enableval" = "no"; then
  13132. ACCESSIBILITY=
  13133. elif test "$enableval" = "yes"; then
  13134. ACCESSIBILITY=1
  13135. else
  13136. { echo "configure: error: Option, accessibility, does not take an argument ($enableval)." 1>&2; exit 1; }
  13137. fi
  13138. fi
  13139. if test "$ACCESSIBILITY"; then
  13140. cat >> confdefs.h <<\EOF
  13141. #define ACCESSIBILITY 1
  13142. EOF
  13143. fi
  13144. if test -n "$ACCESSIBILITY"; then
  13145. case "$target" in
  13146. *-mingw*|*-cygwin*|*-msvc*|*-mks*)
  13147. if test "$ac_cv_header_atlbase_h" = "no"; then
  13148. { echo "configure: error: System header atlbase.h is not available. See http://developer.mozilla.org/en/docs/atlbase.h for details on fixing this problem." 1>&2; exit 1; }
  13149. fi
  13150. if test "$ac_cv_header_oleacc_idl" = "no"; then
  13151. { echo "configure: error: System header oleacc.idl is not available. See http://developer.mozilla.org/en/docs/oleacc.idl for details on fixing this problem." 1>&2; exit 1; }
  13152. fi
  13153. ;;
  13154. esac
  13155. fi
  13156. # Check whether --enable-xpfe-components or --disable-xpfe-components was given.
  13157. if test "${enable_xpfe_components+set}" = set; then
  13158. enableval="$enable_xpfe_components"
  13159. if test "$enableval" = "no"; then
  13160. MOZ_XPFE_COMPONENTS=
  13161. elif test "$enableval" = "yes"; then
  13162. MOZ_XPFE_COMPONENTS=1
  13163. else
  13164. { echo "configure: error: Option, xpfe-components, does not take an argument ($enableval)." 1>&2; exit 1; }
  13165. fi
  13166. fi
  13167. # Check whether --enable-xpinstall or --disable-xpinstall was given.
  13168. if test "${enable_xpinstall+set}" = set; then
  13169. enableval="$enable_xpinstall"
  13170. if test "$enableval" = "no"; then
  13171. MOZ_XPINSTALL=
  13172. elif test "$enableval" = "yes"; then
  13173. MOZ_XPINSTALL=1
  13174. else
  13175. { echo "configure: error: Option, xpinstall, does not take an argument ($enableval)." 1>&2; exit 1; }
  13176. fi
  13177. fi
  13178. if test "$MOZ_XPINSTALL"; then
  13179. cat >> confdefs.h <<\EOF
  13180. #define MOZ_XPINSTALL 1
  13181. EOF
  13182. fi
  13183. # Check whether --enable-jsloader or --disable-jsloader was given.
  13184. if test "${enable_jsloader+set}" = set; then
  13185. enableval="$enable_jsloader"
  13186. if test "$enableval" = "no"; then
  13187. MOZ_JSLOADER=
  13188. elif test "$enableval" = "yes"; then
  13189. MOZ_JSLOADER=1
  13190. else
  13191. { echo "configure: error: Option, jsloader, does not take an argument ($enableval)." 1>&2; exit 1; }
  13192. fi
  13193. fi
  13194. if test "$MOZ_JSLOADER"; then
  13195. cat >> confdefs.h <<\EOF
  13196. #define MOZ_JSLOADER 1
  13197. EOF
  13198. fi
  13199. # Check whether --enable-printing or --disable-printing was given.
  13200. if test "${enable_printing+set}" = set; then
  13201. enableval="$enable_printing"
  13202. if test "$enableval" = "no"; then
  13203. NS_PRINTING=
  13204. elif test "$enableval" = "yes"; then
  13205. NS_PRINTING=1
  13206. else
  13207. { echo "configure: error: Option, printing, does not take an argument ($enableval)." 1>&2; exit 1; }
  13208. fi
  13209. fi
  13210. if test "$NS_PRINTING"; then
  13211. cat >> confdefs.h <<\EOF
  13212. #define NS_PRINTING 1
  13213. EOF
  13214. cat >> confdefs.h <<\EOF
  13215. #define NS_PRINT_PREVIEW 1
  13216. EOF
  13217. fi
  13218. # Check whether --enable-native-uconv or --disable-native-uconv was given.
  13219. if test "${enable_native_uconv+set}" = set; then
  13220. enableval="$enable_native_uconv"
  13221. if test "$enableval" = "yes"; then
  13222. MOZ_USE_NATIVE_UCONV=1
  13223. elif test "$enableval" = "no"; then
  13224. MOZ_USE_NATIVE_UCONV=
  13225. else
  13226. { echo "configure: error: Option, native-uconv, does not take an argument ($enableval)." 1>&2; exit 1; }
  13227. fi
  13228. fi
  13229. if test "$MOZ_USE_NATIVE_UCONV"; then
  13230. cat >> confdefs.h <<\EOF
  13231. #define MOZ_USE_NATIVE_UCONV 1
  13232. EOF
  13233. fi
  13234. if test "$OS_ARCH" != "WINCE" -a "$OS_ARCH" != "WINNT" -a "$MOZ_USE_NATIVE_UCONV" -a "$ac_cv_func_iconv" != "yes"; then
  13235. { echo "configure: error: iconv() not found. Cannot enable native uconv support." 1>&2; exit 1; }
  13236. fi
  13237. # Check whether --enable-plaintext-editor-only or --disable-plaintext-editor-only was given.
  13238. if test "${enable_plaintext_editor_only+set}" = set; then
  13239. enableval="$enable_plaintext_editor_only"
  13240. if test "$enableval" = "yes"; then
  13241. MOZ_PLAINTEXT_EDITOR_ONLY=1
  13242. elif test "$enableval" = "no"; then
  13243. MOZ_PLAINTEXT_EDITOR_ONLY=
  13244. else
  13245. { echo "configure: error: Option, plaintext-editor-only, does not take an argument ($enableval)." 1>&2; exit 1; }
  13246. fi
  13247. fi
  13248. # Check whether --enable-composer or --disable-composer was given.
  13249. if test "${enable_composer+set}" = set; then
  13250. enableval="$enable_composer"
  13251. if test "$enableval" = "no"; then
  13252. MOZ_COMPOSER=
  13253. elif test "$enableval" = "yes"; then
  13254. MOZ_COMPOSER=1
  13255. else
  13256. { echo "configure: error: Option, composer, does not take an argument ($enableval)." 1>&2; exit 1; }
  13257. fi
  13258. fi
  13259. # Check whether --enable-xpcom-obsolete or --disable-xpcom-obsolete was given.
  13260. if test "${enable_xpcom_obsolete+set}" = set; then
  13261. enableval="$enable_xpcom_obsolete"
  13262. if test "$enableval" = "no"; then
  13263. MOZ_NO_XPCOM_OBSOLETE=1
  13264. elif test "$enableval" = "yes"; then
  13265. MOZ_NO_XPCOM_OBSOLETE=
  13266. else
  13267. { echo "configure: error: Option, xpcom-obsolete, does not take an argument ($enableval)." 1>&2; exit 1; }
  13268. fi
  13269. fi
  13270. if test -n "$MOZ_NO_XPCOM_OBSOLETE"; then
  13271. cat >> confdefs.h <<\EOF
  13272. #define MOZ_NO_XPCOM_OBSOLETE 1
  13273. EOF
  13274. fi
  13275. # Check whether --enable-xpcom-fastload or --disable-xpcom-fastload was given.
  13276. if test "${enable_xpcom_fastload+set}" = set; then
  13277. enableval="$enable_xpcom_fastload"
  13278. if test "$enableval" = "no"; then
  13279. MOZ_NO_FAST_LOAD=1
  13280. elif test "$enableval" = "yes"; then
  13281. MOZ_NO_FAST_LOAD=
  13282. else
  13283. { echo "configure: error: Option, xpcom-fastload, does not take an argument ($enableval)." 1>&2; exit 1; }
  13284. fi
  13285. fi
  13286. if test -n "$MOZ_NO_FAST_LOAD"; then
  13287. cat >> confdefs.h <<\EOF
  13288. #define MOZ_NO_FAST_LOAD 1
  13289. EOF
  13290. fi
  13291. # Check whether --enable-permissions or --disable-permissions was given.
  13292. if test "${enable_permissions+set}" = set; then
  13293. enableval="$enable_permissions"
  13294. if test "$enableval" = "no"; then
  13295. MOZ_PERMISSIONS=
  13296. elif test "$enableval" = "yes"; then
  13297. MOZ_PERMISSIONS=1
  13298. else
  13299. { echo "configure: error: Option, permissions, does not take an argument ($enableval)." 1>&2; exit 1; }
  13300. fi
  13301. fi
  13302. # Check whether --enable-negotiateauth or --disable-negotiateauth was given.
  13303. if test "${enable_negotiateauth+set}" = set; then
  13304. enableval="$enable_negotiateauth"
  13305. if test "$enableval" = "no"; then
  13306. MOZ_AUTH_EXTENSION=
  13307. elif test "$enableval" = "yes"; then
  13308. MOZ_AUTH_EXTENSION=1
  13309. else
  13310. { echo "configure: error: Option, negotiateauth, does not take an argument ($enableval)." 1>&2; exit 1; }
  13311. fi
  13312. fi
  13313. # Check whether --enable-xtf or --disable-xtf was given.
  13314. if test "${enable_xtf+set}" = set; then
  13315. enableval="$enable_xtf"
  13316. if test "$enableval" = "no"; then
  13317. MOZ_XTF=
  13318. elif test "$enableval" = "yes"; then
  13319. MOZ_XTF=1
  13320. else
  13321. { echo "configure: error: Option, xtf, does not take an argument ($enableval)." 1>&2; exit 1; }
  13322. fi
  13323. fi
  13324. if test "$MOZ_XTF"; then
  13325. cat >> confdefs.h <<\EOF
  13326. #define MOZ_XTF 1
  13327. EOF
  13328. fi
  13329. # Check whether --enable-inspector-apis or --disable-inspector-apis was given.
  13330. if test "${enable_inspector_apis+set}" = set; then
  13331. enableval="$enable_inspector_apis"
  13332. if test "$enableval" = "no"; then
  13333. MOZ_NO_INSPECTOR_APIS=1
  13334. elif test "$enableval" = "yes"; then
  13335. MOZ_NO_INSPECTOR_APIS=
  13336. else
  13337. { echo "configure: error: Option, inspector-apis, does not take an argument ($enableval)." 1>&2; exit 1; }
  13338. fi
  13339. fi
  13340. # Check whether --enable-xmlextras or --disable-xmlextras was given.
  13341. if test "${enable_xmlextras+set}" = set; then
  13342. enableval="$enable_xmlextras"
  13343. if test "$enableval" = "no"; then
  13344. MOZ_XMLEXTRAS=
  13345. elif test "$enableval" = "yes"; then
  13346. MOZ_XMLEXTRAS=1
  13347. else
  13348. { echo "configure: error: Option, xmlextras, does not take an argument ($enableval)." 1>&2; exit 1; }
  13349. fi
  13350. fi
  13351. # Check whether --enable-webservices or --disable-webservices was given.
  13352. if test "${enable_webservices+set}" = set; then
  13353. enableval="$enable_webservices"
  13354. if test "$enableval" = "yes"; then
  13355. MOZ_WEBSERVICES=1
  13356. elif test "$enableval" = "no"; then
  13357. MOZ_WEBSERVICES=
  13358. else
  13359. { echo "configure: error: Option, webservices, does not take an argument ($enableval)." 1>&2; exit 1; }
  13360. fi
  13361. fi
  13362. # Check whether --enable-pref-extensions or --disable-pref-extensions was given.
  13363. if test "${enable_pref_extensions+set}" = set; then
  13364. enableval="$enable_pref_extensions"
  13365. if test "$enableval" = "no"; then
  13366. MOZ_PREF_EXTENSIONS=
  13367. elif test "$enableval" = "yes"; then
  13368. MOZ_PREF_EXTENSIONS=1
  13369. else
  13370. { echo "configure: error: Option, pref-extensions, does not take an argument ($enableval)." 1>&2; exit 1; }
  13371. fi
  13372. fi
  13373. # Check whether --enable-universalchardet or --disable-universalchardet was given.
  13374. if test "${enable_universalchardet+set}" = set; then
  13375. enableval="$enable_universalchardet"
  13376. if test "$enableval" = "no"; then
  13377. MOZ_UNIVERSALCHARDET=
  13378. elif test "$enableval" = "yes"; then
  13379. MOZ_UNIVERSALCHARDET=1
  13380. else
  13381. { echo "configure: error: Option, universalchardet, does not take an argument ($enableval)." 1>&2; exit 1; }
  13382. fi
  13383. fi
  13384. # Check whether --enable-javaxpcom or --disable-javaxpcom was given.
  13385. if test "${enable_javaxpcom+set}" = set; then
  13386. enableval="$enable_javaxpcom"
  13387. if test "$enableval" = "yes"; then
  13388. MOZ_JAVAXPCOM=1
  13389. elif test "$enableval" = "no"; then
  13390. MOZ_JAVAXPCOM=
  13391. else
  13392. { echo "configure: error: Option, javaxpcom, does not take an argument ($enableval)." 1>&2; exit 1; }
  13393. fi
  13394. fi
  13395. if test -n "${MOZ_JAVAXPCOM}"; then
  13396. case "$host_os" in
  13397. cygwin*|msvc*|mks*)
  13398. if test -n "$JAVA_HOME"; then
  13399. JAVA_HOME=`cygpath -u \`cygpath -m -s "$JAVA_HOME"\``
  13400. fi
  13401. ;;
  13402. *mingw*)
  13403. if test -n "$JAVA_HOME"; then
  13404. JAVA_HOME=`cd "$JAVA_HOME" && pwd`
  13405. fi
  13406. ;;
  13407. esac
  13408. if test -n "${JAVA_INCLUDE_PATH}"; then
  13409. if test ! -f "$JAVA_INCLUDE_PATH/jni.h"; then
  13410. { echo "configure: error: jni.h was not found in given include path $JAVA_INCLUDE_PATH." 1>&2; exit 1; }
  13411. fi
  13412. else
  13413. case "$target_os" in
  13414. darwin*)
  13415. JAVA_INCLUDE_PATH=/System/Library/Frameworks/JavaVM.framework/Headers
  13416. ;;
  13417. *)
  13418. JAVA_INCLUDE_PATH="$JAVA_HOME/include"
  13419. ;;
  13420. esac
  13421. if test ! -f "$JAVA_INCLUDE_PATH/jni.h"; then
  13422. { echo "configure: error: The header jni.h was not found. Set \$JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom." 1>&2; exit 1; }
  13423. fi
  13424. fi
  13425. if test -n "${JAVA_BIN_PATH}"; then
  13426. JAVA_PATH="$JAVA_BIN_PATH"
  13427. else
  13428. JAVA_PATH="$JAVA_HOME/bin:$PATH"
  13429. fi
  13430. # Extract the first word of "java", so it can be a program name with args.
  13431. set dummy java; ac_word=$2
  13432. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13433. echo "configure:15138: checking for $ac_word" >&5
  13434. if eval "test \"`echo '$''{'ac_cv_path_JAVA'+set}'`\" = set"; then
  13435. echo $ac_n "(cached) $ac_c" 1>&6
  13436. else
  13437. case "$JAVA" in
  13438. /*)
  13439. ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
  13440. ;;
  13441. ?:/*)
  13442. ac_cv_path_JAVA="$JAVA" # Let the user override the test with a dos path.
  13443. ;;
  13444. *)
  13445. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13446. ac_dummy="$JAVA_PATH"
  13447. for ac_dir in $ac_dummy; do
  13448. test -z "$ac_dir" && ac_dir=.
  13449. if test -f $ac_dir/$ac_word; then
  13450. ac_cv_path_JAVA="$ac_dir/$ac_word"
  13451. break
  13452. fi
  13453. done
  13454. IFS="$ac_save_ifs"
  13455. test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA=":"
  13456. ;;
  13457. esac
  13458. fi
  13459. JAVA="$ac_cv_path_JAVA"
  13460. if test -n "$JAVA"; then
  13461. echo "$ac_t""$JAVA" 1>&6
  13462. else
  13463. echo "$ac_t""no" 1>&6
  13464. fi
  13465. # Extract the first word of "javac", so it can be a program name with args.
  13466. set dummy javac; ac_word=$2
  13467. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13468. echo "configure:15174: checking for $ac_word" >&5
  13469. if eval "test \"`echo '$''{'ac_cv_path_JAVAC'+set}'`\" = set"; then
  13470. echo $ac_n "(cached) $ac_c" 1>&6
  13471. else
  13472. case "$JAVAC" in
  13473. /*)
  13474. ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  13475. ;;
  13476. ?:/*)
  13477. ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a dos path.
  13478. ;;
  13479. *)
  13480. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13481. ac_dummy="$JAVA_PATH"
  13482. for ac_dir in $ac_dummy; do
  13483. test -z "$ac_dir" && ac_dir=.
  13484. if test -f $ac_dir/$ac_word; then
  13485. ac_cv_path_JAVAC="$ac_dir/$ac_word"
  13486. break
  13487. fi
  13488. done
  13489. IFS="$ac_save_ifs"
  13490. test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC=":"
  13491. ;;
  13492. esac
  13493. fi
  13494. JAVAC="$ac_cv_path_JAVAC"
  13495. if test -n "$JAVAC"; then
  13496. echo "$ac_t""$JAVAC" 1>&6
  13497. else
  13498. echo "$ac_t""no" 1>&6
  13499. fi
  13500. # Extract the first word of "jar", so it can be a program name with args.
  13501. set dummy jar; ac_word=$2
  13502. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13503. echo "configure:15210: checking for $ac_word" >&5
  13504. if eval "test \"`echo '$''{'ac_cv_path_JAR'+set}'`\" = set"; then
  13505. echo $ac_n "(cached) $ac_c" 1>&6
  13506. else
  13507. case "$JAR" in
  13508. /*)
  13509. ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
  13510. ;;
  13511. ?:/*)
  13512. ac_cv_path_JAR="$JAR" # Let the user override the test with a dos path.
  13513. ;;
  13514. *)
  13515. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13516. ac_dummy="$JAVA_PATH"
  13517. for ac_dir in $ac_dummy; do
  13518. test -z "$ac_dir" && ac_dir=.
  13519. if test -f $ac_dir/$ac_word; then
  13520. ac_cv_path_JAR="$ac_dir/$ac_word"
  13521. break
  13522. fi
  13523. done
  13524. IFS="$ac_save_ifs"
  13525. test -z "$ac_cv_path_JAR" && ac_cv_path_JAR=":"
  13526. ;;
  13527. esac
  13528. fi
  13529. JAR="$ac_cv_path_JAR"
  13530. if test -n "$JAR"; then
  13531. echo "$ac_t""$JAR" 1>&6
  13532. else
  13533. echo "$ac_t""no" 1>&6
  13534. fi
  13535. if test -z "$JAVA" || test "$JAVA" = ":" || test -z "$JAVAC" || test "$JAVAC" = ":" || test -z "$JAR" || test "$JAR" = ":"; then
  13536. { echo "configure: error: The programs java, javac and jar were not found. Set \$JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom." 1>&2; exit 1; }
  13537. fi
  13538. fi
  13539. if (test "$OS_ARCH" = "WINNT" -a -z "$GNU_CC" \
  13540. || test "$OS_ARCH" = "Darwin" \
  13541. || test "$OS_ARCH" = "Linux" -a "$CPU_ARCH" = "x86" \
  13542. || test "$OS_ARCH" = "SunOS") \
  13543. && test -z "$HAVE_64BIT_OS"; then
  13544. MOZ_CRASHREPORTER=1
  13545. fi
  13546. # Check whether --enable-crashreporter or --disable-crashreporter was given.
  13547. if test "${enable_crashreporter+set}" = set; then
  13548. enableval="$enable_crashreporter"
  13549. if test "$enableval" = "no"; then
  13550. MOZ_CRASHREPORTER=
  13551. elif test "$enableval" = "yes"; then
  13552. MOZ_CRASHREPORTER=1
  13553. else
  13554. { echo "configure: error: Option, crashreporter, does not take an argument ($enableval)." 1>&2; exit 1; }
  13555. fi
  13556. fi
  13557. if test -n "$MOZ_CRASHREPORTER"; then
  13558. cat >> confdefs.h <<\EOF
  13559. #define MOZ_CRASHREPORTER 1
  13560. EOF
  13561. if (test "$OS_ARCH" = "Linux" || test "$OS_ARCH" = "SunOS") && \
  13562. test -z "$SKIP_LIBRARY_CHECKS"; then
  13563. succeeded=no
  13564. if test -z "$PKG_CONFIG"; then
  13565. # Extract the first word of "pkg-config", so it can be a program name with args.
  13566. set dummy pkg-config; ac_word=$2
  13567. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13568. echo "configure:15284: checking for $ac_word" >&5
  13569. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  13570. echo $ac_n "(cached) $ac_c" 1>&6
  13571. else
  13572. case "$PKG_CONFIG" in
  13573. /*)
  13574. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13575. ;;
  13576. ?:/*)
  13577. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  13578. ;;
  13579. *)
  13580. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13581. ac_dummy="$PATH"
  13582. for ac_dir in $ac_dummy; do
  13583. test -z "$ac_dir" && ac_dir=.
  13584. if test -f $ac_dir/$ac_word; then
  13585. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  13586. break
  13587. fi
  13588. done
  13589. IFS="$ac_save_ifs"
  13590. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13591. ;;
  13592. esac
  13593. fi
  13594. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13595. if test -n "$PKG_CONFIG"; then
  13596. echo "$ac_t""$PKG_CONFIG" 1>&6
  13597. else
  13598. echo "$ac_t""no" 1>&6
  13599. fi
  13600. fi
  13601. if test "$PKG_CONFIG" = "no" ; then
  13602. echo "*** The pkg-config script could not be found. Make sure it is"
  13603. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13604. echo "*** to the full path to pkg-config."
  13605. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13606. else
  13607. PKG_CONFIG_MIN_VERSION=0.9.0
  13608. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13609. echo $ac_n "checking for gthread-2.0""... $ac_c" 1>&6
  13610. echo "configure:15328: checking for gthread-2.0" >&5
  13611. if $PKG_CONFIG --exists "gthread-2.0" ; then
  13612. echo "$ac_t""yes" 1>&6
  13613. succeeded=yes
  13614. echo $ac_n "checking MOZ_GTHREAD_CFLAGS""... $ac_c" 1>&6
  13615. echo "configure:15335: checking MOZ_GTHREAD_CFLAGS" >&5
  13616. MOZ_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0"`
  13617. echo "$ac_t""$MOZ_GTHREAD_CFLAGS" 1>&6
  13618. echo $ac_n "checking MOZ_GTHREAD_LIBS""... $ac_c" 1>&6
  13619. echo "configure:15340: checking MOZ_GTHREAD_LIBS" >&5
  13620. ## Remove evil flags like -Wl,--export-dynamic
  13621. MOZ_GTHREAD_LIBS="`$PKG_CONFIG --libs \"gthread-2.0\" |sed s/-Wl,--export-dynamic//g`"
  13622. echo "$ac_t""$MOZ_GTHREAD_LIBS" 1>&6
  13623. else
  13624. MOZ_GTHREAD_CFLAGS=""
  13625. MOZ_GTHREAD_LIBS=""
  13626. ## If we have a custom action on failure, don't print errors, but
  13627. ## do set a variable so people can do so.
  13628. MOZ_GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0"`
  13629. echo $MOZ_GTHREAD_PKG_ERRORS
  13630. fi
  13631. else
  13632. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13633. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13634. fi
  13635. fi
  13636. if test $succeeded = yes; then
  13637. :
  13638. else
  13639. if test "$COMPILE_ENVIRONMENT"; then
  13640. { echo "configure: error: Library requirements (gthread-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  13641. fi
  13642. fi
  13643. for ac_hdr in curl/curl.h
  13644. do
  13645. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  13646. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  13647. echo "configure:15376: checking for $ac_hdr" >&5
  13648. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  13649. echo $ac_n "(cached) $ac_c" 1>&6
  13650. else
  13651. cat > conftest.$ac_ext <<EOF
  13652. #line 15381 "configure"
  13653. #include "confdefs.h"
  13654. #include <$ac_hdr>
  13655. EOF
  13656. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  13657. { (eval echo configure:15386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  13658. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  13659. if test -z "$ac_err"; then
  13660. rm -rf conftest*
  13661. eval "ac_cv_header_$ac_safe=yes"
  13662. else
  13663. echo "$ac_err" >&5
  13664. echo "configure: failed program was:" >&5
  13665. cat conftest.$ac_ext >&5
  13666. rm -rf conftest*
  13667. eval "ac_cv_header_$ac_safe=no"
  13668. fi
  13669. rm -f conftest*
  13670. fi
  13671. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  13672. echo "$ac_t""yes" 1>&6
  13673. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  13674. cat >> confdefs.h <<EOF
  13675. #define $ac_tr_hdr 1
  13676. EOF
  13677. else
  13678. echo "$ac_t""no" 1>&6
  13679. { echo "configure: error: Couldn't find curl/curl.h which is required for the crash reporter. Use --disable-crashreporter to disable the crash reporter." 1>&2; exit 1; }
  13680. fi
  13681. done
  13682. fi
  13683. fi
  13684. # Check whether --with-crashreporter-enable-percent or --without-crashreporter-enable-percent was given.
  13685. if test "${with_crashreporter_enable_percent+set}" = set; then
  13686. withval="$with_crashreporter_enable_percent"
  13687. val=`echo $withval | sed 's/^0-9//g'`
  13688. MOZ_CRASHREPORTER_ENABLE_PERCENT="$val"
  13689. fi
  13690. if test -z "$MOZ_CRASHREPORTER_ENABLE_PERCENT"; then
  13691. MOZ_CRASHREPORTER_ENABLE_PERCENT=100
  13692. fi
  13693. cat >> confdefs.h <<EOF
  13694. #define MOZ_CRASHREPORTER_ENABLE_PERCENT $MOZ_CRASHREPORTER_ENABLE_PERCENT
  13695. EOF
  13696. # Check whether --enable-mochitest or --disable-mochitest was given.
  13697. if test "${enable_mochitest+set}" = set; then
  13698. enableval="$enable_mochitest"
  13699. if test "$enableval" = "no"; then
  13700. MOZ_MOCHITEST=
  13701. elif test "$enableval" = "yes"; then
  13702. MOZ_MOCHITEST=1
  13703. else
  13704. { echo "configure: error: Option, mochitest, does not take an argument ($enableval)." 1>&2; exit 1; }
  13705. fi
  13706. fi
  13707. # Check whether --enable-extensions or --disable-extensions was given.
  13708. if test "${enable_extensions+set}" = set; then
  13709. enableval="$enable_extensions"
  13710. for option in `echo $enableval | sed 's/,/ /g'`; do
  13711. if test "$option" = "yes" || test "$option" = "all"; then
  13712. MOZ_EXTENSIONS="$MOZ_EXTENSIONS $MOZ_EXTENSIONS_ALL"
  13713. elif test "$option" = "no" || test "$option" = "none"; then
  13714. MOZ_EXTENSIONS=""
  13715. elif test "$option" = "default"; then
  13716. MOZ_EXTENSIONS="$MOZ_EXTENSIONS $MOZ_EXTENSIONS_DEFAULT"
  13717. elif test `echo "$option" | grep -c \^-` != 0; then
  13718. option=`echo $option | sed 's/^-//'`
  13719. MOZ_EXTENSIONS=`echo "$MOZ_EXTENSIONS" | sed "s/ ${option}//"`
  13720. else
  13721. MOZ_EXTENSIONS="$MOZ_EXTENSIONS $option"
  13722. fi
  13723. done
  13724. else
  13725. MOZ_EXTENSIONS="$MOZ_EXTENSIONS_DEFAULT"
  13726. fi
  13727. if test -z "$MOZ_ENABLE_GNOMEVFS" && test `echo "$MOZ_EXTENSIONS" | grep -c gnomevfs` -ne 0; then
  13728. # Suppress warning on non-X11 platforms
  13729. if test -n "$MOZ_X11"; then
  13730. echo "configure: warning: Cannot build gnomevfs without required libraries. Removing gnomevfs from MOZ_EXTENSIONS." 1>&2
  13731. fi
  13732. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gnomevfs||'`
  13733. fi
  13734. if test -z "$MOZ_JSDEBUGGER" && test `echo "$MOZ_EXTENSIONS" | grep -c venkman` -ne 0; then
  13735. echo "configure: warning: Cannot build venkman without JavaScript debug library. Removing venkman from MOZ_EXTENSIONS." 1>&2
  13736. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|venkman||'`
  13737. fi
  13738. if test `echo "$MOZ_EXTENSIONS" | grep -c tridentprofile` -ne 0 && test "$OS_ARCH" != "WINNT"; then
  13739. echo "configure: warning: tridentprofile extension works only on Windows at this time. Removing tridentprofile from MOZ_EXTENSIONS." 1>&2
  13740. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|tridentprofile||'`
  13741. fi
  13742. if test `echo "$MOZ_EXTENSIONS" | grep -c tridentprofile` -ne 0; then
  13743. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|tridentprofile||'`
  13744. MOZ_EXTENSIONS="$MOZ_EXTENSIONS tridentprofile"
  13745. fi
  13746. if test -z "$MOZ_XTF" && test `echo "$MOZ_EXTENSIONS" | grep -c xforms` -ne 0; then
  13747. echo "configure: warning: Cannot build XForms without XTF support. Removing XForms from MOZ_EXTENSIONS." 1>&2
  13748. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|xforms||g'`
  13749. fi
  13750. if test `echo "$MOZ_EXTENSIONS" | grep -c xforms` -ne 0 && test `echo "$MOZ_EXTENSIONS" | grep -c schema-validation` -eq 0; then
  13751. echo "configure: warning: Cannot build XForms without schema validation. Removing XForms from MOZ_EXTENSIONS." 1>&2
  13752. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|xforms||g'`
  13753. fi
  13754. if test `echo "$MOZ_EXTENSIONS" | grep -c auth` -ne 0; then
  13755. echo "configure: warning: auth is no longer an extension, use --disable-negotiateauth to disable." 1>&2
  13756. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|auth||g'`
  13757. fi
  13758. if test `echo "$MOZ_EXTENSIONS" | grep -c xmlextras` -ne 0; then
  13759. echo "configure: warning: xmlextras is no longer an extension, use --disable-xmlextras to disable." 1>&2
  13760. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|xmlextras||g'`
  13761. fi
  13762. if test `echo "$MOZ_EXTENSIONS" | grep -c 'cookie\|permissions'` -ne 0; then
  13763. echo "configure: warning: cookie and permissions are no longer extensions, use --disable-permissions to disable." 1>&2
  13764. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|cookie||g; s|permissions||g'`
  13765. fi
  13766. if test `echo "$MOZ_EXTENSIONS" | grep -c webservices` -ne 0; then
  13767. echo "configure: warning: webservices is no longer an extension, use --disable-webservices to disable." 1>&2
  13768. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|webservices||g'`
  13769. fi
  13770. if test `echo "$MOZ_EXTENSIONS" | grep -c pref` -ne 0; then
  13771. echo "configure: warning: pref is no longer an extension, use --disable-pref-extensions to disable." 1>&2
  13772. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|pref||g'`
  13773. fi
  13774. if test `echo "$MOZ_EXTENSIONS" | grep -c universalchardet` -ne 0; then
  13775. echo "configure: warning: universalchardet is no longer an extension, use --disable-universalchardet to disable." 1>&2
  13776. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|universalchardet||g'`
  13777. fi
  13778. if test `echo "$MOZ_EXTENSIONS" | grep -c java` -ne 0; then
  13779. echo "configure: warning: java is no longer an extension, use --enable-javaxpcom to enable." 1>&2
  13780. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|java||g'`
  13781. fi
  13782. if test `echo "$MOZ_EXTENSIONS" | grep -c spellcheck` -ne 0; then
  13783. echo "configure: warning: spellcheck is no longer an extension." 1>&2
  13784. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|spellcheck||g'`
  13785. fi
  13786. if test -n "$MOZ_NO_XPCOM_OBSOLETE" && test `echo "$MOZ_EXTENSIONS" | grep -c sroaming` -ne 0; then
  13787. echo "configure: warning: Cannot currently build sroaming without xpcom obsolete -- bug 249343. Removing sroaming from MOZ_EXTENSIONS." 1>&2
  13788. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|sroaming||'`
  13789. fi
  13790. MOZ_EXTENSIONS=`${PERL} ${srcdir}/build/unix/uniq.pl ${MOZ_EXTENSIONS}`
  13791. for extension in $MOZ_EXTENSIONS; do
  13792. if test ! -d "${srcdir}/extensions/${extension}"; then
  13793. { echo "configure: error: Unrecognized extension provided to --enable-extensions: ${extension}." 1>&2; exit 1; }
  13794. fi
  13795. done
  13796. case "$MOZ_WIDGET_TOOLKIT" in
  13797. beos|windows|os2|mac|cocoa)
  13798. ;;
  13799. *)
  13800. if test -z "$MOZ_ENABLE_GTK2"; then
  13801. MOZ_IMG_DECODERS_DEFAULT=`echo $MOZ_IMG_DECODERS_DEFAULT | sed -e 's|icon||'`
  13802. fi
  13803. ;;
  13804. esac
  13805. # Check whether --enable-image-decoders or --disable-image-decoders was given.
  13806. if test "${enable_image_decoders+set}" = set; then
  13807. enableval="$enable_image_decoders"
  13808. for option in `echo $enableval | sed 's/,/ /g'`; do
  13809. if test "$option" = "yes" || test "$option" = "all"; then
  13810. MOZ_IMG_DECODERS="$MOZ_IMG_DECODERS $MOZ_IMG_DECODERS_DEFAULT"
  13811. elif test "$option" = "no" || test "$option" = "none"; then
  13812. MOZ_IMG_DECODERS=""
  13813. elif test "$option" = "default"; then
  13814. MOZ_IMG_DECODERS="$MOZ_IMG_DECODERS $MOZ_IMG_DECODERS_DEFAULT"
  13815. elif test `echo "$option" | grep -c \^-` != 0; then
  13816. option=`echo $option | sed 's/^-//'`
  13817. MOZ_IMG_DECODERS=`echo "$MOZ_IMG_DECODERS" | sed "s/ ${option}//"`
  13818. else
  13819. MOZ_IMG_DECODERS="$MOZ_IMG_DECODERS $option"
  13820. fi
  13821. done
  13822. else
  13823. MOZ_IMG_DECODERS="$MOZ_IMG_DECODERS_DEFAULT"
  13824. fi
  13825. # Check whether --enable-image-encoders or --disable-image-encoders was given.
  13826. if test "${enable_image_encoders+set}" = set; then
  13827. enableval="$enable_image_encoders"
  13828. for option in `echo $enableval | sed 's/,/ /g'`; do
  13829. if test "$option" = "yes" || test "$option" = "all"; then
  13830. addencoder="$MOZ_IMG_ENCODERS_DEFAULT"
  13831. elif test "$option" = "no" || test "$option" = "none"; then
  13832. MOZ_IMG_ENCODERS=""
  13833. addencoder=""
  13834. elif test "$option" = "default"; then
  13835. addencoder="$MOZ_IMG_ENCODERS_DEFAULT"
  13836. elif test `echo "$option" | grep -c \^-` != 0; then
  13837. option=`echo $option | sed 's/^-//'`
  13838. addencoder=`echo "$MOZ_IMG_ENCODERS" | sed "s/ ${option}//"`
  13839. else
  13840. addencoder="$option"
  13841. fi
  13842. MOZ_IMG_ENCODERS="$MOZ_IMG_ENCODERS $addencoder"
  13843. done
  13844. else
  13845. MOZ_IMG_ENCODERS="$MOZ_IMG_ENCODERS_DEFAULT"
  13846. fi
  13847. MOZ_IMG_DECODERS=`${PERL} ${srcdir}/build/unix/uniq.pl ${MOZ_IMG_DECODERS}`
  13848. MOZ_IMG_ENCODERS=`${PERL} ${srcdir}/build/unix/uniq.pl ${MOZ_IMG_ENCODERS}`
  13849. # Check whether --enable-ldap-experimental or --disable-ldap-experimental was given.
  13850. if test "${enable_ldap_experimental+set}" = set; then
  13851. enableval="$enable_ldap_experimental"
  13852. if test "$enableval" = "yes"; then
  13853. MOZ_LDAP_XPCOM_EXPERIMENTAL=1
  13854. elif test "$enableval" = "no"; then
  13855. MOZ_LDAP_XPCOM_EXPERIMENTAL=
  13856. else
  13857. { echo "configure: error: Option, ldap-experimental, does not take an argument ($enableval)." 1>&2; exit 1; }
  13858. fi
  13859. fi
  13860. # Check whether --enable-mathml or --disable-mathml was given.
  13861. if test "${enable_mathml+set}" = set; then
  13862. enableval="$enable_mathml"
  13863. if test "$enableval" = "no"; then
  13864. MOZ_MATHML=
  13865. elif test "$enableval" = "yes"; then
  13866. MOZ_MATHML=1
  13867. else
  13868. { echo "configure: error: Option, mathml, does not take an argument ($enableval)." 1>&2; exit 1; }
  13869. fi
  13870. fi
  13871. if test "$MOZ_MATHML"; then
  13872. cat >> confdefs.h <<\EOF
  13873. #define MOZ_MATHML 1
  13874. EOF
  13875. fi
  13876. # Check whether --enable-canvas or --disable-canvas was given.
  13877. if test "${enable_canvas+set}" = set; then
  13878. enableval="$enable_canvas"
  13879. if test "$enableval" = "no"; then
  13880. MOZ_ENABLE_CANVAS=
  13881. elif test "$enableval" = "yes"; then
  13882. MOZ_ENABLE_CANVAS=1
  13883. else
  13884. { echo "configure: error: Option, canvas, does not take an argument ($enableval)." 1>&2; exit 1; }
  13885. fi
  13886. fi
  13887. if test -n "$MOZ_ENABLE_CANVAS"; then
  13888. cat >> confdefs.h <<\EOF
  13889. #define MOZ_ENABLE_CANVAS 1
  13890. EOF
  13891. fi
  13892. # Check whether --enable-svg or --disable-svg was given.
  13893. if test "${enable_svg+set}" = set; then
  13894. enableval="$enable_svg"
  13895. if test "$enableval" = "no"; then
  13896. MOZ_SVG=
  13897. elif test "$enableval" = "yes"; then
  13898. MOZ_SVG=1
  13899. else
  13900. { echo "configure: error: Option, svg, does not take an argument ($enableval)." 1>&2; exit 1; }
  13901. fi
  13902. fi
  13903. if test -n "$MOZ_SVG"; then
  13904. cat >> confdefs.h <<\EOF
  13905. #define MOZ_SVG 1
  13906. EOF
  13907. fi
  13908. MOZ_SVG_FOREIGNOBJECT=1
  13909. # Check whether --enable-svg-foreignobject or --disable-svg-foreignobject was given.
  13910. if test "${enable_svg_foreignobject+set}" = set; then
  13911. enableval="$enable_svg_foreignobject"
  13912. if test "$enableval" = "no"; then
  13913. MOZ_SVG_FOREIGNOBJECT=
  13914. elif test "$enableval" = "yes"; then
  13915. MOZ_SVG_FOREIGNOBJECT=1
  13916. else
  13917. { echo "configure: error: Option, svg-foreignobject, does not take an argument ($enableval)." 1>&2; exit 1; }
  13918. fi
  13919. fi
  13920. if test "$MOZ_SVG_FOREIGNOBJECT"; then
  13921. if test "$MOZ_SVG"; then
  13922. cat >> confdefs.h <<\EOF
  13923. #define MOZ_SVG_FOREIGNOBJECT 1
  13924. EOF
  13925. else
  13926. MOZ_SVG_FOREIGNOBEJCT=
  13927. fi
  13928. fi
  13929. case "$target_os" in
  13930. aix*|solaris*|linux*|msvc*|mks*|cygwin*|mingw*|os2*|wince*)
  13931. MOZ_INSTALLER=1
  13932. ;;
  13933. esac
  13934. # Check whether --enable-installer or --disable-installer was given.
  13935. if test "${enable_installer+set}" = set; then
  13936. enableval="$enable_installer"
  13937. if test "$enableval" = "no"; then
  13938. MOZ_INSTALLER=
  13939. elif test "$enableval" = "yes"; then
  13940. MOZ_INSTALLER=1
  13941. else
  13942. { echo "configure: error: Option, installer, does not take an argument ($enableval)." 1>&2; exit 1; }
  13943. fi
  13944. fi
  13945. if test -n "$MOZ_INSTALLER" -a -n "$MOZ_XUL_APP" -a "$OS_ARCH" = "WINNT"; then
  13946. # Disable installer for Windows builds that use the new toolkit if NSIS
  13947. # isn't in the path.
  13948. for ac_prog in makensis
  13949. do
  13950. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13951. set dummy $ac_prog; ac_word=$2
  13952. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13953. echo "configure:15736: checking for $ac_word" >&5
  13954. if eval "test \"`echo '$''{'ac_cv_path_MAKENSIS'+set}'`\" = set"; then
  13955. echo $ac_n "(cached) $ac_c" 1>&6
  13956. else
  13957. case "$MAKENSIS" in
  13958. /*)
  13959. ac_cv_path_MAKENSIS="$MAKENSIS" # Let the user override the test with a path.
  13960. ;;
  13961. ?:/*)
  13962. ac_cv_path_MAKENSIS="$MAKENSIS" # Let the user override the test with a dos path.
  13963. ;;
  13964. *)
  13965. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13966. ac_dummy="$PATH"
  13967. for ac_dir in $ac_dummy; do
  13968. test -z "$ac_dir" && ac_dir=.
  13969. if test -f $ac_dir/$ac_word; then
  13970. ac_cv_path_MAKENSIS="$ac_dir/$ac_word"
  13971. break
  13972. fi
  13973. done
  13974. IFS="$ac_save_ifs"
  13975. ;;
  13976. esac
  13977. fi
  13978. MAKENSIS="$ac_cv_path_MAKENSIS"
  13979. if test -n "$MAKENSIS"; then
  13980. echo "$ac_t""$MAKENSIS" 1>&6
  13981. else
  13982. echo "$ac_t""no" 1>&6
  13983. fi
  13984. test -n "$MAKENSIS" && break
  13985. done
  13986. if test -z "$MAKENSIS" || test "$MAKENSIS" = ":"; then
  13987. { echo "configure: error: To build the installer makensis is required in your path. To build without the installer reconfigure using --disable-installer." 1>&2; exit 1; }
  13988. fi
  13989. # The Windows build for NSIS requires the iconv command line utility to
  13990. # convert the charset of the locale files.
  13991. for ac_prog in $HOST_ICONV "iconv"
  13992. do
  13993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13994. set dummy $ac_prog; ac_word=$2
  13995. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13996. echo "configure:15781: checking for $ac_word" >&5
  13997. if eval "test \"`echo '$''{'ac_cv_path_HOST_ICONV'+set}'`\" = set"; then
  13998. echo $ac_n "(cached) $ac_c" 1>&6
  13999. else
  14000. case "$HOST_ICONV" in
  14001. /*)
  14002. ac_cv_path_HOST_ICONV="$HOST_ICONV" # Let the user override the test with a path.
  14003. ;;
  14004. ?:/*)
  14005. ac_cv_path_HOST_ICONV="$HOST_ICONV" # Let the user override the test with a dos path.
  14006. ;;
  14007. *)
  14008. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  14009. ac_dummy="$PATH"
  14010. for ac_dir in $ac_dummy; do
  14011. test -z "$ac_dir" && ac_dir=.
  14012. if test -f $ac_dir/$ac_word; then
  14013. ac_cv_path_HOST_ICONV="$ac_dir/$ac_word"
  14014. break
  14015. fi
  14016. done
  14017. IFS="$ac_save_ifs"
  14018. ;;
  14019. esac
  14020. fi
  14021. HOST_ICONV="$ac_cv_path_HOST_ICONV"
  14022. if test -n "$HOST_ICONV"; then
  14023. echo "$ac_t""$HOST_ICONV" 1>&6
  14024. else
  14025. echo "$ac_t""no" 1>&6
  14026. fi
  14027. test -n "$HOST_ICONV" && break
  14028. done
  14029. test -n "$HOST_ICONV" || HOST_ICONV=""""
  14030. if test -z "$HOST_ICONV"; then
  14031. { echo "configure: error: To build the installer iconv is required in your path. To build without the installer reconfigure using --disable-installer." 1>&2; exit 1; }
  14032. fi
  14033. fi
  14034. # Automatically disable installer if xpinstall isn't built
  14035. if test -z "$MOZ_XPINSTALL"; then
  14036. MOZ_INSTALLER=
  14037. fi
  14038. echo $ac_n "checking for tar archiver""... $ac_c" 1>&6
  14039. echo "configure:15829: checking for tar archiver" >&5
  14040. for ac_prog in gnutar gtar tar
  14041. do
  14042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14043. set dummy $ac_prog; ac_word=$2
  14044. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14045. echo "configure:15835: checking for $ac_word" >&5
  14046. if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
  14047. echo $ac_n "(cached) $ac_c" 1>&6
  14048. else
  14049. if test -n "$TAR"; then
  14050. ac_cv_prog_TAR="$TAR" # Let the user override the test.
  14051. else
  14052. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  14053. ac_dummy="$PATH"
  14054. for ac_dir in $ac_dummy; do
  14055. test -z "$ac_dir" && ac_dir=.
  14056. if test -f $ac_dir/$ac_word; then
  14057. ac_cv_prog_TAR="$ac_prog"
  14058. break
  14059. fi
  14060. done
  14061. IFS="$ac_save_ifs"
  14062. fi
  14063. fi
  14064. TAR="$ac_cv_prog_TAR"
  14065. if test -n "$TAR"; then
  14066. echo "$ac_t""$TAR" 1>&6
  14067. else
  14068. echo "$ac_t""no" 1>&6
  14069. fi
  14070. test -n "$TAR" && break
  14071. done
  14072. test -n "$TAR" || TAR=""""
  14073. if test -z "$TAR"; then
  14074. { echo "configure: error: no tar archiver found in \$PATH" 1>&2; exit 1; }
  14075. fi
  14076. echo "$ac_t""$TAR" 1>&6
  14077. echo $ac_n "checking for wget""... $ac_c" 1>&6
  14078. echo "configure:15872: checking for wget" >&5
  14079. for ac_prog in wget
  14080. do
  14081. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14082. set dummy $ac_prog; ac_word=$2
  14083. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14084. echo "configure:15878: checking for $ac_word" >&5
  14085. if eval "test \"`echo '$''{'ac_cv_prog_WGET'+set}'`\" = set"; then
  14086. echo $ac_n "(cached) $ac_c" 1>&6
  14087. else
  14088. if test -n "$WGET"; then
  14089. ac_cv_prog_WGET="$WGET" # Let the user override the test.
  14090. else
  14091. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  14092. ac_dummy="$PATH"
  14093. for ac_dir in $ac_dummy; do
  14094. test -z "$ac_dir" && ac_dir=.
  14095. if test -f $ac_dir/$ac_word; then
  14096. ac_cv_prog_WGET="$ac_prog"
  14097. break
  14098. fi
  14099. done
  14100. IFS="$ac_save_ifs"
  14101. fi
  14102. fi
  14103. WGET="$ac_cv_prog_WGET"
  14104. if test -n "$WGET"; then
  14105. echo "$ac_t""$WGET" 1>&6
  14106. else
  14107. echo "$ac_t""no" 1>&6
  14108. fi
  14109. test -n "$WGET" && break
  14110. done
  14111. test -n "$WGET" || WGET=""""
  14112. echo "$ac_t""$WGET" 1>&6
  14113. # Check whether --enable-updater or --disable-updater was given.
  14114. if test "${enable_updater+set}" = set; then
  14115. enableval="$enable_updater"
  14116. if test "$enableval" = "no"; then
  14117. MOZ_UPDATER=
  14118. elif test "$enableval" = "yes"; then
  14119. MOZ_UPDATER=1
  14120. else
  14121. { echo "configure: error: Option, updater, does not take an argument ($enableval)." 1>&2; exit 1; }
  14122. fi
  14123. fi
  14124. # The Windows build requires the iconv command line utility
  14125. # in order to build the updater.
  14126. case "$target_os" in
  14127. msvc*|mks*|cygwin*|mingw*|wince*)
  14128. if test -n "$MOZ_UPDATER"; then
  14129. echo $ac_n "checking for iconv""... $ac_c" 1>&6
  14130. echo "configure:15930: checking for iconv" >&5
  14131. for ac_prog in $HOST_ICONV "iconv"
  14132. do
  14133. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14134. set dummy $ac_prog; ac_word=$2
  14135. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14136. echo "configure:15936: checking for $ac_word" >&5
  14137. if eval "test \"`echo '$''{'ac_cv_prog_HOST_ICONV'+set}'`\" = set"; then
  14138. echo $ac_n "(cached) $ac_c" 1>&6
  14139. else
  14140. if test -n "$HOST_ICONV"; then
  14141. ac_cv_prog_HOST_ICONV="$HOST_ICONV" # Let the user override the test.
  14142. else
  14143. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  14144. ac_dummy="$PATH"
  14145. for ac_dir in $ac_dummy; do
  14146. test -z "$ac_dir" && ac_dir=.
  14147. if test -f $ac_dir/$ac_word; then
  14148. ac_cv_prog_HOST_ICONV="$ac_prog"
  14149. break
  14150. fi
  14151. done
  14152. IFS="$ac_save_ifs"
  14153. fi
  14154. fi
  14155. HOST_ICONV="$ac_cv_prog_HOST_ICONV"
  14156. if test -n "$HOST_ICONV"; then
  14157. echo "$ac_t""$HOST_ICONV" 1>&6
  14158. else
  14159. echo "$ac_t""no" 1>&6
  14160. fi
  14161. test -n "$HOST_ICONV" && break
  14162. done
  14163. test -n "$HOST_ICONV" || HOST_ICONV=""""
  14164. if test -z "$HOST_ICONV"; then
  14165. { echo "configure: error: iconv not found in \$PATH" 1>&2; exit 1; }
  14166. fi
  14167. fi
  14168. ;;
  14169. esac
  14170. # app update channel is 'default' when not supplied.
  14171. # Check whether --enable-update-channel or --disable-update-channel was given.
  14172. if test "${enable_update_channel+set}" = set; then
  14173. enableval="$enable_update_channel"
  14174. MOZ_UPDATE_CHANNEL=`echo $enableval | tr A-Z a-z`
  14175. fi
  14176. if test -z "$MOZ_UPDATE_CHANNEL"; then
  14177. MOZ_UPDATE_CHANNEL=default
  14178. fi
  14179. cat >> confdefs.h <<EOF
  14180. #define MOZ_UPDATE_CHANNEL $MOZ_UPDATE_CHANNEL
  14181. EOF
  14182. # tools/update-packaging is not checked out by default.
  14183. # Check whether --enable-update-packaging or --disable-update-packaging was given.
  14184. if test "${enable_update_packaging+set}" = set; then
  14185. enableval="$enable_update_packaging"
  14186. if test "$enableval" = "yes"; then
  14187. MOZ_UPDATE_PACKAGING=1
  14188. elif test "$enableval" = "no"; then
  14189. MOZ_UPDATE_PACKAGING=
  14190. else
  14191. { echo "configure: error: Option, update-packaging, does not take an argument ($enableval)." 1>&2; exit 1; }
  14192. fi
  14193. fi
  14194. # Check whether --enable-xpconnect-idispatch or --disable-xpconnect-idispatch was given.
  14195. if test "${enable_xpconnect_idispatch+set}" = set; then
  14196. enableval="$enable_xpconnect_idispatch"
  14197. if test "$enableval" = "no"; then
  14198. XPC_IDISPATCH_SUPPORT=
  14199. elif test "$enableval" = "yes"; then
  14200. XPC_IDISPATCH_SUPPORT=1
  14201. else
  14202. { echo "configure: error: Option, xpconnect-idispatch, does not take an argument ($enableval)." 1>&2; exit 1; }
  14203. fi
  14204. fi
  14205. # Check whether --enable-activex or --disable-activex was given.
  14206. if test "${enable_activex+set}" = set; then
  14207. enableval="$enable_activex"
  14208. if test "$enableval" = "no"; then
  14209. MOZ_NO_ACTIVEX_SUPPORT=1
  14210. elif test "$enableval" = "yes"; then
  14211. MOZ_NO_ACTIVEX_SUPPORT=
  14212. else
  14213. { echo "configure: error: Option, activex, does not take an argument ($enableval)." 1>&2; exit 1; }
  14214. fi
  14215. fi
  14216. # Check whether --enable-activex-scripting or --disable-activex-scripting was given.
  14217. if test "${enable_activex_scripting+set}" = set; then
  14218. enableval="$enable_activex_scripting"
  14219. if test "$enableval" = "no"; then
  14220. MOZ_ACTIVEX_SCRIPTING_SUPPORT=
  14221. elif test "$enableval" = "yes"; then
  14222. MOZ_ACTIVEX_SCRIPTING_SUPPORT=1
  14223. else
  14224. { echo "configure: error: Option, activex-scripting, does not take an argument ($enableval)." 1>&2; exit 1; }
  14225. fi
  14226. fi
  14227. if test -n "$MOZ_NO_ACTIVEX_SUPPORT" -a -n "$MOZ_ACTIVEX_SCRIPTING_SUPPORT";
  14228. then
  14229. { echo "configure: error: Cannot enable ActiveX scripting support when ActiveX support is disabled." 1>&2; exit 1; }
  14230. fi
  14231. if test -n "$XPC_IDISPATCH_SUPPORT" -o -n "$MOZ_ACTIVEX_SCRIPTING_SUPPORT" -o -z "$MOZ_NO_ACTIVEX_SUPPORT"; then
  14232. case "$target" in
  14233. *-mingw*|*-cygwin*|*-msvc*|*-mks*)
  14234. if test "$ac_cv_header_atlbase_h" = "no"; then
  14235. { echo "configure: error: System header atlbase.h is not available. See http://developer.mozilla.org/en/docs/atlbase.h for details on fixing this problem." 1>&2; exit 1; }
  14236. fi
  14237. ;;
  14238. esac
  14239. fi
  14240. # Check whether --enable-leaky or --disable-leaky was given.
  14241. if test "${enable_leaky+set}" = set; then
  14242. enableval="$enable_leaky"
  14243. if test "$enableval" = "yes"; then
  14244. MOZ_LEAKY=1
  14245. elif test "$enableval" = "no"; then
  14246. MOZ_LEAKY=
  14247. else
  14248. { echo "configure: error: Option, leaky, does not take an argument ($enableval)." 1>&2; exit 1; }
  14249. fi
  14250. fi
  14251. # Check whether --enable-xpctools or --disable-xpctools was given.
  14252. if test "${enable_xpctools+set}" = set; then
  14253. enableval="$enable_xpctools"
  14254. if test "$enableval" = "yes"; then
  14255. MOZ_XPCTOOLS=1
  14256. elif test "$enableval" = "no"; then
  14257. MOZ_XPCTOOLS=
  14258. else
  14259. { echo "configure: error: Option, xpctools, does not take an argument ($enableval)." 1>&2; exit 1; }
  14260. fi
  14261. fi
  14262. # Check whether --enable-tests or --disable-tests was given.
  14263. if test "${enable_tests+set}" = set; then
  14264. enableval="$enable_tests"
  14265. if test "$enableval" = "no"; then
  14266. ENABLE_TESTS=
  14267. elif test "$enableval" = "yes"; then
  14268. ENABLE_TESTS=1
  14269. else
  14270. { echo "configure: error: Option, tests, does not take an argument ($enableval)." 1>&2; exit 1; }
  14271. fi
  14272. fi
  14273. # Check whether --enable-parental-controls or --disable-parental-controls was given.
  14274. if test "${enable_parental_controls+set}" = set; then
  14275. enableval="$enable_parental_controls"
  14276. if test "$enableval" = "no"; then
  14277. MOZ_DISABLE_PARENTAL_CONTROLS=1
  14278. elif test "$enableval" = "yes"; then
  14279. MOZ_DISABLE_PARENTAL_CONTROLS=
  14280. else
  14281. { echo "configure: error: Option, parental-controls, does not take an argument ($enableval)." 1>&2; exit 1; }
  14282. fi
  14283. fi
  14284. if test -n "$MOZ_DISABLE_PARENTAL_CONTROLS"; then
  14285. cat >> confdefs.h <<\EOF
  14286. #define MOZ_DISABLE_PARENTAL_CONTROLS 1
  14287. EOF
  14288. fi
  14289. # Check whether --enable-vista-sdk-requirements or --disable-vista-sdk-requirements was given.
  14290. if test "${enable_vista_sdk_requirements+set}" = set; then
  14291. enableval="$enable_vista_sdk_requirements"
  14292. if test "$enableval" = "no"; then
  14293. MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1
  14294. elif test "$enableval" = "yes"; then
  14295. MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=
  14296. else
  14297. { echo "configure: error: Option, vista-sdk-requirements, does not take an argument ($enableval)." 1>&2; exit 1; }
  14298. fi
  14299. fi
  14300. if test -n "$MOZ_DISABLE_VISTA_SDK_REQUIREMENTS"; then
  14301. echo "configure: warning: Resulting builds will not be compatible with Windows Vista. (bug 428970)" 1>&2
  14302. cat >> confdefs.h <<\EOF
  14303. #define MOZ_DISABLE_VISTA_SDK_REQUIREMENTS 1
  14304. EOF
  14305. if test -z "$MOZ_DISABLE_PARENTAL_CONTROLS"; then
  14306. cat >> confdefs.h <<\EOF
  14307. #define MOZ_DISABLE_PARENTAL_CONTROLS 1
  14308. EOF
  14309. fi
  14310. MOZ_DISABLE_PARENTAL_CONTROLS=1
  14311. else
  14312. case "$target" in
  14313. *-mingw*|*-cygwin*|*-msvc*|*-mks*)
  14314. if test "$ac_cv_header_wpcapi_h" = "no"; then
  14315. { echo "configure: error: System header wpcapi.h is not available. See updated http://developer.mozilla.org/en/docs/wpcapi.h for details on fixing this problem." 1>&2; exit 1; }
  14316. fi
  14317. ;;
  14318. esac
  14319. fi
  14320. # Individual module options
  14321. # Check whether --enable-xpcom-lea or --disable-xpcom-lea was given.
  14322. if test "${enable_xpcom_lea+set}" = set; then
  14323. enableval="$enable_xpcom_lea"
  14324. if test "$enableval" = "yes"; then
  14325. XPCOM_USE_LEA=1
  14326. elif test "$enableval" = "no"; then
  14327. XPCOM_USE_LEA=
  14328. else
  14329. { echo "configure: error: Option, xpcom-lea, does not take an argument ($enableval)." 1>&2; exit 1; }
  14330. fi
  14331. fi
  14332. if test -n "$XPCOM_USE_LEA"; then
  14333. cat >> confdefs.h <<\EOF
  14334. #define XPCOM_USE_LEA 1
  14335. EOF
  14336. fi
  14337. # Check whether --enable-places or --disable-places was given.
  14338. if test "${enable_places+set}" = set; then
  14339. enableval="$enable_places"
  14340. if test "$enableval" = "yes"; then
  14341. MOZ_PLACES=1
  14342. elif test "$enableval" = "no"; then
  14343. MOZ_PLACES=
  14344. else
  14345. { echo "configure: error: Option, places, does not take an argument ($enableval)." 1>&2; exit 1; }
  14346. fi
  14347. fi
  14348. if test -n "$MOZ_PLACES"; then
  14349. cat >> confdefs.h <<\EOF
  14350. #define MOZ_PLACES 1
  14351. EOF
  14352. if test -z "$MOZ_MAIL_NEWS"; then
  14353. MOZ_MORK=
  14354. fi
  14355. MOZ_MORKREADER=1
  14356. else
  14357. if test "$MOZ_BUILD_APP" = "browser"; then
  14358. { echo "configure: error: Cannot build Firefox with --disable-places." 1>&2; exit 1; }
  14359. fi
  14360. fi
  14361. # Check whether --enable-feeds or --disable-feeds was given.
  14362. if test "${enable_feeds+set}" = set; then
  14363. enableval="$enable_feeds"
  14364. if test "$enableval" = "no"; then
  14365. MOZ_FEEDS=
  14366. elif test "$enableval" = "yes"; then
  14367. MOZ_FEEDS=1
  14368. else
  14369. { echo "configure: error: Option, feeds, does not take an argument ($enableval)." 1>&2; exit 1; }
  14370. fi
  14371. fi
  14372. if test -n "$MOZ_FEEDS"; then
  14373. cat >> confdefs.h <<\EOF
  14374. #define MOZ_FEEDS 1
  14375. EOF
  14376. else
  14377. if test "$MOZ_BUILD_APP" = "browser"; then
  14378. { echo "configure: error: Cannot build Firefox with --disable-feeds." 1>&2; exit 1; }
  14379. fi
  14380. fi
  14381. # Check whether --enable-storage or --disable-storage was given.
  14382. if test "${enable_storage+set}" = set; then
  14383. enableval="$enable_storage"
  14384. if test "$enableval" = "yes"; then
  14385. MOZ_STORAGE=1
  14386. elif test "$enableval" = "no"; then
  14387. MOZ_STORAGE=
  14388. else
  14389. { echo "configure: error: Option, storage, does not take an argument ($enableval)." 1>&2; exit 1; }
  14390. fi
  14391. fi
  14392. if test -n "$MOZ_STORAGE"; then
  14393. cat >> confdefs.h <<\EOF
  14394. #define MOZ_STORAGE 1
  14395. EOF
  14396. fi
  14397. MOZ_NATIVE_SQLITE=
  14398. # Check whether --enable-system-sqlite or --disable-system-sqlite was given.
  14399. if test "${enable_system_sqlite+set}" = set; then
  14400. enableval="$enable_system_sqlite"
  14401. if test "$enableval" = "yes"; then
  14402. MOZ_NATIVE_SQLITE=1
  14403. elif test "$enableval" = "no"; then
  14404. MOZ_NATIVE_SQLITE=
  14405. else
  14406. { echo "configure: error: Option, system-sqlite, does not take an argument ($enableval)." 1>&2; exit 1; }
  14407. fi
  14408. fi
  14409. if test -z "$MOZ_NATIVE_SQLITE"
  14410. then
  14411. SQLITE_CFLAGS=
  14412. SQLITE_LIBS='$(call EXPAND_LIBNAME_PATH,sqlite3,$(DIST)/lib)'
  14413. else
  14414. succeeded=no
  14415. if test -z "$PKG_CONFIG"; then
  14416. # Extract the first word of "pkg-config", so it can be a program name with args.
  14417. set dummy pkg-config; ac_word=$2
  14418. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14419. echo "configure:16276: checking for $ac_word" >&5
  14420. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  14421. echo $ac_n "(cached) $ac_c" 1>&6
  14422. else
  14423. case "$PKG_CONFIG" in
  14424. /*)
  14425. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14426. ;;
  14427. ?:/*)
  14428. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  14429. ;;
  14430. *)
  14431. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  14432. ac_dummy="$PATH"
  14433. for ac_dir in $ac_dummy; do
  14434. test -z "$ac_dir" && ac_dir=.
  14435. if test -f $ac_dir/$ac_word; then
  14436. ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  14437. break
  14438. fi
  14439. done
  14440. IFS="$ac_save_ifs"
  14441. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14442. ;;
  14443. esac
  14444. fi
  14445. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14446. if test -n "$PKG_CONFIG"; then
  14447. echo "$ac_t""$PKG_CONFIG" 1>&6
  14448. else
  14449. echo "$ac_t""no" 1>&6
  14450. fi
  14451. fi
  14452. if test "$PKG_CONFIG" = "no" ; then
  14453. echo "*** The pkg-config script could not be found. Make sure it is"
  14454. echo "*** in your path, or set the PKG_CONFIG environment variable"
  14455. echo "*** to the full path to pkg-config."
  14456. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  14457. else
  14458. PKG_CONFIG_MIN_VERSION=0.9.0
  14459. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  14460. echo $ac_n "checking for sqlite3 >= $SQLITE_VERSION""... $ac_c" 1>&6
  14461. echo "configure:16320: checking for sqlite3 >= $SQLITE_VERSION" >&5
  14462. if $PKG_CONFIG --exists "sqlite3 >= $SQLITE_VERSION" ; then
  14463. echo "$ac_t""yes" 1>&6
  14464. succeeded=yes
  14465. echo $ac_n "checking SQLITE_CFLAGS""... $ac_c" 1>&6
  14466. echo "configure:16327: checking SQLITE_CFLAGS" >&5
  14467. SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $SQLITE_VERSION"`
  14468. echo "$ac_t""$SQLITE_CFLAGS" 1>&6
  14469. echo $ac_n "checking SQLITE_LIBS""... $ac_c" 1>&6
  14470. echo "configure:16332: checking SQLITE_LIBS" >&5
  14471. ## Remove evil flags like -Wl,--export-dynamic
  14472. SQLITE_LIBS="`$PKG_CONFIG --libs \"sqlite3 >= $SQLITE_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  14473. echo "$ac_t""$SQLITE_LIBS" 1>&6
  14474. else
  14475. SQLITE_CFLAGS=""
  14476. SQLITE_LIBS=""
  14477. ## If we have a custom action on failure, don't print errors, but
  14478. ## do set a variable so people can do so.
  14479. SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= $SQLITE_VERSION"`
  14480. echo $SQLITE_PKG_ERRORS
  14481. fi
  14482. else
  14483. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  14484. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  14485. fi
  14486. fi
  14487. if test $succeeded = yes; then
  14488. :
  14489. else
  14490. if test "$COMPILE_ENVIRONMENT"; then
  14491. { echo "configure: error: Library requirements (sqlite3 >= $SQLITE_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
  14492. fi
  14493. fi
  14494. fi
  14495. # Check whether --enable-help-viewer or --disable-help-viewer was given.
  14496. if test "${enable_help_viewer+set}" = set; then
  14497. enableval="$enable_help_viewer"
  14498. if test "$enableval" = "yes"; then
  14499. MOZ_HELP_VIEWER=1
  14500. elif test "$enableval" = "no"; then
  14501. MOZ_HELP_VIEWER=
  14502. else
  14503. { echo "configure: error: Option, help-viewer, does not take an argument ($enableval)." 1>&2; exit 1; }
  14504. fi
  14505. fi
  14506. if test -n "$MOZ_HELP_VIEWER"; then
  14507. cat >> confdefs.h <<\EOF
  14508. #define MOZ_HELP_VIEWER 1
  14509. EOF
  14510. fi
  14511. if test "$MOZ_BUILD_APP" = "browser" -a -n "$MOZ_HELP_VIEWER"; then
  14512. { echo "configure: error: Cannot build Firefox with --enable-help-viewer." 1>&2; exit 1; }
  14513. fi
  14514. # Check whether --enable-safe-browsing or --disable-safe-browsing was given.
  14515. if test "${enable_safe_browsing+set}" = set; then
  14516. enableval="$enable_safe_browsing"
  14517. if test "$enableval" = "yes"; then
  14518. MOZ_SAFE_BROWSING=1
  14519. elif test "$enableval" = "no"; then
  14520. MOZ_SAFE_BROWSING=
  14521. else
  14522. { echo "configure: error: Option, safe-browsing, does not take an argument ($enableval)." 1>&2; exit 1; }
  14523. fi
  14524. fi
  14525. if test -n "$MOZ_SAFE_BROWSING"; then
  14526. cat >> confdefs.h <<\EOF
  14527. #define MOZ_SAFE_BROWSING 1
  14528. EOF
  14529. fi
  14530. if test -n "$MOZ_SAFE_BROWSING"; then
  14531. MOZ_URL_CLASSIFIER=1
  14532. fi
  14533. # Check whether --enable-url-classifier or --disable-url-classifier was given.
  14534. if test "${enable_url_classifier+set}" = set; then
  14535. enableval="$enable_url_classifier"
  14536. if test "$enableval" = "yes"; then
  14537. MOZ_URL_CLASSIFIER=1
  14538. elif test "$enableval" = "no"; then
  14539. MOZ_URL_CLASSIFIER=
  14540. else
  14541. { echo "configure: error: Option, url-classifier, does not take an argument ($enableval)." 1>&2; exit 1; }
  14542. fi
  14543. fi
  14544. if test -n "$MOZ_URL_CLASSIFIER"; then
  14545. cat >> confdefs.h <<\EOF
  14546. #define MOZ_URL_CLASSIFIER 1
  14547. EOF
  14548. fi
  14549. # Check whether --enable-zipwriter or --disable-zipwriter was given.
  14550. if test "${enable_zipwriter+set}" = set; then
  14551. enableval="$enable_zipwriter"
  14552. if test "$enableval" = "no"; then
  14553. MOZ_ZIPWRITER=
  14554. elif test "$enableval" = "yes"; then
  14555. MOZ_ZIPWRITER=1
  14556. else
  14557. { echo "configure: error: Option, zipwriter, does not take an argument ($enableval)." 1>&2; exit 1; }
  14558. fi
  14559. fi
  14560. # Check whether --enable-js-ultrasparc or --disable-js-ultrasparc was given.
  14561. if test "${enable_js_ultrasparc+set}" = set; then
  14562. enableval="$enable_js_ultrasparc"
  14563. if test "$enableval" = "yes"; then
  14564. JS_ULTRASPARC_OPTS=1
  14565. elif test "$enableval" = "no"; then
  14566. JS_ULTRASPARC_OPTS=
  14567. else
  14568. { echo "configure: error: Option, js-ultrasparc, does not take an argument ($enableval)." 1>&2; exit 1; }
  14569. fi
  14570. fi
  14571. if test `echo "$target_os" | grep -c \^solaris 2>/dev/null` = 0 -o \
  14572. "$OS_TEST" != "sun4u"; then
  14573. JS_ULTRASPARC_OPTS=
  14574. fi
  14575. # Debugging and Optimizations
  14576. if test -z "$MOZ_DEBUG_FLAGS"
  14577. then
  14578. case "$target" in
  14579. *-irix*)
  14580. if test "$GNU_CC"; then
  14581. GCC_VERSION=`$CC -v 2>&1 | awk '/version/ { print $3 }'`
  14582. case "$GCC_VERSION" in
  14583. 2.95.*)
  14584. MOZ_DEBUG_FLAGS=""
  14585. ;;
  14586. *)
  14587. MOZ_DEBUG_FLAGS="-g"
  14588. ;;
  14589. esac
  14590. else
  14591. MOZ_DEBUG_FLAGS="-g"
  14592. fi
  14593. ;;
  14594. *)
  14595. MOZ_DEBUG_FLAGS="-g"
  14596. ;;
  14597. esac
  14598. fi
  14599. # Check whether --enable-debug or --disable-debug was given.
  14600. if test "${enable_debug+set}" = set; then
  14601. enableval="$enable_debug"
  14602. if test "$enableval" != "no"; then
  14603. MOZ_DEBUG=1
  14604. if test -n "$enableval" && test "$enableval" != "yes"; then
  14605. MOZ_DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
  14606. fi
  14607. else
  14608. MOZ_DEBUG=
  14609. fi
  14610. else
  14611. MOZ_DEBUG=
  14612. fi
  14613. MOZ_DEBUG_ENABLE_DEFS="-DDEBUG -D_DEBUG"
  14614. case "${target_os}" in
  14615. beos*)
  14616. MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_${USER}"
  14617. ;;
  14618. msvc*|mks*|cygwin*|mingw*|os2*|wince*)
  14619. MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`"
  14620. ;;
  14621. *)
  14622. MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`$WHOAMI`"
  14623. ;;
  14624. esac
  14625. MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS -DTRACING"
  14626. MOZ_DEBUG_DISABLE_DEFS="-DNDEBUG -DTRIMMED"
  14627. if test -n "$MOZ_DEBUG"; then
  14628. echo $ac_n "checking for valid debug flags""... $ac_c" 1>&6
  14629. echo "configure:16525: checking for valid debug flags" >&5
  14630. _SAVE_CFLAGS=$CFLAGS
  14631. CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS"
  14632. cat > conftest.$ac_ext <<EOF
  14633. #line 16529 "configure"
  14634. #include "confdefs.h"
  14635. #include <stdio.h>
  14636. int main() {
  14637. printf("Hello World\n");
  14638. ; return 0; }
  14639. EOF
  14640. if { (eval echo configure:16536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  14641. rm -rf conftest*
  14642. _results=yes
  14643. else
  14644. echo "configure: failed program was:" >&5
  14645. cat conftest.$ac_ext >&5
  14646. rm -rf conftest*
  14647. _results=no
  14648. fi
  14649. rm -f conftest*
  14650. echo "$ac_t""$_results" 1>&6
  14651. if test "$_results" = "no"; then
  14652. { echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&2; exit 1; }
  14653. fi
  14654. CFLAGS=$_SAVE_CFLAGS
  14655. fi
  14656. if test -z "$MOZ_OPTIMIZE_FLAGS"; then
  14657. MOZ_OPTIMIZE_FLAGS="-O"
  14658. fi
  14659. # Check whether --enable-optimize or --disable-optimize was given.
  14660. if test "${enable_optimize+set}" = set; then
  14661. enableval="$enable_optimize"
  14662. if test "$enableval" != "no"; then
  14663. MOZ_OPTIMIZE=1
  14664. if test -n "$enableval" && test "$enableval" != "yes"; then
  14665. MOZ_OPTIMIZE_FLAGS=`echo "$enableval" | sed -e 's|\\\ | |g'`
  14666. MOZ_OPTIMIZE=2
  14667. fi
  14668. else
  14669. MOZ_OPTIMIZE=
  14670. fi
  14671. else
  14672. MOZ_OPTIMIZE=1
  14673. fi
  14674. if test "$COMPILE_ENVIRONMENT"; then
  14675. if test -n "$MOZ_OPTIMIZE"; then
  14676. echo $ac_n "checking for valid optimization flags""... $ac_c" 1>&6
  14677. echo "configure:16577: checking for valid optimization flags" >&5
  14678. _SAVE_CFLAGS=$CFLAGS
  14679. CFLAGS="$CFLAGS $MOZ_OPTIMIZE_FLAGS"
  14680. cat > conftest.$ac_ext <<EOF
  14681. #line 16581 "configure"
  14682. #include "confdefs.h"
  14683. #include <stdio.h>
  14684. int main() {
  14685. printf("Hello World\n");
  14686. ; return 0; }
  14687. EOF
  14688. if { (eval echo configure:16588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  14689. rm -rf conftest*
  14690. _results=yes
  14691. else
  14692. echo "configure: failed program was:" >&5
  14693. cat conftest.$ac_ext >&5
  14694. rm -rf conftest*
  14695. _results=no
  14696. fi
  14697. rm -f conftest*
  14698. echo "$ac_t""$_results" 1>&6
  14699. if test "$_results" = "no"; then
  14700. { echo "configure: error: These compiler flags are invalid: $MOZ_OPTIMIZE_FLAGS" 1>&2; exit 1; }
  14701. fi
  14702. CFLAGS=$_SAVE_CFLAGS
  14703. fi
  14704. fi # COMPILE_ENVIRONMENT
  14705. # Check whether --enable-debug-modules or --disable-debug-modules was given.
  14706. if test "${enable_debug_modules+set}" = set; then
  14707. enableval="$enable_debug_modules"
  14708. MOZ_DEBUG_MODULES=`echo $enableval| sed 's/,/ /g'`
  14709. fi
  14710. # Check whether --enable-debugger-info-modules or --disable-debugger-info-modules was given.
  14711. if test "${enable_debugger_info_modules+set}" = set; then
  14712. enableval="$enable_debugger_info_modules"
  14713. for i in `echo $enableval | sed 's/,/ /g'`; do
  14714. if test "$i" = "no"; then
  14715. i="^ALL_MODULES"
  14716. fi
  14717. if test "$i" = "yes"; then
  14718. i="ALL_MODULES"
  14719. fi
  14720. MOZ_DBGRINFO_MODULES="$i $MOZ_DBGRINFO_MODULES";
  14721. done
  14722. fi
  14723. # Check whether --enable-boehm or --disable-boehm was given.
  14724. if test "${enable_boehm+set}" = set; then
  14725. enableval="$enable_boehm"
  14726. if test "$enableval" = "yes"; then
  14727. GC_LEAK_DETECTOR=1
  14728. elif test "$enableval" = "no"; then
  14729. GC_LEAK_DETECTOR=
  14730. else
  14731. { echo "configure: error: Option, boehm, does not take an argument ($enableval)." 1>&2; exit 1; }
  14732. fi
  14733. fi
  14734. if test -n "$GC_LEAK_DETECTOR"; then
  14735. cat >> confdefs.h <<\EOF
  14736. #define GC_LEAK_DETECTOR 1
  14737. EOF
  14738. fi
  14739. # Check whether --enable-logging or --disable-logging was given.
  14740. if test "${enable_logging+set}" = set; then
  14741. enableval="$enable_logging"
  14742. if test "$enableval" = "no"; then
  14743. NS_DISABLE_LOGGING=1
  14744. elif test "$enableval" = "yes"; then
  14745. NS_DISABLE_LOGGING=
  14746. else
  14747. { echo "configure: error: Option, logging, does not take an argument ($enableval)." 1>&2; exit 1; }
  14748. fi
  14749. fi
  14750. if test "$NS_DISABLE_LOGGING"; then
  14751. cat >> confdefs.h <<\EOF
  14752. #define NS_DISABLE_LOGGING 1
  14753. EOF
  14754. else
  14755. cat >> confdefs.h <<\EOF
  14756. #define MOZ_LOGGING 1
  14757. EOF
  14758. fi
  14759. _ENABLE_LOGREFCNT=42
  14760. # Check whether --enable-logrefcnt or --disable-logrefcnt was given.
  14761. if test "${enable_logrefcnt+set}" = set; then
  14762. enableval="$enable_logrefcnt"
  14763. if test "$enableval" = "yes"; then
  14764. _ENABLE_LOGREFCNT=1
  14765. elif test "$enableval" = "no"; then
  14766. _ENABLE_LOGREFCNT=
  14767. else
  14768. { echo "configure: error: Option, logrefcnt, does not take an argument ($enableval)." 1>&2; exit 1; }
  14769. fi
  14770. fi
  14771. if test "$_ENABLE_LOGREFCNT" = "1"; then
  14772. cat >> confdefs.h <<\EOF
  14773. #define FORCE_BUILD_REFCNT_LOGGING 1
  14774. EOF
  14775. elif test -z "$_ENABLE_LOGREFCNT"; then
  14776. cat >> confdefs.h <<\EOF
  14777. #define NO_BUILD_REFCNT_LOGGING 1
  14778. EOF
  14779. fi
  14780. NS_TRACE_MALLOC=${MOZ_TRACE_MALLOC}
  14781. # Check whether --enable-trace-malloc or --disable-trace-malloc was given.
  14782. if test "${enable_trace_malloc+set}" = set; then
  14783. enableval="$enable_trace_malloc"
  14784. if test "$enableval" = "yes"; then
  14785. NS_TRACE_MALLOC=1
  14786. elif test "$enableval" = "no"; then
  14787. NS_TRACE_MALLOC=
  14788. else
  14789. { echo "configure: error: Option, trace-malloc, does not take an argument ($enableval)." 1>&2; exit 1; }
  14790. fi
  14791. fi
  14792. if test "$NS_TRACE_MALLOC"; then
  14793. # Please, Mr. Linker Man, don't take away our symbol names
  14794. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
  14795. USE_ELF_DYNSTR_GC=
  14796. cat >> confdefs.h <<\EOF
  14797. #define NS_TRACE_MALLOC 1
  14798. EOF
  14799. fi
  14800. # Check whether --enable-jemalloc or --disable-jemalloc was given.
  14801. if test "${enable_jemalloc+set}" = set; then
  14802. enableval="$enable_jemalloc"
  14803. if test "$enableval" = "yes"; then
  14804. MOZ_MEMORY=1
  14805. elif test "$enableval" = "no"; then
  14806. MOZ_MEMORY=
  14807. else
  14808. { echo "configure: error: Option, jemalloc, does not take an argument ($enableval)." 1>&2; exit 1; }
  14809. fi
  14810. fi
  14811. if test "$NS_TRACE_MALLOC"; then
  14812. MOZ_MEMORY=
  14813. fi
  14814. if test "$MOZ_MEMORY"; then
  14815. if test "$OS_ARCH" = "WINNT"; then
  14816. if test -z "$HAVE_64BIT_OS"; then
  14817. cat >> confdefs.h <<EOF
  14818. #define MOZ_MEMORY_SIZEOF_PTR_2POW 2
  14819. EOF
  14820. else
  14821. cat >> confdefs.h <<EOF
  14822. #define MOZ_MEMORY_SIZEOF_PTR_2POW 3
  14823. EOF
  14824. fi
  14825. else
  14826. echo $ac_n "checking size of int *""... $ac_c" 1>&6
  14827. echo "configure:16758: checking size of int *" >&5
  14828. if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
  14829. echo $ac_n "(cached) $ac_c" 1>&6
  14830. else
  14831. if test "$cross_compiling" = yes; then
  14832. ac_cv_sizeof_int_p=4
  14833. else
  14834. cat > conftest.$ac_ext <<EOF
  14835. #line 16766 "configure"
  14836. #include "confdefs.h"
  14837. #include <stdio.h>
  14838. main()
  14839. {
  14840. FILE *f=fopen("conftestval", "w");
  14841. if (!f) exit(1);
  14842. fprintf(f, "%d\n", sizeof(int *));
  14843. exit(0);
  14844. }
  14845. EOF
  14846. if { (eval echo configure:16777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  14847. then
  14848. ac_cv_sizeof_int_p=`cat conftestval`
  14849. else
  14850. echo "configure: failed program was:" >&5
  14851. cat conftest.$ac_ext >&5
  14852. rm -fr conftest*
  14853. ac_cv_sizeof_int_p=0
  14854. fi
  14855. rm -fr conftest*
  14856. fi
  14857. fi
  14858. echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
  14859. cat >> confdefs.h <<EOF
  14860. #define SIZEOF_INT_P $ac_cv_sizeof_int_p
  14861. EOF
  14862. case "${ac_cv_sizeof_int_p}" in
  14863. 4)
  14864. cat >> confdefs.h <<EOF
  14865. #define MOZ_MEMORY_SIZEOF_PTR_2POW 2
  14866. EOF
  14867. ;;
  14868. 8)
  14869. cat >> confdefs.h <<EOF
  14870. #define MOZ_MEMORY_SIZEOF_PTR_2POW 3
  14871. EOF
  14872. ;;
  14873. *)
  14874. { echo "configure: error: Unexpected pointer size" 1>&2; exit 1; }
  14875. ;;
  14876. esac
  14877. fi
  14878. cat >> confdefs.h <<\EOF
  14879. #define MOZ_MEMORY 1
  14880. EOF
  14881. if test "x$MOZ_DEBUG" = "x1"; then
  14882. cat >> confdefs.h <<\EOF
  14883. #define MOZ_MEMORY_DEBUG 1
  14884. EOF
  14885. fi
  14886. case "${target_os}" in
  14887. darwin*)
  14888. cat >> confdefs.h <<\EOF
  14889. #define MOZ_MEMORY_DARWIN 1
  14890. EOF
  14891. ;;
  14892. *-freebsd*)
  14893. cat >> confdefs.h <<\EOF
  14894. #define MOZ_MEMORY_BSD 1
  14895. EOF
  14896. ;;
  14897. *linux*)
  14898. cat >> confdefs.h <<\EOF
  14899. #define MOZ_MEMORY_LINUX 1
  14900. EOF
  14901. ;;
  14902. netbsd*)
  14903. cat >> confdefs.h <<\EOF
  14904. #define MOZ_MEMORY_BSD 1
  14905. EOF
  14906. ;;
  14907. solaris*)
  14908. cat >> confdefs.h <<\EOF
  14909. #define MOZ_MEMORY_SOLARIS 1
  14910. EOF
  14911. ;;
  14912. msvc*|mks*|cygwin*|mingw*)
  14913. cat >> confdefs.h <<\EOF
  14914. #define MOZ_MEMORY_WINDOWS 1
  14915. EOF
  14916. if test "$_CC_SUITE" -lt "8"; then
  14917. { echo "configure: error: Building jemalloc requires Visual C++ 2005 or better" 1>&2; exit 1; }
  14918. fi
  14919. if test -z "$WIN32_CRT_SRC_DIR" -a -z "$WIN32_CUSTOM_CRT_DIR"; then
  14920. if test -z "$VCINSTALLDIR" -o ! -d "$VCINSTALLDIR"; then
  14921. { echo "configure: error: When building jemalloc, either set WIN32_CRT_SRC_DIR to the path to the Visual C++ CRT source (usually VCINSTALLDIR\crt\src), or set WIN32_CUSTOM_CRT_DIR to the path to a folder containing a pre-built CRT DLL." 1>&2; exit 1; }
  14922. else
  14923. WIN32_CRT_SRC_DIR="$VCINSTALLDIR\crt\src"
  14924. fi
  14925. fi
  14926. if test -z "$WIN32_CRT_SRC_DIR"; then
  14927. # pre-built dll
  14928. WIN32_CUSTOM_CRT_DIR=`cd "$WIN32_CUSTOM_CRT_DIR" && pwd`
  14929. _WIN_UNIX_CRT_PATH="$WIN32_CUSTOM_CRT_DIR"
  14930. else
  14931. # CRT source directory
  14932. WIN32_CRT_SRC_DIR=`cd "$WIN32_CRT_SRC_DIR" && pwd`
  14933. _CRT_BASE_DIR=`basename "$WIN32_CRT_SRC_DIR"`
  14934. _WIN_UNIX_CRT_PATH="$_objdir/memory/jemalloc/$_CRT_BASE_DIR/build/amd64"
  14935. fi
  14936. _WIN_CRT_PATH=`$PYTHON -c 'import sys, os.path; print os.path.normpath(sys.argv[1])' "$_WIN_UNIX_CRT_PATH"`
  14937. MOZ_LIB="$_WIN_CRT_PATH;$LIB"
  14938. MOZ_PATH="$PATH:$_WIN_UNIX_CRT_PATH"
  14939. cat >> confdefs.h <<\EOF
  14940. #define _STATIC_CPPLIB 1
  14941. EOF
  14942. LDFLAGS="$LDFLAGS -MANIFEST:NO"
  14943. DLLFLAGS="$DLLFLAGS -MANIFEST:NO"
  14944. export DLLFLAGS
  14945. ;;
  14946. *)
  14947. { echo "configure: error: --enable-jemalloc not supported on ${target}" 1>&2; exit 1; }
  14948. ;;
  14949. esac
  14950. # Check whether --with-valgrind or --without-valgrind was given.
  14951. if test "${with_valgrind+set}" = set; then
  14952. withval="$with_valgrind"
  14953. enable_valgrind="yes"
  14954. else
  14955. enable_valgrind="no"
  14956. fi
  14957. ac_safe=`echo "valgrind/valgrind.h" | sed 'y%./+-%__p_%'`
  14958. echo $ac_n "checking for valgrind/valgrind.h""... $ac_c" 1>&6
  14959. echo "configure:16907: checking for valgrind/valgrind.h" >&5
  14960. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  14961. echo $ac_n "(cached) $ac_c" 1>&6
  14962. else
  14963. cat > conftest.$ac_ext <<EOF
  14964. #line 16912 "configure"
  14965. #include "confdefs.h"
  14966. #include <valgrind/valgrind.h>
  14967. EOF
  14968. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  14969. { (eval echo configure:16917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  14970. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  14971. if test -z "$ac_err"; then
  14972. rm -rf conftest*
  14973. eval "ac_cv_header_$ac_safe=yes"
  14974. else
  14975. echo "$ac_err" >&5
  14976. echo "configure: failed program was:" >&5
  14977. cat conftest.$ac_ext >&5
  14978. rm -rf conftest*
  14979. eval "ac_cv_header_$ac_safe=no"
  14980. fi
  14981. rm -f conftest*
  14982. fi
  14983. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  14984. echo "$ac_t""yes" 1>&6
  14985. :
  14986. else
  14987. echo "$ac_t""no" 1>&6
  14988. enable_valgrind="no"
  14989. fi
  14990. if test "x$enable_valgrind" = "xyes" ; then
  14991. cat >> confdefs.h <<\EOF
  14992. #define MOZ_VALGRIND 1
  14993. EOF
  14994. fi
  14995. fi
  14996. # Check whether --enable-wrap-malloc or --disable-wrap-malloc was given.
  14997. if test "${enable_wrap_malloc+set}" = set; then
  14998. enableval="$enable_wrap_malloc"
  14999. if test "$enableval" = "yes"; then
  15000. _WRAP_MALLOC=1
  15001. elif test "$enableval" = "no"; then
  15002. _WRAP_MALLOC=
  15003. else
  15004. { echo "configure: error: Option, wrap-malloc, does not take an argument ($enableval)." 1>&2; exit 1; }
  15005. fi
  15006. fi
  15007. if test -n "$_WRAP_MALLOC"; then
  15008. if test "$GNU_CC"; then
  15009. WRAP_MALLOC_CFLAGS="${LDFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc"
  15010. MKSHLIB='$(CXX) $(DSO_LDOPTS) $(WRAP_MALLOC_CFLAGS) -o $@'
  15011. fi
  15012. fi
  15013. # Check whether --with-wrap-malloc or --without-wrap-malloc was given.
  15014. if test "${with_wrap_malloc+set}" = set; then
  15015. withval="$with_wrap_malloc"
  15016. WRAP_MALLOC_LIB=$withval
  15017. fi
  15018. # Check whether --enable-efence or --disable-efence was given.
  15019. if test "${enable_efence+set}" = set; then
  15020. enableval="$enable_efence"
  15021. if test "$enableval" = "yes"; then
  15022. _ENABLE_EFENCE=1
  15023. elif test "$enableval" = "no"; then
  15024. _ENABLE_EFENCE=
  15025. else
  15026. { echo "configure: error: Option, efence, does not take an argument ($enableval)." 1>&2; exit 1; }
  15027. fi
  15028. fi
  15029. if test -n "$_ENABLE_EFENCE"; then
  15030. echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6
  15031. echo "configure:16994: checking for malloc in -lefence" >&5
  15032. ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'`
  15033. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15034. echo $ac_n "(cached) $ac_c" 1>&6
  15035. else
  15036. ac_save_LIBS="$LIBS"
  15037. LIBS="-lefence $LIBS"
  15038. cat > conftest.$ac_ext <<EOF
  15039. #line 17002 "configure"
  15040. #include "confdefs.h"
  15041. /* Override any gcc2 internal prototype to avoid an error. */
  15042. /* We use char because int might match the return type of a gcc2
  15043. builtin and then its argument prototype would still apply. */
  15044. char malloc();
  15045. int main() {
  15046. malloc()
  15047. ; return 0; }
  15048. EOF
  15049. if { (eval echo configure:17013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15050. rm -rf conftest*
  15051. eval "ac_cv_lib_$ac_lib_var=yes"
  15052. else
  15053. echo "configure: failed program was:" >&5
  15054. cat conftest.$ac_ext >&5
  15055. rm -rf conftest*
  15056. eval "ac_cv_lib_$ac_lib_var=no"
  15057. fi
  15058. rm -f conftest*
  15059. LIBS="$ac_save_LIBS"
  15060. fi
  15061. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15062. echo "$ac_t""yes" 1>&6
  15063. ac_tr_lib=HAVE_LIB`echo efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  15064. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  15065. cat >> confdefs.h <<EOF
  15066. #define $ac_tr_lib 1
  15067. EOF
  15068. LIBS="-lefence $LIBS"
  15069. else
  15070. echo "$ac_t""no" 1>&6
  15071. fi
  15072. fi
  15073. # Check whether --enable-jprof or --disable-jprof was given.
  15074. if test "${enable_jprof+set}" = set; then
  15075. enableval="$enable_jprof"
  15076. if test "$enableval" = "yes"; then
  15077. MOZ_JPROF=1
  15078. elif test "$enableval" = "no"; then
  15079. MOZ_JPROF=
  15080. else
  15081. { echo "configure: error: Option, jprof, does not take an argument ($enableval)." 1>&2; exit 1; }
  15082. fi
  15083. fi
  15084. if test -n "$MOZ_JPROF"; then
  15085. cat >> confdefs.h <<\EOF
  15086. #define MOZ_JPROF 1
  15087. EOF
  15088. fi
  15089. # Check whether --enable-shark or --disable-shark was given.
  15090. if test "${enable_shark+set}" = set; then
  15091. enableval="$enable_shark"
  15092. if test "$enableval" = "yes"; then
  15093. MOZ_SHARK=1
  15094. elif test "$enableval" = "no"; then
  15095. MOZ_SHARK=
  15096. else
  15097. { echo "configure: error: Option, shark, does not take an argument ($enableval)." 1>&2; exit 1; }
  15098. fi
  15099. fi
  15100. if test -n "$MOZ_SHARK"; then
  15101. cat >> confdefs.h <<\EOF
  15102. #define MOZ_SHARK 1
  15103. EOF
  15104. fi
  15105. # Check whether --enable-strip or --disable-strip was given.
  15106. if test "${enable_strip+set}" = set; then
  15107. enableval="$enable_strip"
  15108. if test "$enableval" = "yes"; then
  15109. ENABLE_STRIP=1
  15110. elif test "$enableval" = "no"; then
  15111. ENABLE_STRIP=
  15112. else
  15113. { echo "configure: error: Option, strip, does not take an argument ($enableval)." 1>&2; exit 1; }
  15114. fi
  15115. fi
  15116. # Check whether --enable-install-strip or --disable-install-strip was given.
  15117. if test "${enable_install_strip+set}" = set; then
  15118. enableval="$enable_install_strip"
  15119. if test "$enableval" = "yes"; then
  15120. PKG_SKIP_STRIP=
  15121. elif test "$enableval" = "no"; then
  15122. PKG_SKIP_STRIP=1
  15123. else
  15124. { echo "configure: error: Option, install-strip, does not take an argument ($enableval)." 1>&2; exit 1; }
  15125. fi
  15126. fi
  15127. # Check whether --enable-elf-dynstr-gc or --disable-elf-dynstr-gc was given.
  15128. if test "${enable_elf_dynst