PageRenderTime 678ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/exult/tags/Release0_20/configure

#
Shell | 2099 lines | 1735 code | 156 blank | 208 comment | 278 complexity | 61a7e8a369517e42d955af4895785dcb MD5 | raw file
Possible License(s): GPL-2.0

Large files files are truncated, but you can click here to view the full file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --disable-kmid force exult not to use kmid [default no]"
  14. ac_help="$ac_help
  15. --enable-shared[=PKGS] build shared libraries [default=yes]"
  16. ac_help="$ac_help
  17. --enable-static[=PKGS] build static libraries [default=no]"
  18. ac_help="$ac_help
  19. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  20. ac_help="$ac_help
  21. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  22. ac_help="$ac_help
  23. --disable-libtool-lock avoid locking (might break parallel builds)"
  24. ac_help="$ac_help
  25. --with-pic try to use only PIC/non-PIC objects [default=use both]"
  26. ac_help="$ac_help
  27. --enable-debug enable debug messages [default no]"
  28. # Initialize some variables set by options.
  29. # The variables have the same names as the options, with
  30. # dashes changed to underlines.
  31. build=NONE
  32. cache_file=./config.cache
  33. exec_prefix=NONE
  34. host=NONE
  35. no_create=
  36. nonopt=NONE
  37. no_recursion=
  38. prefix=NONE
  39. program_prefix=NONE
  40. program_suffix=NONE
  41. program_transform_name=s,x,x,
  42. silent=
  43. site=
  44. srcdir=
  45. target=NONE
  46. verbose=
  47. x_includes=NONE
  48. x_libraries=NONE
  49. bindir='${exec_prefix}/bin'
  50. sbindir='${exec_prefix}/sbin'
  51. libexecdir='${exec_prefix}/libexec'
  52. datadir='${prefix}/share'
  53. sysconfdir='${prefix}/etc'
  54. sharedstatedir='${prefix}/com'
  55. localstatedir='${prefix}/var'
  56. libdir='${exec_prefix}/lib'
  57. includedir='${prefix}/include'
  58. oldincludedir='/usr/include'
  59. infodir='${prefix}/info'
  60. mandir='${prefix}/man'
  61. # Initialize some other variables.
  62. subdirs=
  63. MFLAGS= MAKEFLAGS=
  64. SHELL=${CONFIG_SHELL-/bin/sh}
  65. # Maximum number of lines to put in a shell here document.
  66. ac_max_here_lines=12
  67. ac_prev=
  68. for ac_option
  69. do
  70. # If the previous option needs an argument, assign it.
  71. if test -n "$ac_prev"; then
  72. eval "$ac_prev=\$ac_option"
  73. ac_prev=
  74. continue
  75. fi
  76. case "$ac_option" in
  77. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  78. *) ac_optarg= ;;
  79. esac
  80. # Accept the important Cygnus configure options, so we can diagnose typos.
  81. case "$ac_option" in
  82. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  83. ac_prev=bindir ;;
  84. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  85. bindir="$ac_optarg" ;;
  86. -build | --build | --buil | --bui | --bu)
  87. ac_prev=build ;;
  88. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  89. build="$ac_optarg" ;;
  90. -cache-file | --cache-file | --cache-fil | --cache-fi \
  91. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  92. ac_prev=cache_file ;;
  93. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  94. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  95. cache_file="$ac_optarg" ;;
  96. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  97. ac_prev=datadir ;;
  98. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  99. | --da=*)
  100. datadir="$ac_optarg" ;;
  101. -disable-* | --disable-*)
  102. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  103. # Reject names that are not valid shell variable names.
  104. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  105. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  106. fi
  107. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  108. eval "enable_${ac_feature}=no" ;;
  109. -enable-* | --enable-*)
  110. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111. # Reject names that are not valid shell variable names.
  112. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114. fi
  115. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116. case "$ac_option" in
  117. *=*) ;;
  118. *) ac_optarg=yes ;;
  119. esac
  120. eval "enable_${ac_feature}='$ac_optarg'" ;;
  121. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  122. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  123. | --exec | --exe | --ex)
  124. ac_prev=exec_prefix ;;
  125. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  126. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  127. | --exec=* | --exe=* | --ex=*)
  128. exec_prefix="$ac_optarg" ;;
  129. -gas | --gas | --ga | --g)
  130. # Obsolete; use --with-gas.
  131. with_gas=yes ;;
  132. -help | --help | --hel | --he)
  133. # Omit some internal or obsolete options to make the list less imposing.
  134. # This message is too long to be a string in the A/UX 3.1 sh.
  135. cat << EOF
  136. Usage: configure [options] [host]
  137. Options: [defaults in brackets after descriptions]
  138. Configuration:
  139. --cache-file=FILE cache test results in FILE
  140. --help print this message
  141. --no-create do not create output files
  142. --quiet, --silent do not print \`checking...' messages
  143. --version print the version of autoconf that created configure
  144. Directory and file names:
  145. --prefix=PREFIX install architecture-independent files in PREFIX
  146. [$ac_default_prefix]
  147. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  148. [same as prefix]
  149. --bindir=DIR user executables in DIR [EPREFIX/bin]
  150. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  151. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  152. --datadir=DIR read-only architecture-independent data in DIR
  153. [PREFIX/share]
  154. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  155. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  156. [PREFIX/com]
  157. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  158. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  159. --includedir=DIR C header files in DIR [PREFIX/include]
  160. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  161. --infodir=DIR info documentation in DIR [PREFIX/info]
  162. --mandir=DIR man documentation in DIR [PREFIX/man]
  163. --srcdir=DIR find the sources in DIR [configure dir or ..]
  164. --program-prefix=PREFIX prepend PREFIX to installed program names
  165. --program-suffix=SUFFIX append SUFFIX to installed program names
  166. --program-transform-name=PROGRAM
  167. run sed PROGRAM on installed program names
  168. EOF
  169. cat << EOF
  170. Host type:
  171. --build=BUILD configure for building on BUILD [BUILD=HOST]
  172. --host=HOST configure for HOST [guessed]
  173. --target=TARGET configure for TARGET [TARGET=HOST]
  174. Features and packages:
  175. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  176. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  177. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  178. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  179. --x-includes=DIR X include files are in DIR
  180. --x-libraries=DIR X library files are in DIR
  181. EOF
  182. if test -n "$ac_help"; then
  183. echo "--enable and --with options recognized:$ac_help"
  184. fi
  185. exit 0 ;;
  186. -host | --host | --hos | --ho)
  187. ac_prev=host ;;
  188. -host=* | --host=* | --hos=* | --ho=*)
  189. host="$ac_optarg" ;;
  190. -includedir | --includedir | --includedi | --included | --include \
  191. | --includ | --inclu | --incl | --inc)
  192. ac_prev=includedir ;;
  193. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  194. | --includ=* | --inclu=* | --incl=* | --inc=*)
  195. includedir="$ac_optarg" ;;
  196. -infodir | --infodir | --infodi | --infod | --info | --inf)
  197. ac_prev=infodir ;;
  198. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  199. infodir="$ac_optarg" ;;
  200. -libdir | --libdir | --libdi | --libd)
  201. ac_prev=libdir ;;
  202. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  203. libdir="$ac_optarg" ;;
  204. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  205. | --libexe | --libex | --libe)
  206. ac_prev=libexecdir ;;
  207. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  208. | --libexe=* | --libex=* | --libe=*)
  209. libexecdir="$ac_optarg" ;;
  210. -localstatedir | --localstatedir | --localstatedi | --localstated \
  211. | --localstate | --localstat | --localsta | --localst \
  212. | --locals | --local | --loca | --loc | --lo)
  213. ac_prev=localstatedir ;;
  214. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  215. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  216. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  217. localstatedir="$ac_optarg" ;;
  218. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  219. ac_prev=mandir ;;
  220. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  221. mandir="$ac_optarg" ;;
  222. -nfp | --nfp | --nf)
  223. # Obsolete; use --without-fp.
  224. with_fp=no ;;
  225. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  226. | --no-cr | --no-c)
  227. no_create=yes ;;
  228. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  229. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  230. no_recursion=yes ;;
  231. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  232. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  233. | --oldin | --oldi | --old | --ol | --o)
  234. ac_prev=oldincludedir ;;
  235. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  236. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  237. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  238. oldincludedir="$ac_optarg" ;;
  239. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  240. ac_prev=prefix ;;
  241. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  242. prefix="$ac_optarg" ;;
  243. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  244. | --program-pre | --program-pr | --program-p)
  245. ac_prev=program_prefix ;;
  246. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  247. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  248. program_prefix="$ac_optarg" ;;
  249. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  250. | --program-suf | --program-su | --program-s)
  251. ac_prev=program_suffix ;;
  252. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  253. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  254. program_suffix="$ac_optarg" ;;
  255. -program-transform-name | --program-transform-name \
  256. | --program-transform-nam | --program-transform-na \
  257. | --program-transform-n | --program-transform- \
  258. | --program-transform | --program-transfor \
  259. | --program-transfo | --program-transf \
  260. | --program-trans | --program-tran \
  261. | --progr-tra | --program-tr | --program-t)
  262. ac_prev=program_transform_name ;;
  263. -program-transform-name=* | --program-transform-name=* \
  264. | --program-transform-nam=* | --program-transform-na=* \
  265. | --program-transform-n=* | --program-transform-=* \
  266. | --program-transform=* | --program-transfor=* \
  267. | --program-transfo=* | --program-transf=* \
  268. | --program-trans=* | --program-tran=* \
  269. | --progr-tra=* | --program-tr=* | --program-t=*)
  270. program_transform_name="$ac_optarg" ;;
  271. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  272. | -silent | --silent | --silen | --sile | --sil)
  273. silent=yes ;;
  274. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  275. ac_prev=sbindir ;;
  276. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  277. | --sbi=* | --sb=*)
  278. sbindir="$ac_optarg" ;;
  279. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  280. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  281. | --sharedst | --shareds | --shared | --share | --shar \
  282. | --sha | --sh)
  283. ac_prev=sharedstatedir ;;
  284. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  285. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  286. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  287. | --sha=* | --sh=*)
  288. sharedstatedir="$ac_optarg" ;;
  289. -site | --site | --sit)
  290. ac_prev=site ;;
  291. -site=* | --site=* | --sit=*)
  292. site="$ac_optarg" ;;
  293. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  294. ac_prev=srcdir ;;
  295. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  296. srcdir="$ac_optarg" ;;
  297. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  298. | --syscon | --sysco | --sysc | --sys | --sy)
  299. ac_prev=sysconfdir ;;
  300. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  301. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  302. sysconfdir="$ac_optarg" ;;
  303. -target | --target | --targe | --targ | --tar | --ta | --t)
  304. ac_prev=target ;;
  305. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  306. target="$ac_optarg" ;;
  307. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  308. verbose=yes ;;
  309. -version | --version | --versio | --versi | --vers)
  310. echo "configure generated by autoconf version 2.13"
  311. exit 0 ;;
  312. -with-* | --with-*)
  313. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  314. # Reject names that are not valid shell variable names.
  315. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  316. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  317. fi
  318. ac_package=`echo $ac_package| sed 's/-/_/g'`
  319. case "$ac_option" in
  320. *=*) ;;
  321. *) ac_optarg=yes ;;
  322. esac
  323. eval "with_${ac_package}='$ac_optarg'" ;;
  324. -without-* | --without-*)
  325. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  326. # Reject names that are not valid shell variable names.
  327. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  328. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  329. fi
  330. ac_package=`echo $ac_package| sed 's/-/_/g'`
  331. eval "with_${ac_package}=no" ;;
  332. --x)
  333. # Obsolete; use --with-x.
  334. with_x=yes ;;
  335. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  336. | --x-incl | --x-inc | --x-in | --x-i)
  337. ac_prev=x_includes ;;
  338. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  339. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  340. x_includes="$ac_optarg" ;;
  341. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  342. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  343. ac_prev=x_libraries ;;
  344. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  345. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  346. x_libraries="$ac_optarg" ;;
  347. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  348. ;;
  349. *)
  350. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  351. echo "configure: warning: $ac_option: invalid host type" 1>&2
  352. fi
  353. if test "x$nonopt" != xNONE; then
  354. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  355. fi
  356. nonopt="$ac_option"
  357. ;;
  358. esac
  359. done
  360. if test -n "$ac_prev"; then
  361. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  362. fi
  363. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  364. # File descriptor usage:
  365. # 0 standard input
  366. # 1 file creation
  367. # 2 errors and warnings
  368. # 3 some systems may open it to /dev/tty
  369. # 4 used on the Kubota Titan
  370. # 6 checking for... messages and results
  371. # 5 compiler messages saved in config.log
  372. if test "$silent" = yes; then
  373. exec 6>/dev/null
  374. else
  375. exec 6>&1
  376. fi
  377. exec 5>./config.log
  378. echo "\
  379. This file contains any messages produced by compilers while
  380. running configure, to aid debugging if configure makes a mistake.
  381. " 1>&5
  382. # Strip out --no-create and --no-recursion so they do not pile up.
  383. # Also quote any args containing shell metacharacters.
  384. ac_configure_args=
  385. for ac_arg
  386. do
  387. case "$ac_arg" in
  388. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  389. | --no-cr | --no-c) ;;
  390. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  391. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  392. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  393. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  394. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  395. esac
  396. done
  397. # NLS nuisances.
  398. # Only set these to C if already set. These must not be set unconditionally
  399. # because not all systems understand e.g. LANG=C (notably SCO).
  400. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  401. # Non-C LC_CTYPE values break the ctype check.
  402. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  403. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  404. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  405. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  406. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  407. rm -rf conftest* confdefs.h
  408. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  409. echo > confdefs.h
  410. # A filename unique to this package, relative to the directory that
  411. # configure is in, which we can look for to find out if srcdir is correct.
  412. ac_unique_file=acinclude.m4
  413. # Find the source files, if location was not specified.
  414. if test -z "$srcdir"; then
  415. ac_srcdir_defaulted=yes
  416. # Try the directory containing this script, then its parent.
  417. ac_prog=$0
  418. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  419. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  420. srcdir=$ac_confdir
  421. if test ! -r $srcdir/$ac_unique_file; then
  422. srcdir=..
  423. fi
  424. else
  425. ac_srcdir_defaulted=no
  426. fi
  427. if test ! -r $srcdir/$ac_unique_file; then
  428. if test "$ac_srcdir_defaulted" = yes; then
  429. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  430. else
  431. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  432. fi
  433. fi
  434. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  435. # Prefer explicitly selected file to automatically selected ones.
  436. if test -z "$CONFIG_SITE"; then
  437. if test "x$prefix" != xNONE; then
  438. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  439. else
  440. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  441. fi
  442. fi
  443. for ac_site_file in $CONFIG_SITE; do
  444. if test -r "$ac_site_file"; then
  445. echo "loading site script $ac_site_file"
  446. . "$ac_site_file"
  447. fi
  448. done
  449. if test -r "$cache_file"; then
  450. echo "loading cache $cache_file"
  451. . $cache_file
  452. else
  453. echo "creating cache $cache_file"
  454. > $cache_file
  455. fi
  456. ac_ext=c
  457. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  458. ac_cpp='$CPP $CPPFLAGS'
  459. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  460. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  461. cross_compiling=$ac_cv_prog_cc_cross
  462. ac_exeext=
  463. ac_objext=o
  464. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  465. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  466. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  467. ac_n= ac_c='
  468. ' ac_t=' '
  469. else
  470. ac_n=-n ac_c= ac_t=
  471. fi
  472. else
  473. ac_n= ac_c='\c' ac_t=
  474. fi
  475. PACKAGE=exult
  476. MAJOR=0
  477. RELNUM=12
  478. VERSION='$MAJOR.$RELNUM'
  479. ac_aux_dir=
  480. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  481. if test -f $ac_dir/install-sh; then
  482. ac_aux_dir=$ac_dir
  483. ac_install_sh="$ac_aux_dir/install-sh -c"
  484. break
  485. elif test -f $ac_dir/install.sh; then
  486. ac_aux_dir=$ac_dir
  487. ac_install_sh="$ac_aux_dir/install.sh -c"
  488. break
  489. fi
  490. done
  491. if test -z "$ac_aux_dir"; then
  492. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  493. fi
  494. ac_config_guess=$ac_aux_dir/config.guess
  495. ac_config_sub=$ac_aux_dir/config.sub
  496. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  497. # Find a good install program. We prefer a C program (faster),
  498. # so one script is as good as another. But avoid the broken or
  499. # incompatible versions:
  500. # SysV /etc/install, /usr/sbin/install
  501. # SunOS /usr/etc/install
  502. # IRIX /sbin/install
  503. # AIX /bin/install
  504. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  505. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  506. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  507. # ./install, which can be erroneously created by make from ./install.sh.
  508. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  509. echo "configure:578: checking for a BSD compatible install" >&5
  510. if test -z "$INSTALL"; then
  511. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  512. echo $ac_n "(cached) $ac_c" 1>&6
  513. else
  514. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  515. for ac_dir in $PATH; do
  516. # Account for people who put trailing slashes in PATH elements.
  517. case "$ac_dir/" in
  518. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  519. *)
  520. # OSF1 and SCO ODT 3.0 have their own names for install.
  521. # Don't use installbsd from OSF since it installs stuff as root
  522. # by default.
  523. for ac_prog in ginstall scoinst install; do
  524. if test -f $ac_dir/$ac_prog; then
  525. if test $ac_prog = install &&
  526. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  527. # AIX install. It has an incompatible calling convention.
  528. :
  529. else
  530. ac_cv_path_install="$ac_dir/$ac_prog -c"
  531. break 2
  532. fi
  533. fi
  534. done
  535. ;;
  536. esac
  537. done
  538. IFS="$ac_save_IFS"
  539. fi
  540. if test "${ac_cv_path_install+set}" = set; then
  541. INSTALL="$ac_cv_path_install"
  542. else
  543. # As a last resort, use the slow shell script. We don't cache a
  544. # path for INSTALL within a source directory, because that will
  545. # break other packages using the cache if that directory is
  546. # removed, or if the path is relative.
  547. INSTALL="$ac_install_sh"
  548. fi
  549. fi
  550. echo "$ac_t""$INSTALL" 1>&6
  551. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  552. # It thinks the first close brace ends the variable substitution.
  553. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  554. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  555. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  556. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  557. echo "configure:631: checking whether build environment is sane" >&5
  558. # Just in case
  559. sleep 1
  560. echo timestamp > conftestfile
  561. # Do `set' in a subshell so we don't clobber the current shell's
  562. # arguments. Must try -L first in case configure is actually a
  563. # symlink; some systems play weird games with the mod time of symlinks
  564. # (eg FreeBSD returns the mod time of the symlink's containing
  565. # directory).
  566. if (
  567. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  568. if test "$*" = "X"; then
  569. # -L didn't work.
  570. set X `ls -t $srcdir/configure conftestfile`
  571. fi
  572. if test "$*" != "X $srcdir/configure conftestfile" \
  573. && test "$*" != "X conftestfile $srcdir/configure"; then
  574. # If neither matched, then we have a broken ls. This can happen
  575. # if, for instance, CONFIG_SHELL is bash and it inherits a
  576. # broken ls alias from the environment. This has actually
  577. # happened. Such a system could not be considered "sane".
  578. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  579. alias in your environment" 1>&2; exit 1; }
  580. fi
  581. test "$2" = conftestfile
  582. )
  583. then
  584. # Ok.
  585. :
  586. else
  587. { echo "configure: error: newly created file is older than distributed files!
  588. Check your system clock" 1>&2; exit 1; }
  589. fi
  590. rm -f conftest*
  591. echo "$ac_t""yes" 1>&6
  592. if test "$program_transform_name" = s,x,x,; then
  593. program_transform_name=
  594. else
  595. # Double any \ or $. echo might interpret backslashes.
  596. cat <<\EOF_SED > conftestsed
  597. s,\\,\\\\,g; s,\$,$$,g
  598. EOF_SED
  599. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  600. rm -f conftestsed
  601. fi
  602. test "$program_prefix" != NONE &&
  603. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  604. # Use a double $ so make ignores it.
  605. test "$program_suffix" != NONE &&
  606. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  607. # sed with no file args requires a program.
  608. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  609. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  610. echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
  611. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  612. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  613. echo $ac_n "(cached) $ac_c" 1>&6
  614. else
  615. cat > conftestmake <<\EOF
  616. all:
  617. @echo 'ac_maketemp="${MAKE}"'
  618. EOF
  619. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  620. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  621. if test -n "$ac_maketemp"; then
  622. eval ac_cv_prog_make_${ac_make}_set=yes
  623. else
  624. eval ac_cv_prog_make_${ac_make}_set=no
  625. fi
  626. rm -f conftestmake
  627. fi
  628. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  629. echo "$ac_t""yes" 1>&6
  630. SET_MAKE=
  631. else
  632. echo "$ac_t""no" 1>&6
  633. SET_MAKE="MAKE=${MAKE-make}"
  634. fi
  635. PACKAGE=$PACKAGE
  636. VERSION=$VERSION
  637. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  638. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  639. fi
  640. missing_dir=`cd $ac_aux_dir && pwd`
  641. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  642. echo "configure:727: checking for working aclocal" >&5
  643. # Run test in a subshell; some versions of sh will print an error if
  644. # an executable is not found, even if stderr is redirected.
  645. # Redirect stdin to placate older versions of autoconf. Sigh.
  646. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  647. ACLOCAL=aclocal
  648. echo "$ac_t""found" 1>&6
  649. else
  650. ACLOCAL="$missing_dir/missing aclocal"
  651. echo "$ac_t""missing" 1>&6
  652. fi
  653. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  654. echo "configure:740: checking for working autoconf" >&5
  655. # Run test in a subshell; some versions of sh will print an error if
  656. # an executable is not found, even if stderr is redirected.
  657. # Redirect stdin to placate older versions of autoconf. Sigh.
  658. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  659. AUTOCONF=autoconf
  660. echo "$ac_t""found" 1>&6
  661. else
  662. AUTOCONF="$missing_dir/missing autoconf"
  663. echo "$ac_t""missing" 1>&6
  664. fi
  665. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  666. echo "configure:753: checking for working automake" >&5
  667. # Run test in a subshell; some versions of sh will print an error if
  668. # an executable is not found, even if stderr is redirected.
  669. # Redirect stdin to placate older versions of autoconf. Sigh.
  670. if (automake --version) < /dev/null > /dev/null 2>&1; then
  671. AUTOMAKE=automake
  672. echo "$ac_t""found" 1>&6
  673. else
  674. AUTOMAKE="$missing_dir/missing automake"
  675. echo "$ac_t""missing" 1>&6
  676. fi
  677. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  678. echo "configure:766: checking for working autoheader" >&5
  679. # Run test in a subshell; some versions of sh will print an error if
  680. # an executable is not found, even if stderr is redirected.
  681. # Redirect stdin to placate older versions of autoconf. Sigh.
  682. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  683. AUTOHEADER=autoheader
  684. echo "$ac_t""found" 1>&6
  685. else
  686. AUTOHEADER="$missing_dir/missing autoheader"
  687. echo "$ac_t""missing" 1>&6
  688. fi
  689. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  690. echo "configure:779: checking for working makeinfo" >&5
  691. # Run test in a subshell; some versions of sh will print an error if
  692. # an executable is not found, even if stderr is redirected.
  693. # Redirect stdin to placate older versions of autoconf. Sigh.
  694. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  695. MAKEINFO=makeinfo
  696. echo "$ac_t""found" 1>&6
  697. else
  698. MAKEINFO="$missing_dir/missing makeinfo"
  699. echo "$ac_t""missing" 1>&6
  700. fi
  701. cat >> confdefs.h <<EOF
  702. #define PACKAGE "$PACKAGE"
  703. EOF
  704. cat >> confdefs.h <<EOF
  705. #define VERSION "$VERSION"
  706. EOF
  707. # Extract the first word of "gcc", so it can be a program name with args.
  708. set dummy gcc; ac_word=$2
  709. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  710. echo "configure:811: checking for $ac_word" >&5
  711. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  712. echo $ac_n "(cached) $ac_c" 1>&6
  713. else
  714. if test -n "$CC"; then
  715. ac_cv_prog_CC="$CC" # Let the user override the test.
  716. else
  717. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  718. ac_dummy="$PATH"
  719. for ac_dir in $ac_dummy; do
  720. test -z "$ac_dir" && ac_dir=.
  721. if test -f $ac_dir/$ac_word; then
  722. ac_cv_prog_CC="gcc"
  723. break
  724. fi
  725. done
  726. IFS="$ac_save_ifs"
  727. fi
  728. fi
  729. CC="$ac_cv_prog_CC"
  730. if test -n "$CC"; then
  731. echo "$ac_t""$CC" 1>&6
  732. else
  733. echo "$ac_t""no" 1>&6
  734. fi
  735. if test -z "$CC"; then
  736. # Extract the first word of "cc", so it can be a program name with args.
  737. set dummy cc; ac_word=$2
  738. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  739. echo "configure:841: checking for $ac_word" >&5
  740. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  741. echo $ac_n "(cached) $ac_c" 1>&6
  742. else
  743. if test -n "$CC"; then
  744. ac_cv_prog_CC="$CC" # Let the user override the test.
  745. else
  746. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  747. ac_prog_rejected=no
  748. ac_dummy="$PATH"
  749. for ac_dir in $ac_dummy; do
  750. test -z "$ac_dir" && ac_dir=.
  751. if test -f $ac_dir/$ac_word; then
  752. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  753. ac_prog_rejected=yes
  754. continue
  755. fi
  756. ac_cv_prog_CC="cc"
  757. break
  758. fi
  759. done
  760. IFS="$ac_save_ifs"
  761. if test $ac_prog_rejected = yes; then
  762. # We found a bogon in the path, so make sure we never use it.
  763. set dummy $ac_cv_prog_CC
  764. shift
  765. if test $# -gt 0; then
  766. # We chose a different compiler from the bogus one.
  767. # However, it has the same basename, so the bogon will be chosen
  768. # first if we set CC to just the basename; use the full file name.
  769. shift
  770. set dummy "$ac_dir/$ac_word" "$@"
  771. shift
  772. ac_cv_prog_CC="$@"
  773. fi
  774. fi
  775. fi
  776. fi
  777. CC="$ac_cv_prog_CC"
  778. if test -n "$CC"; then
  779. echo "$ac_t""$CC" 1>&6
  780. else
  781. echo "$ac_t""no" 1>&6
  782. fi
  783. if test -z "$CC"; then
  784. case "`uname -s`" in
  785. *win32* | *WIN32*)
  786. # Extract the first word of "cl", so it can be a program name with args.
  787. set dummy cl; ac_word=$2
  788. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  789. echo "configure:892: checking for $ac_word" >&5
  790. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  791. echo $ac_n "(cached) $ac_c" 1>&6
  792. else
  793. if test -n "$CC"; then
  794. ac_cv_prog_CC="$CC" # Let the user override the test.
  795. else
  796. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  797. ac_dummy="$PATH"
  798. for ac_dir in $ac_dummy; do
  799. test -z "$ac_dir" && ac_dir=.
  800. if test -f $ac_dir/$ac_word; then
  801. ac_cv_prog_CC="cl"
  802. break
  803. fi
  804. done
  805. IFS="$ac_save_ifs"
  806. fi
  807. fi
  808. CC="$ac_cv_prog_CC"
  809. if test -n "$CC"; then
  810. echo "$ac_t""$CC" 1>&6
  811. else
  812. echo "$ac_t""no" 1>&6
  813. fi
  814. ;;
  815. esac
  816. fi
  817. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  818. fi
  819. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  820. echo "configure:924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  821. ac_ext=c
  822. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  823. ac_cpp='$CPP $CPPFLAGS'
  824. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  825. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  826. cross_compiling=$ac_cv_prog_cc_cross
  827. cat > conftest.$ac_ext << EOF
  828. #line 935 "configure"
  829. #include "confdefs.h"
  830. main(){return(0);}
  831. EOF
  832. if { (eval echo configure:940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  833. ac_cv_prog_cc_works=yes
  834. # If we can't run a trivial program, we are probably using a cross compiler.
  835. if (./conftest; exit) 2>/dev/null; then
  836. ac_cv_prog_cc_cross=no
  837. else
  838. ac_cv_prog_cc_cross=yes
  839. fi
  840. else
  841. echo "configure: failed program was:" >&5
  842. cat conftest.$ac_ext >&5
  843. ac_cv_prog_cc_works=no
  844. fi
  845. rm -fr conftest*
  846. ac_ext=c
  847. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  848. ac_cpp='$CPP $CPPFLAGS'
  849. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  850. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  851. cross_compiling=$ac_cv_prog_cc_cross
  852. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  853. if test $ac_cv_prog_cc_works = no; then
  854. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  855. fi
  856. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  857. echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  858. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  859. cross_compiling=$ac_cv_prog_cc_cross
  860. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  861. echo "configure:971: checking whether we are using GNU C" >&5
  862. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  863. echo $ac_n "(cached) $ac_c" 1>&6
  864. else
  865. cat > conftest.c <<EOF
  866. #ifdef __GNUC__
  867. yes;
  868. #endif
  869. EOF
  870. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  871. ac_cv_prog_gcc=yes
  872. else
  873. ac_cv_prog_gcc=no
  874. fi
  875. fi
  876. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  877. if test $ac_cv_prog_gcc = yes; then
  878. GCC=yes
  879. else
  880. GCC=
  881. fi
  882. ac_test_CFLAGS="${CFLAGS+set}"
  883. ac_save_CFLAGS="$CFLAGS"
  884. CFLAGS=
  885. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  886. echo "configure:999: checking whether ${CC-cc} accepts -g" >&5
  887. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  888. echo $ac_n "(cached) $ac_c" 1>&6
  889. else
  890. echo 'void f(){}' > conftest.c
  891. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  892. ac_cv_prog_cc_g=yes
  893. else
  894. ac_cv_prog_cc_g=no
  895. fi
  896. rm -f conftest*
  897. fi
  898. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  899. if test "$ac_test_CFLAGS" = set; then
  900. CFLAGS="$ac_save_CFLAGS"
  901. elif test $ac_cv_prog_cc_g = yes; then
  902. if test "$GCC" = yes; then
  903. CFLAGS="-g -O2"
  904. else
  905. CFLAGS="-g"
  906. fi
  907. else
  908. if test "$GCC" = yes; then
  909. CFLAGS="-O2"
  910. else
  911. CFLAGS=
  912. fi
  913. fi
  914. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  915. echo "configure:1032: checking how to run the C preprocessor" >&5
  916. # On Suns, sometimes $CPP names a directory.
  917. if test -n "$CPP" && test -d "$CPP"; then
  918. CPP=
  919. fi
  920. if test -z "$CPP"; then
  921. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  922. echo $ac_n "(cached) $ac_c" 1>&6
  923. else
  924. # This must be in double quotes, not single quotes, because CPP may get
  925. # substituted into the Makefile and "${CC-cc}" will confuse make.
  926. CPP="${CC-cc} -E"
  927. # On the NeXT, cc -E runs the code through the compiler's parser,
  928. # not just through cpp.
  929. cat > conftest.$ac_ext <<EOF
  930. #line 1047 "configure"
  931. #include "confdefs.h"
  932. #include <assert.h>
  933. Syntax Error
  934. EOF
  935. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  936. { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  937. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  938. if test -z "$ac_err"; then
  939. :
  940. else
  941. echo "$ac_err" >&5
  942. echo "configure: failed program was:" >&5
  943. cat conftest.$ac_ext >&5
  944. rm -rf conftest*
  945. CPP="${CC-cc} -E -traditional-cpp"
  946. cat > conftest.$ac_ext <<EOF
  947. #line 1064 "configure"
  948. #include "confdefs.h"
  949. #include <assert.h>
  950. Syntax Error
  951. EOF
  952. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  953. { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  954. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  955. if test -z "$ac_err"; then
  956. :
  957. else
  958. echo "$ac_err" >&5
  959. echo "configure: failed program was:" >&5
  960. cat conftest.$ac_ext >&5
  961. rm -rf conftest*
  962. CPP="${CC-cc} -nologo -E"
  963. cat > conftest.$ac_ext <<EOF
  964. #line 1081 "configure"
  965. #include "confdefs.h"
  966. #include <assert.h>
  967. Syntax Error
  968. EOF
  969. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  970. { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  971. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  972. if test -z "$ac_err"; then
  973. :
  974. else
  975. echo "$ac_err" >&5
  976. echo "configure: failed program was:" >&5
  977. cat conftest.$ac_ext >&5
  978. rm -rf conftest*
  979. CPP=/lib/cpp
  980. fi
  981. rm -f conftest*
  982. fi
  983. rm -f conftest*
  984. fi
  985. rm -f conftest*
  986. ac_cv_prog_CPP="$CPP"
  987. fi
  988. CPP="$ac_cv_prog_CPP"
  989. else
  990. ac_cv_prog_CPP="$CPP"
  991. fi
  992. echo "$ac_t""$CPP" 1>&6
  993. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  994. echo "configure:1112: checking how to run the C preprocessor" >&5
  995. # On Suns, sometimes $CPP names a directory.
  996. if test -n "$CPP" && test -d "$CPP"; then
  997. CPP=
  998. fi
  999. if test -z "$CPP"; then
  1000. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1001. echo $ac_n "(cached) $ac_c" 1>&6
  1002. else
  1003. # This must be in double quotes, not single quotes, because CPP may get
  1004. # substituted into the Makefile and "${CC-cc}" will confuse make.
  1005. CPP="${CC-cc} -E"
  1006. # On the NeXT, cc -E runs the code through the compiler's parser,
  1007. # not just through cpp.
  1008. cat > conftest.$ac_ext <<EOF
  1009. #line 1127 "configure"
  1010. #include "confdefs.h"
  1011. #include <assert.h>
  1012. Syntax Error
  1013. EOF
  1014. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1015. { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1016. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1017. if test -z "$ac_err"; then
  1018. :
  1019. else
  1020. echo "$ac_err" >&5
  1021. echo "configure: failed program was:" >&5
  1022. cat conftest.$ac_ext >&5
  1023. rm -rf conftest*
  1024. CPP="${CC-cc} -E -traditional-cpp"
  1025. cat > conftest.$ac_ext <<EOF
  1026. #line 1144 "configure"
  1027. #include "confdefs.h"
  1028. #include <assert.h>
  1029. Syntax Error
  1030. EOF
  1031. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1032. { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1033. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1034. if test -z "$ac_err"; then
  1035. :
  1036. else
  1037. echo "$ac_err" >&5
  1038. echo "configure: failed program was:" >&5
  1039. cat conftest.$ac_ext >&5
  1040. rm -rf conftest*
  1041. CPP="${CC-cc} -nologo -E"
  1042. cat > conftest.$ac_ext <<EOF
  1043. #line 1161 "configure"
  1044. #include "confdefs.h"
  1045. #include <assert.h>
  1046. Syntax Error
  1047. EOF
  1048. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1049. { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1050. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1051. if test -z "$ac_err"; then
  1052. :
  1053. else
  1054. echo "$ac_err" >&5
  1055. echo "configure: failed program was:" >&5
  1056. cat conftest.$ac_ext >&5
  1057. rm -rf conftest*
  1058. CPP=/lib/cpp
  1059. fi
  1060. rm -f conftest*
  1061. fi
  1062. rm -f conftest*
  1063. fi
  1064. rm -f conftest*
  1065. ac_cv_prog_CPP="$CPP"
  1066. fi
  1067. CPP="$ac_cv_prog_CPP"
  1068. else
  1069. ac_cv_prog_CPP="$CPP"
  1070. fi
  1071. echo "$ac_t""$CPP" 1>&6
  1072. # Find a good install program. We prefer a C program (faster),
  1073. # so one script is as good as another. But avoid the broken or
  1074. # incompatible versions:
  1075. # SysV /etc/install, /usr/sbin/install
  1076. # SunOS /usr/etc/install
  1077. # IRIX /sbin/install
  1078. # AIX /bin/install
  1079. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1080. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1081. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1082. # ./install, which can be erroneously created by make from ./install.sh.
  1083. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1084. echo "configure:1203: checking for a BSD compatible install" >&5
  1085. if test -z "$INSTALL"; then
  1086. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1087. echo $ac_n "(cached) $ac_c" 1>&6
  1088. else
  1089. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1090. for ac_dir in $PATH; do
  1091. # Account for people who put trailing slashes in PATH elements.
  1092. case "$ac_dir/" in
  1093. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1094. *)
  1095. # OSF1 and SCO ODT 3.0 have their own names for install.
  1096. # Don't use installbsd from OSF since it installs stuff as root
  1097. # by default.
  1098. for ac_prog in ginstall scoinst install; do
  1099. if test -f $ac_dir/$ac_prog; then
  1100. if test $ac_prog = install &&
  1101. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1102. # AIX install. It has an incompatible calling convention.
  1103. :
  1104. else
  1105. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1106. break 2
  1107. fi
  1108. fi
  1109. done
  1110. ;;
  1111. esac
  1112. done
  1113. IFS="$ac_save_IFS"
  1114. fi
  1115. if test "${ac_cv_path_install+set}" = set; then
  1116. INSTALL="$ac_cv_path_install"
  1117. else
  1118. # As a last resort, use the slow shell script. We don't cache a
  1119. # path for INSTALL within a source directory, because that will
  1120. # break other packages using the cache if that directory is
  1121. # removed, or if the path is relative.
  1122. INSTALL="$ac_install_sh"
  1123. fi
  1124. fi
  1125. echo "$ac_t""$INSTALL" 1>&6
  1126. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1127. # It thinks the first close brace ends the variable substitution.
  1128. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1129. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1130. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1131. echo "Wondering what our windowing system is... "
  1132. if test -d "/etc/X11" ; then
  1133. WINDOWING_SYSTEM="-DXWIN"
  1134. fi
  1135. if test -d "/usr/X11" ; then
  1136. WINDOWING_SYSTEM="-DXWIN"
  1137. fi
  1138. if test "$WINDOWING_SYSTEM" = "-DXWIN"; then
  1139. echo "Smells like X11"
  1140. else
  1141. echo "Umm. Doesn't seem to be X11."
  1142. fi
  1143. cat >> confdefs.h <<\EOF
  1144. #define AUTOCONFIGURED 1
  1145. EOF
  1146. echo $ac_n "checking the SDL installation""... $ac_c" 1>&6
  1147. echo "configure:1277: checking the SDL installation" >&5
  1148. # Extract the first word of "sdl-config", so it can be a program name with args.
  1149. set dummy sdl-config; ac_word=$2
  1150. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1151. echo "configure:1281: checking for $ac_word" >&5
  1152. if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SDL_CONFIG'+set}'`\" = set"; then
  1153. echo $ac_n "(cached) $ac_c" 1>&6
  1154. else
  1155. if test -n "$HAVE_SDL_CONFIG"; then
  1156. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  1157. else
  1158. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1159. ac_dummy="$PATH"
  1160. for ac_dir in $ac_dummy; do
  1161. test -z "$ac_dir" && ac_dir=.
  1162. if test -f $ac_dir/$ac_word; then
  1163. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  1164. break
  1165. fi
  1166. done
  1167. IFS="$ac_save_ifs"
  1168. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  1169. fi
  1170. fi
  1171. HAVE_SDL_CONFIG="$ac_cv_prog_HAVE_SDL_CONFIG"
  1172. if test -n "$HAVE_SDL_CONFIG"; then
  1173. echo "$ac_t""$HAVE_SDL_CONFIG" 1>&6
  1174. else
  1175. echo "$ac_t""no" 1>&6
  1176. fi
  1177. if test "$HAVE_SDL_CONFIG" != "yes"; then
  1178. echo "You must have SDL installed."
  1179. exit 1
  1180. fi
  1181. SDL_INCLUDES=`sdl-config --cflags`
  1182. SDL_LIBS=`sdl-config --libs`
  1183. cat >> confdefs.h <<\EOF
  1184. #define HAVE_SDL 1
  1185. EOF
  1186. echo "$ac_t""Now we know lots about how SDL is installed locally" 1>&6
  1187. # Check whether --enable-kmid or --disable-kmid was given.
  1188. if test "${enable_kmid+set}" = set; then
  1189. enableval="$enable_kmid"
  1190. :
  1191. else
  1192. disable_kmid=no
  1193. fi
  1194. echo $ac_n "checking whether to disable kmid""... $ac_c" 1>&6
  1195. echo "configure:1336: checking whether to disable kmid" >&5
  1196. if test x$disable_kmid = xno; then
  1197. echo "$ac_t""no" 1>&6
  1198. echo $ac_n "checking for libkmid""... $ac_c" 1>&6
  1199. echo "configure:1340: checking for libkmid" >&5
  1200. KMID_INCLUDES=""
  1201. KMID_LIBS=""
  1202. for i in /usr/include/libkmid.h /usr/include/libkmid/libkmid.h /usr/local/include/libkmid.h /usr/local/include/libkmid/libkmid.h
  1203. do
  1204. test -f "$i" && KMID_INCLUDES=`dirname $i` && HAVE_KMID="yes"
  1205. done
  1206. for i in /lib /usr/lib /usr/local/lib
  1207. do
  1208. test -f "$i/libkmid.so" && KMID_LIBS="-L$i -lkmid"
  1209. done
  1210. if test "$HAVE_KMID" != "yes" ; then
  1211. echo "If you don't have kmid installed try $0 --disable-kmid"
  1212. exit 1
  1213. else
  1214. echo "$ac_t""Found it. Neat." 1>&6
  1215. cat >> confdefs.h <<\EOF
  1216. #define HAVE_LIBKMIDI 1
  1217. EOF
  1218. fi
  1219. KMID_INCLUDES="-I$KMID_INCLUDES"
  1220. else
  1221. echo "$ac_t""yes" 1>&6
  1222. echo "Okay. No Kmid in this binary."
  1223. fi
  1224. echo $ac_n "checking for freetype""... $ac_c" 1>&6
  1225. echo "configure:1373: checking for freetype" >&5
  1226. FREETYPE_DIR=""
  1227. if test -f "/usr/include/freetype.h"; then
  1228. FREETYPE_DIR="/usr/include"
  1229. fi
  1230. if test -f "/usr/include/freetype/freetype.h"; then
  1231. FREETYPE_DIR="/usr/include/freetype"
  1232. fi
  1233. if test -f "/usr/local/include/freetype.h"; then
  1234. FREETYPE_DIR="/usr/local/include"
  1235. fi
  1236. if test "$FREETYPE_DIR" != ""; then
  1237. echo "$ac_t""$FREETYPE_DIR" 1>&6
  1238. cat >> confdefs.h <<\EOF
  1239. #define HAVE_FREETYPE 1
  1240. EOF
  1241. FREETYPE_LIBS="-lfreetype"
  1242. fi
  1243. echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
  1244. echo "configure:1397: checking for a C++-Compiler" >&5
  1245. echo "$ac_t""$CXX" 1>&6
  1246. if test -z "$CXX"; then
  1247. # Extract the first word of "g++", so it can be a program name with args.
  1248. set dummy g++; ac_word=$2
  1249. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1250. echo "configure:1404: checking for $ac_word" >&5
  1251. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1252. echo $ac_n "(cached) $ac_c" 1>&6
  1253. else
  1254. if test -n "$CXX"; then
  1255. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1256. else
  1257. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1258. ac_dummy="$PATH"
  1259. for ac_dir in $ac_dummy; do
  1260. test -z "$ac_dir" && ac_dir=.
  1261. if test -f $ac_dir/$ac_word; then
  1262. ac_cv_prog_CXX="g++"
  1263. break
  1264. fi
  1265. done
  1266. IFS="$ac_save_ifs"
  1267. fi
  1268. fi
  1269. CXX="$ac_cv_prog_CXX"
  1270. if test -n "$CXX"; then
  1271. echo "$ac_t""$CXX" 1>&6
  1272. else
  1273. echo "$ac_t""no" 1>&6
  1274. fi
  1275. CXXFLAGS="$CXXFLAGS --pedantic"
  1276. PEDANTIC="--pedantic"
  1277. fi
  1278. if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
  1279. set dummy CC; ac_word=$2
  1280. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1281. echo "configure:1436: checking for $ac_word" >&5
  1282. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1283. echo $ac_n "(cached) $ac_c" 1>&6
  1284. else
  1285. if test -n "$CXX"; then
  1286. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1287. else
  1288. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1289. ac_dummy="$PATH"
  1290. for ac_dir in $ac_dummy; do
  1291. test -z "$ac_dir" && ac_dir=.
  1292. if test -f $ac_dir/$ac_word; then
  1293. ac_cv_prog_CXX="CC"
  1294. break
  1295. fi
  1296. done
  1297. IFS="$ac_save_ifs"
  1298. fi
  1299. fi
  1300. CXX="$ac_cv_prog_CXX"
  1301. if test -n "$CXX"; then
  1302. echo "$ac_t""$CXX" 1>&6
  1303. else
  1304. echo "$ac_t""no" 1>&6
  1305. fi
  1306. fi
  1307. if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
  1308. set dummy xlC; ac_word=$2
  1309. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1310. echo "configure:1465: checking for $ac_word" >&5
  1311. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1312. echo $ac_n "(cached) $ac_c" 1>&6
  1313. else
  1314. if test -n "$CXX"; then
  1315. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1316. else
  1317. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1318. ac_dummy="$PATH"
  1319. for ac_dir in $ac_dummy; do
  1320. test -z "$ac_dir" && ac_dir=.
  1321. if test -f $ac_dir/$ac_word; then
  1322. ac_cv_prog_CXX="xlC"
  1323. break
  1324. fi
  1325. done
  1326. IFS="$ac_save_ifs"
  1327. fi
  1328. fi
  1329. CXX="$ac_cv_prog_CXX"
  1330. if test -n "$CXX"; then
  1331. echo "$ac_t""$CXX" 1>&6
  1332. else
  1333. echo "$ac_t""no" 1>&6
  1334. fi
  1335. fi
  1336. if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
  1337. set dummy DCC; ac_word=$2
  1338. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1339. echo "configure:1494: checking for $ac_word" >&5
  1340. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1341. echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343. if test -n "$CXX"; then
  1344. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1345. else
  1346. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1347. ac_dummy="$PATH"
  1348. for ac_dir in $ac_dummy; do
  1349. test -z "$ac_dir" && ac_dir=.
  1350. if test -f $ac_dir/$ac_word; then
  1351. ac_cv_prog_CXX="DCC"
  1352. break
  1353. fi
  1354. done
  1355. IFS="$ac_save_ifs"
  1356. fi
  1357. fi
  1358. CXX="$ac_cv_prog_CXX"
  1359. if test -n "$CXX"; then
  1360. echo "$ac_t""$CXX" 1>&6
  1361. else
  1362. echo "$ac_t""no" 1>&6
  1363. fi
  1364. fi
  1365. test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
  1366. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1367. echo "configure:1523: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1368. ac_ext=C
  1369. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1370. ac_cpp='$CXXCPP $CPPFLAGS'
  1371. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1372. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1373. cross_compiling=$ac_cv_prog_cxx_cross
  1374. cat > conftest.$ac_ext << EOF
  1375. #line 1534 "configure"
  1376. #include "confdefs.h"
  1377. int main(){return(0);}
  1378. EOF
  1379. if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1380. ac_cv_prog_cxx_works=yes
  1381. # If we can't run a trivial program, we are probably using a cross compiler.
  1382. if (./conftest; exit) 2>/dev/null; then
  1383. ac_cv_prog_cxx_cross=no
  1384. else
  1385. ac_cv_prog_cxx_cross=yes
  1386. fi
  1387. else
  1388. echo "configure: failed program was:" >&5
  1389. cat conftest.$ac_ext >&5
  1390. ac_cv_prog_cxx_works=no
  1391. fi
  1392. rm -fr conftest*
  1393. ac_ext=c
  1394. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1395. ac_cpp='$CPP $CPPFLAGS'
  1396. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1397. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1398. cross_compiling=$ac_cv_prog_cc_cross
  1399. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1400. if test $ac_cv_prog_cxx_works = no; then
  1401. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1402. fi
  1403. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1404. echo "configure:1565: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1405. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1406. cross_compiling=$ac_cv_prog_cxx_cross
  1407. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&…

Large files files are truncated, but you can click here to view the full file