You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3208 lines
92 KiB

25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
  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. --enable-shared build shared libraries [default=yes]
  14. --enable-shared=PKGS only build shared libraries if the current package
  15. appears as an element in the PKGS list"
  16. ac_help="$ac_help
  17. --enable-static build static libraries [default=yes]
  18. --enable-static=PKGS only build shared libraries if the current package
  19. appears as an element in the PKGS list"
  20. ac_help="$ac_help
  21. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  22. ac_help="$ac_help
  23. --with-gmp use external fast low-level functions from GNU gmp3.
  24. [default=yes]"
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46. bindir='${exec_prefix}/bin'
  47. sbindir='${exec_prefix}/sbin'
  48. libexecdir='${exec_prefix}/libexec'
  49. datadir='${prefix}/share'
  50. sysconfdir='${prefix}/etc'
  51. sharedstatedir='${prefix}/com'
  52. localstatedir='${prefix}/var'
  53. libdir='${exec_prefix}/lib'
  54. includedir='${prefix}/include'
  55. oldincludedir='/usr/include'
  56. infodir='${prefix}/info'
  57. mandir='${prefix}/man'
  58. # Initialize some other variables.
  59. subdirs=
  60. MFLAGS= MAKEFLAGS=
  61. SHELL=${CONFIG_SHELL-/bin/sh}
  62. # Maximum number of lines to put in a shell here document.
  63. ac_max_here_lines=12
  64. ac_prev=
  65. for ac_option
  66. do
  67. # If the previous option needs an argument, assign it.
  68. if test -n "$ac_prev"; then
  69. eval "$ac_prev=\$ac_option"
  70. ac_prev=
  71. continue
  72. fi
  73. case "$ac_option" in
  74. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  75. *) ac_optarg= ;;
  76. esac
  77. # Accept the important Cygnus configure options, so we can diagnose typos.
  78. case "$ac_option" in
  79. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  80. ac_prev=bindir ;;
  81. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  82. bindir="$ac_optarg" ;;
  83. -build | --build | --buil | --bui | --bu)
  84. ac_prev=build ;;
  85. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  86. build="$ac_optarg" ;;
  87. -cache-file | --cache-file | --cache-fil | --cache-fi \
  88. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89. ac_prev=cache_file ;;
  90. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92. cache_file="$ac_optarg" ;;
  93. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  94. ac_prev=datadir ;;
  95. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  96. | --da=*)
  97. datadir="$ac_optarg" ;;
  98. -disable-* | --disable-*)
  99. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  100. # Reject names that are not valid shell variable names.
  101. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  102. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  103. fi
  104. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  105. eval "enable_${ac_feature}=no" ;;
  106. -enable-* | --enable-*)
  107. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  108. # Reject names that are not valid shell variable names.
  109. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  110. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  111. fi
  112. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  113. case "$ac_option" in
  114. *=*) ;;
  115. *) ac_optarg=yes ;;
  116. esac
  117. eval "enable_${ac_feature}='$ac_optarg'" ;;
  118. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120. | --exec | --exe | --ex)
  121. ac_prev=exec_prefix ;;
  122. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124. | --exec=* | --exe=* | --ex=*)
  125. exec_prefix="$ac_optarg" ;;
  126. -gas | --gas | --ga | --g)
  127. # Obsolete; use --with-gas.
  128. with_gas=yes ;;
  129. -help | --help | --hel | --he)
  130. # Omit some internal or obsolete options to make the list less imposing.
  131. # This message is too long to be a string in the A/UX 3.1 sh.
  132. cat << EOF
  133. Usage: configure [options] [host]
  134. Options: [defaults in brackets after descriptions]
  135. Configuration:
  136. --cache-file=FILE cache test results in FILE
  137. --help print this message
  138. --no-create do not create output files
  139. --quiet, --silent do not print \`checking...' messages
  140. --version print the version of autoconf that created configure
  141. Directory and file names:
  142. --prefix=PREFIX install architecture-independent files in PREFIX
  143. [$ac_default_prefix]
  144. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  145. [same as prefix]
  146. --bindir=DIR user executables in DIR [EPREFIX/bin]
  147. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  148. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  149. --datadir=DIR read-only architecture-independent data in DIR
  150. [PREFIX/share]
  151. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  152. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  153. [PREFIX/com]
  154. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  155. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  156. --includedir=DIR C header files in DIR [PREFIX/include]
  157. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  158. --infodir=DIR info documentation in DIR [PREFIX/info]
  159. --mandir=DIR man documentation in DIR [PREFIX/man]
  160. --srcdir=DIR find the sources in DIR [configure dir or ..]
  161. --program-prefix=PREFIX prepend PREFIX to installed program names
  162. --program-suffix=SUFFIX append SUFFIX to installed program names
  163. --program-transform-name=PROGRAM
  164. run sed PROGRAM on installed program names
  165. EOF
  166. cat << EOF
  167. Host type:
  168. --build=BUILD configure for building on BUILD [BUILD=HOST]
  169. --host=HOST configure for HOST [guessed]
  170. --target=TARGET configure for TARGET [TARGET=HOST]
  171. Features and packages:
  172. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  173. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  174. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  175. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  176. --x-includes=DIR X include files are in DIR
  177. --x-libraries=DIR X library files are in DIR
  178. EOF
  179. if test -n "$ac_help"; then
  180. echo "--enable and --with options recognized:$ac_help"
  181. fi
  182. exit 0 ;;
  183. -host | --host | --hos | --ho)
  184. ac_prev=host ;;
  185. -host=* | --host=* | --hos=* | --ho=*)
  186. host="$ac_optarg" ;;
  187. -includedir | --includedir | --includedi | --included | --include \
  188. | --includ | --inclu | --incl | --inc)
  189. ac_prev=includedir ;;
  190. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  191. | --includ=* | --inclu=* | --incl=* | --inc=*)
  192. includedir="$ac_optarg" ;;
  193. -infodir | --infodir | --infodi | --infod | --info | --inf)
  194. ac_prev=infodir ;;
  195. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  196. infodir="$ac_optarg" ;;
  197. -libdir | --libdir | --libdi | --libd)
  198. ac_prev=libdir ;;
  199. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  200. libdir="$ac_optarg" ;;
  201. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  202. | --libexe | --libex | --libe)
  203. ac_prev=libexecdir ;;
  204. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  205. | --libexe=* | --libex=* | --libe=*)
  206. libexecdir="$ac_optarg" ;;
  207. -localstatedir | --localstatedir | --localstatedi | --localstated \
  208. | --localstate | --localstat | --localsta | --localst \
  209. | --locals | --local | --loca | --loc | --lo)
  210. ac_prev=localstatedir ;;
  211. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  212. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  213. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  214. localstatedir="$ac_optarg" ;;
  215. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  216. ac_prev=mandir ;;
  217. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  218. mandir="$ac_optarg" ;;
  219. -nfp | --nfp | --nf)
  220. # Obsolete; use --without-fp.
  221. with_fp=no ;;
  222. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  223. | --no-cr | --no-c)
  224. no_create=yes ;;
  225. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  226. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  227. no_recursion=yes ;;
  228. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  229. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  230. | --oldin | --oldi | --old | --ol | --o)
  231. ac_prev=oldincludedir ;;
  232. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  233. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  234. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  235. oldincludedir="$ac_optarg" ;;
  236. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  237. ac_prev=prefix ;;
  238. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  239. prefix="$ac_optarg" ;;
  240. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  241. | --program-pre | --program-pr | --program-p)
  242. ac_prev=program_prefix ;;
  243. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  244. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  245. program_prefix="$ac_optarg" ;;
  246. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  247. | --program-suf | --program-su | --program-s)
  248. ac_prev=program_suffix ;;
  249. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  250. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  251. program_suffix="$ac_optarg" ;;
  252. -program-transform-name | --program-transform-name \
  253. | --program-transform-nam | --program-transform-na \
  254. | --program-transform-n | --program-transform- \
  255. | --program-transform | --program-transfor \
  256. | --program-transfo | --program-transf \
  257. | --program-trans | --program-tran \
  258. | --progr-tra | --program-tr | --program-t)
  259. ac_prev=program_transform_name ;;
  260. -program-transform-name=* | --program-transform-name=* \
  261. | --program-transform-nam=* | --program-transform-na=* \
  262. | --program-transform-n=* | --program-transform-=* \
  263. | --program-transform=* | --program-transfor=* \
  264. | --program-transfo=* | --program-transf=* \
  265. | --program-trans=* | --program-tran=* \
  266. | --progr-tra=* | --program-tr=* | --program-t=*)
  267. program_transform_name="$ac_optarg" ;;
  268. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  269. | -silent | --silent | --silen | --sile | --sil)
  270. silent=yes ;;
  271. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  272. ac_prev=sbindir ;;
  273. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  274. | --sbi=* | --sb=*)
  275. sbindir="$ac_optarg" ;;
  276. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  277. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  278. | --sharedst | --shareds | --shared | --share | --shar \
  279. | --sha | --sh)
  280. ac_prev=sharedstatedir ;;
  281. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  282. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  283. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  284. | --sha=* | --sh=*)
  285. sharedstatedir="$ac_optarg" ;;
  286. -site | --site | --sit)
  287. ac_prev=site ;;
  288. -site=* | --site=* | --sit=*)
  289. site="$ac_optarg" ;;
  290. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  291. ac_prev=srcdir ;;
  292. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  293. srcdir="$ac_optarg" ;;
  294. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  295. | --syscon | --sysco | --sysc | --sys | --sy)
  296. ac_prev=sysconfdir ;;
  297. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  298. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  299. sysconfdir="$ac_optarg" ;;
  300. -target | --target | --targe | --targ | --tar | --ta | --t)
  301. ac_prev=target ;;
  302. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  303. target="$ac_optarg" ;;
  304. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  305. verbose=yes ;;
  306. -version | --version | --versio | --versi | --vers)
  307. echo "configure generated by autoconf version 2.13"
  308. exit 0 ;;
  309. -with-* | --with-*)
  310. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  311. # Reject names that are not valid shell variable names.
  312. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  313. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  314. fi
  315. ac_package=`echo $ac_package| sed 's/-/_/g'`
  316. case "$ac_option" in
  317. *=*) ;;
  318. *) ac_optarg=yes ;;
  319. esac
  320. eval "with_${ac_package}='$ac_optarg'" ;;
  321. -without-* | --without-*)
  322. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  323. # Reject names that are not valid shell variable names.
  324. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  325. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  326. fi
  327. ac_package=`echo $ac_package| sed 's/-/_/g'`
  328. eval "with_${ac_package}=no" ;;
  329. --x)
  330. # Obsolete; use --with-x.
  331. with_x=yes ;;
  332. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  333. | --x-incl | --x-inc | --x-in | --x-i)
  334. ac_prev=x_includes ;;
  335. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  336. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  337. x_includes="$ac_optarg" ;;
  338. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  339. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  340. ac_prev=x_libraries ;;
  341. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  342. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  343. x_libraries="$ac_optarg" ;;
  344. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  345. ;;
  346. *)
  347. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  348. echo "configure: warning: $ac_option: invalid host type" 1>&2
  349. fi
  350. if test "x$nonopt" != xNONE; then
  351. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  352. fi
  353. nonopt="$ac_option"
  354. ;;
  355. esac
  356. done
  357. if test -n "$ac_prev"; then
  358. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  359. fi
  360. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  361. # File descriptor usage:
  362. # 0 standard input
  363. # 1 file creation
  364. # 2 errors and warnings
  365. # 3 some systems may open it to /dev/tty
  366. # 4 used on the Kubota Titan
  367. # 6 checking for... messages and results
  368. # 5 compiler messages saved in config.log
  369. if test "$silent" = yes; then
  370. exec 6>/dev/null
  371. else
  372. exec 6>&1
  373. fi
  374. exec 5>./config.log
  375. echo "\
  376. This file contains any messages produced by compilers while
  377. running configure, to aid debugging if configure makes a mistake.
  378. " 1>&5
  379. # Strip out --no-create and --no-recursion so they do not pile up.
  380. # Also quote any args containing shell metacharacters.
  381. ac_configure_args=
  382. for ac_arg
  383. do
  384. case "$ac_arg" in
  385. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  386. | --no-cr | --no-c) ;;
  387. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  388. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  389. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  390. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  391. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  392. esac
  393. done
  394. # NLS nuisances.
  395. # Only set these to C if already set. These must not be set unconditionally
  396. # because not all systems understand e.g. LANG=C (notably SCO).
  397. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  398. # Non-C LC_CTYPE values break the ctype check.
  399. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  400. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  401. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  402. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  403. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  404. rm -rf conftest* confdefs.h
  405. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  406. echo > confdefs.h
  407. # A filename unique to this package, relative to the directory that
  408. # configure is in, which we can look for to find out if srcdir is correct.
  409. ac_unique_file=src/integer/gcd/cl_I_gcd.cc
  410. # Find the source files, if location was not specified.
  411. if test -z "$srcdir"; then
  412. ac_srcdir_defaulted=yes
  413. # Try the directory containing this script, then its parent.
  414. ac_prog=$0
  415. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  416. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  417. srcdir=$ac_confdir
  418. if test ! -r $srcdir/$ac_unique_file; then
  419. srcdir=..
  420. fi
  421. else
  422. ac_srcdir_defaulted=no
  423. fi
  424. if test ! -r $srcdir/$ac_unique_file; then
  425. if test "$ac_srcdir_defaulted" = yes; then
  426. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  427. else
  428. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  429. fi
  430. fi
  431. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  432. # Prefer explicitly selected file to automatically selected ones.
  433. if test -z "$CONFIG_SITE"; then
  434. if test "x$prefix" != xNONE; then
  435. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  436. else
  437. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  438. fi
  439. fi
  440. for ac_site_file in $CONFIG_SITE; do
  441. if test -r "$ac_site_file"; then
  442. echo "loading site script $ac_site_file"
  443. . "$ac_site_file"
  444. fi
  445. done
  446. if test -r "$cache_file"; then
  447. echo "loading cache $cache_file"
  448. . $cache_file
  449. else
  450. echo "creating cache $cache_file"
  451. > $cache_file
  452. fi
  453. ac_ext=c
  454. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  455. ac_cpp='$CPP $CPPFLAGS'
  456. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  457. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  458. cross_compiling=$ac_cv_prog_cc_cross
  459. ac_exeext=
  460. ac_objext=o
  461. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  462. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  463. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  464. ac_n= ac_c='
  465. ' ac_t=' ' ac_tt=
  466. else
  467. ac_n=-n ac_c= ac_t= ac_tt='
  468. '
  469. fi
  470. else
  471. ac_n= ac_c='\c' ac_t= ac_tt='
  472. '
  473. fi
  474. echo $ac_n "checking whether ${MAKE-make} sets \$(MAKE)""... $ac_c" 1>&6
  475. echo "configure:542: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  476. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  477. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  478. echo $ac_n "(cached) $ac_c" 1>&6
  479. else
  480. cat > conftestmake <<\EOF
  481. all:
  482. @echo 'ac_maketemp="${MAKE}"'
  483. EOF
  484. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  485. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  486. if test -n "$ac_maketemp"; then
  487. eval ac_cv_prog_make_${ac_make}_set=yes
  488. else
  489. eval ac_cv_prog_make_${ac_make}_set=no
  490. fi
  491. rm -f conftestmake
  492. fi
  493. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  494. echo "$ac_t""yes" 1>&6
  495. SET_MAKE=
  496. else
  497. echo "$ac_t""no" 1>&6
  498. SET_MAKE="MAKE=${MAKE-make}"
  499. fi
  500. extrasub="$extrasub"'
  501. /@subdir@/{
  502. h
  503. g
  504. s/@subdir@/src/
  505. p
  506. g
  507. s/@subdir@/tests/
  508. p
  509. g
  510. s/@subdir@/benchmarks/
  511. p
  512. g
  513. s/@subdir@/examples/
  514. p
  515. g
  516. s/@subdir@/doc/
  517. p
  518. d
  519. }
  520. '
  521. # Extract the first word of "gcc", so it can be a program name with args.
  522. set dummy gcc; ac_word=$2
  523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  524. echo "configure:592: checking for $ac_word" >&5
  525. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  526. echo $ac_n "(cached) $ac_c" 1>&6
  527. else
  528. if test -n "$CC"; then
  529. ac_cv_prog_CC="$CC" # Let the user override the test.
  530. else
  531. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  532. ac_dummy="$PATH"
  533. for ac_dir in $ac_dummy; do
  534. test -z "$ac_dir" && ac_dir=.
  535. if test -f $ac_dir/$ac_word; then
  536. ac_cv_prog_CC="gcc"
  537. break
  538. fi
  539. done
  540. IFS="$ac_save_ifs"
  541. fi
  542. fi
  543. CC="$ac_cv_prog_CC"
  544. if test -n "$CC"; then
  545. echo "$ac_t""$CC" 1>&6
  546. else
  547. echo "$ac_t""no" 1>&6
  548. fi
  549. if test -z "$CC"; then
  550. # Extract the first word of "cc", so it can be a program name with args.
  551. set dummy cc; ac_word=$2
  552. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  553. echo "configure:622: checking for $ac_word" >&5
  554. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  555. echo $ac_n "(cached) $ac_c" 1>&6
  556. else
  557. if test -n "$CC"; then
  558. ac_cv_prog_CC="$CC" # Let the user override the test.
  559. else
  560. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  561. ac_prog_rejected=no
  562. ac_dummy="$PATH"
  563. for ac_dir in $ac_dummy; do
  564. test -z "$ac_dir" && ac_dir=.
  565. if test -f $ac_dir/$ac_word; then
  566. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  567. ac_prog_rejected=yes
  568. continue
  569. fi
  570. ac_cv_prog_CC="cc"
  571. break
  572. fi
  573. done
  574. IFS="$ac_save_ifs"
  575. if test $ac_prog_rejected = yes; then
  576. # We found a bogon in the path, so make sure we never use it.
  577. set dummy $ac_cv_prog_CC
  578. shift
  579. if test $# -gt 0; then
  580. # We chose a different compiler from the bogus one.
  581. # However, it has the same basename, so the bogon will be chosen
  582. # first if we set CC to just the basename; use the full file name.
  583. shift
  584. set dummy "$ac_dir/$ac_word" "$@"
  585. shift
  586. ac_cv_prog_CC="$@"
  587. fi
  588. fi
  589. fi
  590. fi
  591. CC="$ac_cv_prog_CC"
  592. if test -n "$CC"; then
  593. echo "$ac_t""$CC" 1>&6
  594. else
  595. echo "$ac_t""no" 1>&6
  596. fi
  597. if test -z "$CC"; then
  598. case "`uname -s`" in
  599. *win32* | *WIN32*)
  600. # Extract the first word of "cl", so it can be a program name with args.
  601. set dummy cl; ac_word=$2
  602. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  603. echo "configure:673: checking for $ac_word" >&5
  604. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  605. echo $ac_n "(cached) $ac_c" 1>&6
  606. else
  607. if test -n "$CC"; then
  608. ac_cv_prog_CC="$CC" # Let the user override the test.
  609. else
  610. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  611. ac_dummy="$PATH"
  612. for ac_dir in $ac_dummy; do
  613. test -z "$ac_dir" && ac_dir=.
  614. if test -f $ac_dir/$ac_word; then
  615. ac_cv_prog_CC="cl"
  616. break
  617. fi
  618. done
  619. IFS="$ac_save_ifs"
  620. fi
  621. fi
  622. CC="$ac_cv_prog_CC"
  623. if test -n "$CC"; then
  624. echo "$ac_t""$CC" 1>&6
  625. else
  626. echo "$ac_t""no" 1>&6
  627. fi
  628. ;;
  629. esac
  630. fi
  631. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  632. fi
  633. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  634. echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  635. ac_ext=c
  636. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  637. ac_cpp='$CPP $CPPFLAGS'
  638. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  639. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  640. cross_compiling=$ac_cv_prog_cc_cross
  641. cat > conftest.$ac_ext << EOF
  642. #line 716 "configure"
  643. #include "confdefs.h"
  644. int main(){return(0);}
  645. EOF
  646. if { (eval echo configure:721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  647. ac_cv_prog_cc_works=yes
  648. # If we can't run a trivial program, we are probably using a cross compiler.
  649. if (./conftest; exit) 2>/dev/null; then
  650. ac_cv_prog_cc_cross=no
  651. else
  652. ac_cv_prog_cc_cross=yes
  653. fi
  654. else
  655. echo "configure: failed program was:" >&5
  656. cat conftest.$ac_ext >&5
  657. ac_cv_prog_cc_works=no
  658. fi
  659. rm -fr conftest*
  660. ac_ext=c
  661. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  662. ac_cpp='$CPP $CPPFLAGS'
  663. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  664. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  665. cross_compiling=$ac_cv_prog_cc_cross
  666. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  667. if test $ac_cv_prog_cc_works = no; then
  668. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  669. fi
  670. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  671. echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  672. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  673. cross_compiling=$ac_cv_prog_cc_cross
  674. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  675. echo "configure:752: checking whether we are using GNU C" >&5
  676. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  677. echo $ac_n "(cached) $ac_c" 1>&6
  678. else
  679. cat > conftest.c <<EOF
  680. #ifdef __GNUC__
  681. yes;
  682. #endif
  683. EOF
  684. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  685. ac_cv_prog_gcc=yes
  686. else
  687. ac_cv_prog_gcc=no
  688. fi
  689. fi
  690. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  691. if test $ac_cv_prog_gcc = yes; then
  692. GCC=yes
  693. else
  694. GCC=
  695. fi
  696. ac_test_CFLAGS="${CFLAGS+set}"
  697. ac_save_CFLAGS="$CFLAGS"
  698. CFLAGS=
  699. if test "$ac_test_CFLAGS" = set; then
  700. CFLAGS="$ac_save_CFLAGS"
  701. else
  702. if test "$GCC" = yes; then
  703. # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
  704. # that results from __OPTIMIZE__ being defined for CC but not CPP.
  705. if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
  706. : # already optimizing
  707. else
  708. CC="$CC -O"
  709. ac_cv_prog_CC="$CC"
  710. fi
  711. else
  712. CFLAGS=
  713. fi
  714. fi
  715. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  716. echo "configure:796: checking how to run the C preprocessor" >&5
  717. # On Suns, sometimes $CPP names a directory.
  718. if test -n "$CPP" && test -d "$CPP"; then
  719. CPP=
  720. fi
  721. if test -z "$CPP"; then
  722. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  723. echo $ac_n "(cached) $ac_c" 1>&6
  724. else
  725. # This must be in double quotes, not single quotes, because CPP may get
  726. # substituted into the Makefile and "${CC-cc}" will confuse make.
  727. CPP="${CC-cc} -E"
  728. if test -n "$GCC"; then
  729. # Suppress warning messages.
  730. CPP="$CPP -w"
  731. fi
  732. # On the NeXT, cc -E runs the code through the compiler's parser,
  733. # not just through cpp. On NeXTstep 3.1 the same holds for /lib/cpp; use
  734. # "cc -E -traditional-cpp" instead.
  735. cat > conftest.$ac_ext <<EOF
  736. #line 816 "configure"
  737. #include "confdefs.h"
  738. #include <assert.h>
  739. Syntax Error
  740. EOF
  741. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  742. { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  743. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  744. if test -z "$ac_err"; then
  745. rm -rf conftest*
  746. ac_have_cpp=1
  747. else
  748. echo "$ac_err" >&5
  749. echo "configure: failed program was:" >&5
  750. cat conftest.$ac_ext >&5
  751. fi
  752. rm -f conftest*
  753. if test -z "$ac_have_cpp"; then
  754. CPP="${CC-cc} -E -traditional-cpp"
  755. cat > conftest.$ac_ext <<EOF
  756. #line 836 "configure"
  757. #include "confdefs.h"
  758. #include <assert.h>
  759. Syntax Error
  760. EOF
  761. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  762. { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  763. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  764. if test -z "$ac_err"; then
  765. rm -rf conftest*
  766. ac_have_cpp=1
  767. else
  768. echo "$ac_err" >&5
  769. echo "configure: failed program was:" >&5
  770. cat conftest.$ac_ext >&5
  771. fi
  772. rm -f conftest*
  773. if test -n "$ac_have_cpp"; then
  774. CC="${CC-cc} -traditional-cpp"
  775. else
  776. CPP="${CC-cc} -nologo -E"
  777. cat > conftest.$ac_ext <<EOF
  778. #line 858 "configure"
  779. #include "confdefs.h"
  780. #include <assert.h>
  781. Syntax Error
  782. EOF
  783. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  784. { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  785. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  786. if test -z "$ac_err"; then
  787. rm -rf conftest*
  788. ac_have_cpp=1
  789. else
  790. echo "$ac_err" >&5
  791. echo "configure: failed program was:" >&5
  792. cat conftest.$ac_ext >&5
  793. fi
  794. rm -f conftest*
  795. if test -n "$ac_have_cpp"; then
  796. CC="${CC-cc} -nologo"
  797. else
  798. CPP=/lib/cpp
  799. fi
  800. fi
  801. fi
  802. ac_cv_prog_CC="$CC"
  803. ac_cv_prog_CPP="$CPP"
  804. fi
  805. CPP="$ac_cv_prog_CPP"
  806. else
  807. ac_cv_prog_CPP="$CPP"
  808. fi
  809. echo "$ac_t""$CPP" 1>&6
  810. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  811. do
  812. # Extract the first word of "$ac_prog", so it can be a program name with args.
  813. set dummy $ac_prog; ac_word=$2
  814. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  815. echo "configure:896: checking for $ac_word" >&5
  816. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  817. echo $ac_n "(cached) $ac_c" 1>&6
  818. else
  819. if test -n "$CXX"; then
  820. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  821. else
  822. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  823. ac_dummy="$PATH"
  824. for ac_dir in $ac_dummy; do
  825. test -z "$ac_dir" && ac_dir=.
  826. if test -f $ac_dir/$ac_word; then
  827. ac_cv_prog_CXX="$ac_prog"
  828. break
  829. fi
  830. done
  831. IFS="$ac_save_ifs"
  832. fi
  833. fi
  834. CXX="$ac_cv_prog_CXX"
  835. if test -n "$CXX"; then
  836. echo "$ac_t""$CXX" 1>&6
  837. else
  838. echo "$ac_t""no" 1>&6
  839. fi
  840. test -n "$CXX" && break
  841. done
  842. test -n "$CXX" || CXX="gcc"
  843. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  844. echo "configure:928: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  845. ac_ext=C
  846. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  847. ac_cpp='$CXXCPP $CPPFLAGS'
  848. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  849. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  850. cross_compiling=$ac_cv_prog_cxx_cross
  851. cat > conftest.$ac_ext << EOF
  852. #line 939 "configure"
  853. #include "confdefs.h"
  854. int main(){return(0);}
  855. EOF
  856. if { (eval echo configure:944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  857. ac_cv_prog_cxx_works=yes
  858. # If we can't run a trivial program, we are probably using a cross compiler.
  859. if (./conftest; exit) 2>/dev/null; then
  860. ac_cv_prog_cxx_cross=no
  861. else
  862. ac_cv_prog_cxx_cross=yes
  863. fi
  864. else
  865. echo "configure: failed program was:" >&5
  866. cat conftest.$ac_ext >&5
  867. ac_cv_prog_cxx_works=no
  868. fi
  869. rm -fr conftest*
  870. ac_ext=c
  871. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  872. ac_cpp='$CPP $CPPFLAGS'
  873. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  874. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  875. cross_compiling=$ac_cv_prog_cc_cross
  876. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  877. if test $ac_cv_prog_cxx_works = no; then
  878. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  879. fi
  880. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  881. echo "configure:970: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  882. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  883. cross_compiling=$ac_cv_prog_cxx_cross
  884. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  885. echo "configure:975: checking whether we are using GNU C++" >&5
  886. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  887. echo $ac_n "(cached) $ac_c" 1>&6
  888. else
  889. cat > conftest.C <<EOF
  890. #ifdef __GNUC__
  891. yes;
  892. #endif
  893. EOF
  894. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  895. ac_cv_prog_gxx=yes
  896. else
  897. ac_cv_prog_gxx=no
  898. fi
  899. fi
  900. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  901. if test $ac_cv_prog_gxx = yes; then
  902. GXX=yes
  903. else
  904. GXX=
  905. fi
  906. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  907. ac_save_CXXFLAGS="$CXXFLAGS"
  908. CXXFLAGS=
  909. if test "$ac_test_CXXFLAGS" = set; then
  910. CXXFLAGS="$ac_save_CXXFLAGS"
  911. else
  912. if test "$GXX" = yes; then
  913. # Add "-O" to both the CXX and CXXCPP commands, to eliminate possible confu-
  914. # sion that results from __OPTIMIZE__ being defined for CXX but not CXXCPP.
  915. if echo "$CXX " | grep ' -O[1-9 ]' > /dev/null; then
  916. : # already optimizing
  917. else
  918. CXX="$CXX -O"
  919. ac_cv_prog_CXX="$CXX"
  920. fi
  921. else
  922. CXXFLAGS=
  923. fi
  924. fi
  925. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  926. echo "configure:1019: checking how to run the C++ preprocessor" >&5
  927. if test -z "$CXXCPP"; then
  928. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  929. echo $ac_n "(cached) $ac_c" 1>&6
  930. else
  931. ac_ext=C
  932. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  933. ac_cpp='$CXXCPP $CPPFLAGS'
  934. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  935. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  936. cross_compiling=$ac_cv_prog_cxx_cross
  937. CXXCPP="${CXX-g++} -E"
  938. cat > conftest.$ac_ext <<EOF
  939. #line 1032 "configure"
  940. #include "confdefs.h"
  941. #include <stdlib.h>
  942. EOF
  943. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  944. { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  945. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  946. if test -z "$ac_err"; then
  947. :
  948. else
  949. echo "$ac_err" >&5
  950. echo "configure: failed program was:" >&5
  951. cat conftest.$ac_ext >&5
  952. rm -rf conftest*
  953. CXXCPP=/lib/cpp
  954. fi
  955. rm -f conftest*
  956. ac_cv_prog_CXXCPP="$CXXCPP"
  957. ac_ext=c
  958. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  959. ac_cpp='$CPP $CPPFLAGS'
  960. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  961. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  962. cross_compiling=$ac_cv_prog_cc_cross
  963. fi
  964. fi
  965. CXXCPP="$ac_cv_prog_CXXCPP"
  966. echo "$ac_t""$CXXCPP" 1>&6
  967. echo $ac_n "checking for underscore in external names""... $ac_c" 1>&6
  968. echo "configure:1063: checking for underscore in external names" >&5
  969. if eval "test \"`echo '$''{'cl_cv_prog_as_underscore'+set}'`\" = set"; then
  970. echo $ac_n "(cached) $ac_c" 1>&6
  971. else
  972. cat > conftest.c <<EOF
  973. int foo() { return 0; }
  974. EOF
  975. # look for the assembly language name in the .s file
  976. { ac_try='${CC-cc} -S conftest.c'; { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
  977. if grep _foo conftest.s >/dev/null ; then
  978. cl_cv_prog_as_underscore=yes
  979. else
  980. cl_cv_prog_as_underscore=no
  981. fi
  982. rm -f conftest*
  983. fi
  984. echo "$ac_t""$cl_cv_prog_as_underscore" 1>&6
  985. if test $cl_cv_prog_as_underscore = yes; then
  986. AS_UNDERSCORE=true
  987. cat >> confdefs.h <<\EOF
  988. #define ASM_UNDERSCORE 1
  989. EOF
  990. else
  991. AS_UNDERSCORE=false
  992. fi
  993. # Extract the first word of "ranlib", so it can be a program name with args.
  994. set dummy ranlib; ac_word=$2
  995. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  996. echo "configure:1095: checking for $ac_word" >&5
  997. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  998. echo $ac_n "(cached) $ac_c" 1>&6
  999. else
  1000. if test -n "$RANLIB"; then
  1001. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1002. else
  1003. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1004. ac_dummy="$PATH"
  1005. for ac_dir in $ac_dummy; do
  1006. test -z "$ac_dir" && ac_dir=.
  1007. if test -f $ac_dir/$ac_word; then
  1008. ac_cv_prog_RANLIB="ranlib"
  1009. break
  1010. fi
  1011. done
  1012. IFS="$ac_save_ifs"
  1013. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
  1014. fi
  1015. fi
  1016. RANLIB="$ac_cv_prog_RANLIB"
  1017. if test -n "$RANLIB"; then
  1018. echo "$ac_t""$RANLIB" 1>&6
  1019. else
  1020. echo "$ac_t""no" 1>&6
  1021. fi
  1022. # Find a good install program. We prefer a C program (faster),
  1023. # so one script is as good as another. But avoid the broken or
  1024. # incompatible versions:
  1025. # SysV /etc/install, /usr/sbin/install
  1026. # SunOS /usr/etc/install
  1027. # IRIX /sbin/install
  1028. # AIX /bin/install
  1029. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1030. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1031. # ./install, which can be erroneously created by make from ./install.sh.
  1032. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1033. echo "configure:1133: checking for a BSD compatible install" >&5
  1034. if test -z "$INSTALL"; then
  1035. if eval "test \"`echo '$''{'cl_cv_path_install'+set}'`\" = set"; then
  1036. echo $ac_n "(cached) $ac_c" 1>&6
  1037. else
  1038. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1039. for ac_dir in $PATH; do
  1040. # Account for people who put trailing slashes in PATH elements.
  1041. case "$ac_dir/" in
  1042. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1043. *)
  1044. # OSF1 and SCO ODT 3.0 have their own names for install.
  1045. for ac_prog in ginstall installbsd scoinst install; do
  1046. if test -f $ac_dir/$ac_prog; then
  1047. if test $ac_prog = install &&
  1048. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1049. # AIX install. It has an incompatible calling convention.
  1050. # OSF/1 installbsd also uses dspmsg, but is usable.
  1051. :
  1052. else
  1053. if test $ac_prog = installbsd &&
  1054. grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then
  1055. # AIX installbsd doesn't work without option "-g".
  1056. :
  1057. else
  1058. cl_cv_path_install="$ac_dir/$ac_prog -c"
  1059. break 2
  1060. fi
  1061. fi
  1062. fi
  1063. done
  1064. ;;
  1065. esac
  1066. done
  1067. IFS="$ac_save_ifs"
  1068. # As a last resort, use cp.
  1069. test -z "$cl_cv_path_install" && cl_cv_path_install="cp"
  1070. fi
  1071. INSTALL="$cl_cv_path_install"
  1072. fi
  1073. echo "$ac_t""$INSTALL" 1>&6
  1074. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1075. # It thinks the first close brace ends the variable substitution.
  1076. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)'
  1077. if test -z "$INSTALL_DATA"; then
  1078. case "$INSTALL" in
  1079. cp | */cp ) INSTALL_DATA='$(INSTALL)' ;;
  1080. * ) INSTALL_DATA='$(INSTALL) -m 644' ;;
  1081. esac
  1082. fi
  1083. ac_aux_dir=${srcdir}/autoconf
  1084. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1085. echo "configure:1187: checking host system type" >&5
  1086. if eval "test \"`echo '$''{'cl_cv_host'+set}'`\" = set"; then
  1087. echo $ac_n "(cached) $ac_c" 1>&6
  1088. else
  1089. ac_config_guess=$ac_aux_dir/config.guess
  1090. ac_config_sub=$ac_aux_dir/config.sub
  1091. # Make sure we can run config.sub.
  1092. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1093. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1094. fi
  1095. host_alias=$host
  1096. case "$host_alias" in
  1097. NONE)
  1098. case $nonopt in
  1099. NONE) host_alias=`export CC; $ac_config_guess` ;;
  1100. *) host_alias=$nonopt ;;
  1101. esac ;;
  1102. esac
  1103. # Don't fail just because the system is not listed in GNU's database.
  1104. if test -n "$host_alias"; then
  1105. host=`$ac_config_sub $host_alias`
  1106. else
  1107. host=unknown-unknown-unknown
  1108. fi
  1109. cl_cv_host="$host"
  1110. fi
  1111. echo "$ac_t""$cl_cv_host" 1>&6
  1112. host="$cl_cv_host"
  1113. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1114. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1115. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1116. case "$host_cpu" in
  1117. i[4567]86 )
  1118. host_cpu=i386
  1119. ;;
  1120. alphaev[4-7] | alphaev56 | alphapca5[67] )
  1121. host_cpu=alpha
  1122. ;;
  1123. hppa1.0 | hppa1.1 | hppa2.0 )
  1124. host_cpu=hppa
  1125. ;;
  1126. powerpc )
  1127. host_cpu=rs6000
  1128. ;;
  1129. c1 | c2 | c32 | c34 | c38 | c4 )
  1130. host_cpu=convex
  1131. ;;
  1132. mips )
  1133. echo $ac_n "checking for 64-bit MIPS""... $ac_c" 1>&6
  1134. echo "configure:1240: checking for 64-bit MIPS" >&5
  1135. if eval "test \"`echo '$''{'cl_cv_host_mips64'+set}'`\" = set"; then
  1136. echo $ac_n "(cached) $ac_c" 1>&6
  1137. else
  1138. cat > conftest.$ac_ext <<EOF
  1139. #line 1246 "configure"
  1140. #include "confdefs.h"
  1141. #if defined(_MIPS_SZLONG)
  1142. #if (_MIPS_SZLONG == 64)
  1143. /* We should also check for (_MIPS_SZPTR == 64), but gcc keeps this at 32. */
  1144. yes
  1145. #endif
  1146. #endif
  1147. EOF
  1148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1149. egrep "yes" >/dev/null 2>&1; then
  1150. rm -rf conftest*
  1151. cl_cv_host_mips64=yes
  1152. else
  1153. rm -rf conftest*
  1154. cl_cv_host_mips64=no
  1155. fi
  1156. rm -f conftest*
  1157. fi
  1158. echo "$ac_t""$cl_cv_host_mips64" 1>&6
  1159. if test $cl_cv_host_mips64 = yes; then
  1160. host_cpu=mips64
  1161. fi
  1162. ;;
  1163. sparc | sparc64 )
  1164. echo $ac_n "checking for 64-bit SPARC""... $ac_c" 1>&6
  1165. echo "configure:1275: checking for 64-bit SPARC" >&5
  1166. if eval "test \"`echo '$''{'cl_cv_host_sparc64'+set}'`\" = set"; then
  1167. echo $ac_n "(cached) $ac_c" 1>&6
  1168. else
  1169. cat > conftest.$ac_ext <<EOF
  1170. #line 1281 "configure"
  1171. #include "confdefs.h"
  1172. #if defined(__sparcv9) || defined(__arch64__)
  1173. yes
  1174. #endif
  1175. EOF
  1176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1177. egrep "yes" >/dev/null 2>&1; then
  1178. rm -rf conftest*
  1179. cl_cv_host_sparc64=yes
  1180. else
  1181. rm -rf conftest*
  1182. cl_cv_host_sparc64=no
  1183. fi
  1184. rm -f conftest*
  1185. fi
  1186. echo "$ac_t""$cl_cv_host_sparc64" 1>&6
  1187. if test $cl_cv_host_sparc64 = yes; then
  1188. host_cpu=sparc64
  1189. else
  1190. host_cpu=sparc
  1191. fi
  1192. ;;
  1193. esac
  1194. cat >> confdefs.h <<EOF
  1195. #ifndef __${host_cpu}__
  1196. #define __${host_cpu}__ 1
  1197. #endif
  1198. EOF
  1199. PACKAGE=cln
  1200. # Check whether --enable-shared or --disable-shared was given.
  1201. if test "${enable_shared+set}" = set; then
  1202. enableval="$enable_shared"
  1203. p=${PACKAGE-default}
  1204. case "$enableval" in
  1205. yes) enable_shared=yes ;;
  1206. no) enable_shared=no ;;
  1207. *)
  1208. enable_shared=no
  1209. # Look at the argument we got. We use all the common list separators.
  1210. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1211. for pkg in $enableval; do
  1212. if test "X$pkg" = "X$p"; then
  1213. enable_shared=yes
  1214. fi
  1215. done
  1216. IFS="$ac_save_ifs"
  1217. ;;
  1218. esac
  1219. else
  1220. enable_shared=yes
  1221. fi
  1222. # Check whether --enable-static or --disable-static was given.
  1223. if test "${enable_static+set}" = set; then
  1224. enableval="$enable_static"
  1225. p=${PACKAGE-default}
  1226. case "$enableval" in
  1227. yes) enable_static=yes ;;
  1228. no) enable_static=no ;;
  1229. *)
  1230. enable_static=no
  1231. # Look at the argument we got. We use all the common list separators.
  1232. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1233. for pkg in $enableval; do
  1234. if test "X$pkg" = "X$p"; then
  1235. enable_static=yes
  1236. fi
  1237. done
  1238. IFS="$ac_save_ifs"
  1239. ;;
  1240. esac
  1241. else
  1242. enable_static=yes
  1243. fi
  1244. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1245. if test "${with_gnu_ld+set}" = set; then
  1246. withval="$with_gnu_ld"
  1247. test "$withval" = no || with_gnu_ld=yes
  1248. else
  1249. with_gnu_ld=no
  1250. fi
  1251. ac_prog=ld
  1252. if test "$ac_cv_prog_gcc" = yes; then
  1253. # Check if gcc -print-prog-name=ld gives a path.
  1254. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1255. echo "configure:1374: checking for ld used by GCC" >&5
  1256. ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1257. case "$ac_prog" in
  1258. # Accept absolute paths.
  1259. /* | A-Za-z:\\*)
  1260. test -z "$LD" && LD="$ac_prog"
  1261. ;;
  1262. "")
  1263. # If it fails, then pretend we aren't using GCC.
  1264. ac_prog=ld
  1265. ;;
  1266. *)
  1267. # If it is relative, then search for the first ld in PATH.
  1268. with_gnu_ld=unknown
  1269. ;;
  1270. esac
  1271. elif test "$with_gnu_ld" = yes; then
  1272. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1273. echo "configure:1392: checking for GNU ld" >&5
  1274. else
  1275. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1276. echo "configure:1395: checking for non-GNU ld" >&5
  1277. fi
  1278. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1279. echo $ac_n "(cached) $ac_c" 1>&6
  1280. else
  1281. if test -z "$LD"; then
  1282. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1283. for ac_dir in $PATH; do
  1284. test -z "$ac_dir" && ac_dir=.
  1285. if test -f "$ac_dir/$ac_prog"; then
  1286. ac_cv_path_LD="$ac_dir/$ac_prog"
  1287. # Check to see if the program is GNU ld. I'd rather use --version,
  1288. # but apparently some GNU ld's only accept -v.
  1289. # Break only if it was the GNU/non-GNU ld that we prefer.
  1290. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1291. test "$with_gnu_ld" != no && break
  1292. else
  1293. test "$with_gnu_ld" != yes && break
  1294. fi
  1295. fi
  1296. done
  1297. IFS="$ac_save_ifs"
  1298. else
  1299. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1300. fi
  1301. fi
  1302. LD="$ac_cv_path_LD"
  1303. if test -n "$LD"; then
  1304. echo "$ac_t""$LD" 1>&6
  1305. else
  1306. echo "$ac_t""no" 1>&6
  1307. fi
  1308. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1309. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1310. echo "configure:1431: checking if the linker ($LD) is GNU ld" >&5
  1311. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1312. echo $ac_n "(cached) $ac_c" 1>&6
  1313. else
  1314. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1315. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1316. ac_cv_prog_gnu_ld=yes
  1317. else
  1318. ac_cv_prog_gnu_ld=no
  1319. fi
  1320. fi
  1321. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1322. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1323. echo "configure:1446: checking for BSD-compatible nm" >&5
  1324. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1325. echo $ac_n "(cached) $ac_c" 1>&6
  1326. else
  1327. case "$NM" in
  1328. /* | A-Za-z:\\*)
  1329. ac_cv_path_NM="$NM" # Let the user override the test with a path.
  1330. ;;
  1331. *)
  1332. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1333. for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  1334. test -z "$ac_dir" && ac_dir=.
  1335. if test -f $ac_dir/nm; then
  1336. # Check to see if the nm accepts a BSD-compat flag.
  1337. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1338. # nm: unknown option "B" ignored
  1339. if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1340. ac_cv_path_NM="$ac_dir/nm -B"
  1341. elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1342. ac_cv_path_NM="$ac_dir/nm -p"
  1343. else
  1344. ac_cv_path_NM="$ac_dir/nm"
  1345. fi
  1346. break
  1347. fi
  1348. done
  1349. IFS="$ac_save_ifs"
  1350. test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1351. ;;
  1352. esac
  1353. fi
  1354. NM="$ac_cv_path_NM"
  1355. echo "$ac_t""$NM" 1>&6
  1356. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1357. echo "configure:1483: checking whether ln -s works" >&5
  1358. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1359. echo $ac_n "(cached) $ac_c" 1>&6
  1360. else
  1361. rm -f conftestdata
  1362. if ln -s X conftestdata 2>/dev/null
  1363. then
  1364. rm -f conftestdata
  1365. ac_cv_prog_LN_S="ln -s"
  1366. else
  1367. ac_cv_prog_LN_S=ln
  1368. fi
  1369. fi
  1370. LN_S="$ac_cv_prog_LN_S"
  1371. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1372. echo "$ac_t""yes" 1>&6
  1373. else
  1374. echo "$ac_t""no" 1>&6
  1375. fi
  1376. # Always use our own libtool.
  1377. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1378. # Check for any special flags to pass to ltconfig.
  1379. libtool_flags=
  1380. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1381. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1382. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1383. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1384. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1385. # Some flags need to be propagated to the compiler or linker for good
  1386. # libtool support.
  1387. case "$host" in
  1388. *-*-irix6*)
  1389. # Find out which ABI we are using.
  1390. echo '#line 1519 "configure"' > conftest.$ac_ext
  1391. if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1392. case "`/usr/bin/file conftest.o`" in
  1393. *32-bit*)
  1394. LD="${LD-ld} -32"
  1395. ;;
  1396. *N32*)
  1397. LD="${LD-ld} -n32"
  1398. ;;
  1399. *64-bit*)
  1400. LD="${LD-ld} -64"
  1401. ;;
  1402. esac
  1403. fi
  1404. rm -rf conftest*
  1405. ;;
  1406. *-*-sco3.2v5*)
  1407. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1408. CFLAGS="$CFLAGS -belf"
  1409. ;;
  1410. esac
  1411. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  1412. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1413. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
  1414. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
  1415. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
  1416. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1417. CL_CURRENT=1
  1418. CL_REVISION=0
  1419. CL_AGE=0
  1420. CL_VERSION=1
  1421. CL_VERSION_MINOR=1
  1422. CL_VERSION_PATCHLEVEL=0
  1423. cat >> confdefs.h <<EOF
  1424. #define CL_VERSION $CL_VERSION
  1425. EOF
  1426. cat >> confdefs.h <<EOF
  1427. #define CL_VERSION_MINOR $CL_VERSION_MINOR
  1428. EOF
  1429. cat >> confdefs.h <<EOF
  1430. #define CL_VERSION_PATCHLEVEL $CL_VERSION_PATCHLEVEL
  1431. EOF
  1432. ac_ext=C
  1433. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1434. ac_cpp='$CXXCPP $CPPFLAGS'
  1435. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1436. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1437. cross_compiling=$ac_cv_prog_cxx_cross
  1438. ac_ext=C
  1439. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1440. ac_cpp='$CXXCPP $CPPFLAGS'
  1441. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1442. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1443. cross_compiling=$ac_cv_prog_cxx_cross
  1444. echo $ac_n "checking for bool type""... $ac_c" 1>&6
  1445. echo "configure:1587: checking for bool type" >&5
  1446. if eval "test \"`echo '$''{'cl_cv_cplusplus_bool'+set}'`\" = set"; then
  1447. echo $ac_n "(cached) $ac_c" 1>&6
  1448. else
  1449. cat > conftest.$ac_ext <<EOF
  1450. #line 1593 "configure"
  1451. #include "confdefs.h"
  1452. int main() {
  1453. bool x;
  1454. ; return 0; }
  1455. EOF
  1456. if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1457. rm -rf conftest*
  1458. cl_cv_cplusplus_bool=yes
  1459. else
  1460. echo "configure: failed program was:" >&5
  1461. cat conftest.$ac_ext >&5
  1462. rm -rf conftest*
  1463. cl_cv_cplusplus_bool=no
  1464. fi
  1465. rm -f conftest*
  1466. fi
  1467. echo "$ac_t""$cl_cv_cplusplus_bool" 1>&6
  1468. if test $cl_cv_cplusplus_bool = yes; then
  1469. cat >> confdefs.h <<\EOF
  1470. #define HAVE_BOOL 1
  1471. EOF
  1472. else
  1473. cat >> confdefs.h <<\EOF
  1474. #define bool int
  1475. EOF
  1476. fi
  1477. ac_ext=C
  1478. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1479. ac_cpp='$CXXCPP $CPPFLAGS'
  1480. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1481. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1482. cross_compiling=$ac_cv_prog_cxx_cross
  1483. echo $ac_n "checking for long long type""... $ac_c" 1>&6
  1484. echo "configure:1634: checking for long long type" >&5
  1485. if eval "test \"`echo '$''{'cl_cv_c_longlong'+set}'`\" = set"; then
  1486. echo $ac_n "(cached) $ac_c" 1>&6
  1487. else
  1488. if test "$cross_compiling" = yes; then
  1489. cl_cv_c_longlong="guessing no"
  1490. else
  1491. cat > conftest.$ac_ext <<EOF
  1492. #line 1643 "configure"
  1493. #include "confdefs.h"
  1494. #ifdef __cplusplus
  1495. extern "C" void exit(int);
  1496. #endif
  1497. int main()
  1498. {
  1499. /* long longs don't work right with gcc-2.7.2 on m68k */
  1500. /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
  1501. miscompiled. */
  1502. #ifdef __GNUC__
  1503. #if defined(__m68k__) || (defined(_IBMR2) || defined(__powerpc))
  1504. #if (__GNUC__ == 2)
  1505. #if (__GNUC_MINOR__ <= 7)
  1506. exit(1);
  1507. #endif
  1508. #endif
  1509. #endif
  1510. #endif
  1511. { long x = 944938507; long y = 737962842; long z = 162359677;
  1512. exit(!(((long long) x)*((long long) y)>>32 == z));
  1513. }
  1514. }
  1515. EOF
  1516. if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1517. then
  1518. cl_cv_c_longlong=yes
  1519. else
  1520. echo "configure: failed program was:" >&5
  1521. cat conftest.$ac_ext >&5
  1522. rm -fr conftest*
  1523. cl_cv_c_longlong=no
  1524. fi
  1525. if test -f core; then
  1526. coredir=core`/bin/sh -c 'echo $$'`
  1527. mkdir $coredir
  1528. cp confdefs.h $coredir/confdefs.h
  1529. mv conftest.c $coredir/conftest.c
  1530. mv conftest $coredir/conftest
  1531. mv core $coredir/core
  1532. echo "warning: test program dumped core -- see subdirectory $coredir"
  1533. fi
  1534. rm -fr conftest*
  1535. fi
  1536. fi
  1537. echo "$ac_t""$cl_cv_c_longlong" 1>&6
  1538. case "$cl_cv_c_longlong" in
  1539. *yes) cat >> confdefs.h <<\EOF
  1540. #define HAVE_LONGLONG 1
  1541. EOF
  1542. ;;
  1543. *no) ;;
  1544. esac
  1545. echo $ac_n "checking for long double type""... $ac_c" 1>&6
  1546. echo "configure:1700: checking for long double type" >&5
  1547. if eval "test \"`echo '$''{'cl_cv_c_longdouble'+set}'`\" = set"; then
  1548. echo $ac_n "(cached) $ac_c" 1>&6
  1549. else
  1550. if test "$cross_compiling" = yes; then
  1551. cl_cv_c_longdouble="guessing no"
  1552. else
  1553. cat > conftest.$ac_ext <<EOF
  1554. #line 1709 "configure"
  1555. #include "confdefs.h"
  1556. #ifdef __cplusplus
  1557. extern "C" void exit(int);
  1558. #endif
  1559. int main()
  1560. { long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
  1561. EOF
  1562. if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1563. then
  1564. cl_cv_c_longdouble=yes
  1565. else
  1566. echo "configure: failed program was:" >&5
  1567. cat conftest.$ac_ext >&5
  1568. rm -fr conftest*
  1569. cl_cv_c_longdouble=no
  1570. fi
  1571. if test -f core; then
  1572. coredir=core`/bin/sh -c 'echo $$'`
  1573. mkdir $coredir
  1574. cp confdefs.h $coredir/confdefs.h
  1575. mv conftest.c $coredir/conftest.c
  1576. mv conftest $coredir/conftest
  1577. mv core $coredir/core
  1578. echo "warning: test program dumped core -- see subdirectory $coredir"
  1579. fi
  1580. rm -fr conftest*
  1581. fi
  1582. fi
  1583. echo "$ac_t""$cl_cv_c_longdouble" 1>&6
  1584. case "$cl_cv_c_longdouble" in
  1585. *yes) cat >> confdefs.h <<\EOF
  1586. #define HAVE_LONGDOUBLE 1
  1587. EOF
  1588. ;;
  1589. *no) ;;
  1590. esac
  1591. echo $ac_n "checking for working template<>""... $ac_c" 1>&6
  1592. echo "configure:1750: checking for working template<>" >&5
  1593. if eval "test \"`echo '$''{'cl_cv_c_templatenull'+set}'`\" = set"; then
  1594. echo $ac_n "(cached) $ac_c" 1>&6
  1595. else
  1596. cat > conftest.$ac_ext <<EOF
  1597. #line 1756 "configure"
  1598. #include "confdefs.h"
  1599. template <class T> class c {}; template <> class c<int> { int x; };
  1600. int main() {
  1601. ; return 0; }
  1602. EOF
  1603. if { (eval echo configure:1763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1604. rm -rf conftest*
  1605. cl_cv_c_templatenull=yes
  1606. else
  1607. echo "configure: failed program was:" >&5
  1608. cat conftest.$ac_ext >&5
  1609. rm -rf conftest*
  1610. cl_cv_c_templatenull=no
  1611. fi
  1612. rm -f conftest*
  1613. fi
  1614. echo "$ac_t""$cl_cv_c_templatenull" 1>&6
  1615. if test $cl_cv_c_templatenull = yes; then
  1616. cat >> confdefs.h <<\EOF
  1617. #define HAVE_TEMPLATE_NULL 1
  1618. EOF
  1619. fi
  1620. if test -n "$GCC"; then
  1621. echo $ac_n "checking for the global constructors function prefix""... $ac_c" 1>&6
  1622. echo "configure:1787: checking for the global constructors function prefix" >&5
  1623. if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorprefix'+set}'`\" = set"; then
  1624. echo $ac_n "(cached) $ac_c" 1>&6
  1625. else
  1626. cat > conftest.cc << EOF
  1627. struct foo { foo (); };
  1628. foo foobar;
  1629. EOF
  1630. # look for the assembly language name in the .s file
  1631. { ac_try='${CXX-g++} $CXXFLAGS -S conftest.cc'; { (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1
  1632. if grep '_GLOBAL_\$I\$foobar' conftest.s >/dev/null ; then
  1633. cl_cv_cplusplus_ctorprefix='_GLOBAL_$I$'
  1634. else
  1635. if grep '_GLOBAL_\.I\.foobar' conftest.s >/dev/null ; then
  1636. cl_cv_cplusplus_ctorprefix='_GLOBAL_.I.'
  1637. else
  1638. if grep '_GLOBAL__I_foobar' conftest.s >/dev/null ; then
  1639. cl_cv_cplusplus_ctorprefix='_GLOBAL__I_'
  1640. else
  1641. cl_cv_cplusplus_ctorprefix=unknown
  1642. fi
  1643. fi
  1644. fi
  1645. rm -f conftest*
  1646. fi
  1647. echo "$ac_t""$cl_cv_cplusplus_ctorprefix" 1>&6
  1648. if test "$cl_cv_cplusplus_ctorprefix" '!=' unknown; then
  1649. ac_value='"'"$cl_cv_cplusplus_ctorprefix"'"'
  1650. cat >> confdefs.h <<EOF
  1651. #define CL_GLOBAL_CONSTRUCTOR_PREFIX $ac_value
  1652. EOF
  1653. ac_value=`echo "$ac_value" | sed -e 's,I,D,'`
  1654. cat >> confdefs.h <<EOF
  1655. #define CL_GLOBAL_DESTRUCTOR_PREFIX $ac_value
  1656. EOF
  1657. echo $ac_n "checking whether the global constructors function need to be exported""... $ac_c" 1>&6
  1658. echo "configure:1827: checking whether the global constructors function need to be exported" >&5
  1659. if eval "test \"`echo '$''{'cl_cv_cplusplus_ctorexport'+set}'`\" = set"; then
  1660. echo $ac_n "(cached) $ac_c" 1>&6
  1661. else
  1662. cat > conftest1.cc << EOF
  1663. struct foo { foo (); };
  1664. foo foobar;
  1665. EOF
  1666. cat > conftest2.cc << EOF
  1667. #include "confdefs.h"
  1668. #ifdef ASM_UNDERSCORE
  1669. #define ASM_UNDERSCORE_PREFIX "_"
  1670. #else
  1671. #define ASM_UNDERSCORE_PREFIX ""
  1672. #endif
  1673. struct foo { foo (); };
  1674. foo::foo () {}
  1675. extern "C" void ctor (void) __asm__ (ASM_UNDERSCORE_PREFIX CL_GLOBAL_CONSTRUCTOR_PREFIX "foobar");
  1676. int main() { ctor(); return 0; }
  1677. EOF
  1678. if { ac_try='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest1.cc conftest2.cc $LIBS 1>&5'; { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } >/dev/null 2>&1 && test -s conftest${ac_exeext}; then
  1679. cl_cv_cplusplus_ctorexport=no
  1680. else
  1681. cl_cv_cplusplus_ctorexport=yes
  1682. fi
  1683. rm -f conftest*
  1684. fi
  1685. echo "$ac_t""$cl_cv_cplusplus_ctorexport" 1>&6
  1686. if test "$cl_cv_cplusplus_ctorexport" = yes; then
  1687. cat >> confdefs.h <<\EOF
  1688. #define CL_NEED_GLOBALIZE_CTORDTOR 1
  1689. EOF
  1690. fi
  1691. fi
  1692. fi
  1693. for ac_hdr in unistd.h
  1694. do
  1695. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1696. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1697. echo "configure:1870: checking for $ac_hdr" >&5
  1698. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1699. echo $ac_n "(cached) $ac_c" 1>&6
  1700. else
  1701. cat > conftest.$ac_ext <<EOF
  1702. #line 1875 "configure"
  1703. #include "confdefs.h"
  1704. #include <$ac_hdr>
  1705. EOF
  1706. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1707. { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1708. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1709. if test -z "$ac_err"; then
  1710. rm -rf conftest*
  1711. eval "ac_cv_header_$ac_safe=yes"
  1712. else
  1713. echo "$ac_err" >&5
  1714. echo "configure: failed program was:" >&5
  1715. cat conftest.$ac_ext >&5
  1716. rm -rf conftest*
  1717. eval "ac_cv_header_$ac_safe=no"
  1718. fi
  1719. rm -f conftest*
  1720. fi
  1721. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1722. echo "$ac_t""yes" 1>&6
  1723. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1724. cat >> confdefs.h <<EOF
  1725. #define $ac_tr_hdr 1
  1726. EOF
  1727. else
  1728. echo "$ac_t""no" 1>&6
  1729. fi
  1730. done
  1731. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1732. # for constant arguments. Useless!
  1733. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1734. echo "configure:1910: checking for working alloca.h" >&5
  1735. if eval "test \"`echo '$''{'cl_cv_header_alloca_h'+set}'`\" = set"; then
  1736. echo $ac_n "(cached) $ac_c" 1>&6
  1737. else
  1738. cat > conftest.$ac_ext <<EOF
  1739. #line 1916 "configure"
  1740. #include "confdefs.h"
  1741. #include <alloca.h>
  1742. int main() {
  1743. char *p = (char *) alloca(2 * sizeof(int));
  1744. ; return 0; }
  1745. EOF
  1746. if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1747. rm -rf conftest*
  1748. cl_cv_header_alloca_h=yes
  1749. else
  1750. echo "configure: failed program was:" >&5
  1751. cat conftest.$ac_ext >&5
  1752. rm -rf conftest*
  1753. cl_cv_header_alloca_h=no
  1754. fi
  1755. rm -f conftest*
  1756. fi
  1757. echo "$ac_t""$cl_cv_header_alloca_h" 1>&6
  1758. if test $cl_cv_header_alloca_h = yes; then
  1759. cat >> confdefs.h <<\EOF
  1760. #define HAVE_ALLOCA_H 1
  1761. EOF
  1762. fi
  1763. decl="#ifdef __GNUC__
  1764. #define alloca __builtin_alloca
  1765. #else
  1766. #ifdef _MSC_VER
  1767. #include <malloc.h>
  1768. #define alloca _alloca
  1769. #else
  1770. #ifdef HAVE_ALLOCA_H
  1771. #include <alloca.h>
  1772. #else
  1773. #ifdef _AIX
  1774. #pragma alloca
  1775. #else
  1776. #ifndef alloca
  1777. char *alloca ();
  1778. #endif
  1779. #endif
  1780. #endif
  1781. #endif
  1782. #endif
  1783. "
  1784. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1785. echo "configure:1965: checking for alloca" >&5
  1786. if eval "test \"`echo '$''{'cl_cv_func_alloca'+set}'`\" = set"; then
  1787. echo $ac_n "(cached) $ac_c" 1>&6
  1788. else
  1789. cat > conftest.$ac_ext <<EOF
  1790. #line 1971 "configure"
  1791. #include "confdefs.h"
  1792. $decl
  1793. int main() {
  1794. char *p = (char *) alloca(1);
  1795. ; return 0; }
  1796. EOF
  1797. if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1798. rm -rf conftest*
  1799. cl_cv_func_alloca=yes
  1800. else
  1801. echo "configure: failed program was:" >&5
  1802. cat conftest.$ac_ext >&5
  1803. rm -rf conftest*
  1804. cl_cv_func_alloca=no
  1805. fi
  1806. rm -f conftest*
  1807. fi
  1808. echo "$ac_t""$cl_cv_func_alloca" 1>&6
  1809. if test $cl_cv_func_alloca = yes; then
  1810. :
  1811. else
  1812. alloca_missing=1
  1813. fi
  1814. if test -n "$alloca_missing"; then
  1815. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1816. # that cause trouble. Some versions do not even contain alloca or
  1817. # contain a buggy version. If you still want to use their alloca,
  1818. # use ar to extract alloca.o from them instead of compiling alloca.c.
  1819. ALLOCA=alloca.${ac_objext}
  1820. cat >> confdefs.h <<\EOF
  1821. #define NO_ALLOCA 1
  1822. EOF
  1823. fi
  1824. echo $ac_n "checking for fpu_control_t""... $ac_c" 1>&6
  1825. echo "configure:2010: checking for fpu_control_t" >&5
  1826. if eval "test \"`echo '$''{'cl_cv_type_fpu_control_t'+set}'`\" = set"; then
  1827. echo $ac_n "(cached) $ac_c" 1>&6
  1828. else
  1829. cat > conftest.$ac_ext <<EOF
  1830. #line 2016 "configure"
  1831. #include "confdefs.h"
  1832. #include <fpu_control.h>
  1833. int main() {
  1834. fpu_control_t x;
  1835. ; return 0; }
  1836. EOF
  1837. if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1838. rm -rf conftest*
  1839. cl_cv_type_fpu_control_t=yes
  1840. else
  1841. echo "configure: failed program was:" >&5
  1842. cat conftest.$ac_ext >&5
  1843. rm -rf conftest*
  1844. cl_cv_type_fpu_control_t=no
  1845. fi
  1846. rm -f conftest*
  1847. fi
  1848. echo "$ac_t""$cl_cv_type_fpu_control_t" 1>&6
  1849. if test $cl_cv_type_fpu_control_t = yes; then
  1850. cat >> confdefs.h <<\EOF
  1851. #define HAVE_FPU_CONTROL_T 1
  1852. EOF
  1853. fi
  1854. echo $ac_n "checking for __setfpucw""... $ac_c" 1>&6
  1855. echo "configure:2045: checking for __setfpucw" >&5
  1856. if eval "test \"`echo '$''{'cl_cv_func_setfpucw'+set}'`\" = set"; then
  1857. echo $ac_n "(cached) $ac_c" 1>&6
  1858. else
  1859. cat > conftest.$ac_ext <<EOF
  1860. #line 2051 "configure"
  1861. #include "confdefs.h"
  1862. #include <fpu_control.h>
  1863. int main() {
  1864. __setfpucw(_FPU_IEEE);
  1865. ; return 0; }
  1866. EOF
  1867. if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1868. rm -rf conftest*
  1869. cl_cv_func_setfpucw=yes
  1870. else
  1871. echo "configure: failed program was:" >&5
  1872. cat conftest.$ac_ext >&5
  1873. rm -rf conftest*
  1874. cl_cv_func_setfpucw=no
  1875. fi
  1876. rm -f conftest*
  1877. fi
  1878. echo "$ac_t""$cl_cv_func_setfpucw" 1>&6
  1879. if test $cl_cv_func_setfpucw = yes; then
  1880. cat >> confdefs.h <<\EOF
  1881. #define HAVE_SETFPUCW 1
  1882. EOF
  1883. fi
  1884. for ac_func in gettimeofday
  1885. do
  1886. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1887. echo "configure:2084: checking for $ac_func" >&5
  1888. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1889. echo $ac_n "(cached) $ac_c" 1>&6
  1890. else
  1891. cat > conftest.$ac_ext <<EOF
  1892. #line 2089 "configure"
  1893. #include "confdefs.h"
  1894. /* System header to define __stub macros and hopefully few prototypes,
  1895. which can conflict with char $ac_func(); below. */
  1896. #include <assert.h>
  1897. /* Override any gcc2 internal prototype to avoid an error. */
  1898. #ifdef __cplusplus
  1899. extern "C"
  1900. #endif
  1901. /* We use char because int might match the return type of a gcc2
  1902. builtin and then its argument prototype would still apply. */
  1903. char $ac_func();
  1904. int main() {
  1905. /* The GNU C library defines this for functions which it implements
  1906. to always fail with ENOSYS. Some functions are actually named
  1907. something starting with __ and the normal name is an alias. */
  1908. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1909. choke me
  1910. #else
  1911. $ac_func();
  1912. #endif
  1913. ; return 0; }
  1914. EOF
  1915. if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1916. rm -rf conftest*
  1917. eval "ac_cv_func_$ac_func=yes"
  1918. else
  1919. echo "configure: failed program was:" >&5
  1920. cat conftest.$ac_ext >&5
  1921. rm -rf conftest*
  1922. eval "ac_cv_func_$ac_func=no"
  1923. fi
  1924. rm -f conftest*
  1925. fi
  1926. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1927. echo "$ac_t""yes" 1>&6
  1928. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1929. cat >> confdefs.h <<EOF
  1930. #define $ac_tr_func 1
  1931. EOF
  1932. else
  1933. echo "$ac_t""no" 1>&6
  1934. fi
  1935. done
  1936. if test $ac_cv_func_gettimeofday = yes; then
  1937. echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
  1938. echo "configure:2140: checking for gettimeofday declaration" >&5
  1939. if eval "test \"`echo '$''{'cl_cv_proto_gettimeofday'+set}'`\" = set"; then
  1940. echo $ac_n "(cached) $ac_c" 1>&6
  1941. else
  1942. cat > conftest.$ac_ext <<EOF
  1943. #line 2146 "configure"
  1944. #include "confdefs.h"
  1945. #include <sys/types.h>
  1946. #include <sys/time.h>
  1947. extern
  1948. #ifdef __cplusplus
  1949. "C"
  1950. #endif
  1951. #if defined(__STDC__) || defined(__cplusplus)
  1952. int gettimeofday (struct timeval * tp, struct timezone * tzp);
  1953. #else
  1954. int gettimeofday();
  1955. #endif
  1956. int main() {
  1957. ; return 0; }
  1958. EOF
  1959. if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1960. rm -rf conftest*
  1961. cl_cv_proto_gettimeofday_dots=no
  1962. cl_cv_proto_gettimeofday_arg2="struct timezone *"
  1963. else
  1964. echo "configure: failed program was:" >&5
  1965. cat conftest.$ac_ext >&5
  1966. rm -rf conftest*
  1967. cat > conftest.$ac_ext <<EOF
  1968. #line 2176 "configure"
  1969. #include "confdefs.h"
  1970. #include <sys/types.h>
  1971. #include <sys/time.h>
  1972. extern
  1973. #ifdef __cplusplus
  1974. "C"
  1975. #endif
  1976. #if defined(__STDC__) || defined(__cplusplus)
  1977. int gettimeofday (struct timeval * tp, void * tzp);
  1978. #else
  1979. int gettimeofday();
  1980. #endif
  1981. int main() {
  1982. ; return 0; }
  1983. EOF
  1984. if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1985. rm -rf conftest*
  1986. cl_cv_proto_gettimeofday_dots=no
  1987. cl_cv_proto_gettimeofday_arg2="void *"
  1988. else
  1989. echo "configure: failed program was:" >&5
  1990. cat conftest.$ac_ext >&5
  1991. rm -rf conftest*
  1992. cl_cv_proto_gettimeofday_dots=yes
  1993. cl_cv_proto_gettimeofday_arg2="..."
  1994. fi
  1995. rm -f conftest*
  1996. fi
  1997. rm -f conftest*
  1998. cl_cv_proto_gettimeofday="extern int gettimeofday (struct timeval *, $cl_cv_proto_gettimeofday_arg2);"
  1999. fi
  2000. cl_cv_proto_gettimeofday=`echo "$cl_cv_proto_gettimeofday" | tr -s ' ' | sed -e 's/( /(/'`
  2001. echo "$ac_t""${ac_tt}$cl_cv_proto_gettimeofday" 1>&6
  2002. if test $cl_cv_proto_gettimeofday_dots = yes; then
  2003. cat >> confdefs.h <<\EOF
  2004. #define GETTIMEOFDAY_DOTS 1
  2005. EOF
  2006. else
  2007. cat >> confdefs.h <<EOF
  2008. #define GETTIMEOFDAY_TZP_T $cl_cv_proto_gettimeofday_arg2
  2009. EOF
  2010. fi
  2011. fi
  2012. for ac_func in ftime
  2013. do
  2014. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2015. echo "configure:2238: checking for $ac_func" >&5
  2016. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2017. echo $ac_n "(cached) $ac_c" 1>&6
  2018. else
  2019. cat > conftest.$ac_ext <<EOF
  2020. #line 2243 "configure"
  2021. #include "confdefs.h"
  2022. /* System header to define __stub macros and hopefully few prototypes,
  2023. which can conflict with char $ac_func(); below. */
  2024. #include <assert.h>
  2025. /* Override any gcc2 internal prototype to avoid an error. */
  2026. #ifdef __cplusplus
  2027. extern "C"
  2028. #endif
  2029. /* We use char because int might match the return type of a gcc2
  2030. builtin and then its argument prototype would still apply. */
  2031. char $ac_func();
  2032. int main() {
  2033. /* The GNU C library defines this for functions which it implements
  2034. to always fail with ENOSYS. Some functions are actually named
  2035. something starting with __ and the normal name is an alias. */
  2036. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2037. choke me
  2038. #else
  2039. $ac_func();
  2040. #endif
  2041. ; return 0; }
  2042. EOF
  2043. if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2044. rm -rf conftest*
  2045. eval "ac_cv_func_$ac_func=yes"
  2046. else
  2047. echo "configure: failed program was:" >&5
  2048. cat conftest.$ac_ext >&5
  2049. rm -rf conftest*
  2050. eval "ac_cv_func_$ac_func=no"
  2051. fi
  2052. rm -f conftest*
  2053. fi
  2054. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2055. echo "$ac_t""yes" 1>&6
  2056. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2057. cat >> confdefs.h <<EOF
  2058. #define $ac_tr_func 1
  2059. EOF
  2060. else
  2061. echo "$ac_t""no" 1>&6
  2062. fi
  2063. done
  2064. if test $ac_cv_func_gettimeofday = no -a $ac_cv_func_ftime = no; then
  2065. echo $ac_n "checking for times""... $ac_c" 1>&6
  2066. echo "configure:2295: checking for times" >&5
  2067. if eval "test \"`echo '$''{'ac_cv_func_times'+set}'`\" = set"; then
  2068. echo $ac_n "(cached) $ac_c" 1>&6
  2069. else
  2070. cat > conftest.$ac_ext <<EOF
  2071. #line 2300 "configure"
  2072. #include "confdefs.h"
  2073. /* System header to define __stub macros and hopefully few prototypes,
  2074. which can conflict with char times(); below. */
  2075. #include <assert.h>
  2076. /* Override any gcc2 internal prototype to avoid an error. */
  2077. #ifdef __cplusplus
  2078. extern "C"
  2079. #endif
  2080. /* We use char because int might match the return type of a gcc2
  2081. builtin and then its argument prototype would still apply. */
  2082. char times();
  2083. int main() {
  2084. /* The GNU C library defines this for functions which it implements
  2085. to always fail with ENOSYS. Some functions are actually named
  2086. something starting with __ and the normal name is an alias. */
  2087. #if defined (__stub_times) || defined (__stub___times)
  2088. choke me
  2089. #else
  2090. times();
  2091. #endif
  2092. ; return 0; }
  2093. EOF
  2094. if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2095. rm -rf conftest*
  2096. eval "ac_cv_func_times=yes"
  2097. else
  2098. echo "configure: failed program was:" >&5
  2099. cat conftest.$ac_ext >&5
  2100. rm -rf conftest*
  2101. eval "ac_cv_func_times=no"
  2102. fi
  2103. rm -f conftest*
  2104. fi
  2105. if eval "test \"`echo '$ac_cv_func_'times`\" = yes"; then
  2106. echo "$ac_t""yes" 1>&6
  2107. :
  2108. else
  2109. echo "$ac_t""no" 1>&6
  2110. no_times=1
  2111. fi
  2112. if test -z "$no_times"; then
  2113. echo $ac_n "checking for times return value""... $ac_c" 1>&6
  2114. echo "configure:2347: checking for times return value" >&5
  2115. if eval "test \"`echo '$''{'cl_cv_func_times_return'+set}'`\" = set"; then
  2116. echo $ac_n "(cached) $ac_c" 1>&6
  2117. else
  2118. if test "$cross_compiling" = yes; then
  2119. cl_cv_func_times_return="guessing no"
  2120. else
  2121. cat > conftest.$ac_ext <<EOF
  2122. #line 2356 "configure"
  2123. #include "confdefs.h"
  2124. #ifdef __cplusplus
  2125. extern "C" void exit(int);
  2126. #endif
  2127. #include <sys/types.h>
  2128. #include <time.h> /* needed for CLK_TCK */
  2129. #ifndef CLK_TCK
  2130. #include <sys/time.h> /* needed for CLK_TCK on SYSV PTX */
  2131. #endif
  2132. #include <sys/times.h>
  2133. int main ()
  2134. { struct tms buffer;
  2135. clock_t result1;
  2136. clock_t result2;
  2137. int ticks;
  2138. result1 = times(&buffer);
  2139. if ((result1 == (clock_t)0) || (result1 == (clock_t)(-1))) exit(1);
  2140. sleep(1);
  2141. result2 = times(&buffer);
  2142. if ((result2 == (clock_t)0) || (result2 == (clock_t)(-1))) exit(1);
  2143. ticks = result2 - result1;
  2144. exit(!((ticks >= CLK_TCK/2) && (ticks <= 3*CLK_TCK/2)));
  2145. }
  2146. EOF
  2147. if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2148. then
  2149. cl_cv_func_times_return=yes
  2150. else
  2151. echo "configure: failed program was:" >&5
  2152. cat conftest.$ac_ext >&5
  2153. rm -fr conftest*
  2154. cl_cv_func_times_return=no
  2155. fi
  2156. if test -f core; then
  2157. coredir=core`/bin/sh -c 'echo $$'`
  2158. mkdir $coredir
  2159. cp confdefs.h $coredir/confdefs.h
  2160. mv conftest.c $coredir/conftest.c
  2161. mv conftest $coredir/conftest
  2162. mv core $coredir/core
  2163. echo "warning: test program dumped core -- see subdirectory $coredir"
  2164. fi
  2165. rm -fr conftest*
  2166. fi
  2167. fi
  2168. echo "$ac_t""$cl_cv_func_times_return" 1>&6
  2169. case "$cl_cv_func_times_return" in
  2170. *yes) cat >> confdefs.h <<\EOF
  2171. #define HAVE_TIMES_CLOCK 1
  2172. EOF
  2173. ;;
  2174. *no) ;;
  2175. esac
  2176. fi
  2177. fi
  2178. for ac_hdr in sys/resource.h sys/times.h
  2179. do
  2180. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2181. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2182. echo "configure:2420: checking for $ac_hdr" >&5
  2183. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2184. echo $ac_n "(cached) $ac_c" 1>&6
  2185. else
  2186. cat > conftest.$ac_ext <<EOF
  2187. #line 2425 "configure"
  2188. #include "confdefs.h"
  2189. #include <$ac_hdr>
  2190. EOF
  2191. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2192. { (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2193. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2194. if test -z "$ac_err"; then
  2195. rm -rf conftest*
  2196. eval "ac_cv_header_$ac_safe=yes"
  2197. else
  2198. echo "$ac_err" >&5
  2199. echo "configure: failed program was:" >&5
  2200. cat conftest.$ac_ext >&5
  2201. rm -rf conftest*
  2202. eval "ac_cv_header_$ac_safe=no"
  2203. fi
  2204. rm -f conftest*
  2205. fi
  2206. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2207. echo "$ac_t""yes" 1>&6
  2208. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2209. cat >> confdefs.h <<EOF
  2210. #define $ac_tr_hdr 1
  2211. EOF
  2212. else
  2213. echo "$ac_t""no" 1>&6
  2214. fi
  2215. done
  2216. if test $ac_cv_header_sys_resource_h = yes; then
  2217. echo $ac_n "checking for getrusage""... $ac_c" 1>&6
  2218. echo "configure:2457: checking for getrusage" >&5
  2219. if eval "test \"`echo '$''{'cl_cv_func_getrusage'+set}'`\" = set"; then
  2220. echo $ac_n "(cached) $ac_c" 1>&6
  2221. else
  2222. cat > conftest.$ac_ext <<EOF
  2223. #line 2463 "configure"
  2224. #include "confdefs.h"
  2225. #include <sys/types.h> /* NetBSD 1.0 needs this */
  2226. #include <sys/time.h>
  2227. #include <sys/resource.h>
  2228. int main() {
  2229. struct rusage x; int y = RUSAGE_SELF; getrusage(y,&x); x.ru_utime.tv_sec;
  2230. ; return 0; }
  2231. EOF
  2232. if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2233. rm -rf conftest*
  2234. cl_cv_func_getrusage=yes
  2235. else
  2236. echo "configure: failed program was:" >&5
  2237. cat conftest.$ac_ext >&5
  2238. rm -rf conftest*
  2239. cl_cv_func_getrusage=no
  2240. fi
  2241. rm -f conftest*
  2242. fi
  2243. echo "$ac_t""$cl_cv_func_getrusage" 1>&6
  2244. if test $cl_cv_func_getrusage = yes; then
  2245. cat >> confdefs.h <<\EOF
  2246. #define HAVE_GETRUSAGE 1
  2247. EOF
  2248. fi
  2249. if test $cl_cv_func_getrusage = yes; then
  2250. echo $ac_n "checking for getrusage declaration""... $ac_c" 1>&6
  2251. echo "configure:2494: checking for getrusage declaration" >&5
  2252. if eval "test \"`echo '$''{'cl_cv_proto_getrusage'+set}'`\" = set"; then
  2253. echo $ac_n "(cached) $ac_c" 1>&6
  2254. else
  2255. cat > conftest.$ac_ext <<EOF
  2256. #line 2500 "configure"
  2257. #include "confdefs.h"
  2258. #include <stdlib.h>
  2259. #ifdef HAVE_UNISTD_H
  2260. #include <unistd.h>
  2261. #endif
  2262. #include <sys/types.h> /* NetBSD 1.0 needs this */
  2263. #include <sys/time.h>
  2264. #include <sys/resource.h>
  2265. extern
  2266. #ifdef __cplusplus
  2267. "C"
  2268. #endif
  2269. #if defined(__STDC__) || defined(__cplusplus)
  2270. int getrusage (int who, struct rusage * rusage);
  2271. #else
  2272. int getrusage();
  2273. #endif
  2274. int main() {
  2275. ; return 0; }
  2276. EOF
  2277. if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2278. rm -rf conftest*
  2279. cl_cv_proto_getrusage_arg1="int"
  2280. else
  2281. echo "configure: failed program was:" >&5
  2282. cat conftest.$ac_ext >&5
  2283. rm -rf conftest*
  2284. cl_cv_proto_getrusage_arg1="enum __rusage_who"
  2285. fi
  2286. rm -f conftest*
  2287. cl_cv_proto_getrusage="extern int getrusage ($cl_cv_proto_getrusage_arg1, struct rusage *);"
  2288. fi
  2289. cl_cv_proto_getrusage=`echo "$cl_cv_proto_getrusage" | tr -s ' ' | sed -e 's/( /(/'`
  2290. echo "$ac_t""${ac_tt}$cl_cv_proto_getrusage" 1>&6
  2291. cat >> confdefs.h <<EOF
  2292. #define RUSAGE_WHO_T $cl_cv_proto_getrusage_arg1
  2293. EOF
  2294. fi
  2295. fi
  2296. echo $ac_n "checking for perror declaration""... $ac_c" 1>&6
  2297. echo "configure:2553: checking for perror declaration" >&5
  2298. if eval "test \"`echo '$''{'cl_cv_proto_perror'+set}'`\" = set"; then
  2299. echo $ac_n "(cached) $ac_c" 1>&6
  2300. else
  2301. cat > conftest.$ac_ext <<EOF
  2302. #line 2559 "configure"
  2303. #include "confdefs.h"
  2304. /* Some systems declare perror() in <errno.h>, some in <stdio.h>, some don't
  2305. declare it at all. */
  2306. #include <stdio.h>
  2307. #include <errno.h>
  2308. extern
  2309. #ifdef __cplusplus
  2310. "C"
  2311. #endif
  2312. double perror ();
  2313. int main() {
  2314. ; return 0; }
  2315. EOF
  2316. if { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2317. rm -rf conftest*
  2318. cl_cv_proto_perror=no
  2319. else
  2320. echo "configure: failed program was:" >&5
  2321. cat conftest.$ac_ext >&5
  2322. rm -rf conftest*
  2323. cl_cv_proto_perror=yes
  2324. fi
  2325. rm -f conftest*
  2326. fi
  2327. echo "$ac_t""$cl_cv_proto_perror" 1>&6
  2328. if test $cl_cv_proto_perror = yes; then
  2329. cat >> confdefs.h <<\EOF
  2330. #define HAVE_PERROR_DECL 1
  2331. EOF
  2332. fi
  2333. echo $ac_n "checking whether characters are unsigned""... $ac_c" 1>&6
  2334. echo "configure:2597: checking whether characters are unsigned" >&5
  2335. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  2336. echo $ac_n "(cached) $ac_c" 1>&6
  2337. else
  2338. if test $ac_cv_prog_gcc = yes; then
  2339. # GCC predefines this symbol on systems where it applies.
  2340. cat > conftest.$ac_ext <<EOF
  2341. #line 2605 "configure"
  2342. #include "confdefs.h"
  2343. #ifdef __CHAR_UNSIGNED__
  2344. yes
  2345. #endif
  2346. EOF
  2347. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2348. egrep "yes" >/dev/null 2>&1; then
  2349. rm -rf conftest*
  2350. ac_cv_c_char_unsigned=yes
  2351. else
  2352. rm -rf conftest*
  2353. ac_cv_c_char_unsigned=no
  2354. fi
  2355. rm -f conftest*
  2356. else
  2357. if test "$cross_compiling" = yes; then
  2358. ac_cv_c_char_unsigned="guessing no"
  2359. else
  2360. cat > conftest.$ac_ext <<EOF
  2361. #line 2627 "configure"
  2362. #include "confdefs.h"
  2363. #ifdef __cplusplus
  2364. extern "C" void exit(int);
  2365. #endif
  2366. /* volatile prevents gcc2 from optimizing the test away on sparcs. */
  2367. #if !defined(__STDC__) || __STDC__ != 1
  2368. #define volatile
  2369. #endif
  2370. int main() {
  2371. volatile char c = 255; exit(c < 0);
  2372. }
  2373. EOF
  2374. if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2375. then
  2376. ac_cv_c_char_unsigned=yes
  2377. else
  2378. echo "configure: failed program was:" >&5
  2379. cat conftest.$ac_ext >&5
  2380. rm -fr conftest*
  2381. ac_cv_c_char_unsigned=no
  2382. fi
  2383. if test -f core; then
  2384. coredir=core`/bin/sh -c 'echo $$'`
  2385. mkdir $coredir
  2386. cp confdefs.h $coredir/confdefs.h
  2387. mv conftest.c $coredir/conftest.c
  2388. mv conftest $coredir/conftest
  2389. mv core $coredir/core
  2390. echo "warning: test program dumped core -- see subdirectory $coredir"
  2391. fi
  2392. rm -fr conftest*
  2393. fi
  2394. fi
  2395. fi
  2396. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  2397. if test $ac_cv_prog_gcc = no; then
  2398. # GCC defines __CHAR_UNSIGNED__ by itself, no need to fix up.
  2399. case "$ac_cv_c_char_unsigned" in
  2400. *yes) cat >> confdefs.h <<\EOF
  2401. #define __CHAR_UNSIGNED__ 1
  2402. EOF
  2403. ;;
  2404. *no) ;;
  2405. esac
  2406. fi
  2407. test -d 'include' || mkdir 'include'
  2408. cl_machine_file_c=${srcdir}/autoconf/intparam.c
  2409. cl_machine_file_h=include/cl_intparam.h
  2410. if test $cross_compiling = no; then
  2411. if test -z "$cl_cv_file_intparam_h"; then
  2412. echo "checking for integer types and behaviour" 1>&6
  2413. echo "configure:2681: checking for integer types and behaviour" >&5
  2414. cat > conftest.$ac_ext <<EOF
  2415. #include "confdefs.h"
  2416. EOF
  2417. cat "$cl_machine_file_c" >> conftest.$ac_ext
  2418. ORIGCC="$CC"
  2419. if test $ac_cv_prog_gcc = yes; then
  2420. # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
  2421. # target 80386. Strip "-O".
  2422. CC=`echo "$CC " | sed -e 's/-O //g'`
  2423. fi
  2424. { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2425. CC="$ORIGCC"
  2426. if test -s conftest; then
  2427. echo "creating $cl_machine_file_h"
  2428. ./conftest > conftest.h
  2429. if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
  2430. # The file exists and we would not be changing it
  2431. rm -f conftest.h
  2432. else
  2433. rm -f "$cl_machine_file_h"
  2434. mv conftest.h "$cl_machine_file_h"
  2435. fi
  2436. cl_cv_file_intparam_h=1
  2437. else
  2438. echo "creation of $cl_machine_file_h failed"
  2439. fi
  2440. rm -f conftest*
  2441. fi
  2442. else
  2443. echo "cross-compiling - cannot create $cl_machine_file_h"
  2444. fi
  2445. cl_machine_file_c=${srcdir}/autoconf/floatparam.c
  2446. cl_machine_file_h=include/cl_floatparam.h
  2447. if test $cross_compiling = no; then
  2448. if test -z "$cl_cv_file_floatparam_h"; then
  2449. echo "checking for floating-point types and behaviour" 1>&6
  2450. echo "configure:2719: checking for floating-point types and behaviour" >&5
  2451. cat > conftest.$ac_ext <<EOF
  2452. #include "confdefs.h"
  2453. EOF
  2454. cat "$cl_machine_file_c" >> conftest.$ac_ext
  2455. ORIGCC="$CC"
  2456. if test $ac_cv_prog_gcc = yes; then
  2457. # gcc -O (gcc version <= 2.3.2) crashes when compiling long long shifts for
  2458. # target 80386. Strip "-O".
  2459. CC=`echo "$CC " | sed -e 's/-O //g'`
  2460. fi
  2461. { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2462. CC="$ORIGCC"
  2463. if test -s conftest; then
  2464. echo "creating $cl_machine_file_h"
  2465. ./conftest > conftest.h
  2466. if cmp -s "$cl_machine_file_h" conftest.h 2>/dev/null; then
  2467. # The file exists and we would not be changing it
  2468. rm -f conftest.h
  2469. else
  2470. rm -f "$cl_machine_file_h"
  2471. mv conftest.h "$cl_machine_file_h"
  2472. fi
  2473. cl_cv_file_floatparam_h=1
  2474. else
  2475. echo "creation of $cl_machine_file_h failed"
  2476. fi
  2477. rm -f conftest*
  2478. fi
  2479. else
  2480. echo "cross-compiling - cannot create $cl_machine_file_h"
  2481. fi
  2482. # Check whether --with-gmp or --without-gmp was given.
  2483. if test "${with_gmp+set}" = set; then
  2484. withval="$with_gmp"
  2485. :
  2486. else
  2487. with_gmp="yes"
  2488. fi
  2489. if test "$with_gmp" = yes; then
  2490. echo $ac_n "checking for recent enough gmp.h""... $ac_c" 1>&6
  2491. echo "configure:2762: checking for recent enough gmp.h" >&5
  2492. if eval "test \"`echo '$''{'cl_cv_new_gmp_h'+set}'`\" = set"; then
  2493. echo $ac_n "(cached) $ac_c" 1>&6
  2494. else
  2495. cat > conftest.$ac_ext <<EOF
  2496. #line 2768 "configure"
  2497. #include "confdefs.h"
  2498. #include <gmp.h>
  2499. #if !defined(__GNU_MP_VERSION) || (__GNU_MP_VERSION < 3)
  2500. #error "ancient gmp.h"
  2501. #endif
  2502. EOF
  2503. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2504. { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2505. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2506. if test -z "$ac_err"; then
  2507. rm -rf conftest*
  2508. cl_cv_new_gmp_h="yes"
  2509. else
  2510. echo "$ac_err" >&5
  2511. echo "configure: failed program was:" >&5
  2512. cat conftest.$ac_ext >&5
  2513. rm -rf conftest*
  2514. cl_cv_new_gmp_h="no"
  2515. fi
  2516. rm -f conftest*
  2517. fi
  2518. echo "$ac_t""$cl_cv_new_gmp_h" 1>&6
  2519. if test "$cl_cv_new_gmp_h" = no; then with_gmp="no"; fi
  2520. if test "$with_gmp" = yes; then
  2521. echo $ac_n "checking for working libgmp""... $ac_c" 1>&6
  2522. echo "configure:2795: checking for working libgmp" >&5
  2523. if eval "test \"`echo '$''{'cl_cv_new_libgmp'+set}'`\" = set"; then
  2524. echo $ac_n "(cached) $ac_c" 1>&6
  2525. else
  2526. SAVELIBS=$LIBS
  2527. LIBS="$LIBS -lgmp"
  2528. cat > conftest.$ac_ext <<EOF
  2529. #line 2803 "configure"
  2530. #include "confdefs.h"
  2531. #include <gmp.h>
  2532. int main() {
  2533. mpn_divexact_by3(0,0,0)
  2534. ; return 0; }
  2535. EOF
  2536. if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2537. rm -rf conftest*
  2538. cl_cv_new_libgmp="yes"
  2539. else
  2540. echo "configure: failed program was:" >&5
  2541. cat conftest.$ac_ext >&5
  2542. rm -rf conftest*
  2543. cl_cv_new_libgmp="no"; LIBS=$SAVELIBS
  2544. fi
  2545. rm -f conftest*
  2546. fi
  2547. echo "$ac_t""$cl_cv_new_libgmp" 1>&6
  2548. if test "$cl_cv_new_libgmp" = no; then with_gmp="no"; fi
  2549. fi
  2550. fi
  2551. if test "$with_gmp" = yes; then
  2552. cat >> confdefs.h <<\EOF
  2553. #define CL_USE_GMP 1
  2554. EOF
  2555. else
  2556. echo "configure: warning: disabling external GNU MP library" 1>&2
  2557. fi
  2558. for f in 'tests/.gdbinit'; do
  2559. if test '!' -f "$f"; then
  2560. echo "creating $f"
  2561. g=`echo "$f" | sed -e 's,/[^/]*$,,'`
  2562. test "$g" = "$f" || test -d "$g" || mkdir "$g"
  2563. cp "$srcdir/$f" "$f"
  2564. fi
  2565. done
  2566. trap '' 1 2 15
  2567. cat > confcache <<\EOF
  2568. # This file is a shell script that caches the results of configure
  2569. # tests run on this system so they can be shared between configure
  2570. # scripts and configure runs. It is not useful on other systems.
  2571. # If it contains results you don't want to keep, you may remove or edit it.
  2572. #
  2573. # By default, configure uses ./config.cache as the cache file,
  2574. # creating it if it does not exist already. You can give configure
  2575. # the --cache-file=FILE option to use a different cache file; that is
  2576. # what configure does when it calls configure scripts in
  2577. # subdirectories, so they share the cache.
  2578. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2579. # config.status only pays attention to the cache file if you give it the
  2580. # --recheck option to rerun configure.
  2581. #
  2582. EOF
  2583. # The following way of writing the cache mishandles newlines in values,
  2584. # but we know of no workaround that is simple, portable, and efficient.
  2585. # So, don't put newlines in cache variables' values.
  2586. # Ultrix sh set writes to stderr and can't be redirected directly,
  2587. # and sets the high bit in the cache file unless we assign to the vars.
  2588. (set) 2>&1 |
  2589. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2590. *ac_space=\ *)
  2591. # `set' does not quote correctly, so add quotes (double-quote substitution
  2592. # turns \\\\ into \\, and sed turns \\ into \).
  2593. sed -n \
  2594. -e "s/'/'\\\\''/g" \
  2595. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2596. ;;
  2597. *)
  2598. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2599. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2600. ;;
  2601. esac >> confcache
  2602. if cmp -s $cache_file confcache; then
  2603. :
  2604. else
  2605. if test -w $cache_file; then
  2606. echo "updating cache $cache_file"
  2607. cat confcache > $cache_file
  2608. else
  2609. echo "not updating unwritable cache $cache_file"
  2610. fi
  2611. fi
  2612. rm -f confcache
  2613. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2614. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2615. # Let make expand exec_prefix.
  2616. test "x$exec_prefix" = xNONE && exec_prefix='$(prefix)'
  2617. # Any assignment to VPATH causes Sun make to only execute
  2618. # the first set of double-colon rules, so remove it if not needed.
  2619. # If there is a colon in the path, we need to keep it.
  2620. if test "x$srcdir" = x.; then
  2621. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  2622. fi
  2623. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2624. DEFS=-DHAVE_CONFIG_H
  2625. # Without the "./", some shells look in PATH for config.status.
  2626. : ${CONFIG_STATUS=./config.status}
  2627. echo creating $CONFIG_STATUS
  2628. rm -f $CONFIG_STATUS
  2629. cat > $CONFIG_STATUS <<EOF
  2630. #! /bin/sh
  2631. # Generated automatically by configure.
  2632. # Run this file to recreate the current configuration.
  2633. # This directory was configured as follows,
  2634. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2635. #
  2636. # $0 $ac_configure_args
  2637. #
  2638. # Compiler output produced by configure, useful for debugging
  2639. # configure, is in ./config.log if it exists.
  2640. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2641. for ac_option
  2642. do
  2643. case "\$ac_option" in
  2644. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2645. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2646. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2647. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2648. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2649. exit 0 ;;
  2650. -help | --help | --hel | --he | --h)
  2651. echo "\$ac_cs_usage"; exit 0 ;;
  2652. *) echo "\$ac_cs_usage"; exit 1 ;;
  2653. esac
  2654. done
  2655. ac_given_srcdir=$srcdir
  2656. trap 'rm -fr `echo "Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2657. EOF
  2658. cat >> $CONFIG_STATUS <<EOF
  2659. # Protect against being on the right side of a sed subst in config.status.
  2660. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2661. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2662. $ac_vpsub
  2663. $extrasub
  2664. s%@SHELL@%$SHELL%g
  2665. s%@CFLAGS@%$CFLAGS%g
  2666. s%@CPPFLAGS@%$CPPFLAGS%g
  2667. s%@CXXFLAGS@%$CXXFLAGS%g
  2668. s%@FFLAGS@%$FFLAGS%g
  2669. s%@DEFS@%$DEFS%g
  2670. s%@LDFLAGS@%$LDFLAGS%g
  2671. s%@LIBS@%$LIBS%g
  2672. s%@exec_prefix@%$exec_prefix%g
  2673. s%@prefix@%$prefix%g
  2674. s%@program_transform_name@%$program_transform_name%g
  2675. s%@bindir@%$bindir%g
  2676. s%@sbindir@%$sbindir%g
  2677. s%@libexecdir@%$libexecdir%g
  2678. s%@datadir@%$datadir%g
  2679. s%@sysconfdir@%$sysconfdir%g
  2680. s%@sharedstatedir@%$sharedstatedir%g
  2681. s%@localstatedir@%$localstatedir%g
  2682. s%@libdir@%$libdir%g
  2683. s%@includedir@%$includedir%g
  2684. s%@oldincludedir@%$oldincludedir%g
  2685. s%@infodir@%$infodir%g
  2686. s%@mandir@%$mandir%g
  2687. s%@SET_MAKE@%$SET_MAKE%g
  2688. s%@CC@%$CC%g
  2689. s%@CPP@%$CPP%g
  2690. s%@CXX@%$CXX%g
  2691. s%@CXXCPP@%$CXXCPP%g
  2692. s%@AS_UNDERSCORE@%$AS_UNDERSCORE%g
  2693. s%@RANLIB@%$RANLIB%g
  2694. s%@INSTALL@%$INSTALL%g
  2695. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2696. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2697. s%@host@%$host%g
  2698. s%@host_cpu@%$host_cpu%g
  2699. s%@host_vendor@%$host_vendor%g
  2700. s%@host_os@%$host_os%g
  2701. s%@LD@%$LD%g
  2702. s%@NM@%$NM%g
  2703. s%@LN_S@%$LN_S%g
  2704. s%@LIBTOOL@%$LIBTOOL%g
  2705. s%@CL_CURRENT@%$CL_CURRENT%g
  2706. s%@CL_REVISION@%$CL_REVISION%g
  2707. s%@CL_AGE@%$CL_AGE%g
  2708. s%@ALLOCA@%$ALLOCA%g
  2709. CEOF
  2710. EOF
  2711. cat >> $CONFIG_STATUS <<\EOF
  2712. # Split the substitutions into bite-sized pieces for seds with
  2713. # small command number limits, like on Digital OSF/1 and HP-UX.
  2714. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2715. ac_file=1 # Number of current file.
  2716. ac_beg=1 # First line for current file.
  2717. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2718. ac_more_lines=:
  2719. ac_sed_cmds=""
  2720. while $ac_more_lines; do
  2721. if test $ac_beg -gt 1; then
  2722. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2723. else
  2724. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2725. fi
  2726. if test ! -s conftest.s$ac_file; then
  2727. ac_more_lines=false
  2728. rm -f conftest.s$ac_file
  2729. else
  2730. if test -z "$ac_sed_cmds"; then
  2731. ac_sed_cmds="sed -f conftest.s$ac_file"
  2732. else
  2733. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2734. fi
  2735. ac_file=`expr $ac_file + 1`
  2736. ac_beg=$ac_end
  2737. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2738. fi
  2739. done
  2740. if test -z "$ac_sed_cmds"; then
  2741. ac_sed_cmds=cat
  2742. fi
  2743. EOF
  2744. cat >> $CONFIG_STATUS <<EOF
  2745. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile"}
  2746. EOF
  2747. cat >> $CONFIG_STATUS <<\EOF
  2748. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2749. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2750. case "$ac_file" in
  2751. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2752. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2753. *) ac_file_in="${ac_file}.in" ;;
  2754. esac
  2755. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2756. # Remove last slash and all that follows it. Not all systems have dirname.
  2757. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2758. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2759. # The file is in a subdirectory.
  2760. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2761. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2762. # A "../" for each directory in $ac_dir_suffix.
  2763. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2764. else
  2765. ac_dir_suffix= ac_dots=
  2766. fi
  2767. case "$ac_given_srcdir" in
  2768. .) srcdir=.
  2769. if test -z "$ac_dots"; then top_srcdir=.
  2770. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2771. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2772. *) # Relative path.
  2773. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2774. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2775. esac
  2776. echo creating "$ac_file"
  2777. rm -f "$ac_file"
  2778. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2779. case "$ac_file" in
  2780. *Makefile*) ac_comsub="1i\\
  2781. # $configure_input" ;;
  2782. *) ac_comsub= ;;
  2783. esac
  2784. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2785. sed -e "$ac_comsub
  2786. s%@configure_input@%$configure_input%g
  2787. s%@srcdir@%$srcdir%g
  2788. s%@top_srcdir@%$top_srcdir%g
  2789. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2790. fi; done
  2791. rm -f conftest.s*
  2792. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2793. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2794. #
  2795. # ac_d sets the value in "#define NAME VALUE" lines.
  2796. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2797. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2798. ac_dC='\3'
  2799. ac_dD='%g'
  2800. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2801. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2802. ac_uB='\([ ]\)%\1#\2define\3'
  2803. ac_uC=' '
  2804. ac_uD='\4%g'
  2805. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2806. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2807. ac_eB='$%\1#\2define\3'
  2808. ac_eC=' '
  2809. ac_eD='%g'
  2810. # ac_f turns "#define NAME" without trailing blanks into "#define NAME VALUE".
  2811. ac_fA='s%^\([ ]*\)#\([ ]*\)define\([ ][ ]*\)'
  2812. ac_fB='$%\1#\2define\3'
  2813. ac_fC=' '
  2814. ac_fD='%g'
  2815. if test "${CONFIG_HEADERS+set}" != set; then
  2816. EOF
  2817. cat >> $CONFIG_STATUS <<EOF
  2818. CONFIG_HEADERS="include/cl_config.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h"
  2819. EOF
  2820. cat >> $CONFIG_STATUS <<\EOF
  2821. fi
  2822. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2823. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2824. case "$ac_file" in
  2825. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2826. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2827. *) ac_file_in="${ac_file}.in" ;;
  2828. esac
  2829. echo creating $ac_file
  2830. rm -f conftest.frag conftest.in conftest.out
  2831. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2832. cat $ac_file_inputs > conftest.in
  2833. EOF
  2834. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2835. # the proper values into config.h.in to produce config.h. And first:
  2836. # Protect against being on the right side of a sed subst in config.status.
  2837. # Protect against being in an unquoted here document in config.status.
  2838. rm -f conftest.vals
  2839. cat > conftest.hdr <<\EOF
  2840. s/[\\&%]/\\&/g
  2841. s%[\\$`]%\\&%g
  2842. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2843. s%ac_d%ac_u%gp
  2844. s%ac_u%ac_e%gp
  2845. s%ac_e%ac_f%gp
  2846. EOF
  2847. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2848. rm -f conftest.hdr
  2849. # Break up conftest.vals because some shells have a limit on
  2850. # the size of here documents, and old seds have small limits too.
  2851. rm -f conftest.tail
  2852. while :
  2853. do
  2854. ac_lines=`grep -c . conftest.vals`
  2855. # grep -c gives empty output for an empty file on some AIX systems.
  2856. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2857. # Write a limited-size here document to conftest.frag.
  2858. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2859. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2860. echo 'CEOF
  2861. sed -f conftest.frag conftest.in > conftest.out
  2862. rm -f conftest.in
  2863. mv conftest.out conftest.in
  2864. ' >> $CONFIG_STATUS
  2865. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2866. rm -f conftest.vals
  2867. mv conftest.tail conftest.vals
  2868. done
  2869. rm -f conftest.vals
  2870. cat >> $CONFIG_STATUS <<\EOF
  2871. rm -f conftest.frag conftest.h
  2872. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2873. cat conftest.in >> conftest.h
  2874. rm -f conftest.in
  2875. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2876. echo "$ac_file is unchanged"
  2877. rm -f conftest.h
  2878. else
  2879. # Remove last slash and all that follows it. Not all systems have dirname.
  2880. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2881. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2882. # The file is in a subdirectory.
  2883. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2884. fi
  2885. rm -f $ac_file
  2886. mv conftest.h $ac_file
  2887. fi
  2888. fi; done
  2889. EOF
  2890. cat >> $CONFIG_STATUS <<EOF
  2891. EOF
  2892. cat >> $CONFIG_STATUS <<\EOF
  2893. exit 0
  2894. EOF
  2895. chmod +x $CONFIG_STATUS
  2896. rm -fr confdefs* $ac_clean_files
  2897. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1