configure 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.10
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_default_prefix=/usr
  13. ac_help="$ac_help
  14. --with-arch=value set/override (Debian) architecture value"
  15. ac_help="$ac_help
  16. --with-newdeb make dpkg-deb default to new archives"
  17. ac_help="$ac_help
  18. --with-olddeb make dpkg-deb default to old archives"
  19. # Initialize some variables set by options.
  20. # The variables have the same names as the options, with
  21. # dashes changed to underlines.
  22. build=NONE
  23. cache_file=./config.cache
  24. exec_prefix=NONE
  25. host=NONE
  26. no_create=
  27. nonopt=NONE
  28. no_recursion=
  29. prefix=NONE
  30. program_prefix=NONE
  31. program_suffix=NONE
  32. program_transform_name=s,x,x,
  33. silent=
  34. site=
  35. srcdir=
  36. target=NONE
  37. verbose=
  38. x_includes=NONE
  39. x_libraries=NONE
  40. bindir='${exec_prefix}/bin'
  41. sbindir='${exec_prefix}/sbin'
  42. libexecdir='${exec_prefix}/libexec'
  43. datadir='${prefix}/share'
  44. sysconfdir='${prefix}/etc'
  45. sharedstatedir='${prefix}/com'
  46. localstatedir='${prefix}/var'
  47. libdir='${exec_prefix}/lib'
  48. includedir='${prefix}/include'
  49. oldincludedir='/usr/include'
  50. infodir='${prefix}/info'
  51. mandir='${prefix}/man'
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55. ac_prev=
  56. for ac_option
  57. do
  58. # If the previous option needs an argument, assign it.
  59. if test -n "$ac_prev"; then
  60. eval "$ac_prev=\$ac_option"
  61. ac_prev=
  62. continue
  63. fi
  64. case "$ac_option" in
  65. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66. *) ac_optarg= ;;
  67. esac
  68. # Accept the important Cygnus configure options, so we can diagnose typos.
  69. case "$ac_option" in
  70. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  71. ac_prev=bindir ;;
  72. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  73. bindir="$ac_optarg" ;;
  74. -build | --build | --buil | --bui | --bu)
  75. ac_prev=build ;;
  76. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  77. build="$ac_optarg" ;;
  78. -cache-file | --cache-file | --cache-fil | --cache-fi \
  79. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  80. ac_prev=cache_file ;;
  81. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  82. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  83. cache_file="$ac_optarg" ;;
  84. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  85. ac_prev=datadir ;;
  86. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  87. | --da=*)
  88. datadir="$ac_optarg" ;;
  89. -disable-* | --disable-*)
  90. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  91. # Reject names that are not valid shell variable names.
  92. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  94. fi
  95. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  96. eval "enable_${ac_feature}=no" ;;
  97. -enable-* | --enable-*)
  98. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  99. # Reject names that are not valid shell variable names.
  100. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  101. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  102. fi
  103. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  104. case "$ac_option" in
  105. *=*) ;;
  106. *) ac_optarg=yes ;;
  107. esac
  108. eval "enable_${ac_feature}='$ac_optarg'" ;;
  109. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  110. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  111. | --exec | --exe | --ex)
  112. ac_prev=exec_prefix ;;
  113. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  114. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  115. | --exec=* | --exe=* | --ex=*)
  116. exec_prefix="$ac_optarg" ;;
  117. -gas | --gas | --ga | --g)
  118. # Obsolete; use --with-gas.
  119. with_gas=yes ;;
  120. -help | --help | --hel | --he)
  121. # Omit some internal or obsolete options to make the list less imposing.
  122. # This message is too long to be a string in the A/UX 3.1 sh.
  123. cat << EOF
  124. Usage: configure [options] [host]
  125. Options: [defaults in brackets after descriptions]
  126. Configuration:
  127. --cache-file=FILE cache test results in FILE
  128. --help print this message
  129. --no-create do not create output files
  130. --quiet, --silent do not print \`checking...' messages
  131. --version print the version of autoconf that created configure
  132. Directory and file names:
  133. --prefix=PREFIX install architecture-independent files in PREFIX
  134. [$ac_default_prefix]
  135. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  136. [same as prefix]
  137. --bindir=DIR user executables in DIR [EPREFIX/bin]
  138. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  139. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  140. --datadir=DIR read-only architecture-independent data in DIR
  141. [PREFIX/share]
  142. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  143. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  144. [PREFIX/com]
  145. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  146. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  147. --includedir=DIR C header files in DIR [PREFIX/include]
  148. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  149. --infodir=DIR info documentation in DIR [PREFIX/info]
  150. --mandir=DIR man documentation in DIR [PREFIX/man]
  151. --srcdir=DIR find the sources in DIR [configure dir or ..]
  152. --program-prefix=PREFIX prepend PREFIX to installed program names
  153. --program-suffix=SUFFIX append SUFFIX to installed program names
  154. --program-transform-name=PROGRAM
  155. run sed PROGRAM on installed program names
  156. EOF
  157. cat << EOF
  158. Host type:
  159. --build=BUILD configure for building on BUILD [BUILD=HOST]
  160. --host=HOST configure for HOST [guessed]
  161. --target=TARGET configure for TARGET [TARGET=HOST]
  162. Features and packages:
  163. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  164. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  165. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  166. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  167. --x-includes=DIR X include files are in DIR
  168. --x-libraries=DIR X library files are in DIR
  169. EOF
  170. if test -n "$ac_help"; then
  171. echo "--enable and --with options recognized:$ac_help"
  172. fi
  173. exit 0 ;;
  174. -host | --host | --hos | --ho)
  175. ac_prev=host ;;
  176. -host=* | --host=* | --hos=* | --ho=*)
  177. host="$ac_optarg" ;;
  178. -includedir | --includedir | --includedi | --included | --include \
  179. | --includ | --inclu | --incl | --inc)
  180. ac_prev=includedir ;;
  181. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  182. | --includ=* | --inclu=* | --incl=* | --inc=*)
  183. includedir="$ac_optarg" ;;
  184. -infodir | --infodir | --infodi | --infod | --info | --inf)
  185. ac_prev=infodir ;;
  186. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  187. infodir="$ac_optarg" ;;
  188. -libdir | --libdir | --libdi | --libd)
  189. ac_prev=libdir ;;
  190. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  191. libdir="$ac_optarg" ;;
  192. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  193. | --libexe | --libex | --libe)
  194. ac_prev=libexecdir ;;
  195. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  196. | --libexe=* | --libex=* | --libe=*)
  197. libexecdir="$ac_optarg" ;;
  198. -localstatedir | --localstatedir | --localstatedi | --localstated \
  199. | --localstate | --localstat | --localsta | --localst \
  200. | --locals | --local | --loca | --loc | --lo)
  201. ac_prev=localstatedir ;;
  202. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  203. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  204. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  205. localstatedir="$ac_optarg" ;;
  206. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  207. ac_prev=mandir ;;
  208. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  209. mandir="$ac_optarg" ;;
  210. -nfp | --nfp | --nf)
  211. # Obsolete; use --without-fp.
  212. with_fp=no ;;
  213. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  214. | --no-cr | --no-c)
  215. no_create=yes ;;
  216. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  217. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  218. no_recursion=yes ;;
  219. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  220. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  221. | --oldin | --oldi | --old | --ol | --o)
  222. ac_prev=oldincludedir ;;
  223. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  224. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  225. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  226. oldincludedir="$ac_optarg" ;;
  227. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  228. ac_prev=prefix ;;
  229. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  230. prefix="$ac_optarg" ;;
  231. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  232. | --program-pre | --program-pr | --program-p)
  233. ac_prev=program_prefix ;;
  234. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  235. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  236. program_prefix="$ac_optarg" ;;
  237. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  238. | --program-suf | --program-su | --program-s)
  239. ac_prev=program_suffix ;;
  240. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  241. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  242. program_suffix="$ac_optarg" ;;
  243. -program-transform-name | --program-transform-name \
  244. | --program-transform-nam | --program-transform-na \
  245. | --program-transform-n | --program-transform- \
  246. | --program-transform | --program-transfor \
  247. | --program-transfo | --program-transf \
  248. | --program-trans | --program-tran \
  249. | --progr-tra | --program-tr | --program-t)
  250. ac_prev=program_transform_name ;;
  251. -program-transform-name=* | --program-transform-name=* \
  252. | --program-transform-nam=* | --program-transform-na=* \
  253. | --program-transform-n=* | --program-transform-=* \
  254. | --program-transform=* | --program-transfor=* \
  255. | --program-transfo=* | --program-transf=* \
  256. | --program-trans=* | --program-tran=* \
  257. | --progr-tra=* | --program-tr=* | --program-t=*)
  258. program_transform_name="$ac_optarg" ;;
  259. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  260. | -silent | --silent | --silen | --sile | --sil)
  261. silent=yes ;;
  262. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  263. ac_prev=sbindir ;;
  264. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  265. | --sbi=* | --sb=*)
  266. sbindir="$ac_optarg" ;;
  267. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  268. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  269. | --sharedst | --shareds | --shared | --share | --shar \
  270. | --sha | --sh)
  271. ac_prev=sharedstatedir ;;
  272. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  273. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  274. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  275. | --sha=* | --sh=*)
  276. sharedstatedir="$ac_optarg" ;;
  277. -site | --site | --sit)
  278. ac_prev=site ;;
  279. -site=* | --site=* | --sit=*)
  280. site="$ac_optarg" ;;
  281. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  282. ac_prev=srcdir ;;
  283. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  284. srcdir="$ac_optarg" ;;
  285. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  286. | --syscon | --sysco | --sysc | --sys | --sy)
  287. ac_prev=sysconfdir ;;
  288. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  289. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  290. sysconfdir="$ac_optarg" ;;
  291. -target | --target | --targe | --targ | --tar | --ta | --t)
  292. ac_prev=target ;;
  293. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  294. target="$ac_optarg" ;;
  295. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  296. verbose=yes ;;
  297. -version | --version | --versio | --versi | --vers)
  298. echo "configure generated by autoconf version 2.10"
  299. exit 0 ;;
  300. -with-* | --with-*)
  301. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  302. # Reject names that are not valid shell variable names.
  303. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  304. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  305. fi
  306. ac_package=`echo $ac_package| sed 's/-/_/g'`
  307. case "$ac_option" in
  308. *=*) ;;
  309. *) ac_optarg=yes ;;
  310. esac
  311. eval "with_${ac_package}='$ac_optarg'" ;;
  312. -without-* | --without-*)
  313. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  314. # Reject names that are not valid shell variable names.
  315. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  316. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  317. fi
  318. ac_package=`echo $ac_package| sed 's/-/_/g'`
  319. eval "with_${ac_package}=no" ;;
  320. --x)
  321. # Obsolete; use --with-x.
  322. with_x=yes ;;
  323. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  324. | --x-incl | --x-inc | --x-in | --x-i)
  325. ac_prev=x_includes ;;
  326. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  327. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  328. x_includes="$ac_optarg" ;;
  329. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  330. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  331. ac_prev=x_libraries ;;
  332. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  333. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  334. x_libraries="$ac_optarg" ;;
  335. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  336. ;;
  337. *)
  338. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  339. echo "configure: warning: $ac_option: invalid host type" 1>&2
  340. fi
  341. if test "x$nonopt" != xNONE; then
  342. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  343. fi
  344. nonopt="$ac_option"
  345. ;;
  346. esac
  347. done
  348. if test -n "$ac_prev"; then
  349. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  350. fi
  351. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  352. # File descriptor usage:
  353. # 0 standard input
  354. # 1 file creation
  355. # 2 errors and warnings
  356. # 3 some systems may open it to /dev/tty
  357. # 4 used on the Kubota Titan
  358. # 6 checking for... messages and results
  359. # 5 compiler messages saved in config.log
  360. if test "$silent" = yes; then
  361. exec 6>/dev/null
  362. else
  363. exec 6>&1
  364. fi
  365. exec 5>./config.log
  366. echo "\
  367. This file contains any messages produced by compilers while
  368. running configure, to aid debugging if configure makes a mistake.
  369. " 1>&5
  370. # Strip out --no-create and --no-recursion so they do not pile up.
  371. # Also quote any args containing shell metacharacters.
  372. ac_configure_args=
  373. for ac_arg
  374. do
  375. case "$ac_arg" in
  376. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  377. | --no-cr | --no-c) ;;
  378. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  379. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  380. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  381. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  382. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  383. esac
  384. done
  385. # NLS nuisances.
  386. # Only set LANG and LC_ALL to C if already set.
  387. # These must not be set unconditionally because not all systems understand
  388. # e.g. LANG=C (notably SCO).
  389. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  390. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  391. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  392. rm -rf conftest* confdefs.h
  393. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  394. echo > confdefs.h
  395. # A filename unique to this package, relative to the directory that
  396. # configure is in, which we can look for to find out if srcdir is correct.
  397. ac_unique_file=include/dpkg.h
  398. # Find the source files, if location was not specified.
  399. if test -z "$srcdir"; then
  400. ac_srcdir_defaulted=yes
  401. # Try the directory containing this script, then its parent.
  402. ac_prog=$0
  403. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  404. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  405. srcdir=$ac_confdir
  406. if test ! -r $srcdir/$ac_unique_file; then
  407. srcdir=..
  408. fi
  409. else
  410. ac_srcdir_defaulted=no
  411. fi
  412. if test ! -r $srcdir/$ac_unique_file; then
  413. if test "$ac_srcdir_defaulted" = yes; then
  414. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  415. else
  416. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  417. fi
  418. fi
  419. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  420. # Prefer explicitly selected file to automatically selected ones.
  421. if test -z "$CONFIG_SITE"; then
  422. if test "x$prefix" != xNONE; then
  423. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  424. else
  425. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  426. fi
  427. fi
  428. for ac_site_file in $CONFIG_SITE; do
  429. if test -r "$ac_site_file"; then
  430. echo "loading site script $ac_site_file"
  431. . "$ac_site_file"
  432. fi
  433. done
  434. if test -r "$cache_file"; then
  435. echo "loading cache $cache_file"
  436. . $cache_file
  437. else
  438. echo "creating cache $cache_file"
  439. > $cache_file
  440. fi
  441. ac_ext=c
  442. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  443. ac_cpp='$CPP $CPPFLAGS'
  444. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  445. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  446. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  447. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  448. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  449. ac_n= ac_c='
  450. ' ac_t=' '
  451. else
  452. ac_n=-n ac_c= ac_t=
  453. fi
  454. else
  455. ac_n= ac_c='\c' ac_t=
  456. fi
  457. # Extract the first word of "gcc", so it can be a program name with args.
  458. set dummy gcc; ac_word=$2
  459. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  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. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  488. echo $ac_n "(cached) $ac_c" 1>&6
  489. else
  490. if test -n "$CC"; then
  491. ac_cv_prog_CC="$CC" # Let the user override the test.
  492. else
  493. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  494. ac_prog_rejected=no
  495. for ac_dir in $PATH; do
  496. test -z "$ac_dir" && ac_dir=.
  497. if test -f $ac_dir/$ac_word; then
  498. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  499. ac_prog_rejected=yes
  500. continue
  501. fi
  502. ac_cv_prog_CC="cc"
  503. break
  504. fi
  505. done
  506. IFS="$ac_save_ifs"
  507. if test $ac_prog_rejected = yes; then
  508. # We found a bogon in the path, so make sure we never use it.
  509. set dummy $ac_cv_prog_CC
  510. shift
  511. if test $# -gt 0; then
  512. # We chose a different compiler from the bogus one.
  513. # However, it has the same basename, so the bogon will be chosen
  514. # first if we set CC to just the basename; use the full file name.
  515. shift
  516. set dummy "$ac_dir/$ac_word" "$@"
  517. shift
  518. ac_cv_prog_CC="$@"
  519. fi
  520. fi
  521. fi
  522. fi
  523. CC="$ac_cv_prog_CC"
  524. if test -n "$CC"; then
  525. echo "$ac_t""$CC" 1>&6
  526. else
  527. echo "$ac_t""no" 1>&6
  528. fi
  529. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  530. fi
  531. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  532. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  533. echo $ac_n "(cached) $ac_c" 1>&6
  534. else
  535. cat > conftest.c <<EOF
  536. #ifdef __GNUC__
  537. yes;
  538. #endif
  539. EOF
  540. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  541. ac_cv_prog_gcc=yes
  542. else
  543. ac_cv_prog_gcc=no
  544. fi
  545. fi
  546. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  547. if test $ac_cv_prog_gcc = yes; then
  548. GCC=yes
  549. if test "${CFLAGS+set}" != set; then
  550. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  551. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  552. echo $ac_n "(cached) $ac_c" 1>&6
  553. else
  554. echo 'void f(){}' > conftest.c
  555. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  556. ac_cv_prog_gcc_g=yes
  557. else
  558. ac_cv_prog_gcc_g=no
  559. fi
  560. rm -f conftest*
  561. fi
  562. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  563. if test $ac_cv_prog_gcc_g = yes; then
  564. CFLAGS="-g -O"
  565. else
  566. CFLAGS="-O"
  567. fi
  568. fi
  569. else
  570. GCC=
  571. test "${CFLAGS+set}" = set || CFLAGS="-g"
  572. fi
  573. for ac_prog in $CCC c++ g++ gcc CC cxx
  574. do
  575. # Extract the first word of "$ac_prog", so it can be a program name with args.
  576. set dummy $ac_prog; ac_word=$2
  577. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  578. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  579. echo $ac_n "(cached) $ac_c" 1>&6
  580. else
  581. if test -n "$CXX"; then
  582. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  583. else
  584. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  585. for ac_dir in $PATH; do
  586. test -z "$ac_dir" && ac_dir=.
  587. if test -f $ac_dir/$ac_word; then
  588. ac_cv_prog_CXX="$ac_prog"
  589. break
  590. fi
  591. done
  592. IFS="$ac_save_ifs"
  593. fi
  594. fi
  595. CXX="$ac_cv_prog_CXX"
  596. if test -n "$CXX"; then
  597. echo "$ac_t""$CXX" 1>&6
  598. else
  599. echo "$ac_t""no" 1>&6
  600. fi
  601. test -n "$CXX" && break
  602. done
  603. test -n "$CXX" || CXX="gcc"
  604. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  605. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  606. echo $ac_n "(cached) $ac_c" 1>&6
  607. else
  608. cat > conftest.C <<EOF
  609. #ifdef __GNUC__
  610. yes;
  611. #endif
  612. EOF
  613. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  614. ac_cv_prog_gxx=yes
  615. else
  616. ac_cv_prog_gxx=no
  617. fi
  618. fi
  619. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  620. if test $ac_cv_prog_gxx = yes; then
  621. GXX=yes
  622. if test "${CXXFLAGS+set}" != set; then
  623. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  624. if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
  625. echo $ac_n "(cached) $ac_c" 1>&6
  626. else
  627. echo 'void f(){}' > conftest.cc
  628. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  629. ac_cv_prog_gxx_g=yes
  630. else
  631. ac_cv_prog_gxx_g=no
  632. fi
  633. rm -f conftest*
  634. fi
  635. echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
  636. if test $ac_cv_prog_gxx_g = yes; then
  637. CXXFLAGS="-g -O"
  638. else
  639. CXXFLAGS="-O"
  640. fi
  641. fi
  642. else
  643. GXX=
  644. test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  645. fi
  646. dpkg_archset=''
  647. # Check whether --with-arch or --without-arch was given.
  648. if test "${with_arch+set}" = set; then
  649. withval="$with_arch"
  650. if test "x$with_arch" = x; then
  651. { echo "configure: error: --with-arch requires an architecture name" 1>&2; exit 1; }
  652. fi
  653. dpkg_archset="${with_arch}"
  654. else
  655. echo $ac_n "checking system architecture""... $ac_c" 1>&6
  656. dpkg_archwhy=''
  657. if eval "test \"`echo '$''{'dpkg_cv_arch'+set}'`\" = set"; then
  658. echo $ac_n "(cached) $ac_c" 1>&6
  659. else
  660. dpkg_arch="`dpkg --print-architecture 2>/dev/null`"
  661. if test "x$dpkg_arch" != x; then
  662. dpkg_archwhy=" (obtained from dpkg)"
  663. elif test "${GCC-no}" = yes; then
  664. dpkg_arch="`${CC} --print-libgcc-file-name |
  665. sed -e 's,^.*/gcc-lib/,,; s,/libgcc\.a$,,; s,/[0-9.][0-9.]*$,,; s/-.*$//'`"
  666. if test "x`echo \"$dpkg_arch\" | tr -d a-z0-9-`" != x -o "x$dpkg_arch" = x
  667. then
  668. dpkg_arch=""
  669. dpkg_archwhy=" (bad output from --print-libgcc-file-name)"
  670. else
  671. dpkg_arch2="`awk '$1 == "'$dpkg_arch'" { print $2 }' $srcdir/archtable`"
  672. if test "x$dpkg_arch2" = "x$dpkg_arch"; then
  673. dpkg_archwhy=" (obtained from gcc)"
  674. elif test "x$dpkg_arch2" != x; then
  675. dpkg_archwhy=" (from gcc, canonical form of $dpkg_arch)"
  676. dpkg_arch="$dpkg_arch2"
  677. else
  678. dpkg_archwhy=" (from gcc, but not in archtable)"
  679. fi
  680. fi
  681. else
  682. dpkg_archwhy=''
  683. fi
  684. dpkg_cv_arch="$dpkg_arch"
  685. fi
  686. if test "x$dpkg_cv_arch" != x; then
  687. echo "$ac_t"""$dpkg_cv_arch$dpkg_archwhy"" 1>&6
  688. dpkg_archset="${dpkg_cv_arch}"
  689. else
  690. echo "$ac_t"""failed$dpkg_archwhy"" 1>&6
  691. fi
  692. fi
  693. if test "x$dpkg_archset" != x
  694. then
  695. cat >> confdefs.h <<EOF
  696. #define ARCHITECTURE "${dpkg_cv_arch}"
  697. EOF
  698. fi
  699. if test "x${dpkg_archset}" = xi386; then
  700. echo $ac_n "checking for i386 system/binary format""... $ac_c" 1>&6
  701. dpkg_libgcc="`$CC --print-libgcc-file-name 2>/dev/null`"
  702. case "$dpkg_libgcc" in
  703. *-linux*)
  704. if ar p "$dpkg_libgcc" __main.o 2>/dev/null | file - 2>/dev/null | grep ELF >/dev/null; then
  705. echo "$ac_t""Linux ELF" 1>&6
  706. dpkg_cc_binfmt=elf
  707. else
  708. echo "$ac_t""Linux a.out" 1>&6
  709. dpkg_cc_binfmt=a.out
  710. fi
  711. cat >> confdefs.h <<EOF
  712. #define ARCHBINFMT " $dpkg_cc_binfmt"
  713. EOF
  714. ;;
  715. *)
  716. echo "$ac_t""non-Linux" 1>&6
  717. ;;
  718. esac
  719. fi
  720. # Check whether --with-newdeb or --without-newdeb was given.
  721. if test "${with_newdeb+set}" = set; then
  722. withval="$with_newdeb"
  723. cat >> confdefs.h <<\EOF
  724. #define BUILDOLDPKGFORMAT 0
  725. EOF
  726. fi
  727. # Check whether --with-olddeb or --without-olddeb was given.
  728. if test "${with_olddeb+set}" = set; then
  729. withval="$with_olddeb"
  730. cat >> confdefs.h <<\EOF
  731. #define BUILDOLDPKGFORMAT 1
  732. EOF
  733. fi
  734. echo $ac_n "checking for /usr/bin/perl""... $ac_c" 1>&6
  735. if test -f /usr/bin/perl
  736. then
  737. echo "$ac_t""yes" 1>&6
  738. perlpath=/usr/bin/perl
  739. else
  740. echo "$ac_t""no" 1>&6
  741. # Extract the first word of "perl", so it can be a program name with args.
  742. set dummy perl; ac_word=$2
  743. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  744. if eval "test \"`echo '$''{'ac_cv_path_perlpath'+set}'`\" = set"; then
  745. echo $ac_n "(cached) $ac_c" 1>&6
  746. else
  747. case "$perlpath" in
  748. /*)
  749. ac_cv_path_perlpath="$perlpath" # Let the user override the test with a path.
  750. ;;
  751. *)
  752. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  753. for ac_dir in $PATH; do
  754. test -z "$ac_dir" && ac_dir=.
  755. if test -f $ac_dir/$ac_word; then
  756. ac_cv_path_perlpath="$ac_dir/$ac_word"
  757. break
  758. fi
  759. done
  760. IFS="$ac_save_ifs"
  761. ;;
  762. esac
  763. fi
  764. perlpath="$ac_cv_path_perlpath"
  765. if test -n "$perlpath"; then
  766. echo "$ac_t""$perlpath" 1>&6
  767. else
  768. echo "$ac_t""no" 1>&6
  769. fi
  770. fi
  771. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  772. # On Suns, sometimes $CPP names a directory.
  773. if test -n "$CPP" && test -d "$CPP"; then
  774. CPP=
  775. fi
  776. if test -z "$CPP"; then
  777. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  778. echo $ac_n "(cached) $ac_c" 1>&6
  779. else
  780. # This must be in double quotes, not single quotes, because CPP may get
  781. # substituted into the Makefile and "${CC-cc}" will confuse make.
  782. CPP="${CC-cc} -E"
  783. # On the NeXT, cc -E runs the code through the compiler's parser,
  784. # not just through cpp.
  785. cat > conftest.$ac_ext <<EOF
  786. #line 891 "configure"
  787. #include "confdefs.h"
  788. #include <assert.h>
  789. Syntax Error
  790. EOF
  791. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  792. { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  793. ac_err=`grep -v '^ *+' conftest.out`
  794. if test -z "$ac_err"; then
  795. :
  796. else
  797. echo "$ac_err" >&5
  798. rm -rf conftest*
  799. CPP="${CC-cc} -E -traditional-cpp"
  800. cat > conftest.$ac_ext <<EOF
  801. #line 906 "configure"
  802. #include "confdefs.h"
  803. #include <assert.h>
  804. Syntax Error
  805. EOF
  806. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  807. { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  808. ac_err=`grep -v '^ *+' conftest.out`
  809. if test -z "$ac_err"; then
  810. :
  811. else
  812. echo "$ac_err" >&5
  813. rm -rf conftest*
  814. CPP=/lib/cpp
  815. fi
  816. rm -f conftest*
  817. fi
  818. rm -f conftest*
  819. ac_cv_prog_CPP="$CPP"
  820. fi
  821. CPP="$ac_cv_prog_CPP"
  822. else
  823. ac_cv_prog_CPP="$CPP"
  824. fi
  825. echo "$ac_t""$CPP" 1>&6
  826. # If we cannot run a trivial program, we must be cross compiling.
  827. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  828. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  829. echo $ac_n "(cached) $ac_c" 1>&6
  830. else
  831. if test "$cross_compiling" = yes; then
  832. ac_cv_c_cross=yes
  833. else
  834. cat > conftest.$ac_ext <<EOF
  835. #line 941 "configure"
  836. #include "confdefs.h"
  837. main(){return(0);}
  838. EOF
  839. { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  840. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  841. ac_cv_c_cross=no
  842. else
  843. ac_cv_c_cross=yes
  844. fi
  845. fi
  846. rm -fr conftest*
  847. fi
  848. echo "$ac_t""$ac_cv_c_cross" 1>&6
  849. cross_compiling=$ac_cv_c_cross
  850. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  851. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  852. echo $ac_n "(cached) $ac_c" 1>&6
  853. else
  854. cat > conftest.$ac_ext <<EOF
  855. #line 963 "configure"
  856. #include "confdefs.h"
  857. #include <stdlib.h>
  858. #include <stdarg.h>
  859. #include <string.h>
  860. #include <float.h>
  861. EOF
  862. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  863. { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  864. ac_err=`grep -v '^ *+' conftest.out`
  865. if test -z "$ac_err"; then
  866. rm -rf conftest*
  867. ac_cv_header_stdc=yes
  868. else
  869. echo "$ac_err" >&5
  870. rm -rf conftest*
  871. ac_cv_header_stdc=no
  872. fi
  873. rm -f conftest*
  874. if test $ac_cv_header_stdc = yes; then
  875. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  876. cat > conftest.$ac_ext <<EOF
  877. #line 986 "configure"
  878. #include "confdefs.h"
  879. #include <string.h>
  880. EOF
  881. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  882. egrep "memchr" >/dev/null 2>&1; then
  883. :
  884. else
  885. rm -rf conftest*
  886. ac_cv_header_stdc=no
  887. fi
  888. rm -f conftest*
  889. fi
  890. if test $ac_cv_header_stdc = yes; then
  891. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  892. cat > conftest.$ac_ext <<EOF
  893. #line 1004 "configure"
  894. #include "confdefs.h"
  895. #include <stdlib.h>
  896. EOF
  897. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  898. egrep "free" >/dev/null 2>&1; then
  899. :
  900. else
  901. rm -rf conftest*
  902. ac_cv_header_stdc=no
  903. fi
  904. rm -f conftest*
  905. fi
  906. if test $ac_cv_header_stdc = yes; then
  907. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  908. if test "$cross_compiling" = yes; then
  909. :
  910. else
  911. cat > conftest.$ac_ext <<EOF
  912. #line 1025 "configure"
  913. #include "confdefs.h"
  914. #include <ctype.h>
  915. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  916. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  917. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  918. int main () { int i; for (i = 0; i < 256; i++)
  919. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  920. exit (0); }
  921. EOF
  922. { (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  923. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  924. :
  925. else
  926. ac_cv_header_stdc=no
  927. fi
  928. fi
  929. rm -fr conftest*
  930. fi
  931. fi
  932. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  933. if test $ac_cv_header_stdc = yes; then
  934. cat >> confdefs.h <<\EOF
  935. #define STDC_HEADERS 1
  936. EOF
  937. fi
  938. ac_aux_dir=
  939. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  940. if test -f $ac_dir/install-sh; then
  941. ac_aux_dir=$ac_dir
  942. ac_install_sh="$ac_aux_dir/install-sh -c"
  943. break
  944. elif test -f $ac_dir/install.sh; then
  945. ac_aux_dir=$ac_dir
  946. ac_install_sh="$ac_aux_dir/install.sh -c"
  947. break
  948. fi
  949. done
  950. if test -z "$ac_aux_dir"; then
  951. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  952. fi
  953. ac_config_guess=$ac_aux_dir/config.guess
  954. ac_config_sub=$ac_aux_dir/config.sub
  955. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  956. # Find a good install program. We prefer a C program (faster),
  957. # so one script is as good as another. But avoid the broken or
  958. # incompatible versions:
  959. # SysV /etc/install, /usr/sbin/install
  960. # SunOS /usr/etc/install
  961. # IRIX /sbin/install
  962. # AIX /bin/install
  963. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  964. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  965. # ./install, which can be erroneously created by make from ./install.sh.
  966. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  967. if test -z "$INSTALL"; then
  968. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  969. echo $ac_n "(cached) $ac_c" 1>&6
  970. else
  971. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  972. for ac_dir in $PATH; do
  973. # Account for people who put trailing slashes in PATH elements.
  974. case "$ac_dir/" in
  975. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  976. *)
  977. # OSF1 and SCO ODT 3.0 have their own names for install.
  978. for ac_prog in ginstall installbsd scoinst install; do
  979. if test -f $ac_dir/$ac_prog; then
  980. if test $ac_prog = install &&
  981. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  982. # AIX install. It has an incompatible calling convention.
  983. # OSF/1 installbsd also uses dspmsg, but is usable.
  984. :
  985. else
  986. ac_cv_path_install="$ac_dir/$ac_prog -c"
  987. break 2
  988. fi
  989. fi
  990. done
  991. ;;
  992. esac
  993. done
  994. IFS="$ac_save_ifs"
  995. fi
  996. if test "${ac_cv_path_install+set}" = set; then
  997. INSTALL="$ac_cv_path_install"
  998. else
  999. # As a last resort, use the slow shell script. We don't cache a
  1000. # path for INSTALL within a source directory, because that will
  1001. # break other packages using the cache if that directory is
  1002. # removed, or if the path is relative.
  1003. INSTALL="$ac_install_sh"
  1004. fi
  1005. fi
  1006. echo "$ac_t""$INSTALL" 1>&6
  1007. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1008. # It thinks the first close brace ends the variable substitution.
  1009. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1010. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1011. # Extract the first word of "ranlib", so it can be a program name with args.
  1012. set dummy ranlib; ac_word=$2
  1013. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1014. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1015. echo $ac_n "(cached) $ac_c" 1>&6
  1016. else
  1017. if test -n "$RANLIB"; then
  1018. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1019. else
  1020. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1021. for ac_dir in $PATH; do
  1022. test -z "$ac_dir" && ac_dir=.
  1023. if test -f $ac_dir/$ac_word; then
  1024. ac_cv_prog_RANLIB="ranlib"
  1025. break
  1026. fi
  1027. done
  1028. IFS="$ac_save_ifs"
  1029. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1030. fi
  1031. fi
  1032. RANLIB="$ac_cv_prog_RANLIB"
  1033. if test -n "$RANLIB"; then
  1034. echo "$ac_t""$RANLIB" 1>&6
  1035. else
  1036. echo "$ac_t""no" 1>&6
  1037. fi
  1038. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1039. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1040. echo $ac_n "(cached) $ac_c" 1>&6
  1041. else
  1042. cat > conftest.$ac_ext <<EOF
  1043. #line 1166 "configure"
  1044. #include "confdefs.h"
  1045. #include <sys/types.h>
  1046. #if STDC_HEADERS
  1047. #include <stdlib.h>
  1048. #endif
  1049. EOF
  1050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1051. egrep "mode_t" >/dev/null 2>&1; then
  1052. rm -rf conftest*
  1053. ac_cv_type_mode_t=yes
  1054. else
  1055. rm -rf conftest*
  1056. ac_cv_type_mode_t=no
  1057. fi
  1058. rm -f conftest*
  1059. fi
  1060. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1061. if test $ac_cv_type_mode_t = no; then
  1062. cat >> confdefs.h <<\EOF
  1063. #define mode_t int
  1064. EOF
  1065. fi
  1066. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1067. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1068. echo $ac_n "(cached) $ac_c" 1>&6
  1069. else
  1070. cat > conftest.$ac_ext <<EOF
  1071. #line 1197 "configure"
  1072. #include "confdefs.h"
  1073. #include <sys/types.h>
  1074. #if STDC_HEADERS
  1075. #include <stdlib.h>
  1076. #endif
  1077. EOF
  1078. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1079. egrep "pid_t" >/dev/null 2>&1; then
  1080. rm -rf conftest*
  1081. ac_cv_type_pid_t=yes
  1082. else
  1083. rm -rf conftest*
  1084. ac_cv_type_pid_t=no
  1085. fi
  1086. rm -f conftest*
  1087. fi
  1088. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1089. if test $ac_cv_type_pid_t = no; then
  1090. cat >> confdefs.h <<\EOF
  1091. #define pid_t int
  1092. EOF
  1093. fi
  1094. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1095. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1096. echo $ac_n "(cached) $ac_c" 1>&6
  1097. else
  1098. cat > conftest.$ac_ext <<EOF
  1099. #line 1228 "configure"
  1100. #include "confdefs.h"
  1101. #include <sys/types.h>
  1102. #if STDC_HEADERS
  1103. #include <stdlib.h>
  1104. #endif
  1105. EOF
  1106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1107. egrep "size_t" >/dev/null 2>&1; then
  1108. rm -rf conftest*
  1109. ac_cv_type_size_t=yes
  1110. else
  1111. rm -rf conftest*
  1112. ac_cv_type_size_t=no
  1113. fi
  1114. rm -f conftest*
  1115. fi
  1116. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1117. if test $ac_cv_type_size_t = no; then
  1118. cat >> confdefs.h <<\EOF
  1119. #define size_t unsigned
  1120. EOF
  1121. fi
  1122. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1123. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1124. echo $ac_n "(cached) $ac_c" 1>&6
  1125. else
  1126. cat > conftest.$ac_ext <<EOF
  1127. #line 1259 "configure"
  1128. #include "confdefs.h"
  1129. /* System header to define __stub macros and hopefully few prototypes,
  1130. which can conflict with char vprintf(); below. */
  1131. #include <assert.h>
  1132. /* Override any gcc2 internal prototype to avoid an error. */
  1133. /* We use char because int might match the return type of a gcc2
  1134. builtin and then its argument prototype would still apply. */
  1135. char vprintf();
  1136. int main() { return 0; }
  1137. int t() {
  1138. /* The GNU C library defines this for functions which it implements
  1139. to always fail with ENOSYS. Some functions are actually named
  1140. something starting with __ and the normal name is an alias. */
  1141. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1142. choke me
  1143. #else
  1144. vprintf();
  1145. #endif
  1146. ; return 0; }
  1147. EOF
  1148. if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1149. rm -rf conftest*
  1150. eval "ac_cv_func_vprintf=yes"
  1151. else
  1152. rm -rf conftest*
  1153. eval "ac_cv_func_vprintf=no"
  1154. fi
  1155. rm -f conftest*
  1156. fi
  1157. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1158. echo "$ac_t""yes" 1>&6
  1159. cat >> confdefs.h <<\EOF
  1160. #define HAVE_VPRINTF 1
  1161. EOF
  1162. else
  1163. echo "$ac_t""no" 1>&6
  1164. fi
  1165. if test "$ac_cv_func_vprintf" != yes; then
  1166. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1167. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1168. echo $ac_n "(cached) $ac_c" 1>&6
  1169. else
  1170. cat > conftest.$ac_ext <<EOF
  1171. #line 1309 "configure"
  1172. #include "confdefs.h"
  1173. /* System header to define __stub macros and hopefully few prototypes,
  1174. which can conflict with char _doprnt(); below. */
  1175. #include <assert.h>
  1176. /* Override any gcc2 internal prototype to avoid an error. */
  1177. /* We use char because int might match the return type of a gcc2
  1178. builtin and then its argument prototype would still apply. */
  1179. char _doprnt();
  1180. int main() { return 0; }
  1181. int t() {
  1182. /* The GNU C library defines this for functions which it implements
  1183. to always fail with ENOSYS. Some functions are actually named
  1184. something starting with __ and the normal name is an alias. */
  1185. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1186. choke me
  1187. #else
  1188. _doprnt();
  1189. #endif
  1190. ; return 0; }
  1191. EOF
  1192. if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1193. rm -rf conftest*
  1194. eval "ac_cv_func__doprnt=yes"
  1195. else
  1196. rm -rf conftest*
  1197. eval "ac_cv_func__doprnt=no"
  1198. fi
  1199. rm -f conftest*
  1200. fi
  1201. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1202. echo "$ac_t""yes" 1>&6
  1203. cat >> confdefs.h <<\EOF
  1204. #define HAVE_DOPRNT 1
  1205. EOF
  1206. else
  1207. echo "$ac_t""no" 1>&6
  1208. fi
  1209. fi
  1210. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1211. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1212. echo $ac_n "(cached) $ac_c" 1>&6
  1213. else
  1214. cat > conftest.$ac_ext <<EOF
  1215. #line 1360 "configure"
  1216. #include "confdefs.h"
  1217. int main() { return 0; }
  1218. int t() {
  1219. /* Ultrix mips cc rejects this. */
  1220. typedef int charset[2]; const charset x;
  1221. /* SunOS 4.1.1 cc rejects this. */
  1222. char const *const *ccp;
  1223. char **p;
  1224. /* NEC SVR4.0.2 mips cc rejects this. */
  1225. struct point {int x, y;};
  1226. static struct point const zero = {0,0};
  1227. /* AIX XL C 1.02.0.0 rejects this.
  1228. It does not let you subtract one const X* pointer from another in an arm
  1229. of an if-expression whose if-part is not a constant expression */
  1230. const char *g = "string";
  1231. ccp = &g + (g ? g-g : 0);
  1232. /* HPUX 7.0 cc rejects these. */
  1233. ++ccp;
  1234. p = (char**) ccp;
  1235. ccp = (char const *const *) p;
  1236. { /* SCO 3.2v4 cc rejects this. */
  1237. char *t;
  1238. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1239. *t++ = 0;
  1240. }
  1241. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1242. int x[] = {25, 17};
  1243. const int *foo = &x[0];
  1244. ++foo;
  1245. }
  1246. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1247. typedef const int *iptr;
  1248. iptr p = 0;
  1249. ++p;
  1250. }
  1251. { /* AIX XL C 1.02.0.0 rejects this saying
  1252. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1253. struct s { int j; const int *ap[3]; };
  1254. struct s *b; b->j = 5;
  1255. }
  1256. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1257. const int foo = 10;
  1258. }
  1259. ; return 0; }
  1260. EOF
  1261. if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1262. rm -rf conftest*
  1263. ac_cv_c_const=yes
  1264. else
  1265. rm -rf conftest*
  1266. ac_cv_c_const=no
  1267. fi
  1268. rm -f conftest*
  1269. fi
  1270. echo "$ac_t""$ac_cv_c_const" 1>&6
  1271. if test $ac_cv_c_const = no; then
  1272. cat >> confdefs.h <<\EOF
  1273. #define const
  1274. EOF
  1275. fi
  1276. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1277. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1278. echo $ac_n "(cached) $ac_c" 1>&6
  1279. else
  1280. ac_cv_c_bigendian=unknown
  1281. # See if sys/param.h defines the BYTE_ORDER macro.
  1282. cat > conftest.$ac_ext <<EOF
  1283. #line 1436 "configure"
  1284. #include "confdefs.h"
  1285. #include <sys/types.h>
  1286. #include <sys/param.h>
  1287. int main() { return 0; }
  1288. int t() {
  1289. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1290. bogus endian macros
  1291. #endif
  1292. ; return 0; }
  1293. EOF
  1294. if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1295. rm -rf conftest*
  1296. # It does; now see whether it defined to BIG_ENDIAN or not.
  1297. cat > conftest.$ac_ext <<EOF
  1298. #line 1452 "configure"
  1299. #include "confdefs.h"
  1300. #include <sys/types.h>
  1301. #include <sys/param.h>
  1302. int main() { return 0; }
  1303. int t() {
  1304. #if BYTE_ORDER != BIG_ENDIAN
  1305. not big endian
  1306. #endif
  1307. ; return 0; }
  1308. EOF
  1309. if { (eval echo configure:1464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1310. rm -rf conftest*
  1311. ac_cv_c_bigendian=yes
  1312. else
  1313. rm -rf conftest*
  1314. ac_cv_c_bigendian=no
  1315. fi
  1316. rm -f conftest*
  1317. fi
  1318. rm -f conftest*
  1319. if test $ac_cv_c_bigendian = unknown; then
  1320. if test "$cross_compiling" = yes; then
  1321. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1322. else
  1323. cat > conftest.$ac_ext <<EOF
  1324. #line 1481 "configure"
  1325. #include "confdefs.h"
  1326. main () {
  1327. /* Are we little or big endian? From Harbison&Steele. */
  1328. union
  1329. {
  1330. long l;
  1331. char c[sizeof (long)];
  1332. } u;
  1333. u.l = 1;
  1334. exit (u.c[sizeof (long) - 1] == 1);
  1335. }
  1336. EOF
  1337. { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1338. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1339. ac_cv_c_bigendian=no
  1340. else
  1341. ac_cv_c_bigendian=yes
  1342. fi
  1343. fi
  1344. rm -fr conftest*
  1345. fi
  1346. fi
  1347. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1348. if test $ac_cv_c_bigendian = yes; then
  1349. cat >> confdefs.h <<\EOF
  1350. #define WORDS_BIGENDIAN 1
  1351. EOF
  1352. fi
  1353. echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
  1354. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
  1355. echo $ac_n "(cached) $ac_c" 1>&6
  1356. else
  1357. if test "$cross_compiling" = yes; then
  1358. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1359. else
  1360. cat > conftest.$ac_ext <<EOF
  1361. #line 1521 "configure"
  1362. #include "confdefs.h"
  1363. #include <stdio.h>
  1364. main()
  1365. {
  1366. FILE *f=fopen("conftestval", "w");
  1367. if (!f) exit(1);
  1368. fprintf(f, "%d\n", sizeof(unsigned long));
  1369. exit(0);
  1370. }
  1371. EOF
  1372. { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1373. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1374. ac_cv_sizeof_unsigned_long=`cat conftestval`
  1375. else
  1376. ac_cv_sizeof_unsigned_long=0
  1377. fi
  1378. fi
  1379. rm -fr conftest*
  1380. fi
  1381. echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
  1382. cat >> confdefs.h <<EOF
  1383. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  1384. EOF
  1385. echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  1386. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  1387. echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389. if test "$cross_compiling" = yes; then
  1390. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1391. else
  1392. cat > conftest.$ac_ext <<EOF
  1393. #line 1555 "configure"
  1394. #include "confdefs.h"
  1395. #include <stdio.h>
  1396. main()
  1397. {
  1398. FILE *f=fopen("conftestval", "w");
  1399. if (!f) exit(1);
  1400. fprintf(f, "%d\n", sizeof(unsigned int));
  1401. exit(0);
  1402. }
  1403. EOF
  1404. { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1405. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1406. ac_cv_sizeof_unsigned_int=`cat conftestval`
  1407. else
  1408. ac_cv_sizeof_unsigned_int=0
  1409. fi
  1410. fi
  1411. rm -fr conftest*
  1412. fi
  1413. echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  1414. cat >> confdefs.h <<EOF
  1415. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  1416. EOF
  1417. for ac_func in unsetenv alphasort scandir strerror strsignal strtoul vsnprintf
  1418. do
  1419. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1420. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1421. echo $ac_n "(cached) $ac_c" 1>&6
  1422. else
  1423. cat > conftest.$ac_ext <<EOF
  1424. #line 1588 "configure"
  1425. #include "confdefs.h"
  1426. /* System header to define __stub macros and hopefully few prototypes,
  1427. which can conflict with char $ac_func(); below. */
  1428. #include <assert.h>
  1429. /* Override any gcc2 internal prototype to avoid an error. */
  1430. /* We use char because int might match the return type of a gcc2
  1431. builtin and then its argument prototype would still apply. */
  1432. char $ac_func();
  1433. int main() { return 0; }
  1434. int t() {
  1435. /* The GNU C library defines this for functions which it implements
  1436. to always fail with ENOSYS. Some functions are actually named
  1437. something starting with __ and the normal name is an alias. */
  1438. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1439. choke me
  1440. #else
  1441. $ac_func();
  1442. #endif
  1443. ; return 0; }
  1444. EOF
  1445. if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1446. rm -rf conftest*
  1447. eval "ac_cv_func_$ac_func=yes"
  1448. else
  1449. rm -rf conftest*
  1450. eval "ac_cv_func_$ac_func=no"
  1451. fi
  1452. rm -f conftest*
  1453. fi
  1454. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1455. echo "$ac_t""yes" 1>&6
  1456. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1457. cat >> confdefs.h <<EOF
  1458. #define $ac_tr_func 1
  1459. EOF
  1460. else
  1461. echo "$ac_t""no" 1>&6
  1462. fi
  1463. done
  1464. for ac_hdr in sys/cdefs.h
  1465. do
  1466. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1467. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1468. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1469. echo $ac_n "(cached) $ac_c" 1>&6
  1470. else
  1471. cat > conftest.$ac_ext <<EOF
  1472. #line 1642 "configure"
  1473. #include "confdefs.h"
  1474. #include <$ac_hdr>
  1475. EOF
  1476. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1477. { (eval echo configure:1647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1478. ac_err=`grep -v '^ *+' conftest.out`
  1479. if test -z "$ac_err"; then
  1480. rm -rf conftest*
  1481. eval "ac_cv_header_$ac_safe=yes"
  1482. else
  1483. echo "$ac_err" >&5
  1484. rm -rf conftest*
  1485. eval "ac_cv_header_$ac_safe=no"
  1486. fi
  1487. rm -f conftest*
  1488. fi
  1489. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1490. echo "$ac_t""yes" 1>&6
  1491. ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1492. cat >> confdefs.h <<EOF
  1493. #define $ac_tr_hdr 1
  1494. EOF
  1495. else
  1496. echo "$ac_t""no" 1>&6
  1497. fi
  1498. done
  1499. echo $ac_n "checking for sysinfo""... $ac_c" 1>&6
  1500. if eval "test \"`echo '$''{'ac_cv_func_sysinfo'+set}'`\" = set"; then
  1501. echo $ac_n "(cached) $ac_c" 1>&6
  1502. else
  1503. cat > conftest.$ac_ext <<EOF
  1504. #line 1677 "configure"
  1505. #include "confdefs.h"
  1506. /* System header to define __stub macros and hopefully few prototypes,
  1507. which can conflict with char sysinfo(); below. */
  1508. #include <assert.h>
  1509. /* Override any gcc2 internal prototype to avoid an error. */
  1510. /* We use char because int might match the return type of a gcc2
  1511. builtin and then its argument prototype would still apply. */
  1512. char sysinfo();
  1513. int main() { return 0; }
  1514. int t() {
  1515. /* The GNU C library defines this for functions which it implements
  1516. to always fail with ENOSYS. Some functions are actually named
  1517. something starting with __ and the normal name is an alias. */
  1518. #if defined (__stub_sysinfo) || defined (__stub___sysinfo)
  1519. choke me
  1520. #else
  1521. sysinfo();
  1522. #endif
  1523. ; return 0; }
  1524. EOF
  1525. if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1526. rm -rf conftest*
  1527. eval "ac_cv_func_sysinfo=yes"
  1528. else
  1529. rm -rf conftest*
  1530. eval "ac_cv_func_sysinfo=no"
  1531. fi
  1532. rm -f conftest*
  1533. fi
  1534. if eval "test \"`echo '$ac_cv_func_'sysinfo`\" = yes"; then
  1535. echo "$ac_t""yes" 1>&6
  1536. cat >> confdefs.h <<\EOF
  1537. #define HAVE_SYSINFO 1
  1538. EOF
  1539. else
  1540. echo "$ac_t""no" 1>&6
  1541. echo $ac_n "checking __NR_sysinfo""... $ac_c" 1>&6
  1542. cat > conftest.$ac_ext <<EOF
  1543. #line 1721 "configure"
  1544. #include "confdefs.h"
  1545. #include <linux/sys.h>
  1546. #include <linux/kernel.h>
  1547. #include <linux/unistd.h>
  1548. #ifdef __NR_sysinfo
  1549. yes
  1550. #endif
  1551. EOF
  1552. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1553. egrep "yes" >/dev/null 2>&1; then
  1554. rm -rf conftest*
  1555. echo "$ac_t""yes; tsk tsk - get your libc fixed." 1>&6
  1556. cat >> confdefs.h <<\EOF
  1557. #define HAVE_NRSYSINFO 1
  1558. EOF
  1559. else
  1560. rm -rf conftest*
  1561. echo "$ac_t""no" 1>&6
  1562. echo "configure: warning: sysinfo missing; compilation of dpkg proper may fail." 1>&2
  1563. fi
  1564. rm -f conftest*
  1565. fi
  1566. if test "${GCC-no}" = yes; then
  1567. CFLAGS=-O2; OPTCFLAGS=-O3
  1568. else
  1569. CFLAGS=-O
  1570. fi
  1571. echo $ac_n "checking your C compiler""... $ac_c" 1>&6
  1572. if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
  1573. echo $ac_n "(cached) $ac_c" 1>&6
  1574. else
  1575. cat > conftest.$ac_ext <<EOF
  1576. #line 1766 "configure"
  1577. #include "confdefs.h"
  1578. #include <string.h>
  1579. int main() { return 0; }
  1580. int t() {
  1581. strcmp("a","b")
  1582. ; return 0; }
  1583. EOF
  1584. if { (eval echo configure:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1585. rm -rf conftest*
  1586. dpkg_cv_c_works=yes
  1587. else
  1588. rm -rf conftest*
  1589. dpkg_cv_c_works=no
  1590. fi
  1591. rm -f conftest*
  1592. fi
  1593. if test "x$dpkg_cv_c_works" = xyes; then
  1594. true
  1595. echo "$ac_t""works" 1>&6
  1596. else
  1597. true
  1598. echo "$ac_t""broken" 1>&6
  1599. { echo "configure: error: C compiler is broken" 1>&2; exit 1; }
  1600. fi
  1601. echo $ac_n "checking alphasort declaration""... $ac_c" 1>&6
  1602. if eval "test \"`echo '$''{'dpkg_cv_header_alphasort'+set}'`\" = set"; then
  1603. echo $ac_n "(cached) $ac_c" 1>&6
  1604. else
  1605. cat > conftest.$ac_ext <<EOF
  1606. #line 1803 "configure"
  1607. #include "confdefs.h"
  1608. #include <sys/types.h>
  1609. #include <sys/dir.h>
  1610. int main() { return 0; }
  1611. int t() {
  1612. alphasort
  1613. ; return 0; }
  1614. EOF
  1615. if { (eval echo configure:1814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1616. rm -rf conftest*
  1617. dpkg_cv_header_alphasort=yes
  1618. else
  1619. rm -rf conftest*
  1620. dpkg_cv_header_alphasort=no
  1621. fi
  1622. rm -f conftest*
  1623. fi
  1624. if test "x$dpkg_cv_header_alphasort" = xyes; then
  1625. true
  1626. echo "$ac_t""yes" 1>&6
  1627. cat >> confdefs.h <<\EOF
  1628. #define HAVE_ALPHASORT_DECLARATION 1
  1629. EOF
  1630. else
  1631. true
  1632. echo "$ac_t""no" 1>&6
  1633. fi
  1634. echo $ac_n "checking inlines""... $ac_c" 1>&6
  1635. if eval "test \"`echo '$''{'dpkg_cv_c_inline'+set}'`\" = set"; then
  1636. echo $ac_n "(cached) $ac_c" 1>&6
  1637. else
  1638. cat > conftest.$ac_ext <<EOF
  1639. #line 1846 "configure"
  1640. #include "confdefs.h"
  1641. int main() { return 0; }
  1642. int t() {
  1643. } inline int foo (int x) {
  1644. ; return 0; }
  1645. EOF
  1646. if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1647. rm -rf conftest*
  1648. dpkg_cv_c_inline=yes
  1649. else
  1650. rm -rf conftest*
  1651. dpkg_cv_c_inline=no
  1652. fi
  1653. rm -f conftest*
  1654. fi
  1655. if test "x$dpkg_cv_c_inline" = xyes; then
  1656. true
  1657. echo "$ac_t""yes" 1>&6
  1658. cat >> confdefs.h <<\EOF
  1659. #define HAVE_INLINE 1
  1660. EOF
  1661. else
  1662. true
  1663. echo "$ac_t""no" 1>&6
  1664. fi
  1665. echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
  1666. if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
  1667. echo $ac_n "(cached) $ac_c" 1>&6
  1668. else
  1669. cat > conftest.$ac_ext <<EOF
  1670. #line 1886 "configure"
  1671. #include "confdefs.h"
  1672. int main() { return 0; }
  1673. int t() {
  1674. extern int testfunction(int x) __attribute__((,,))
  1675. ; return 0; }
  1676. EOF
  1677. if { (eval echo configure:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1678. rm -rf conftest*
  1679. dpkg_cv_c_attribute_supported=yes
  1680. else
  1681. rm -rf conftest*
  1682. dpkg_cv_c_attribute_supported=no
  1683. fi
  1684. rm -f conftest*
  1685. fi
  1686. if test "x$dpkg_cv_c_attribute_supported" = xyes; then
  1687. true
  1688. echo "$ac_t""yes" 1>&6
  1689. cat >> confdefs.h <<\EOF
  1690. #define HAVE_GNUC25_ATTRIB 1
  1691. EOF
  1692. echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
  1693. if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
  1694. echo $ac_n "(cached) $ac_c" 1>&6
  1695. else
  1696. cat > conftest.$ac_ext <<EOF
  1697. #line 1920 "configure"
  1698. #include "confdefs.h"
  1699. int main() { return 0; }
  1700. int t() {
  1701. extern int testfunction(int x) __attribute__((noreturn))
  1702. ; return 0; }
  1703. EOF
  1704. if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1705. rm -rf conftest*
  1706. dpkg_cv_c_attribute_noreturn=yes
  1707. else
  1708. rm -rf conftest*
  1709. dpkg_cv_c_attribute_noreturn=no
  1710. fi
  1711. rm -f conftest*
  1712. fi
  1713. if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
  1714. true
  1715. echo "$ac_t""yes" 1>&6
  1716. cat >> confdefs.h <<\EOF
  1717. #define HAVE_GNUC25_NORETURN 1
  1718. EOF
  1719. else
  1720. true
  1721. echo "$ac_t""no" 1>&6
  1722. fi
  1723. echo $ac_n "checking __attribute__((const))""... $ac_c" 1>&6
  1724. if eval "test \"`echo '$''{'dpkg_cv_c_attribute_const'+set}'`\" = set"; then
  1725. echo $ac_n "(cached) $ac_c" 1>&6
  1726. else
  1727. cat > conftest.$ac_ext <<EOF
  1728. #line 1959 "configure"
  1729. #include "confdefs.h"
  1730. int main() { return 0; }
  1731. int t() {
  1732. extern int testfunction(int x) __attribute__((const))
  1733. ; return 0; }
  1734. EOF
  1735. if { (eval echo configure:1967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1736. rm -rf conftest*
  1737. dpkg_cv_c_attribute_const=yes
  1738. else
  1739. rm -rf conftest*
  1740. dpkg_cv_c_attribute_const=no
  1741. fi
  1742. rm -f conftest*
  1743. fi
  1744. if test "x$dpkg_cv_c_attribute_const" = xyes; then
  1745. true
  1746. echo "$ac_t""yes" 1>&6
  1747. cat >> confdefs.h <<\EOF
  1748. #define HAVE_GNUC25_CONST 1
  1749. EOF
  1750. else
  1751. true
  1752. echo "$ac_t""no" 1>&6
  1753. fi
  1754. echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
  1755. if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
  1756. echo $ac_n "(cached) $ac_c" 1>&6
  1757. else
  1758. cat > conftest.$ac_ext <<EOF
  1759. #line 1998 "configure"
  1760. #include "confdefs.h"
  1761. int main() { return 0; }
  1762. int t() {
  1763. extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
  1764. ; return 0; }
  1765. EOF
  1766. if { (eval echo configure:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1767. rm -rf conftest*
  1768. dpkg_cv_attribute_format=yes
  1769. else
  1770. rm -rf conftest*
  1771. dpkg_cv_attribute_format=no
  1772. fi
  1773. rm -f conftest*
  1774. fi
  1775. if test "x$dpkg_cv_attribute_format" = xyes; then
  1776. true
  1777. echo "$ac_t""yes" 1>&6
  1778. cat >> confdefs.h <<\EOF
  1779. #define HAVE_GNUC25_PRINTFFORMAT 1
  1780. EOF
  1781. else
  1782. true
  1783. echo "$ac_t""no" 1>&6
  1784. fi
  1785. else
  1786. true
  1787. echo "$ac_t""no" 1>&6
  1788. fi
  1789. CWARNS=""
  1790. echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
  1791. if test "${GCC-no}" = yes
  1792. then
  1793. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
  1794. echo $ac_n "(cached) $ac_c" 1>&6
  1795. else
  1796. oldcflags="${CFLAGS-}"
  1797. CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
  1798. cat > conftest.$ac_ext <<EOF
  1799. #line 2052 "configure"
  1800. #include "confdefs.h"
  1801. #include <string.h>
  1802. #include <stdio.h>
  1803. int main() { return 0; }
  1804. int t() {
  1805. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1806. ; return 0; }
  1807. EOF
  1808. if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1809. rm -rf conftest*
  1810. dpkg_cv_c_gcc_warn_all=yes
  1811. else
  1812. rm -rf conftest*
  1813. dpkg_cv_c_gcc_warn_all=no
  1814. fi
  1815. rm -f conftest*
  1816. CFLAGS="${oldcflags}"
  1817. fi
  1818. if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
  1819. CWARNS="${CWARNS} -Wall -Wno-implicit"
  1820. echo "$ac_t""ok" 1>&6
  1821. else
  1822. dpkg_cv_c_gcc_warn_all=''
  1823. echo "$ac_t""no" 1>&6
  1824. fi
  1825. else
  1826. echo "$ac_t""no" 1>&6
  1827. fi
  1828. echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
  1829. if test "${GCC-no}" = yes
  1830. then
  1831. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
  1832. echo $ac_n "(cached) $ac_c" 1>&6
  1833. else
  1834. oldcflags="${CFLAGS-}"
  1835. CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
  1836. cat > conftest.$ac_ext <<EOF
  1837. #line 2099 "configure"
  1838. #include "confdefs.h"
  1839. #include <string.h>
  1840. #include <stdio.h>
  1841. int main() { return 0; }
  1842. int t() {
  1843. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1844. ; return 0; }
  1845. EOF
  1846. if { (eval echo configure:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1847. rm -rf conftest*
  1848. dpkg_cv_c_gcc_warn_writestrings=yes
  1849. else
  1850. rm -rf conftest*
  1851. dpkg_cv_c_gcc_warn_writestrings=no
  1852. fi
  1853. rm -f conftest*
  1854. CFLAGS="${oldcflags}"
  1855. fi
  1856. if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
  1857. CWARNS="${CWARNS} -Wwrite-strings"
  1858. echo "$ac_t""ok" 1>&6
  1859. else
  1860. dpkg_cv_c_gcc_warn_writestrings=''
  1861. echo "$ac_t""no" 1>&6
  1862. fi
  1863. else
  1864. echo "$ac_t""no" 1>&6
  1865. fi
  1866. echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
  1867. if test "${GCC-no}" = yes
  1868. then
  1869. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
  1870. echo $ac_n "(cached) $ac_c" 1>&6
  1871. else
  1872. oldcflags="${CFLAGS-}"
  1873. CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
  1874. cat > conftest.$ac_ext <<EOF
  1875. #line 2146 "configure"
  1876. #include "confdefs.h"
  1877. #include <string.h>
  1878. #include <stdio.h>
  1879. int main() { return 0; }
  1880. int t() {
  1881. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1882. ; return 0; }
  1883. EOF
  1884. if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1885. rm -rf conftest*
  1886. dpkg_cv_c_gcc_warn_pointerarith=yes
  1887. else
  1888. rm -rf conftest*
  1889. dpkg_cv_c_gcc_warn_pointerarith=no
  1890. fi
  1891. rm -f conftest*
  1892. CFLAGS="${oldcflags}"
  1893. fi
  1894. if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
  1895. CWARNS="${CWARNS} -Wpointer-arith"
  1896. echo "$ac_t""ok" 1>&6
  1897. else
  1898. dpkg_cv_c_gcc_warn_pointerarith=''
  1899. echo "$ac_t""no" 1>&6
  1900. fi
  1901. else
  1902. echo "$ac_t""no" 1>&6
  1903. fi
  1904. echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
  1905. if test "${GCC-no}" = yes
  1906. then
  1907. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
  1908. echo $ac_n "(cached) $ac_c" 1>&6
  1909. else
  1910. oldcflags="${CFLAGS-}"
  1911. CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
  1912. cat > conftest.$ac_ext <<EOF
  1913. #line 2193 "configure"
  1914. #include "confdefs.h"
  1915. #include <string.h>
  1916. #include <stdio.h>
  1917. int main() { return 0; }
  1918. int t() {
  1919. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1920. ; return 0; }
  1921. EOF
  1922. if { (eval echo configure:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1923. rm -rf conftest*
  1924. dpkg_cv_c_gcc_warn_implicit=yes
  1925. else
  1926. rm -rf conftest*
  1927. dpkg_cv_c_gcc_warn_implicit=no
  1928. fi
  1929. rm -f conftest*
  1930. CFLAGS="${oldcflags}"
  1931. fi
  1932. if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
  1933. CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
  1934. echo "$ac_t""ok" 1>&6
  1935. else
  1936. dpkg_cv_c_gcc_warn_implicit=''
  1937. echo "$ac_t""no" 1>&6
  1938. fi
  1939. else
  1940. echo "$ac_t""no" 1>&6
  1941. fi
  1942. if test "${GCC-no}" = yes; then
  1943. CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
  1944. fi
  1945. trap '' 1 2 15
  1946. cat > confcache <<\EOF
  1947. # This file is a shell script that caches the results of configure
  1948. # tests run on this system so they can be shared between configure
  1949. # scripts and configure runs. It is not useful on other systems.
  1950. # If it contains results you don't want to keep, you may remove or edit it.
  1951. #
  1952. # By default, configure uses ./config.cache as the cache file,
  1953. # creating it if it does not exist already. You can give configure
  1954. # the --cache-file=FILE option to use a different cache file; that is
  1955. # what configure does when it calls configure scripts in
  1956. # subdirectories, so they share the cache.
  1957. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1958. # config.status only pays attention to the cache file if you give it the
  1959. # --recheck option to rerun configure.
  1960. #
  1961. EOF
  1962. # Ultrix sh set writes to stderr and can't be redirected directly,
  1963. # and sets the high bit in the cache file unless we assign to the vars.
  1964. (set) 2>&1 |
  1965. sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1966. >> confcache
  1967. if cmp -s $cache_file confcache; then
  1968. :
  1969. else
  1970. if test -w $cache_file; then
  1971. echo "updating cache $cache_file"
  1972. cat confcache > $cache_file
  1973. else
  1974. echo "not updating unwritable cache $cache_file"
  1975. fi
  1976. fi
  1977. rm -f confcache
  1978. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1979. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1980. # Let make expand exec_prefix.
  1981. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1982. # Any assignment to VPATH causes Sun make to only execute
  1983. # the first set of double-colon rules, so remove it if not needed.
  1984. # If there is a colon in the path, we need to keep it.
  1985. if test "x$srcdir" = x.; then
  1986. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1987. fi
  1988. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1989. DEFS=-DHAVE_CONFIG_H
  1990. # Without the "./", some shells look in PATH for config.status.
  1991. : ${CONFIG_STATUS=./config.status}
  1992. echo creating $CONFIG_STATUS
  1993. rm -f $CONFIG_STATUS
  1994. cat > $CONFIG_STATUS <<EOF
  1995. #! /bin/sh
  1996. # Generated automatically by configure.
  1997. # Run this file to recreate the current configuration.
  1998. # This directory was configured as follows,
  1999. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2000. #
  2001. # $0 $ac_configure_args
  2002. #
  2003. # Compiler output produced by configure, useful for debugging
  2004. # configure, is in ./config.log if it exists.
  2005. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2006. for ac_option
  2007. do
  2008. case "\$ac_option" in
  2009. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2010. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2011. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2012. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2013. echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2014. exit 0 ;;
  2015. -help | --help | --hel | --he | --h)
  2016. echo "\$ac_cs_usage"; exit 0 ;;
  2017. *) echo "\$ac_cs_usage"; exit 1 ;;
  2018. esac
  2019. done
  2020. ac_given_srcdir=$srcdir
  2021. ac_given_INSTALL="$INSTALL"
  2022. trap 'rm -fr `echo "Makefile dpkg-deb/Makefile lib/Makefile include/Makefile
  2023. dselect/Makefile split/Makefile methods/Makefile
  2024. md5sum/Makefile main/Makefile doc/Makefile scripts/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2025. EOF
  2026. cat >> $CONFIG_STATUS <<EOF
  2027. # Protect against being on the right side of a sed subst in config.status.
  2028. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2029. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2030. $ac_vpsub
  2031. $extrasub
  2032. s%@CFLAGS@%$CFLAGS%g
  2033. s%@CPPFLAGS@%$CPPFLAGS%g
  2034. s%@CXXFLAGS@%$CXXFLAGS%g
  2035. s%@DEFS@%$DEFS%g
  2036. s%@LDFLAGS@%$LDFLAGS%g
  2037. s%@LIBS@%$LIBS%g
  2038. s%@exec_prefix@%$exec_prefix%g
  2039. s%@prefix@%$prefix%g
  2040. s%@program_transform_name@%$program_transform_name%g
  2041. s%@bindir@%$bindir%g
  2042. s%@sbindir@%$sbindir%g
  2043. s%@libexecdir@%$libexecdir%g
  2044. s%@datadir@%$datadir%g
  2045. s%@sysconfdir@%$sysconfdir%g
  2046. s%@sharedstatedir@%$sharedstatedir%g
  2047. s%@localstatedir@%$localstatedir%g
  2048. s%@libdir@%$libdir%g
  2049. s%@includedir@%$includedir%g
  2050. s%@oldincludedir@%$oldincludedir%g
  2051. s%@infodir@%$infodir%g
  2052. s%@mandir@%$mandir%g
  2053. s%@CC@%$CC%g
  2054. s%@CXX@%$CXX%g
  2055. s%@perlpath@%$perlpath%g
  2056. s%@CPP@%$CPP%g
  2057. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2058. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2059. s%@RANLIB@%$RANLIB%g
  2060. s%@OPTCFLAGS@%$OPTCFLAGS%g
  2061. s%@CWARNS@%$CWARNS%g
  2062. CEOF
  2063. EOF
  2064. cat >> $CONFIG_STATUS <<EOF
  2065. CONFIG_FILES=\${CONFIG_FILES-"Makefile dpkg-deb/Makefile lib/Makefile include/Makefile
  2066. dselect/Makefile split/Makefile methods/Makefile
  2067. md5sum/Makefile main/Makefile doc/Makefile scripts/Makefile"}
  2068. EOF
  2069. cat >> $CONFIG_STATUS <<\EOF
  2070. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2071. # Support "outfile[:infile]", defaulting infile="outfile.in".
  2072. case "$ac_file" in
  2073. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2074. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2075. *) ac_file_in="${ac_file}.in" ;;
  2076. esac
  2077. # Adjust relative srcdir, etc. for subdirectories.
  2078. # Remove last slash and all that follows it. Not all systems have dirname.
  2079. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2080. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2081. # The file is in a subdirectory.
  2082. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2083. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2084. # A "../" for each directory in $ac_dir_suffix.
  2085. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2086. else
  2087. ac_dir_suffix= ac_dots=
  2088. fi
  2089. case "$ac_given_srcdir" in
  2090. .) srcdir=.
  2091. if test -z "$ac_dots"; then top_srcdir=.
  2092. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2093. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2094. *) # Relative path.
  2095. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2096. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2097. esac
  2098. case "$ac_given_INSTALL" in
  2099. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2100. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2101. esac
  2102. echo creating "$ac_file"
  2103. rm -f "$ac_file"
  2104. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2105. case "$ac_file" in
  2106. *Makefile*) ac_comsub="1i\\
  2107. # $configure_input" ;;
  2108. *) ac_comsub= ;;
  2109. esac
  2110. sed -e "$ac_comsub
  2111. s%@configure_input@%$configure_input%g
  2112. s%@srcdir@%$srcdir%g
  2113. s%@top_srcdir@%$top_srcdir%g
  2114. s%@INSTALL@%$INSTALL%g
  2115. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2116. fi; done
  2117. rm -f conftest.subs
  2118. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2119. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2120. #
  2121. # ac_d sets the value in "#define NAME VALUE" lines.
  2122. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2123. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2124. ac_dC='\3'
  2125. ac_dD='%g'
  2126. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2127. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2128. ac_uB='\([ ]\)%\1#\2define\3'
  2129. ac_uC=' '
  2130. ac_uD='\4%g'
  2131. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2132. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2133. ac_eB='$%\1#\2define\3'
  2134. ac_eC=' '
  2135. ac_eD='%g'
  2136. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2137. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2138. # Support "outfile[:infile]", defaulting infile="outfile.in".
  2139. case "$ac_file" in
  2140. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2141. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2142. *) ac_file_in="${ac_file}.in" ;;
  2143. esac
  2144. echo creating $ac_file
  2145. rm -f conftest.frag conftest.in conftest.out
  2146. cp $ac_given_srcdir/$ac_file_in conftest.in
  2147. EOF
  2148. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2149. # the proper values into config.h.in to produce config.h. And first:
  2150. # Protect against being on the right side of a sed subst in config.status.
  2151. # Protect against being in an unquoted here document in config.status.
  2152. rm -f conftest.vals
  2153. cat > conftest.hdr <<\EOF
  2154. s/[\\&%]/\\&/g
  2155. s%[\\$`]%\\&%g
  2156. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2157. s%ac_d%ac_u%gp
  2158. s%ac_u%ac_e%gp
  2159. EOF
  2160. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2161. rm -f conftest.hdr
  2162. # This sed command replaces #undef with comments. This is necessary, for
  2163. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2164. # on some systems where configure will not decide to define it.
  2165. cat >> conftest.vals <<\EOF
  2166. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2167. EOF
  2168. # Break up conftest.vals because some shells have a limit on
  2169. # the size of here documents, and old seds have small limits too.
  2170. # Maximum number of lines to put in a single here document.
  2171. ac_max_here_lines=12
  2172. rm -f conftest.tail
  2173. while :
  2174. do
  2175. ac_lines=`grep -c . conftest.vals`
  2176. # grep -c gives empty output for an empty file on some AIX systems.
  2177. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2178. # Write a limited-size here document to conftest.frag.
  2179. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2180. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2181. echo 'CEOF
  2182. sed -f conftest.frag conftest.in > conftest.out
  2183. rm -f conftest.in
  2184. mv conftest.out conftest.in
  2185. ' >> $CONFIG_STATUS
  2186. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2187. rm -f conftest.vals
  2188. mv conftest.tail conftest.vals
  2189. done
  2190. rm -f conftest.vals
  2191. cat >> $CONFIG_STATUS <<\EOF
  2192. rm -f conftest.frag conftest.h
  2193. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2194. cat conftest.in >> conftest.h
  2195. rm -f conftest.in
  2196. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2197. echo "$ac_file is unchanged"
  2198. rm -f conftest.h
  2199. else
  2200. # Remove last slash and all that follows it. Not all systems have dirname.
  2201. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2202. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2203. # The file is in a subdirectory.
  2204. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2205. fi
  2206. rm -f $ac_file
  2207. mv conftest.h $ac_file
  2208. fi
  2209. fi; done
  2210. exit 0
  2211. EOF
  2212. chmod +x $CONFIG_STATUS
  2213. rm -fr confdefs* $ac_clean_files
  2214. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1