configure 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376
  1. #!/usr/bin/env 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. # Initialize some variables set by options.
  12. # The variables have the same names as the options, with
  13. # dashes changed to underlines.
  14. build=NONE
  15. cache_file=./config.cache
  16. exec_prefix=NONE
  17. host=NONE
  18. no_create=
  19. nonopt=NONE
  20. no_recursion=
  21. prefix=NONE
  22. program_prefix=NONE
  23. program_suffix=NONE
  24. program_transform_name=s,x,x,
  25. silent=
  26. site=
  27. srcdir=
  28. target=NONE
  29. verbose=
  30. x_includes=NONE
  31. x_libraries=NONE
  32. bindir='${exec_prefix}/bin'
  33. sbindir='${exec_prefix}/sbin'
  34. libexecdir='${exec_prefix}/libexec'
  35. datadir='${prefix}/share'
  36. sysconfdir='${prefix}/etc'
  37. sharedstatedir='${prefix}/com'
  38. localstatedir='${prefix}/var'
  39. libdir='${exec_prefix}/lib'
  40. includedir='${prefix}/include'
  41. oldincludedir='/usr/include'
  42. infodir='${prefix}/info'
  43. mandir='${prefix}/man'
  44. # Initialize some other variables.
  45. subdirs=
  46. MFLAGS= MAKEFLAGS=
  47. SHELL=${CONFIG_SHELL-/bin/sh}
  48. # Maximum number of lines to put in a shell here document.
  49. ac_max_here_lines=12
  50. ac_prev=
  51. for ac_option
  52. do
  53. # If the previous option needs an argument, assign it.
  54. if test -n "$ac_prev"; then
  55. eval "$ac_prev=\$ac_option"
  56. ac_prev=
  57. continue
  58. fi
  59. case "$ac_option" in
  60. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  61. *) ac_optarg= ;;
  62. esac
  63. # Accept the important Cygnus configure options, so we can diagnose typos.
  64. case "$ac_option" in
  65. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  66. ac_prev=bindir ;;
  67. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  68. bindir="$ac_optarg" ;;
  69. -build | --build | --buil | --bui | --bu)
  70. ac_prev=build ;;
  71. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  72. build="$ac_optarg" ;;
  73. -cache-file | --cache-file | --cache-fil | --cache-fi \
  74. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  75. ac_prev=cache_file ;;
  76. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  77. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  78. cache_file="$ac_optarg" ;;
  79. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  80. ac_prev=datadir ;;
  81. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  82. | --da=*)
  83. datadir="$ac_optarg" ;;
  84. -disable-* | --disable-*)
  85. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  86. # Reject names that are not valid shell variable names.
  87. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  88. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  89. fi
  90. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  91. eval "enable_${ac_feature}=no" ;;
  92. -enable-* | --enable-*)
  93. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  94. # Reject names that are not valid shell variable names.
  95. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  96. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  97. fi
  98. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  99. case "$ac_option" in
  100. *=*) ;;
  101. *) ac_optarg=yes ;;
  102. esac
  103. eval "enable_${ac_feature}='$ac_optarg'" ;;
  104. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  105. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  106. | --exec | --exe | --ex)
  107. ac_prev=exec_prefix ;;
  108. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  109. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  110. | --exec=* | --exe=* | --ex=*)
  111. exec_prefix="$ac_optarg" ;;
  112. -gas | --gas | --ga | --g)
  113. # Obsolete; use --with-gas.
  114. with_gas=yes ;;
  115. -help | --help | --hel | --he)
  116. # Omit some internal or obsolete options to make the list less imposing.
  117. # This message is too long to be a string in the A/UX 3.1 sh.
  118. cat << EOF
  119. Usage: configure [options] [host]
  120. Options: [defaults in brackets after descriptions]
  121. Configuration:
  122. --cache-file=FILE cache test results in FILE
  123. --help print this message
  124. --no-create do not create output files
  125. --quiet, --silent do not print \`checking...' messages
  126. --version print the version of autoconf that created configure
  127. Directory and file names:
  128. --prefix=PREFIX install architecture-independent files in PREFIX
  129. [$ac_default_prefix]
  130. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  131. [same as prefix]
  132. --bindir=DIR user executables in DIR [EPREFIX/bin]
  133. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  134. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  135. --datadir=DIR read-only architecture-independent data in DIR
  136. [PREFIX/share]
  137. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  138. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  139. [PREFIX/com]
  140. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  141. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  142. --includedir=DIR C header files in DIR [PREFIX/include]
  143. --oldincludedir=DIR C header files for non-g++ in DIR [/usr/include]
  144. --infodir=DIR info documentation in DIR [PREFIX/info]
  145. --mandir=DIR man documentation in DIR [PREFIX/man]
  146. --srcdir=DIR find the sources in DIR [configure dir or ..]
  147. --program-prefix=PREFIX prepend PREFIX to installed program names
  148. --program-suffix=SUFFIX append SUFFIX to installed program names
  149. --program-transform-name=PROGRAM
  150. run sed PROGRAM on installed program names
  151. EOF
  152. cat << EOF
  153. Host type:
  154. --build=BUILD configure for building on BUILD [BUILD=HOST]
  155. --host=HOST configure for HOST [guessed]
  156. --target=TARGET configure for TARGET [TARGET=HOST]
  157. Features and packages:
  158. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  159. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  160. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  161. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  162. --x-includes=DIR X include files are in DIR
  163. --x-libraries=DIR X library files are in DIR
  164. EOF
  165. if test -n "$ac_help"; then
  166. echo "--enable and --with options recognized:$ac_help"
  167. fi
  168. exit 0 ;;
  169. -host | --host | --hos | --ho)
  170. ac_prev=host ;;
  171. -host=* | --host=* | --hos=* | --ho=*)
  172. host="$ac_optarg" ;;
  173. -includedir | --includedir | --includedi | --included | --include \
  174. | --includ | --inclu | --incl | --inc)
  175. ac_prev=includedir ;;
  176. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  177. | --includ=* | --inclu=* | --incl=* | --inc=*)
  178. includedir="$ac_optarg" ;;
  179. -infodir | --infodir | --infodi | --infod | --info | --inf)
  180. ac_prev=infodir ;;
  181. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  182. infodir="$ac_optarg" ;;
  183. -libdir | --libdir | --libdi | --libd)
  184. ac_prev=libdir ;;
  185. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  186. libdir="$ac_optarg" ;;
  187. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  188. | --libexe | --libex | --libe)
  189. ac_prev=libexecdir ;;
  190. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  191. | --libexe=* | --libex=* | --libe=*)
  192. libexecdir="$ac_optarg" ;;
  193. -localstatedir | --localstatedir | --localstatedi | --localstated \
  194. | --localstate | --localstat | --localsta | --localst \
  195. | --locals | --local | --loca | --loc | --lo)
  196. ac_prev=localstatedir ;;
  197. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  198. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  199. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  200. localstatedir="$ac_optarg" ;;
  201. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  202. ac_prev=mandir ;;
  203. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  204. mandir="$ac_optarg" ;;
  205. -nfp | --nfp | --nf)
  206. # Obsolete; use --without-fp.
  207. with_fp=no ;;
  208. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  209. | --no-cr | --no-c)
  210. no_create=yes ;;
  211. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  212. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  213. no_recursion=yes ;;
  214. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  215. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  216. | --oldin | --oldi | --old | --ol | --o)
  217. ac_prev=oldincludedir ;;
  218. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  219. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  220. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  221. oldincludedir="$ac_optarg" ;;
  222. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  223. ac_prev=prefix ;;
  224. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  225. prefix="$ac_optarg" ;;
  226. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  227. | --program-pre | --program-pr | --program-p)
  228. ac_prev=program_prefix ;;
  229. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  230. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  231. program_prefix="$ac_optarg" ;;
  232. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  233. | --program-suf | --program-su | --program-s)
  234. ac_prev=program_suffix ;;
  235. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  236. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  237. program_suffix="$ac_optarg" ;;
  238. -program-transform-name | --program-transform-name \
  239. | --program-transform-nam | --program-transform-na \
  240. | --program-transform-n | --program-transform- \
  241. | --program-transform | --program-transfor \
  242. | --program-transfo | --program-transf \
  243. | --program-trans | --program-tran \
  244. | --progr-tra | --program-tr | --program-t)
  245. ac_prev=program_transform_name ;;
  246. -program-transform-name=* | --program-transform-name=* \
  247. | --program-transform-nam=* | --program-transform-na=* \
  248. | --program-transform-n=* | --program-transform-=* \
  249. | --program-transform=* | --program-transfor=* \
  250. | --program-transfo=* | --program-transf=* \
  251. | --program-trans=* | --program-tran=* \
  252. | --progr-tra=* | --program-tr=* | --program-t=*)
  253. program_transform_name="$ac_optarg" ;;
  254. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  255. | -silent | --silent | --silen | --sile | --sil)
  256. silent=yes ;;
  257. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  258. ac_prev=sbindir ;;
  259. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  260. | --sbi=* | --sb=*)
  261. sbindir="$ac_optarg" ;;
  262. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  263. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  264. | --sharedst | --shareds | --shared | --share | --shar \
  265. | --sha | --sh)
  266. ac_prev=sharedstatedir ;;
  267. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  268. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  269. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  270. | --sha=* | --sh=*)
  271. sharedstatedir="$ac_optarg" ;;
  272. -site | --site | --sit)
  273. ac_prev=site ;;
  274. -site=* | --site=* | --sit=*)
  275. site="$ac_optarg" ;;
  276. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  277. ac_prev=srcdir ;;
  278. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  279. srcdir="$ac_optarg" ;;
  280. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  281. | --syscon | --sysco | --sysc | --sys | --sy)
  282. ac_prev=sysconfdir ;;
  283. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  284. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  285. sysconfdir="$ac_optarg" ;;
  286. -target | --target | --targe | --targ | --tar | --ta | --t)
  287. ac_prev=target ;;
  288. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  289. target="$ac_optarg" ;;
  290. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  291. verbose=yes ;;
  292. -version | --version | --versio | --versi | --vers)
  293. echo "configure generated by autoconf version 2.13"
  294. exit 0 ;;
  295. -with-* | --with-*)
  296. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  297. # Reject names that are not valid shell variable names.
  298. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  299. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  300. fi
  301. ac_package=`echo $ac_package| sed 's/-/_/g'`
  302. case "$ac_option" in
  303. *=*) ;;
  304. *) ac_optarg=yes ;;
  305. esac
  306. eval "with_${ac_package}='$ac_optarg'" ;;
  307. -without-* | --without-*)
  308. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  309. # Reject names that are not valid shell variable names.
  310. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  311. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  312. fi
  313. ac_package=`echo $ac_package| sed 's/-/_/g'`
  314. eval "with_${ac_package}=no" ;;
  315. --x)
  316. # Obsolete; use --with-x.
  317. with_x=yes ;;
  318. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  319. | --x-incl | --x-inc | --x-in | --x-i)
  320. ac_prev=x_includes ;;
  321. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  322. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  323. x_includes="$ac_optarg" ;;
  324. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  325. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  326. ac_prev=x_libraries ;;
  327. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  328. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  329. x_libraries="$ac_optarg" ;;
  330. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  331. ;;
  332. *)
  333. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  334. echo "configure: warning: $ac_option: invalid host type" 1>&2
  335. fi
  336. if test "x$nonopt" != xNONE; then
  337. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  338. fi
  339. nonopt="$ac_option"
  340. ;;
  341. esac
  342. done
  343. if test -n "$ac_prev"; then
  344. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  345. fi
  346. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  347. # File descriptor usage:
  348. # 0 standard input
  349. # 1 file creation
  350. # 2 errors and warnings
  351. # 3 some systems may open it to /dev/tty
  352. # 4 used on the Kubota Titan
  353. # 6 checking for... messages and results
  354. # 5 compiler messages saved in config.log
  355. if test "$silent" = yes; then
  356. exec 6>/dev/null
  357. else
  358. exec 6>&1
  359. fi
  360. exec 5>./config.log
  361. echo "\
  362. This file contains any messages produced by compilers while
  363. running configure, to aid debugging if configure makes a mistake.
  364. " 1>&5
  365. # Strip out --no-create and --no-recursion so they do not pile up.
  366. # Also quote any args containing shell metacharacters.
  367. ac_configure_args=
  368. for ac_arg
  369. do
  370. case "$ac_arg" in
  371. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  372. | --no-cr | --no-c) ;;
  373. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  374. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  375. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  376. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  377. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  378. esac
  379. done
  380. # NLS nuisances.
  381. # Only set these to C if already set. These must not be set unconditionally
  382. # because not all systems understand e.g. LANG=C (notably SCO).
  383. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  384. # Non-C LC_CTYPE values break the ctype check.
  385. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  386. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  387. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  388. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  389. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  390. rm -rf conftest* confdefs.h
  391. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  392. echo > confdefs.h
  393. # A filename unique to this package, relative to the directory that
  394. # configure is in, which we can look for to find out if srcdir is correct.
  395. ac_unique_file=src/rvi.cc
  396. # Find the source files, if location was not specified.
  397. if test -z "$srcdir"; then
  398. ac_srcdir_defaulted=yes
  399. # Try the directory containing this script, then its parent.
  400. ac_prog=$0
  401. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  402. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  403. srcdir=$ac_confdir
  404. if test ! -r $srcdir/$ac_unique_file; then
  405. srcdir=..
  406. fi
  407. else
  408. ac_srcdir_defaulted=no
  409. fi
  410. if test ! -r $srcdir/$ac_unique_file; then
  411. if test "$ac_srcdir_defaulted" = yes; then
  412. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  413. else
  414. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  415. fi
  416. fi
  417. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  418. # Prefer explicitly selected file to automatically selected ones.
  419. if test -z "$CONFIG_SITE"; then
  420. if test "x$prefix" != xNONE; then
  421. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  422. else
  423. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  424. fi
  425. fi
  426. for ac_site_file in $CONFIG_SITE; do
  427. if test -r "$ac_site_file"; then
  428. echo "loading site script $ac_site_file"
  429. . "$ac_site_file"
  430. fi
  431. done
  432. if test -r "$cache_file"; then
  433. echo "loading cache $cache_file"
  434. . $cache_file
  435. else
  436. echo "creating cache $cache_file"
  437. > $cache_file
  438. fi
  439. CFLAGS+="-Wno-write-strings"
  440. ac_ext=c
  441. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  442. ac_cpp='$CPP $CPPFLAGS'
  443. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  444. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  445. cross_compiling=$ac_cv_prog_cc_cross
  446. ac_exeext=
  447. ac_objext=o
  448. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  449. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  450. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  451. ac_n= ac_c='
  452. ' ac_t=' '
  453. else
  454. ac_n=-n ac_c= ac_t=
  455. fi
  456. else
  457. ac_n= ac_c='\c' ac_t=
  458. fi
  459. # Extract the first word of "g++", so it can be a program name with args.
  460. set dummy g++; ac_word=$2
  461. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  462. echo "configure:529: checking for $ac_word" >&5
  463. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  464. echo $ac_n "(cached) $ac_c" 1>&6
  465. else
  466. if test -n "$CC"; then
  467. ac_cv_prog_CC="$CC" # Let the user override the test.
  468. else
  469. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  470. ac_dummy="$PATH"
  471. for ac_dir in $ac_dummy; do
  472. test -z "$ac_dir" && ac_dir=.
  473. if test -f $ac_dir/$ac_word; then
  474. ac_cv_prog_CC="g++"
  475. break
  476. fi
  477. done
  478. IFS="$ac_save_ifs"
  479. fi
  480. fi
  481. CC="$ac_cv_prog_CC"
  482. if test -n "$CC"; then
  483. echo "$ac_t""$CC" 1>&6
  484. else
  485. echo "$ac_t""no" 1>&6
  486. fi
  487. if test -z "$CC"; then
  488. # Extract the first word of "cc", so it can be a program name with args.
  489. set dummy cc; ac_word=$2
  490. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  491. echo "configure:559: checking for $ac_word" >&5
  492. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  493. echo $ac_n "(cached) $ac_c" 1>&6
  494. else
  495. if test -n "$CC"; then
  496. ac_cv_prog_CC="$CC" # Let the user override the test.
  497. else
  498. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  499. ac_prog_rejected=no
  500. ac_dummy="$PATH"
  501. for ac_dir in $ac_dummy; do
  502. test -z "$ac_dir" && ac_dir=.
  503. if test -f $ac_dir/$ac_word; then
  504. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  505. ac_prog_rejected=yes
  506. continue
  507. fi
  508. ac_cv_prog_CC="c++"
  509. break
  510. fi
  511. done
  512. IFS="$ac_save_ifs"
  513. if test $ac_prog_rejected = yes; then
  514. # We found a bogon in the path, so make sure we never use it.
  515. set dummy $ac_cv_prog_CC
  516. shift
  517. if test $# -gt 0; then
  518. # We chose a different compiler from the bogus one.
  519. # However, it has the same basename, so the bogon will be chosen
  520. # first if we set CC to just the basename; use the full file name.
  521. shift
  522. set dummy "$ac_dir/$ac_word" "$@"
  523. shift
  524. ac_cv_prog_CC="$@"
  525. fi
  526. fi
  527. fi
  528. fi
  529. CC="$ac_cv_prog_CC"
  530. if test -n "$CC"; then
  531. echo "$ac_t""$CC" 1>&6
  532. else
  533. echo "$ac_t""no" 1>&6
  534. fi
  535. if test -z "$CC"; then
  536. case "`uname -s`" in
  537. *win32* | *WIN32*)
  538. # Extract the first word of "cl", so it can be a program name with args.
  539. set dummy cl; ac_word=$2
  540. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  541. echo "configure:610: checking for $ac_word" >&5
  542. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  543. echo $ac_n "(cached) $ac_c" 1>&6
  544. else
  545. if test -n "$CC"; then
  546. ac_cv_prog_CC="$CC" # Let the user override the test.
  547. else
  548. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  549. ac_dummy="$PATH"
  550. for ac_dir in $ac_dummy; do
  551. test -z "$ac_dir" && ac_dir=.
  552. if test -f $ac_dir/$ac_word; then
  553. ac_cv_prog_CC="cl"
  554. break
  555. fi
  556. done
  557. IFS="$ac_save_ifs"
  558. fi
  559. fi
  560. CC="$ac_cv_prog_CC"
  561. if test -n "$CC"; then
  562. echo "$ac_t""$CC" 1>&6
  563. else
  564. echo "$ac_t""no" 1>&6
  565. fi
  566. ;;
  567. esac
  568. fi
  569. test -z "$CC" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
  570. fi
  571. echo $ac_n "checking whether the C++ compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  572. echo "configure:642: checking whether the C++ compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  573. ac_ext=c
  574. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  575. ac_cpp='$CPP $CPPFLAGS'
  576. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  577. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  578. cross_compiling=$ac_cv_prog_cc_cross
  579. cat > conftest.$ac_ext << EOF
  580. #line 653 "configure"
  581. #include "confdefs.h"
  582. main(){return(0);}
  583. EOF
  584. if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  585. ac_cv_prog_cc_works=yes
  586. # If we can't run a trivial program, we are probably using a cross compiler.
  587. if (./conftest; exit) 2>/dev/null; then
  588. ac_cv_prog_cc_cross=no
  589. else
  590. ac_cv_prog_cc_cross=yes
  591. fi
  592. else
  593. echo "configure: failed program was:" >&5
  594. cat conftest.$ac_ext >&5
  595. ac_cv_prog_cc_works=no
  596. fi
  597. rm -fr conftest*
  598. ac_ext=c
  599. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  600. ac_cpp='$CPP $CPPFLAGS'
  601. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  602. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  603. cross_compiling=$ac_cv_prog_cc_cross
  604. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  605. if test $ac_cv_prog_cc_works = no; then
  606. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  607. fi
  608. echo $ac_n "checking whether the C++ compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  609. echo "configure:684: checking whether the C++ compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  610. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  611. cross_compiling=$ac_cv_prog_cc_cross
  612. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  613. echo "configure:689: checking whether we are using GNU C" >&5
  614. if eval "test \"`echo '$''{'ac_cv_prog_g++'+set}'`\" = set"; then
  615. echo $ac_n "(cached) $ac_c" 1>&6
  616. else
  617. cat > conftest.c <<EOF
  618. #ifdef __GNUC__
  619. yes;
  620. #endif
  621. EOF
  622. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  623. ac_cv_prog_gcc=yes
  624. else
  625. ac_cv_prog_gcc=no
  626. fi
  627. fi
  628. echo "$ac_t""$ac_cv_prog_g++" 1>&6
  629. if test $ac_cv_prog_g++ = yes; then
  630. GCC=yes
  631. else
  632. GCC=
  633. fi
  634. ac_test_CFLAGS="${CFLAGS+set}"
  635. ac_save_CFLAGS="$CFLAGS"
  636. CFLAGS=
  637. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  638. echo "configure:717: checking whether ${CC-cc} accepts -g" >&5
  639. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  640. echo $ac_n "(cached) $ac_c" 1>&6
  641. else
  642. echo 'void f(){}' > conftest.c
  643. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  644. ac_cv_prog_cc_g=yes
  645. else
  646. ac_cv_prog_cc_g=no
  647. fi
  648. rm -f conftest*
  649. fi
  650. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  651. if test "$ac_test_CFLAGS" = set; then
  652. CFLAGS="$ac_save_CFLAGS"
  653. elif test $ac_cv_prog_cc_g = yes; then
  654. if test "$GCC" = yes; then
  655. CFLAGS="-g -O"
  656. else
  657. CFLAGS="-g"
  658. fi
  659. else
  660. if test "$GCC" = yes; then
  661. CFLAGS="-O"
  662. else
  663. CFLAGS=
  664. fi
  665. fi
  666. ac_aux_dir=
  667. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  668. if test -f $ac_dir/install-sh; then
  669. ac_aux_dir=$ac_dir
  670. ac_install_sh="$ac_aux_dir/install-sh -c"
  671. break
  672. elif test -f $ac_dir/install.sh; then
  673. ac_aux_dir=$ac_dir
  674. ac_install_sh="$ac_aux_dir/install.sh -c"
  675. break
  676. fi
  677. done
  678. if test -z "$ac_aux_dir"; then
  679. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  680. fi
  681. ac_config_guess=$ac_aux_dir/config.guess
  682. ac_config_sub=$ac_aux_dir/config.sub
  683. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  684. # Find a good install program. We prefer a C program (faster),
  685. # so one script is as good as another. But avoid the broken or
  686. # incompatible versions:
  687. # SysV /etc/install, /usr/sbin/install
  688. # SunOS /usr/etc/install
  689. # IRIX /sbin/install
  690. # AIX /bin/install
  691. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  692. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  693. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  694. # ./install, which can be erroneously created by make from ./install.sh.
  695. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  696. echo "configure:779: checking for a BSD compatible install" >&5
  697. if test -z "$INSTALL"; then
  698. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  699. echo $ac_n "(cached) $ac_c" 1>&6
  700. else
  701. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  702. for ac_dir in $PATH; do
  703. # Account for people who put trailing slashes in PATH elements.
  704. case "$ac_dir/" in
  705. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  706. *)
  707. # OSF1 and SCO ODT 3.0 have their own names for install.
  708. # Don't use installbsd from OSF since it installs stuff as root
  709. # by default.
  710. for ac_prog in ginstall scoinst install; do
  711. if test -f $ac_dir/$ac_prog; then
  712. if test $ac_prog = install &&
  713. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  714. # AIX install. It has an incompatible calling convention.
  715. :
  716. else
  717. ac_cv_path_install="$ac_dir/$ac_prog -c"
  718. break 2
  719. fi
  720. fi
  721. done
  722. ;;
  723. esac
  724. done
  725. IFS="$ac_save_IFS"
  726. fi
  727. if test "${ac_cv_path_install+set}" = set; then
  728. INSTALL="$ac_cv_path_install"
  729. else
  730. # As a last resort, use the slow shell script. We don't cache a
  731. # path for INSTALL within a source directory, because that will
  732. # break other packages using the cache if that directory is
  733. # removed, or if the path is relative.
  734. INSTALL="$ac_install_sh"
  735. fi
  736. fi
  737. echo "$ac_t""$INSTALL" 1>&6
  738. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  739. # It thinks the first close brace ends the variable substitution.
  740. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  741. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  742. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  743. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  744. echo "configure:834: checking how to run the C preprocessor" >&5
  745. # On Suns, sometimes $CPP names a directory.
  746. if test -n "$CPP" && test -d "$CPP"; then
  747. CPP=
  748. fi
  749. if test -z "$CPP"; then
  750. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  751. echo $ac_n "(cached) $ac_c" 1>&6
  752. else
  753. # This must be in double quotes, not single quotes, because CPP may get
  754. # substituted into the Makefile and "${CC-cc}" will confuse make.
  755. CPP="${CC-cc} -E"
  756. # On the NeXT, cc -E runs the code through the compiler's parser,
  757. # not just through cpp.
  758. cat > conftest.$ac_ext <<EOF
  759. #line 849 "configure"
  760. #include "confdefs.h"
  761. #include <assert.h>
  762. Syntax Error
  763. EOF
  764. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  765. { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  766. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  767. if test -z "$ac_err"; then
  768. :
  769. else
  770. echo "$ac_err" >&5
  771. echo "configure: failed program was:" >&5
  772. cat conftest.$ac_ext >&5
  773. rm -rf conftest*
  774. CPP="${CC-cc} -E -traditional-cpp"
  775. cat > conftest.$ac_ext <<EOF
  776. #line 866 "configure"
  777. #include "confdefs.h"
  778. #include <assert.h>
  779. Syntax Error
  780. EOF
  781. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  782. { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  783. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  784. if test -z "$ac_err"; then
  785. :
  786. else
  787. echo "$ac_err" >&5
  788. echo "configure: failed program was:" >&5
  789. cat conftest.$ac_ext >&5
  790. rm -rf conftest*
  791. CPP="${CC-cc} -nologo -E"
  792. cat > conftest.$ac_ext <<EOF
  793. #line 883 "configure"
  794. #include "confdefs.h"
  795. #include <assert.h>
  796. Syntax Error
  797. EOF
  798. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  799. { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  800. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  801. if test -z "$ac_err"; then
  802. :
  803. else
  804. echo "$ac_err" >&5
  805. echo "configure: failed program was:" >&5
  806. cat conftest.$ac_ext >&5
  807. rm -rf conftest*
  808. CPP=/lib/cpp
  809. fi
  810. rm -f conftest*
  811. fi
  812. rm -f conftest*
  813. fi
  814. rm -f conftest*
  815. ac_cv_prog_CPP="$CPP"
  816. fi
  817. CPP="$ac_cv_prog_CPP"
  818. else
  819. ac_cv_prog_CPP="$CPP"
  820. fi
  821. echo "$ac_t""$CPP" 1>&6
  822. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  823. echo "configure:914: checking for ANSI C header files" >&5
  824. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  825. echo $ac_n "(cached) $ac_c" 1>&6
  826. else
  827. cat > conftest.$ac_ext <<EOF
  828. #line 919 "configure"
  829. #include "confdefs.h"
  830. #include <stdlib.h>
  831. #include <stdarg.h>
  832. #include <string.h>
  833. #include <float.h>
  834. EOF
  835. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  836. { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  837. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  838. if test -z "$ac_err"; then
  839. rm -rf conftest*
  840. ac_cv_header_stdc=yes
  841. else
  842. echo "$ac_err" >&5
  843. echo "configure: failed program was:" >&5
  844. cat conftest.$ac_ext >&5
  845. rm -rf conftest*
  846. ac_cv_header_stdc=no
  847. fi
  848. rm -f conftest*
  849. if test $ac_cv_header_stdc = yes; then
  850. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  851. cat > conftest.$ac_ext <<EOF
  852. #line 944 "configure"
  853. #include "confdefs.h"
  854. #include <string.h>
  855. EOF
  856. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  857. egrep "memchr" >/dev/null 2>&1; then
  858. :
  859. else
  860. rm -rf conftest*
  861. ac_cv_header_stdc=no
  862. fi
  863. rm -f conftest*
  864. fi
  865. if test $ac_cv_header_stdc = yes; then
  866. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  867. cat > conftest.$ac_ext <<EOF
  868. #line 962 "configure"
  869. #include "confdefs.h"
  870. #include <stdlib.h>
  871. EOF
  872. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  873. egrep "free" >/dev/null 2>&1; then
  874. :
  875. else
  876. rm -rf conftest*
  877. ac_cv_header_stdc=no
  878. fi
  879. rm -f conftest*
  880. fi
  881. if test $ac_cv_header_stdc = yes; then
  882. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  883. if test "$cross_compiling" = yes; then
  884. :
  885. else
  886. cat > conftest.$ac_ext <<EOF
  887. #line 983 "configure"
  888. #include "confdefs.h"
  889. #include <ctype.h>
  890. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  891. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  892. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  893. int main () { int i; for (i = 0; i < 256; i++)
  894. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  895. exit (0); }
  896. EOF
  897. if { (eval echo configure:994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  898. then
  899. :
  900. else
  901. echo "configure: failed program was:" >&5
  902. cat conftest.$ac_ext >&5
  903. rm -fr conftest*
  904. ac_cv_header_stdc=no
  905. fi
  906. rm -fr conftest*
  907. fi
  908. fi
  909. fi
  910. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  911. if test $ac_cv_header_stdc = yes; then
  912. cat >> confdefs.h <<\EOF
  913. #define STDC_HEADERS 1
  914. EOF
  915. fi
  916. for ac_hdr in unistd.h
  917. do
  918. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  919. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  920. echo "configure:1021: checking for $ac_hdr" >&5
  921. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  922. echo $ac_n "(cached) $ac_c" 1>&6
  923. else
  924. cat > conftest.$ac_ext <<EOF
  925. #line 1026 "configure"
  926. #include "confdefs.h"
  927. #include <$ac_hdr>
  928. EOF
  929. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  930. { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  931. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  932. if test -z "$ac_err"; then
  933. rm -rf conftest*
  934. eval "ac_cv_header_$ac_safe=yes"
  935. else
  936. echo "$ac_err" >&5
  937. echo "configure: failed program was:" >&5
  938. cat conftest.$ac_ext >&5
  939. rm -rf conftest*
  940. eval "ac_cv_header_$ac_safe=no"
  941. fi
  942. rm -f conftest*
  943. fi
  944. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  945. echo "$ac_t""yes" 1>&6
  946. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  947. cat >> confdefs.h <<EOF
  948. #define $ac_tr_hdr 1
  949. EOF
  950. else
  951. echo "$ac_t""no" 1>&6
  952. fi
  953. done
  954. for ac_func in mkdir
  955. do
  956. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  957. echo "configure:1062: checking for $ac_func" >&5
  958. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  959. echo $ac_n "(cached) $ac_c" 1>&6
  960. else
  961. cat > conftest.$ac_ext <<EOF
  962. #line 1067 "configure"
  963. #include "confdefs.h"
  964. /* System header to define __stub macros and hopefully few prototypes,
  965. which can conflict with char $ac_func(); below. */
  966. #include <assert.h>
  967. /* Override any g++2 internal prototype to avoid an error. */
  968. /* We use char because int might match the return type of a g++2
  969. builtin and then its argument prototype would still apply. */
  970. char $ac_func();
  971. int main() {
  972. /* The GNU C library defines this for functions which it implements
  973. to always fail with ENOSYS. Some functions are actually named
  974. something starting with __ and the normal name is an alias. */
  975. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  976. choke me
  977. #else
  978. $ac_func();
  979. #endif
  980. ; return 0; }
  981. EOF
  982. if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  983. rm -rf conftest*
  984. eval "ac_cv_func_$ac_func=yes"
  985. else
  986. echo "configure: failed program was:" >&5
  987. cat conftest.$ac_ext >&5
  988. rm -rf conftest*
  989. eval "ac_cv_func_$ac_func=no"
  990. fi
  991. rm -f conftest*
  992. fi
  993. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  994. echo "$ac_t""yes" 1>&6
  995. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  996. cat >> confdefs.h <<EOF
  997. #define $ac_tr_func 1
  998. EOF
  999. else
  1000. echo "$ac_t""no" 1>&6
  1001. fi
  1002. done
  1003. trap '' 1 2 15
  1004. cat > confcache <<\EOF
  1005. # This file is a shell script that caches the results of configure
  1006. # tests run on this system so they can be shared between configure
  1007. # scripts and configure runs. It is not useful on other systems.
  1008. # If it contains results you don't want to keep, you may remove or edit it.
  1009. #
  1010. # By default, configure uses ./config.cache as the cache file,
  1011. # creating it if it does not exist already. You can give configure
  1012. # the --cache-file=FILE option to use a different cache file; that is
  1013. # what configure does when it calls configure scripts in
  1014. # subdirectories, so they share the cache.
  1015. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1016. # config.status only pays attention to the cache file if you give it the
  1017. # --recheck option to rerun configure.
  1018. #
  1019. EOF
  1020. # The following way of writing the cache mishandles newlines in values,
  1021. # but we know of no workaround that is simple, portable, and efficient.
  1022. # So, don't put newlines in cache variables' values.
  1023. # Ultrix sh set writes to stderr and can't be redirected directly,
  1024. # and sets the high bit in the cache file unless we assign to the vars.
  1025. (set) 2>&1 |
  1026. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1027. *ac_space=\ *)
  1028. # `set' does not quote correctly, so add quotes (double-quote substitution
  1029. # turns \\\\ into \\, and sed turns \\ into \).
  1030. sed -n \
  1031. -e "s/'/'\\\\''/g" \
  1032. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1033. ;;
  1034. *)
  1035. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1036. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1037. ;;
  1038. esac >> confcache
  1039. if cmp -s $cache_file confcache; then
  1040. :
  1041. else
  1042. if test -w $cache_file; then
  1043. echo "updating cache $cache_file"
  1044. cat confcache > $cache_file
  1045. else
  1046. echo "not updating unwritable cache $cache_file"
  1047. fi
  1048. fi
  1049. rm -f confcache
  1050. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1051. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1052. # Let make expand exec_prefix.
  1053. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1054. # Any assignment to VPATH causes Sun make to only execute
  1055. # the first set of double-colon rules, so remove it if not needed.
  1056. # If there is a colon in the path, we need to keep it.
  1057. if test "x$srcdir" = x.; then
  1058. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1059. fi
  1060. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1061. # Transform confdefs.h into DEFS.
  1062. # Protect against shell expansion while executing Makefile rules.
  1063. # Protect against Makefile macro expansion.
  1064. cat > conftest.defs <<\EOF
  1065. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1066. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  1067. s%\[%\\&%g
  1068. s%\]%\\&%g
  1069. s%\$%$$%g
  1070. EOF
  1071. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1072. rm -f conftest.defs
  1073. # Without the "./", some shells look in PATH for config.status.
  1074. : ${CONFIG_STATUS=./config.status}
  1075. echo creating $CONFIG_STATUS
  1076. rm -f $CONFIG_STATUS
  1077. cat > $CONFIG_STATUS <<EOF
  1078. #! /bin/sh
  1079. # Generated automatically by configure.
  1080. # Run this file to recreate the current configuration.
  1081. # This directory was configured as follows,
  1082. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1083. #
  1084. # $0 $ac_configure_args
  1085. #
  1086. # Compiler output produced by configure, useful for debugging
  1087. # configure, is in ./config.log if it exists.
  1088. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1089. for ac_option
  1090. do
  1091. case "\$ac_option" in
  1092. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1093. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1094. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1095. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1096. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1097. exit 0 ;;
  1098. -help | --help | --hel | --he | --h)
  1099. echo "\$ac_cs_usage"; exit 0 ;;
  1100. *) echo "\$ac_cs_usage"; exit 1 ;;
  1101. esac
  1102. done
  1103. ac_given_srcdir=$srcdir
  1104. ac_given_INSTALL="$INSTALL"
  1105. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1106. EOF
  1107. cat >> $CONFIG_STATUS <<EOF
  1108. # Protect against being on the right side of a sed subst in config.status.
  1109. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1110. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1111. $ac_vpsub
  1112. $extrasub
  1113. s%@SHELL@%$SHELL%g
  1114. s%@CFLAGS@%$CFLAGS%g
  1115. s%@CPPFLAGS@%$CPPFLAGS%g
  1116. s%@CXXFLAGS@%$CXXFLAGS%g
  1117. s%@FFLAGS@%$FFLAGS%g
  1118. s%@DEFS@%$DEFS%g
  1119. s%@LDFLAGS@%$LDFLAGS%g
  1120. s%@LIBS@%$LIBS%g
  1121. s%@exec_prefix@%$exec_prefix%g
  1122. s%@prefix@%$prefix%g
  1123. s%@program_transform_name@%$program_transform_name%g
  1124. s%@bindir@%$bindir%g
  1125. s%@sbindir@%$sbindir%g
  1126. s%@libexecdir@%$libexecdir%g
  1127. s%@datadir@%$datadir%g
  1128. s%@sysconfdir@%$sysconfdir%g
  1129. s%@sharedstatedir@%$sharedstatedir%g
  1130. s%@localstatedir@%$localstatedir%g
  1131. s%@libdir@%$libdir%g
  1132. s%@includedir@%$includedir%g
  1133. s%@oldincludedir@%$oldincludedir%g
  1134. s%@infodir@%$infodir%g
  1135. s%@mandir@%$mandir%g
  1136. s%@CC@%$CC%g
  1137. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1138. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1139. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1140. s%@CPP@%$CPP%g
  1141. CEOF
  1142. EOF
  1143. cat >> $CONFIG_STATUS <<\EOF
  1144. # Split the substitutions into bite-sized pieces for seds with
  1145. # small command number limits, like on Digital OSF/1 and HP-UX.
  1146. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1147. ac_file=1 # Number of current file.
  1148. ac_beg=1 # First line for current file.
  1149. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1150. ac_more_lines=:
  1151. ac_sed_cmds=""
  1152. while $ac_more_lines; do
  1153. if test $ac_beg -gt 1; then
  1154. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1155. else
  1156. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1157. fi
  1158. if test ! -s conftest.s$ac_file; then
  1159. ac_more_lines=false
  1160. rm -f conftest.s$ac_file
  1161. else
  1162. if test -z "$ac_sed_cmds"; then
  1163. ac_sed_cmds="sed -f conftest.s$ac_file"
  1164. else
  1165. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1166. fi
  1167. ac_file=`expr $ac_file + 1`
  1168. ac_beg=$ac_end
  1169. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1170. fi
  1171. done
  1172. if test -z "$ac_sed_cmds"; then
  1173. ac_sed_cmds=cat
  1174. fi
  1175. EOF
  1176. cat >> $CONFIG_STATUS <<EOF
  1177. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1178. EOF
  1179. cat >> $CONFIG_STATUS <<\EOF
  1180. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1181. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1182. case "$ac_file" in
  1183. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1184. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1185. *) ac_file_in="${ac_file}.in" ;;
  1186. esac
  1187. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1188. # Remove last slash and all that follows it. Not all systems have dirname.
  1189. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1190. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1191. # The file is in a subdirectory.
  1192. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1193. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1194. # A "../" for each directory in $ac_dir_suffix.
  1195. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1196. else
  1197. ac_dir_suffix= ac_dots=
  1198. fi
  1199. case "$ac_given_srcdir" in
  1200. .) srcdir=.
  1201. if test -z "$ac_dots"; then top_srcdir=.
  1202. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1203. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1204. *) # Relative path.
  1205. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1206. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1207. esac
  1208. case "$ac_given_INSTALL" in
  1209. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1210. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1211. esac
  1212. echo creating "$ac_file"
  1213. rm -f "$ac_file"
  1214. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1215. case "$ac_file" in
  1216. *Makefile*) ac_comsub="1i\\
  1217. # $configure_input" ;;
  1218. *) ac_comsub= ;;
  1219. esac
  1220. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1221. sed -e "$ac_comsub
  1222. s%@configure_input@%$configure_input%g
  1223. s%@srcdir@%$srcdir%g
  1224. s%@top_srcdir@%$top_srcdir%g
  1225. s%@INSTALL@%$INSTALL%g
  1226. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1227. fi; done
  1228. rm -f conftest.s*
  1229. EOF
  1230. cat >> $CONFIG_STATUS <<EOF
  1231. EOF
  1232. cat >> $CONFIG_STATUS <<\EOF
  1233. exit 0
  1234. EOF
  1235. chmod +x $CONFIG_STATUS
  1236. rm -fr confdefs* $ac_clean_files
  1237. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1