configure 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.12
  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. # Initialize some variables set by options.
  13. # The variables have the same names as the options, with
  14. # dashes changed to underlines.
  15. build=NONE
  16. cache_file=./config.cache
  17. exec_prefix=NONE
  18. host=NONE
  19. no_create=
  20. nonopt=NONE
  21. no_recursion=
  22. prefix=NONE
  23. program_prefix=NONE
  24. program_suffix=NONE
  25. program_transform_name=s,x,x,
  26. silent=
  27. site=
  28. srcdir=
  29. target=NONE
  30. verbose=
  31. x_includes=NONE
  32. x_libraries=NONE
  33. bindir='${exec_prefix}/bin'
  34. sbindir='${exec_prefix}/sbin'
  35. libexecdir='${exec_prefix}/libexec'
  36. datadir='${prefix}/share'
  37. sysconfdir='${prefix}/etc'
  38. sharedstatedir='${prefix}/com'
  39. localstatedir='${prefix}/var'
  40. libdir='${exec_prefix}/lib'
  41. includedir='${prefix}/include'
  42. oldincludedir='/usr/include'
  43. infodir='${prefix}/info'
  44. mandir='${prefix}/man'
  45. # Initialize some other variables.
  46. subdirs=
  47. MFLAGS= MAKEFLAGS=
  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-gcc 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 known (Default: + yes, - no, s system-specific):$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.12"
  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=file.c
  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. ac_ext=c
  440. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  441. ac_cpp='$CPP $CPPFLAGS'
  442. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  443. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  444. cross_compiling=$ac_cv_prog_cc_cross
  445. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  446. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  447. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  448. ac_n= ac_c='
  449. ' ac_t=' '
  450. else
  451. ac_n=-n ac_c= ac_t=
  452. fi
  453. else
  454. ac_n= ac_c='\c' ac_t=
  455. fi
  456. # Extract the first word of "gcc", so it can be a program name with args.
  457. set dummy gcc; ac_word=$2
  458. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  459. echo "configure:526: checking for $ac_word" >&5
  460. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  461. echo $ac_n "(cached) $ac_c" 1>&6
  462. else
  463. if test -n "$CC"; then
  464. ac_cv_prog_CC="$CC" # Let the user override the test.
  465. else
  466. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  467. for ac_dir in $PATH; do
  468. test -z "$ac_dir" && ac_dir=.
  469. if test -f $ac_dir/$ac_word; then
  470. ac_cv_prog_CC="gcc"
  471. break
  472. fi
  473. done
  474. IFS="$ac_save_ifs"
  475. fi
  476. fi
  477. CC="$ac_cv_prog_CC"
  478. if test -n "$CC"; then
  479. echo "$ac_t""$CC" 1>&6
  480. else
  481. echo "$ac_t""no" 1>&6
  482. fi
  483. if test -z "$CC"; then
  484. # Extract the first word of "cc", so it can be a program name with args.
  485. set dummy cc; ac_word=$2
  486. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  487. echo "configure:555: checking for $ac_word" >&5
  488. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  489. echo $ac_n "(cached) $ac_c" 1>&6
  490. else
  491. if test -n "$CC"; then
  492. ac_cv_prog_CC="$CC" # Let the user override the test.
  493. else
  494. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  495. ac_prog_rejected=no
  496. for ac_dir in $PATH; do
  497. test -z "$ac_dir" && ac_dir=.
  498. if test -f $ac_dir/$ac_word; then
  499. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  500. ac_prog_rejected=yes
  501. continue
  502. fi
  503. ac_cv_prog_CC="cc"
  504. break
  505. fi
  506. done
  507. IFS="$ac_save_ifs"
  508. if test $ac_prog_rejected = yes; then
  509. # We found a bogon in the path, so make sure we never use it.
  510. set dummy $ac_cv_prog_CC
  511. shift
  512. if test $# -gt 0; then
  513. # We chose a different compiler from the bogus one.
  514. # However, it has the same basename, so the bogon will be chosen
  515. # first if we set CC to just the basename; use the full file name.
  516. shift
  517. set dummy "$ac_dir/$ac_word" "$@"
  518. shift
  519. ac_cv_prog_CC="$@"
  520. fi
  521. fi
  522. fi
  523. fi
  524. CC="$ac_cv_prog_CC"
  525. if test -n "$CC"; then
  526. echo "$ac_t""$CC" 1>&6
  527. else
  528. echo "$ac_t""no" 1>&6
  529. fi
  530. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  531. fi
  532. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  533. echo "configure:603: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  534. ac_ext=c
  535. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  536. ac_cpp='$CPP $CPPFLAGS'
  537. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  538. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  539. cross_compiling=$ac_cv_prog_cc_cross
  540. cat > conftest.$ac_ext <<EOF
  541. #line 613 "configure"
  542. #include "confdefs.h"
  543. main(){return(0);}
  544. EOF
  545. if { (eval echo configure:617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  546. ac_cv_prog_cc_works=yes
  547. # If we can't run a trivial program, we are probably using a cross compiler.
  548. if (./conftest; exit) 2>/dev/null; then
  549. ac_cv_prog_cc_cross=no
  550. else
  551. ac_cv_prog_cc_cross=yes
  552. fi
  553. else
  554. echo "configure: failed program was:" >&5
  555. cat conftest.$ac_ext >&5
  556. ac_cv_prog_cc_works=no
  557. fi
  558. rm -fr conftest*
  559. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  560. if test $ac_cv_prog_cc_works = no; then
  561. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  562. fi
  563. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  564. echo "configure:637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  565. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  566. cross_compiling=$ac_cv_prog_cc_cross
  567. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  568. echo "configure:642: checking whether we are using GNU C" >&5
  569. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  570. echo $ac_n "(cached) $ac_c" 1>&6
  571. else
  572. cat > conftest.c <<EOF
  573. #ifdef __GNUC__
  574. yes;
  575. #endif
  576. EOF
  577. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  578. ac_cv_prog_gcc=yes
  579. else
  580. ac_cv_prog_gcc=no
  581. fi
  582. fi
  583. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  584. if test $ac_cv_prog_gcc = yes; then
  585. GCC=yes
  586. ac_test_CFLAGS="${CFLAGS+set}"
  587. ac_save_CFLAGS="$CFLAGS"
  588. CFLAGS=
  589. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  590. echo "configure:666: checking whether ${CC-cc} accepts -g" >&5
  591. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  592. echo $ac_n "(cached) $ac_c" 1>&6
  593. else
  594. echo 'void f(){}' > conftest.c
  595. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  596. ac_cv_prog_cc_g=yes
  597. else
  598. ac_cv_prog_cc_g=no
  599. fi
  600. rm -f conftest*
  601. fi
  602. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  603. if test "$ac_test_CFLAGS" = set; then
  604. CFLAGS="$ac_save_CFLAGS"
  605. elif test $ac_cv_prog_cc_g = yes; then
  606. CFLAGS="-g -O2"
  607. else
  608. CFLAGS="-O2"
  609. fi
  610. else
  611. GCC=
  612. test "${CFLAGS+set}" = set || CFLAGS="-g"
  613. fi
  614. ac_aux_dir=
  615. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  616. if test -f $ac_dir/install-sh; then
  617. ac_aux_dir=$ac_dir
  618. ac_install_sh="$ac_aux_dir/install-sh -c"
  619. break
  620. elif test -f $ac_dir/install.sh; then
  621. ac_aux_dir=$ac_dir
  622. ac_install_sh="$ac_aux_dir/install.sh -c"
  623. break
  624. fi
  625. done
  626. if test -z "$ac_aux_dir"; then
  627. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  628. fi
  629. ac_config_guess=$ac_aux_dir/config.guess
  630. ac_config_sub=$ac_aux_dir/config.sub
  631. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  632. # Find a good install program. We prefer a C program (faster),
  633. # so one script is as good as another. But avoid the broken or
  634. # incompatible versions:
  635. # SysV /etc/install, /usr/sbin/install
  636. # SunOS /usr/etc/install
  637. # IRIX /sbin/install
  638. # AIX /bin/install
  639. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  640. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  641. # ./install, which can be erroneously created by make from ./install.sh.
  642. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  643. echo "configure:723: checking for a BSD compatible install" >&5
  644. if test -z "$INSTALL"; then
  645. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  646. echo $ac_n "(cached) $ac_c" 1>&6
  647. else
  648. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  649. for ac_dir in $PATH; do
  650. # Account for people who put trailing slashes in PATH elements.
  651. case "$ac_dir/" in
  652. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  653. *)
  654. # OSF1 and SCO ODT 3.0 have their own names for install.
  655. for ac_prog in ginstall installbsd scoinst install; do
  656. if test -f $ac_dir/$ac_prog; then
  657. if test $ac_prog = install &&
  658. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  659. # AIX install. It has an incompatible calling convention.
  660. # OSF/1 installbsd also uses dspmsg, but is usable.
  661. :
  662. else
  663. ac_cv_path_install="$ac_dir/$ac_prog -c"
  664. break 2
  665. fi
  666. fi
  667. done
  668. ;;
  669. esac
  670. done
  671. IFS="$ac_save_IFS"
  672. fi
  673. if test "${ac_cv_path_install+set}" = set; then
  674. INSTALL="$ac_cv_path_install"
  675. else
  676. # As a last resort, use the slow shell script. We don't cache a
  677. # path for INSTALL within a source directory, because that will
  678. # break other packages using the cache if that directory is
  679. # removed, or if the path is relative.
  680. INSTALL="$ac_install_sh"
  681. fi
  682. fi
  683. echo "$ac_t""$INSTALL" 1>&6
  684. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  685. # It thinks the first close brace ends the variable substitution.
  686. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  687. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  688. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  689. echo "configure:773: checking whether ln -s works" >&5
  690. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  691. echo $ac_n "(cached) $ac_c" 1>&6
  692. else
  693. rm -f conftestdata
  694. if ln -s X conftestdata 2>/dev/null
  695. then
  696. rm -f conftestdata
  697. ac_cv_prog_LN_S="ln -s"
  698. else
  699. ac_cv_prog_LN_S=ln
  700. fi
  701. fi
  702. LN_S="$ac_cv_prog_LN_S"
  703. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  704. echo "$ac_t""yes" 1>&6
  705. else
  706. echo "$ac_t""no" 1>&6
  707. fi
  708. echo $ac_n "checking for working const""... $ac_c" 1>&6
  709. echo "configure:795: checking for working const" >&5
  710. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  711. echo $ac_n "(cached) $ac_c" 1>&6
  712. else
  713. cat > conftest.$ac_ext <<EOF
  714. #line 800 "configure"
  715. #include "confdefs.h"
  716. int main() {
  717. /* Ultrix mips cc rejects this. */
  718. typedef int charset[2]; const charset x;
  719. /* SunOS 4.1.1 cc rejects this. */
  720. char const *const *ccp;
  721. char **p;
  722. /* NEC SVR4.0.2 mips cc rejects this. */
  723. struct point {int x, y;};
  724. static struct point const zero = {0,0};
  725. /* AIX XL C 1.02.0.0 rejects this.
  726. It does not let you subtract one const X* pointer from another in an arm
  727. of an if-expression whose if-part is not a constant expression */
  728. const char *g = "string";
  729. ccp = &g + (g ? g-g : 0);
  730. /* HPUX 7.0 cc rejects these. */
  731. ++ccp;
  732. p = (char**) ccp;
  733. ccp = (char const *const *) p;
  734. { /* SCO 3.2v4 cc rejects this. */
  735. char *t;
  736. char const *s = 0 ? (char *) 0 : (char const *) 0;
  737. *t++ = 0;
  738. }
  739. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  740. int x[] = {25, 17};
  741. const int *foo = &x[0];
  742. ++foo;
  743. }
  744. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  745. typedef const int *iptr;
  746. iptr p = 0;
  747. ++p;
  748. }
  749. { /* AIX XL C 1.02.0.0 rejects this saying
  750. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  751. struct s { int j; const int *ap[3]; };
  752. struct s *b; b->j = 5;
  753. }
  754. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  755. const int foo = 10;
  756. }
  757. ; return 0; }
  758. EOF
  759. if { (eval echo configure:849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  760. rm -rf conftest*
  761. ac_cv_c_const=yes
  762. else
  763. echo "configure: failed program was:" >&5
  764. cat conftest.$ac_ext >&5
  765. rm -rf conftest*
  766. ac_cv_c_const=no
  767. fi
  768. rm -f conftest*
  769. fi
  770. echo "$ac_t""$ac_cv_c_const" 1>&6
  771. if test $ac_cv_c_const = no; then
  772. cat >> confdefs.h <<\EOF
  773. #define const
  774. EOF
  775. fi
  776. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  777. echo "configure:870: checking how to run the C preprocessor" >&5
  778. # On Suns, sometimes $CPP names a directory.
  779. if test -n "$CPP" && test -d "$CPP"; then
  780. CPP=
  781. fi
  782. if test -z "$CPP"; then
  783. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  784. echo $ac_n "(cached) $ac_c" 1>&6
  785. else
  786. # This must be in double quotes, not single quotes, because CPP may get
  787. # substituted into the Makefile and "${CC-cc}" will confuse make.
  788. CPP="${CC-cc} -E"
  789. # On the NeXT, cc -E runs the code through the compiler's parser,
  790. # not just through cpp.
  791. cat > conftest.$ac_ext <<EOF
  792. #line 885 "configure"
  793. #include "confdefs.h"
  794. #include <assert.h>
  795. Syntax Error
  796. EOF
  797. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  798. { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  799. ac_err=`grep -v '^ *+' conftest.out`
  800. if test -z "$ac_err"; then
  801. :
  802. else
  803. echo "$ac_err" >&5
  804. echo "configure: failed program was:" >&5
  805. cat conftest.$ac_ext >&5
  806. rm -rf conftest*
  807. CPP="${CC-cc} -E -traditional-cpp"
  808. cat > conftest.$ac_ext <<EOF
  809. #line 902 "configure"
  810. #include "confdefs.h"
  811. #include <assert.h>
  812. Syntax Error
  813. EOF
  814. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  815. { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  816. ac_err=`grep -v '^ *+' conftest.out`
  817. if test -z "$ac_err"; then
  818. :
  819. else
  820. echo "$ac_err" >&5
  821. echo "configure: failed program was:" >&5
  822. cat conftest.$ac_ext >&5
  823. rm -rf conftest*
  824. CPP=/lib/cpp
  825. fi
  826. rm -f conftest*
  827. fi
  828. rm -f conftest*
  829. ac_cv_prog_CPP="$CPP"
  830. fi
  831. CPP="$ac_cv_prog_CPP"
  832. else
  833. ac_cv_prog_CPP="$CPP"
  834. fi
  835. echo "$ac_t""$CPP" 1>&6
  836. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  837. echo "configure:931: checking for ANSI C header files" >&5
  838. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  839. echo $ac_n "(cached) $ac_c" 1>&6
  840. else
  841. cat > conftest.$ac_ext <<EOF
  842. #line 936 "configure"
  843. #include "confdefs.h"
  844. #include <stdlib.h>
  845. #include <stdarg.h>
  846. #include <string.h>
  847. #include <float.h>
  848. EOF
  849. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  850. { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  851. ac_err=`grep -v '^ *+' conftest.out`
  852. if test -z "$ac_err"; then
  853. rm -rf conftest*
  854. ac_cv_header_stdc=yes
  855. else
  856. echo "$ac_err" >&5
  857. echo "configure: failed program was:" >&5
  858. cat conftest.$ac_ext >&5
  859. rm -rf conftest*
  860. ac_cv_header_stdc=no
  861. fi
  862. rm -f conftest*
  863. if test $ac_cv_header_stdc = yes; then
  864. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  865. cat > conftest.$ac_ext <<EOF
  866. #line 961 "configure"
  867. #include "confdefs.h"
  868. #include <string.h>
  869. EOF
  870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  871. egrep "memchr" >/dev/null 2>&1; then
  872. :
  873. else
  874. rm -rf conftest*
  875. ac_cv_header_stdc=no
  876. fi
  877. rm -f conftest*
  878. fi
  879. if test $ac_cv_header_stdc = yes; then
  880. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  881. cat > conftest.$ac_ext <<EOF
  882. #line 979 "configure"
  883. #include "confdefs.h"
  884. #include <stdlib.h>
  885. EOF
  886. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  887. egrep "free" >/dev/null 2>&1; then
  888. :
  889. else
  890. rm -rf conftest*
  891. ac_cv_header_stdc=no
  892. fi
  893. rm -f conftest*
  894. fi
  895. if test $ac_cv_header_stdc = yes; then
  896. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  897. if test "$cross_compiling" = yes; then
  898. :
  899. else
  900. cat > conftest.$ac_ext <<EOF
  901. #line 1000 "configure"
  902. #include "confdefs.h"
  903. #include <ctype.h>
  904. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  905. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  906. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  907. int main () { int i; for (i = 0; i < 256; i++)
  908. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  909. exit (0); }
  910. EOF
  911. if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  912. then
  913. :
  914. else
  915. echo "configure: failed program was:" >&5
  916. cat conftest.$ac_ext >&5
  917. rm -fr conftest*
  918. ac_cv_header_stdc=no
  919. fi
  920. rm -fr conftest*
  921. fi
  922. fi
  923. fi
  924. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  925. if test $ac_cv_header_stdc = yes; then
  926. cat >> confdefs.h <<\EOF
  927. #define STDC_HEADERS 1
  928. EOF
  929. fi
  930. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  931. echo "configure:1035: checking for off_t" >&5
  932. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  933. echo $ac_n "(cached) $ac_c" 1>&6
  934. else
  935. cat > conftest.$ac_ext <<EOF
  936. #line 1040 "configure"
  937. #include "confdefs.h"
  938. #include <sys/types.h>
  939. #if STDC_HEADERS
  940. #include <stdlib.h>
  941. #include <stddef.h>
  942. #endif
  943. EOF
  944. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  945. egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  946. rm -rf conftest*
  947. ac_cv_type_off_t=yes
  948. else
  949. rm -rf conftest*
  950. ac_cv_type_off_t=no
  951. fi
  952. rm -f conftest*
  953. fi
  954. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  955. if test $ac_cv_type_off_t = no; then
  956. cat >> confdefs.h <<\EOF
  957. #define off_t long
  958. EOF
  959. fi
  960. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  961. echo "configure:1068: checking for size_t" >&5
  962. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  963. echo $ac_n "(cached) $ac_c" 1>&6
  964. else
  965. cat > conftest.$ac_ext <<EOF
  966. #line 1073 "configure"
  967. #include "confdefs.h"
  968. #include <sys/types.h>
  969. #if STDC_HEADERS
  970. #include <stdlib.h>
  971. #include <stddef.h>
  972. #endif
  973. EOF
  974. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  975. egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  976. rm -rf conftest*
  977. ac_cv_type_size_t=yes
  978. else
  979. rm -rf conftest*
  980. ac_cv_type_size_t=no
  981. fi
  982. rm -f conftest*
  983. fi
  984. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  985. if test $ac_cv_type_size_t = no; then
  986. cat >> confdefs.h <<\EOF
  987. #define size_t unsigned
  988. EOF
  989. fi
  990. echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  991. echo "configure:1101: checking for st_rdev in struct stat" >&5
  992. if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  993. echo $ac_n "(cached) $ac_c" 1>&6
  994. else
  995. cat > conftest.$ac_ext <<EOF
  996. #line 1106 "configure"
  997. #include "confdefs.h"
  998. #include <sys/types.h>
  999. #include <sys/stat.h>
  1000. int main() {
  1001. struct stat s; s.st_rdev;
  1002. ; return 0; }
  1003. EOF
  1004. if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1005. rm -rf conftest*
  1006. ac_cv_struct_st_rdev=yes
  1007. else
  1008. echo "configure: failed program was:" >&5
  1009. cat conftest.$ac_ext >&5
  1010. rm -rf conftest*
  1011. ac_cv_struct_st_rdev=no
  1012. fi
  1013. rm -f conftest*
  1014. fi
  1015. echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  1016. if test $ac_cv_struct_st_rdev = yes; then
  1017. cat >> confdefs.h <<\EOF
  1018. #define HAVE_ST_RDEV 1
  1019. EOF
  1020. fi
  1021. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1022. echo "configure:1136: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1023. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1024. echo $ac_n "(cached) $ac_c" 1>&6
  1025. else
  1026. cat > conftest.$ac_ext <<EOF
  1027. #line 1141 "configure"
  1028. #include "confdefs.h"
  1029. #include <sys/types.h>
  1030. #include <sys/wait.h>
  1031. #ifndef WEXITSTATUS
  1032. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1033. #endif
  1034. #ifndef WIFEXITED
  1035. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1036. #endif
  1037. int main() {
  1038. int s;
  1039. wait (&s);
  1040. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1041. ; return 0; }
  1042. EOF
  1043. if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1044. rm -rf conftest*
  1045. ac_cv_header_sys_wait_h=yes
  1046. else
  1047. echo "configure: failed program was:" >&5
  1048. cat conftest.$ac_ext >&5
  1049. rm -rf conftest*
  1050. ac_cv_header_sys_wait_h=no
  1051. fi
  1052. rm -f conftest*
  1053. fi
  1054. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1055. if test $ac_cv_header_sys_wait_h = yes; then
  1056. cat >> confdefs.h <<\EOF
  1057. #define HAVE_SYS_WAIT_H 1
  1058. EOF
  1059. fi
  1060. trap '' 1 2 15
  1061. cat > confcache <<\EOF
  1062. # This file is a shell script that caches the results of configure
  1063. # tests run on this system so they can be shared between configure
  1064. # scripts and configure runs. It is not useful on other systems.
  1065. # If it contains results you don't want to keep, you may remove or edit it.
  1066. #
  1067. # By default, configure uses ./config.cache as the cache file,
  1068. # creating it if it does not exist already. You can give configure
  1069. # the --cache-file=FILE option to use a different cache file; that is
  1070. # what configure does when it calls configure scripts in
  1071. # subdirectories, so they share the cache.
  1072. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1073. # config.status only pays attention to the cache file if you give it the
  1074. # --recheck option to rerun configure.
  1075. #
  1076. EOF
  1077. # The following way of writing the cache mishandles newlines in values,
  1078. # but we know of no workaround that is simple, portable, and efficient.
  1079. # So, don't put newlines in cache variables' values.
  1080. # Ultrix sh set writes to stderr and can't be redirected directly,
  1081. # and sets the high bit in the cache file unless we assign to the vars.
  1082. (set) 2>&1 |
  1083. case `(ac_space=' '; set) 2>&1` in
  1084. *ac_space=\ *)
  1085. # `set' does not quote correctly, so add quotes (double-quote substitution
  1086. # turns \\\\ into \\, and sed turns \\ into \).
  1087. sed -n \
  1088. -e "s/'/'\\\\''/g" \
  1089. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1090. ;;
  1091. *)
  1092. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1093. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1094. ;;
  1095. esac >> confcache
  1096. if cmp -s $cache_file confcache; then
  1097. :
  1098. else
  1099. if test -w $cache_file; then
  1100. echo "updating cache $cache_file"
  1101. cat confcache > $cache_file
  1102. else
  1103. echo "not updating unwritable cache $cache_file"
  1104. fi
  1105. fi
  1106. rm -f confcache
  1107. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1108. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1109. # Let make expand exec_prefix.
  1110. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1111. # Any assignment to VPATH causes Sun make to only execute
  1112. # the first set of double-colon rules, so remove it if not needed.
  1113. # If there is a colon in the path, we need to keep it.
  1114. if test "x$srcdir" = x.; then
  1115. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1116. fi
  1117. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1118. # Transform confdefs.h into DEFS.
  1119. # Protect against shell expansion while executing Makefile rules.
  1120. # Protect against Makefile macro expansion.
  1121. cat > conftest.defs <<\EOF
  1122. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1123. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  1124. s%\[%\\&%g
  1125. s%\]%\\&%g
  1126. s%\$%$$%g
  1127. EOF
  1128. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1129. rm -f conftest.defs
  1130. # Without the "./", some shells look in PATH for config.status.
  1131. : ${CONFIG_STATUS=./config.status}
  1132. echo creating $CONFIG_STATUS
  1133. rm -f $CONFIG_STATUS
  1134. cat > $CONFIG_STATUS <<EOF
  1135. #! /bin/sh
  1136. # Generated automatically by configure.
  1137. # Run this file to recreate the current configuration.
  1138. # This directory was configured as follows,
  1139. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1140. #
  1141. # $0 $ac_configure_args
  1142. #
  1143. # Compiler output produced by configure, useful for debugging
  1144. # configure, is in ./config.log if it exists.
  1145. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1146. for ac_option
  1147. do
  1148. case "\$ac_option" in
  1149. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1150. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1151. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1152. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1153. echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1154. exit 0 ;;
  1155. -help | --help | --hel | --he | --h)
  1156. echo "\$ac_cs_usage"; exit 0 ;;
  1157. *) echo "\$ac_cs_usage"; exit 1 ;;
  1158. esac
  1159. done
  1160. ac_given_srcdir=$srcdir
  1161. ac_given_INSTALL="$INSTALL"
  1162. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1163. EOF
  1164. cat >> $CONFIG_STATUS <<EOF
  1165. # Protect against being on the right side of a sed subst in config.status.
  1166. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1167. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1168. $ac_vpsub
  1169. $extrasub
  1170. s%@CFLAGS@%$CFLAGS%g
  1171. s%@CPPFLAGS@%$CPPFLAGS%g
  1172. s%@CXXFLAGS@%$CXXFLAGS%g
  1173. s%@DEFS@%$DEFS%g
  1174. s%@LDFLAGS@%$LDFLAGS%g
  1175. s%@LIBS@%$LIBS%g
  1176. s%@exec_prefix@%$exec_prefix%g
  1177. s%@prefix@%$prefix%g
  1178. s%@program_transform_name@%$program_transform_name%g
  1179. s%@bindir@%$bindir%g
  1180. s%@sbindir@%$sbindir%g
  1181. s%@libexecdir@%$libexecdir%g
  1182. s%@datadir@%$datadir%g
  1183. s%@sysconfdir@%$sysconfdir%g
  1184. s%@sharedstatedir@%$sharedstatedir%g
  1185. s%@localstatedir@%$localstatedir%g
  1186. s%@libdir@%$libdir%g
  1187. s%@includedir@%$includedir%g
  1188. s%@oldincludedir@%$oldincludedir%g
  1189. s%@infodir@%$infodir%g
  1190. s%@mandir@%$mandir%g
  1191. s%@CC@%$CC%g
  1192. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1193. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1194. s%@LN_S@%$LN_S%g
  1195. s%@CPP@%$CPP%g
  1196. CEOF
  1197. EOF
  1198. cat >> $CONFIG_STATUS <<\EOF
  1199. # Split the substitutions into bite-sized pieces for seds with
  1200. # small command number limits, like on Digital OSF/1 and HP-UX.
  1201. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1202. ac_file=1 # Number of current file.
  1203. ac_beg=1 # First line for current file.
  1204. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1205. ac_more_lines=:
  1206. ac_sed_cmds=""
  1207. while $ac_more_lines; do
  1208. if test $ac_beg -gt 1; then
  1209. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1210. else
  1211. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1212. fi
  1213. if test ! -s conftest.s$ac_file; then
  1214. ac_more_lines=false
  1215. rm -f conftest.s$ac_file
  1216. else
  1217. if test -z "$ac_sed_cmds"; then
  1218. ac_sed_cmds="sed -f conftest.s$ac_file"
  1219. else
  1220. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1221. fi
  1222. ac_file=`expr $ac_file + 1`
  1223. ac_beg=$ac_end
  1224. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1225. fi
  1226. done
  1227. if test -z "$ac_sed_cmds"; then
  1228. ac_sed_cmds=cat
  1229. fi
  1230. EOF
  1231. cat >> $CONFIG_STATUS <<EOF
  1232. CONFIG_FILES=\${CONFIG_FILES-"Makefile config.h"}
  1233. EOF
  1234. cat >> $CONFIG_STATUS <<\EOF
  1235. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1236. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1237. case "$ac_file" in
  1238. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1239. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1240. *) ac_file_in="${ac_file}.in" ;;
  1241. esac
  1242. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1243. # Remove last slash and all that follows it. Not all systems have dirname.
  1244. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1245. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1246. # The file is in a subdirectory.
  1247. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1248. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1249. # A "../" for each directory in $ac_dir_suffix.
  1250. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1251. else
  1252. ac_dir_suffix= ac_dots=
  1253. fi
  1254. case "$ac_given_srcdir" in
  1255. .) srcdir=.
  1256. if test -z "$ac_dots"; then top_srcdir=.
  1257. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1258. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1259. *) # Relative path.
  1260. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1261. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1262. esac
  1263. case "$ac_given_INSTALL" in
  1264. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1265. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1266. esac
  1267. echo creating "$ac_file"
  1268. rm -f "$ac_file"
  1269. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1270. case "$ac_file" in
  1271. *Makefile*) ac_comsub="1i\\
  1272. # $configure_input" ;;
  1273. *) ac_comsub= ;;
  1274. esac
  1275. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1276. sed -e "$ac_comsub
  1277. s%@configure_input@%$configure_input%g
  1278. s%@srcdir@%$srcdir%g
  1279. s%@top_srcdir@%$top_srcdir%g
  1280. s%@INSTALL@%$INSTALL%g
  1281. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1282. fi; done
  1283. rm -f conftest.s*
  1284. EOF
  1285. cat >> $CONFIG_STATUS <<EOF
  1286. EOF
  1287. cat >> $CONFIG_STATUS <<\EOF
  1288. exit 0
  1289. EOF
  1290. chmod +x $CONFIG_STATUS
  1291. rm -fr confdefs* $ac_clean_files
  1292. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1