configure 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --disable-elf disable builtin ELF support"
  14. ac_help="$ac_help
  15. --disable-elf-core disable ELF core file support"
  16. # Initialize some variables set by options.
  17. # The variables have the same names as the options, with
  18. # dashes changed to underlines.
  19. build=NONE
  20. cache_file=./config.cache
  21. exec_prefix=NONE
  22. host=NONE
  23. no_create=
  24. nonopt=NONE
  25. no_recursion=
  26. prefix=NONE
  27. program_prefix=NONE
  28. program_suffix=NONE
  29. program_transform_name=s,x,x,
  30. silent=
  31. site=
  32. srcdir=
  33. target=NONE
  34. verbose=
  35. x_includes=NONE
  36. x_libraries=NONE
  37. bindir='${exec_prefix}/bin'
  38. sbindir='${exec_prefix}/sbin'
  39. libexecdir='${exec_prefix}/libexec'
  40. datadir='${prefix}/share'
  41. sysconfdir='${prefix}/etc'
  42. sharedstatedir='${prefix}/com'
  43. localstatedir='${prefix}/var'
  44. libdir='${exec_prefix}/lib'
  45. includedir='${prefix}/include'
  46. oldincludedir='/usr/include'
  47. infodir='${prefix}/info'
  48. mandir='${prefix}/man'
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52. SHELL=${CONFIG_SHELL-/bin/sh}
  53. # Maximum number of lines to put in a shell here document.
  54. ac_max_here_lines=12
  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.13"
  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 these to C if already set. These must not be set unconditionally
  387. # because not all systems understand e.g. LANG=C (notably SCO).
  388. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  389. # Non-C LC_CTYPE values break the ctype check.
  390. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  391. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  392. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  393. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  394. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  395. rm -rf conftest* confdefs.h
  396. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  397. echo > confdefs.h
  398. # A filename unique to this package, relative to the directory that
  399. # configure is in, which we can look for to find out if srcdir is correct.
  400. ac_unique_file=file.c
  401. # Find the source files, if location was not specified.
  402. if test -z "$srcdir"; then
  403. ac_srcdir_defaulted=yes
  404. # Try the directory containing this script, then its parent.
  405. ac_prog=$0
  406. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  407. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  408. srcdir=$ac_confdir
  409. if test ! -r $srcdir/$ac_unique_file; then
  410. srcdir=..
  411. fi
  412. else
  413. ac_srcdir_defaulted=no
  414. fi
  415. if test ! -r $srcdir/$ac_unique_file; then
  416. if test "$ac_srcdir_defaulted" = yes; then
  417. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  418. else
  419. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  420. fi
  421. fi
  422. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  423. # Prefer explicitly selected file to automatically selected ones.
  424. if test -z "$CONFIG_SITE"; then
  425. if test "x$prefix" != xNONE; then
  426. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  427. else
  428. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  429. fi
  430. fi
  431. for ac_site_file in $CONFIG_SITE; do
  432. if test -r "$ac_site_file"; then
  433. echo "loading site script $ac_site_file"
  434. . "$ac_site_file"
  435. fi
  436. done
  437. if test -r "$cache_file"; then
  438. echo "loading cache $cache_file"
  439. . $cache_file
  440. else
  441. echo "creating cache $cache_file"
  442. > $cache_file
  443. fi
  444. ac_ext=c
  445. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  446. ac_cpp='$CPP $CPPFLAGS'
  447. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  448. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  449. cross_compiling=$ac_cv_prog_cc_cross
  450. ac_exeext=
  451. ac_objext=o
  452. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  453. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  454. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  455. ac_n= ac_c='
  456. ' ac_t=' '
  457. else
  458. ac_n=-n ac_c= ac_t=
  459. fi
  460. else
  461. ac_n= ac_c='\c' ac_t=
  462. fi
  463. ac_aux_dir=
  464. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  465. if test -f $ac_dir/install-sh; then
  466. ac_aux_dir=$ac_dir
  467. ac_install_sh="$ac_aux_dir/install-sh -c"
  468. break
  469. elif test -f $ac_dir/install.sh; then
  470. ac_aux_dir=$ac_dir
  471. ac_install_sh="$ac_aux_dir/install.sh -c"
  472. break
  473. fi
  474. done
  475. if test -z "$ac_aux_dir"; then
  476. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  477. fi
  478. ac_config_guess=$ac_aux_dir/config.guess
  479. ac_config_sub=$ac_aux_dir/config.sub
  480. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  481. # Find a good install program. We prefer a C program (faster),
  482. # so one script is as good as another. But avoid the broken or
  483. # incompatible versions:
  484. # SysV /etc/install, /usr/sbin/install
  485. # SunOS /usr/etc/install
  486. # IRIX /sbin/install
  487. # AIX /bin/install
  488. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  489. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  490. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  491. # ./install, which can be erroneously created by make from ./install.sh.
  492. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  493. echo "configure:560: checking for a BSD compatible install" >&5
  494. if test -z "$INSTALL"; then
  495. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  496. echo $ac_n "(cached) $ac_c" 1>&6
  497. else
  498. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  499. for ac_dir in $PATH; do
  500. # Account for people who put trailing slashes in PATH elements.
  501. case "$ac_dir/" in
  502. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  503. *)
  504. # OSF1 and SCO ODT 3.0 have their own names for install.
  505. # Don't use installbsd from OSF since it installs stuff as root
  506. # by default.
  507. for ac_prog in ginstall scoinst install; do
  508. if test -f $ac_dir/$ac_prog; then
  509. if test $ac_prog = install &&
  510. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  511. # AIX install. It has an incompatible calling convention.
  512. :
  513. else
  514. ac_cv_path_install="$ac_dir/$ac_prog -c"
  515. break 2
  516. fi
  517. fi
  518. done
  519. ;;
  520. esac
  521. done
  522. IFS="$ac_save_IFS"
  523. fi
  524. if test "${ac_cv_path_install+set}" = set; then
  525. INSTALL="$ac_cv_path_install"
  526. else
  527. # As a last resort, use the slow shell script. We don't cache a
  528. # path for INSTALL within a source directory, because that will
  529. # break other packages using the cache if that directory is
  530. # removed, or if the path is relative.
  531. INSTALL="$ac_install_sh"
  532. fi
  533. fi
  534. echo "$ac_t""$INSTALL" 1>&6
  535. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  536. # It thinks the first close brace ends the variable substitution.
  537. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  538. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  539. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  540. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  541. echo "configure:613: checking whether build environment is sane" >&5
  542. # Just in case
  543. sleep 1
  544. echo timestamp > conftestfile
  545. # Do `set' in a subshell so we don't clobber the current shell's
  546. # arguments. Must try -L first in case configure is actually a
  547. # symlink; some systems play weird games with the mod time of symlinks
  548. # (eg FreeBSD returns the mod time of the symlink's containing
  549. # directory).
  550. if (
  551. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  552. if test "$*" = "X"; then
  553. # -L didn't work.
  554. set X `ls -t $srcdir/configure conftestfile`
  555. fi
  556. if test "$*" != "X $srcdir/configure conftestfile" \
  557. && test "$*" != "X conftestfile $srcdir/configure"; then
  558. # If neither matched, then we have a broken ls. This can happen
  559. # if, for instance, CONFIG_SHELL is bash and it inherits a
  560. # broken ls alias from the environment. This has actually
  561. # happened. Such a system could not be considered "sane".
  562. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  563. alias in your environment" 1>&2; exit 1; }
  564. fi
  565. test "$2" = conftestfile
  566. )
  567. then
  568. # Ok.
  569. :
  570. else
  571. { echo "configure: error: newly created file is older than distributed files!
  572. Check your system clock" 1>&2; exit 1; }
  573. fi
  574. rm -f conftest*
  575. echo "$ac_t""yes" 1>&6
  576. if test "$program_transform_name" = s,x,x,; then
  577. program_transform_name=
  578. else
  579. # Double any \ or $. echo might interpret backslashes.
  580. cat <<\EOF_SED > conftestsed
  581. s,\\,\\\\,g; s,\$,$$,g
  582. EOF_SED
  583. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  584. rm -f conftestsed
  585. fi
  586. test "$program_prefix" != NONE &&
  587. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  588. # Use a double $ so make ignores it.
  589. test "$program_suffix" != NONE &&
  590. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  591. # sed with no file args requires a program.
  592. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  593. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  594. echo "configure:670: checking whether ${MAKE-make} sets \${MAKE}" >&5
  595. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  596. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  597. echo $ac_n "(cached) $ac_c" 1>&6
  598. else
  599. cat > conftestmake <<\EOF
  600. all:
  601. @echo 'ac_maketemp="${MAKE}"'
  602. EOF
  603. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  604. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  605. if test -n "$ac_maketemp"; then
  606. eval ac_cv_prog_make_${ac_make}_set=yes
  607. else
  608. eval ac_cv_prog_make_${ac_make}_set=no
  609. fi
  610. rm -f conftestmake
  611. fi
  612. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  613. echo "$ac_t""yes" 1>&6
  614. SET_MAKE=
  615. else
  616. echo "$ac_t""no" 1>&6
  617. SET_MAKE="MAKE=${MAKE-make}"
  618. fi
  619. PACKAGE=file
  620. VERSION=3.27
  621. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  622. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  623. fi
  624. cat >> confdefs.h <<EOF
  625. #define PACKAGE "$PACKAGE"
  626. EOF
  627. cat >> confdefs.h <<EOF
  628. #define VERSION "$VERSION"
  629. EOF
  630. missing_dir=`cd $ac_aux_dir && pwd`
  631. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  632. echo "configure:716: checking for working aclocal" >&5
  633. # Run test in a subshell; some versions of sh will print an error if
  634. # an executable is not found, even if stderr is redirected.
  635. # Redirect stdin to placate older versions of autoconf. Sigh.
  636. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  637. ACLOCAL=aclocal
  638. echo "$ac_t""found" 1>&6
  639. else
  640. ACLOCAL="$missing_dir/missing aclocal"
  641. echo "$ac_t""missing" 1>&6
  642. fi
  643. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  644. echo "configure:729: checking for working autoconf" >&5
  645. # Run test in a subshell; some versions of sh will print an error if
  646. # an executable is not found, even if stderr is redirected.
  647. # Redirect stdin to placate older versions of autoconf. Sigh.
  648. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  649. AUTOCONF=autoconf
  650. echo "$ac_t""found" 1>&6
  651. else
  652. AUTOCONF="$missing_dir/missing autoconf"
  653. echo "$ac_t""missing" 1>&6
  654. fi
  655. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  656. echo "configure:742: checking for working automake" >&5
  657. # Run test in a subshell; some versions of sh will print an error if
  658. # an executable is not found, even if stderr is redirected.
  659. # Redirect stdin to placate older versions of autoconf. Sigh.
  660. if (automake --version) < /dev/null > /dev/null 2>&1; then
  661. AUTOMAKE=automake
  662. echo "$ac_t""found" 1>&6
  663. else
  664. AUTOMAKE="$missing_dir/missing automake"
  665. echo "$ac_t""missing" 1>&6
  666. fi
  667. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  668. echo "configure:755: checking for working autoheader" >&5
  669. # Run test in a subshell; some versions of sh will print an error if
  670. # an executable is not found, even if stderr is redirected.
  671. # Redirect stdin to placate older versions of autoconf. Sigh.
  672. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  673. AUTOHEADER=autoheader
  674. echo "$ac_t""found" 1>&6
  675. else
  676. AUTOHEADER="$missing_dir/missing autoheader"
  677. echo "$ac_t""missing" 1>&6
  678. fi
  679. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  680. echo "configure:768: checking for working makeinfo" >&5
  681. # Run test in a subshell; some versions of sh will print an error if
  682. # an executable is not found, even if stderr is redirected.
  683. # Redirect stdin to placate older versions of autoconf. Sigh.
  684. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  685. MAKEINFO=makeinfo
  686. echo "$ac_t""found" 1>&6
  687. else
  688. MAKEINFO="$missing_dir/missing makeinfo"
  689. echo "$ac_t""missing" 1>&6
  690. fi
  691. echo $ac_n "checking for builtin ELF support""... $ac_c" 1>&6
  692. echo "configure:786: checking for builtin ELF support" >&5
  693. # Check whether --enable-elf or --disable-elf was given.
  694. if test "${enable_elf+set}" = set; then
  695. enableval="$enable_elf"
  696. if test "${enableval}" = yes; then
  697. echo "$ac_t""yes" 1>&6
  698. cat >> confdefs.h <<\EOF
  699. #define BUILTIN_ELF 1
  700. EOF
  701. else
  702. echo "$ac_t""no" 1>&6
  703. fi
  704. else
  705. # enable by default
  706. echo "$ac_t""yes" 1>&6
  707. cat >> confdefs.h <<\EOF
  708. #define BUILTIN_ELF 1
  709. EOF
  710. fi
  711. echo $ac_n "checking for ELF core file support""... $ac_c" 1>&6
  712. echo "configure:812: checking for ELF core file support" >&5
  713. # Check whether --enable-elf-core or --disable-elf-core was given.
  714. if test "${enable_elf_core+set}" = set; then
  715. enableval="$enable_elf_core"
  716. if test "${enableval}" = yes; then
  717. echo "$ac_t""yes" 1>&6
  718. cat >> confdefs.h <<\EOF
  719. #define ELFCORE 1
  720. EOF
  721. else
  722. echo "$ac_t""no" 1>&6
  723. fi
  724. else
  725. # enable by default
  726. echo "$ac_t""yes" 1>&6
  727. cat >> confdefs.h <<\EOF
  728. #define ELFCORE 1
  729. EOF
  730. fi
  731. # Extract the first word of "gcc", so it can be a program name with args.
  732. set dummy gcc; ac_word=$2
  733. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  734. echo "configure:840: checking for $ac_word" >&5
  735. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  736. echo $ac_n "(cached) $ac_c" 1>&6
  737. else
  738. if test -n "$CC"; then
  739. ac_cv_prog_CC="$CC" # Let the user override the test.
  740. else
  741. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  742. ac_dummy="$PATH"
  743. for ac_dir in $ac_dummy; do
  744. test -z "$ac_dir" && ac_dir=.
  745. if test -f $ac_dir/$ac_word; then
  746. ac_cv_prog_CC="gcc"
  747. break
  748. fi
  749. done
  750. IFS="$ac_save_ifs"
  751. fi
  752. fi
  753. CC="$ac_cv_prog_CC"
  754. if test -n "$CC"; then
  755. echo "$ac_t""$CC" 1>&6
  756. else
  757. echo "$ac_t""no" 1>&6
  758. fi
  759. if test -z "$CC"; then
  760. # Extract the first word of "cc", so it can be a program name with args.
  761. set dummy cc; ac_word=$2
  762. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  763. echo "configure:870: checking for $ac_word" >&5
  764. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  765. echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767. if test -n "$CC"; then
  768. ac_cv_prog_CC="$CC" # Let the user override the test.
  769. else
  770. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  771. ac_prog_rejected=no
  772. ac_dummy="$PATH"
  773. for ac_dir in $ac_dummy; do
  774. test -z "$ac_dir" && ac_dir=.
  775. if test -f $ac_dir/$ac_word; then
  776. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  777. ac_prog_rejected=yes
  778. continue
  779. fi
  780. ac_cv_prog_CC="cc"
  781. break
  782. fi
  783. done
  784. IFS="$ac_save_ifs"
  785. if test $ac_prog_rejected = yes; then
  786. # We found a bogon in the path, so make sure we never use it.
  787. set dummy $ac_cv_prog_CC
  788. shift
  789. if test $# -gt 0; then
  790. # We chose a different compiler from the bogus one.
  791. # However, it has the same basename, so the bogon will be chosen
  792. # first if we set CC to just the basename; use the full file name.
  793. shift
  794. set dummy "$ac_dir/$ac_word" "$@"
  795. shift
  796. ac_cv_prog_CC="$@"
  797. fi
  798. fi
  799. fi
  800. fi
  801. CC="$ac_cv_prog_CC"
  802. if test -n "$CC"; then
  803. echo "$ac_t""$CC" 1>&6
  804. else
  805. echo "$ac_t""no" 1>&6
  806. fi
  807. if test -z "$CC"; then
  808. case "`uname -s`" in
  809. *win32* | *WIN32*)
  810. # Extract the first word of "cl", so it can be a program name with args.
  811. set dummy cl; ac_word=$2
  812. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  813. echo "configure:921: checking for $ac_word" >&5
  814. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  815. echo $ac_n "(cached) $ac_c" 1>&6
  816. else
  817. if test -n "$CC"; then
  818. ac_cv_prog_CC="$CC" # Let the user override the test.
  819. else
  820. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  821. ac_dummy="$PATH"
  822. for ac_dir in $ac_dummy; do
  823. test -z "$ac_dir" && ac_dir=.
  824. if test -f $ac_dir/$ac_word; then
  825. ac_cv_prog_CC="cl"
  826. break
  827. fi
  828. done
  829. IFS="$ac_save_ifs"
  830. fi
  831. fi
  832. CC="$ac_cv_prog_CC"
  833. if test -n "$CC"; then
  834. echo "$ac_t""$CC" 1>&6
  835. else
  836. echo "$ac_t""no" 1>&6
  837. fi
  838. ;;
  839. esac
  840. fi
  841. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  842. fi
  843. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  844. echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  845. ac_ext=c
  846. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  847. ac_cpp='$CPP $CPPFLAGS'
  848. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  849. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  850. cross_compiling=$ac_cv_prog_cc_cross
  851. cat > conftest.$ac_ext << EOF
  852. #line 964 "configure"
  853. #include "confdefs.h"
  854. main(){return(0);}
  855. EOF
  856. if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  857. ac_cv_prog_cc_works=yes
  858. # If we can't run a trivial program, we are probably using a cross compiler.
  859. if (./conftest; exit) 2>/dev/null; then
  860. ac_cv_prog_cc_cross=no
  861. else
  862. ac_cv_prog_cc_cross=yes
  863. fi
  864. else
  865. echo "configure: failed program was:" >&5
  866. cat conftest.$ac_ext >&5
  867. ac_cv_prog_cc_works=no
  868. fi
  869. rm -fr conftest*
  870. ac_ext=c
  871. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  872. ac_cpp='$CPP $CPPFLAGS'
  873. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  874. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  875. cross_compiling=$ac_cv_prog_cc_cross
  876. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  877. if test $ac_cv_prog_cc_works = no; then
  878. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  879. fi
  880. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  881. echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  882. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  883. cross_compiling=$ac_cv_prog_cc_cross
  884. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  885. echo "configure:1000: checking whether we are using GNU C" >&5
  886. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  887. echo $ac_n "(cached) $ac_c" 1>&6
  888. else
  889. cat > conftest.c <<EOF
  890. #ifdef __GNUC__
  891. yes;
  892. #endif
  893. EOF
  894. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  895. ac_cv_prog_gcc=yes
  896. else
  897. ac_cv_prog_gcc=no
  898. fi
  899. fi
  900. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  901. if test $ac_cv_prog_gcc = yes; then
  902. GCC=yes
  903. else
  904. GCC=
  905. fi
  906. ac_test_CFLAGS="${CFLAGS+set}"
  907. ac_save_CFLAGS="$CFLAGS"
  908. CFLAGS=
  909. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  910. echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
  911. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  912. echo $ac_n "(cached) $ac_c" 1>&6
  913. else
  914. echo 'void f(){}' > conftest.c
  915. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  916. ac_cv_prog_cc_g=yes
  917. else
  918. ac_cv_prog_cc_g=no
  919. fi
  920. rm -f conftest*
  921. fi
  922. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  923. if test "$ac_test_CFLAGS" = set; then
  924. CFLAGS="$ac_save_CFLAGS"
  925. elif test $ac_cv_prog_cc_g = yes; then
  926. if test "$GCC" = yes; then
  927. CFLAGS="-g -O2"
  928. else
  929. CFLAGS="-g"
  930. fi
  931. else
  932. if test "$GCC" = yes; then
  933. CFLAGS="-O2"
  934. else
  935. CFLAGS=
  936. fi
  937. fi
  938. # Find a good install program. We prefer a C program (faster),
  939. # so one script is as good as another. But avoid the broken or
  940. # incompatible versions:
  941. # SysV /etc/install, /usr/sbin/install
  942. # SunOS /usr/etc/install
  943. # IRIX /sbin/install
  944. # AIX /bin/install
  945. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  946. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  947. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  948. # ./install, which can be erroneously created by make from ./install.sh.
  949. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  950. echo "configure:1071: checking for a BSD compatible install" >&5
  951. if test -z "$INSTALL"; then
  952. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  953. echo $ac_n "(cached) $ac_c" 1>&6
  954. else
  955. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  956. for ac_dir in $PATH; do
  957. # Account for people who put trailing slashes in PATH elements.
  958. case "$ac_dir/" in
  959. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  960. *)
  961. # OSF1 and SCO ODT 3.0 have their own names for install.
  962. # Don't use installbsd from OSF since it installs stuff as root
  963. # by default.
  964. for ac_prog in ginstall scoinst install; do
  965. if test -f $ac_dir/$ac_prog; then
  966. if test $ac_prog = install &&
  967. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  968. # AIX install. It has an incompatible calling convention.
  969. :
  970. else
  971. ac_cv_path_install="$ac_dir/$ac_prog -c"
  972. break 2
  973. fi
  974. fi
  975. done
  976. ;;
  977. esac
  978. done
  979. IFS="$ac_save_IFS"
  980. fi
  981. if test "${ac_cv_path_install+set}" = set; then
  982. INSTALL="$ac_cv_path_install"
  983. else
  984. # As a last resort, use the slow shell script. We don't cache a
  985. # path for INSTALL within a source directory, because that will
  986. # break other packages using the cache if that directory is
  987. # removed, or if the path is relative.
  988. INSTALL="$ac_install_sh"
  989. fi
  990. fi
  991. echo "$ac_t""$INSTALL" 1>&6
  992. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  993. # It thinks the first close brace ends the variable substitution.
  994. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  995. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  996. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  997. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  998. echo "configure:1124: checking whether ln -s works" >&5
  999. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1000. echo $ac_n "(cached) $ac_c" 1>&6
  1001. else
  1002. rm -f conftestdata
  1003. if ln -s X conftestdata 2>/dev/null
  1004. then
  1005. rm -f conftestdata
  1006. ac_cv_prog_LN_S="ln -s"
  1007. else
  1008. ac_cv_prog_LN_S=ln
  1009. fi
  1010. fi
  1011. LN_S="$ac_cv_prog_LN_S"
  1012. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1013. echo "$ac_t""yes" 1>&6
  1014. else
  1015. echo "$ac_t""no" 1>&6
  1016. fi
  1017. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1018. echo "configure:1146: checking how to run the C preprocessor" >&5
  1019. # On Suns, sometimes $CPP names a directory.
  1020. if test -n "$CPP" && test -d "$CPP"; then
  1021. CPP=
  1022. fi
  1023. if test -z "$CPP"; then
  1024. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1025. echo $ac_n "(cached) $ac_c" 1>&6
  1026. else
  1027. # This must be in double quotes, not single quotes, because CPP may get
  1028. # substituted into the Makefile and "${CC-cc}" will confuse make.
  1029. CPP="${CC-cc} -E"
  1030. # On the NeXT, cc -E runs the code through the compiler's parser,
  1031. # not just through cpp.
  1032. cat > conftest.$ac_ext <<EOF
  1033. #line 1161 "configure"
  1034. #include "confdefs.h"
  1035. #include <assert.h>
  1036. Syntax Error
  1037. EOF
  1038. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1039. { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1040. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1041. if test -z "$ac_err"; then
  1042. :
  1043. else
  1044. echo "$ac_err" >&5
  1045. echo "configure: failed program was:" >&5
  1046. cat conftest.$ac_ext >&5
  1047. rm -rf conftest*
  1048. CPP="${CC-cc} -E -traditional-cpp"
  1049. cat > conftest.$ac_ext <<EOF
  1050. #line 1178 "configure"
  1051. #include "confdefs.h"
  1052. #include <assert.h>
  1053. Syntax Error
  1054. EOF
  1055. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1056. { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1057. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1058. if test -z "$ac_err"; then
  1059. :
  1060. else
  1061. echo "$ac_err" >&5
  1062. echo "configure: failed program was:" >&5
  1063. cat conftest.$ac_ext >&5
  1064. rm -rf conftest*
  1065. CPP="${CC-cc} -nologo -E"
  1066. cat > conftest.$ac_ext <<EOF
  1067. #line 1195 "configure"
  1068. #include "confdefs.h"
  1069. #include <assert.h>
  1070. Syntax Error
  1071. EOF
  1072. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1073. { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1074. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1075. if test -z "$ac_err"; then
  1076. :
  1077. else
  1078. echo "$ac_err" >&5
  1079. echo "configure: failed program was:" >&5
  1080. cat conftest.$ac_ext >&5
  1081. rm -rf conftest*
  1082. CPP=/lib/cpp
  1083. fi
  1084. rm -f conftest*
  1085. fi
  1086. rm -f conftest*
  1087. fi
  1088. rm -f conftest*
  1089. ac_cv_prog_CPP="$CPP"
  1090. fi
  1091. CPP="$ac_cv_prog_CPP"
  1092. else
  1093. ac_cv_prog_CPP="$CPP"
  1094. fi
  1095. echo "$ac_t""$CPP" 1>&6
  1096. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1097. echo "configure:1226: checking for ANSI C header files" >&5
  1098. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1099. echo $ac_n "(cached) $ac_c" 1>&6
  1100. else
  1101. cat > conftest.$ac_ext <<EOF
  1102. #line 1231 "configure"
  1103. #include "confdefs.h"
  1104. #include <stdlib.h>
  1105. #include <stdarg.h>
  1106. #include <string.h>
  1107. #include <float.h>
  1108. EOF
  1109. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1110. { (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1111. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1112. if test -z "$ac_err"; then
  1113. rm -rf conftest*
  1114. ac_cv_header_stdc=yes
  1115. else
  1116. echo "$ac_err" >&5
  1117. echo "configure: failed program was:" >&5
  1118. cat conftest.$ac_ext >&5
  1119. rm -rf conftest*
  1120. ac_cv_header_stdc=no
  1121. fi
  1122. rm -f conftest*
  1123. if test $ac_cv_header_stdc = yes; then
  1124. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1125. cat > conftest.$ac_ext <<EOF
  1126. #line 1256 "configure"
  1127. #include "confdefs.h"
  1128. #include <string.h>
  1129. EOF
  1130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1131. egrep "memchr" >/dev/null 2>&1; then
  1132. :
  1133. else
  1134. rm -rf conftest*
  1135. ac_cv_header_stdc=no
  1136. fi
  1137. rm -f conftest*
  1138. fi
  1139. if test $ac_cv_header_stdc = yes; then
  1140. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1141. cat > conftest.$ac_ext <<EOF
  1142. #line 1274 "configure"
  1143. #include "confdefs.h"
  1144. #include <stdlib.h>
  1145. EOF
  1146. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1147. egrep "free" >/dev/null 2>&1; then
  1148. :
  1149. else
  1150. rm -rf conftest*
  1151. ac_cv_header_stdc=no
  1152. fi
  1153. rm -f conftest*
  1154. fi
  1155. if test $ac_cv_header_stdc = yes; then
  1156. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1157. if test "$cross_compiling" = yes; then
  1158. :
  1159. else
  1160. cat > conftest.$ac_ext <<EOF
  1161. #line 1295 "configure"
  1162. #include "confdefs.h"
  1163. #include <ctype.h>
  1164. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1165. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1166. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1167. int main () { int i; for (i = 0; i < 256; i++)
  1168. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1169. exit (0); }
  1170. EOF
  1171. if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1172. then
  1173. :
  1174. else
  1175. echo "configure: failed program was:" >&5
  1176. cat conftest.$ac_ext >&5
  1177. rm -fr conftest*
  1178. ac_cv_header_stdc=no
  1179. fi
  1180. rm -fr conftest*
  1181. fi
  1182. fi
  1183. fi
  1184. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1185. if test $ac_cv_header_stdc = yes; then
  1186. cat >> confdefs.h <<\EOF
  1187. #define STDC_HEADERS 1
  1188. EOF
  1189. fi
  1190. echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  1191. echo "configure:1330: checking whether sys/types.h defines makedev" >&5
  1192. if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1193. echo $ac_n "(cached) $ac_c" 1>&6
  1194. else
  1195. cat > conftest.$ac_ext <<EOF
  1196. #line 1335 "configure"
  1197. #include "confdefs.h"
  1198. #include <sys/types.h>
  1199. int main() {
  1200. return makedev(0, 0);
  1201. ; return 0; }
  1202. EOF
  1203. if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1204. rm -rf conftest*
  1205. ac_cv_header_sys_types_h_makedev=yes
  1206. else
  1207. echo "configure: failed program was:" >&5
  1208. cat conftest.$ac_ext >&5
  1209. rm -rf conftest*
  1210. ac_cv_header_sys_types_h_makedev=no
  1211. fi
  1212. rm -f conftest*
  1213. fi
  1214. echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  1215. if test $ac_cv_header_sys_types_h_makedev = no; then
  1216. ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
  1217. echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  1218. echo "configure:1360: checking for sys/mkdev.h" >&5
  1219. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1220. echo $ac_n "(cached) $ac_c" 1>&6
  1221. else
  1222. cat > conftest.$ac_ext <<EOF
  1223. #line 1365 "configure"
  1224. #include "confdefs.h"
  1225. #include <sys/mkdev.h>
  1226. EOF
  1227. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1228. { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1229. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1230. if test -z "$ac_err"; then
  1231. rm -rf conftest*
  1232. eval "ac_cv_header_$ac_safe=yes"
  1233. else
  1234. echo "$ac_err" >&5
  1235. echo "configure: failed program was:" >&5
  1236. cat conftest.$ac_ext >&5
  1237. rm -rf conftest*
  1238. eval "ac_cv_header_$ac_safe=no"
  1239. fi
  1240. rm -f conftest*
  1241. fi
  1242. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1243. echo "$ac_t""yes" 1>&6
  1244. cat >> confdefs.h <<\EOF
  1245. #define MAJOR_IN_MKDEV 1
  1246. EOF
  1247. else
  1248. echo "$ac_t""no" 1>&6
  1249. fi
  1250. if test $ac_cv_header_sys_mkdev_h = no; then
  1251. ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
  1252. echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  1253. echo "configure:1398: checking for sys/sysmacros.h" >&5
  1254. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1255. echo $ac_n "(cached) $ac_c" 1>&6
  1256. else
  1257. cat > conftest.$ac_ext <<EOF
  1258. #line 1403 "configure"
  1259. #include "confdefs.h"
  1260. #include <sys/sysmacros.h>
  1261. EOF
  1262. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1263. { (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1264. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1265. if test -z "$ac_err"; then
  1266. rm -rf conftest*
  1267. eval "ac_cv_header_$ac_safe=yes"
  1268. else
  1269. echo "$ac_err" >&5
  1270. echo "configure: failed program was:" >&5
  1271. cat conftest.$ac_ext >&5
  1272. rm -rf conftest*
  1273. eval "ac_cv_header_$ac_safe=no"
  1274. fi
  1275. rm -f conftest*
  1276. fi
  1277. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1278. echo "$ac_t""yes" 1>&6
  1279. cat >> confdefs.h <<\EOF
  1280. #define MAJOR_IN_SYSMACROS 1
  1281. EOF
  1282. else
  1283. echo "$ac_t""no" 1>&6
  1284. fi
  1285. fi
  1286. fi
  1287. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1288. echo "configure:1436: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1289. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1290. echo $ac_n "(cached) $ac_c" 1>&6
  1291. else
  1292. cat > conftest.$ac_ext <<EOF
  1293. #line 1441 "configure"
  1294. #include "confdefs.h"
  1295. #include <sys/types.h>
  1296. #include <sys/wait.h>
  1297. #ifndef WEXITSTATUS
  1298. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1299. #endif
  1300. #ifndef WIFEXITED
  1301. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1302. #endif
  1303. int main() {
  1304. int s;
  1305. wait (&s);
  1306. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1307. ; return 0; }
  1308. EOF
  1309. if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1310. rm -rf conftest*
  1311. ac_cv_header_sys_wait_h=yes
  1312. else
  1313. echo "configure: failed program was:" >&5
  1314. cat conftest.$ac_ext >&5
  1315. rm -rf conftest*
  1316. ac_cv_header_sys_wait_h=no
  1317. fi
  1318. rm -f conftest*
  1319. fi
  1320. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1321. if test $ac_cv_header_sys_wait_h = yes; then
  1322. cat >> confdefs.h <<\EOF
  1323. #define HAVE_SYS_WAIT_H 1
  1324. EOF
  1325. fi
  1326. for ac_hdr in unistd.h
  1327. do
  1328. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1329. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1330. echo "configure:1481: checking for $ac_hdr" >&5
  1331. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1332. echo $ac_n "(cached) $ac_c" 1>&6
  1333. else
  1334. cat > conftest.$ac_ext <<EOF
  1335. #line 1486 "configure"
  1336. #include "confdefs.h"
  1337. #include <$ac_hdr>
  1338. EOF
  1339. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1340. { (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1341. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1342. if test -z "$ac_err"; then
  1343. rm -rf conftest*
  1344. eval "ac_cv_header_$ac_safe=yes"
  1345. else
  1346. echo "$ac_err" >&5
  1347. echo "configure: failed program was:" >&5
  1348. cat conftest.$ac_ext >&5
  1349. rm -rf conftest*
  1350. eval "ac_cv_header_$ac_safe=no"
  1351. fi
  1352. rm -f conftest*
  1353. fi
  1354. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1355. echo "$ac_t""yes" 1>&6
  1356. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1357. cat >> confdefs.h <<EOF
  1358. #define $ac_tr_hdr 1
  1359. EOF
  1360. else
  1361. echo "$ac_t""no" 1>&6
  1362. fi
  1363. done
  1364. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1365. echo "configure:1519: checking for working const" >&5
  1366. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1367. echo $ac_n "(cached) $ac_c" 1>&6
  1368. else
  1369. cat > conftest.$ac_ext <<EOF
  1370. #line 1524 "configure"
  1371. #include "confdefs.h"
  1372. int main() {
  1373. /* Ultrix mips cc rejects this. */
  1374. typedef int charset[2]; const charset x;
  1375. /* SunOS 4.1.1 cc rejects this. */
  1376. char const *const *ccp;
  1377. char **p;
  1378. /* NEC SVR4.0.2 mips cc rejects this. */
  1379. struct point {int x, y;};
  1380. static struct point const zero = {0,0};
  1381. /* AIX XL C 1.02.0.0 rejects this.
  1382. It does not let you subtract one const X* pointer from another in an arm
  1383. of an if-expression whose if-part is not a constant expression */
  1384. const char *g = "string";
  1385. ccp = &g + (g ? g-g : 0);
  1386. /* HPUX 7.0 cc rejects these. */
  1387. ++ccp;
  1388. p = (char**) ccp;
  1389. ccp = (char const *const *) p;
  1390. { /* SCO 3.2v4 cc rejects this. */
  1391. char *t;
  1392. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1393. *t++ = 0;
  1394. }
  1395. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1396. int x[] = {25, 17};
  1397. const int *foo = &x[0];
  1398. ++foo;
  1399. }
  1400. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1401. typedef const int *iptr;
  1402. iptr p = 0;
  1403. ++p;
  1404. }
  1405. { /* AIX XL C 1.02.0.0 rejects this saying
  1406. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1407. struct s { int j; const int *ap[3]; };
  1408. struct s *b; b->j = 5;
  1409. }
  1410. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1411. const int foo = 10;
  1412. }
  1413. ; return 0; }
  1414. EOF
  1415. if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1416. rm -rf conftest*
  1417. ac_cv_c_const=yes
  1418. else
  1419. echo "configure: failed program was:" >&5
  1420. cat conftest.$ac_ext >&5
  1421. rm -rf conftest*
  1422. ac_cv_c_const=no
  1423. fi
  1424. rm -f conftest*
  1425. fi
  1426. echo "$ac_t""$ac_cv_c_const" 1>&6
  1427. if test $ac_cv_c_const = no; then
  1428. cat >> confdefs.h <<\EOF
  1429. #define const
  1430. EOF
  1431. fi
  1432. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1433. echo "configure:1594: checking for off_t" >&5
  1434. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1435. echo $ac_n "(cached) $ac_c" 1>&6
  1436. else
  1437. cat > conftest.$ac_ext <<EOF
  1438. #line 1599 "configure"
  1439. #include "confdefs.h"
  1440. #include <sys/types.h>
  1441. #if STDC_HEADERS
  1442. #include <stdlib.h>
  1443. #include <stddef.h>
  1444. #endif
  1445. EOF
  1446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1447. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1448. rm -rf conftest*
  1449. ac_cv_type_off_t=yes
  1450. else
  1451. rm -rf conftest*
  1452. ac_cv_type_off_t=no
  1453. fi
  1454. rm -f conftest*
  1455. fi
  1456. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1457. if test $ac_cv_type_off_t = no; then
  1458. cat >> confdefs.h <<\EOF
  1459. #define off_t long
  1460. EOF
  1461. fi
  1462. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1463. echo "configure:1627: checking for size_t" >&5
  1464. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1465. echo $ac_n "(cached) $ac_c" 1>&6
  1466. else
  1467. cat > conftest.$ac_ext <<EOF
  1468. #line 1632 "configure"
  1469. #include "confdefs.h"
  1470. #include <sys/types.h>
  1471. #if STDC_HEADERS
  1472. #include <stdlib.h>
  1473. #include <stddef.h>
  1474. #endif
  1475. EOF
  1476. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1477. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1478. rm -rf conftest*
  1479. ac_cv_type_size_t=yes
  1480. else
  1481. rm -rf conftest*
  1482. ac_cv_type_size_t=no
  1483. fi
  1484. rm -f conftest*
  1485. fi
  1486. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1487. if test $ac_cv_type_size_t = no; then
  1488. cat >> confdefs.h <<\EOF
  1489. #define size_t unsigned
  1490. EOF
  1491. fi
  1492. echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  1493. echo "configure:1660: checking for st_rdev in struct stat" >&5
  1494. if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  1495. echo $ac_n "(cached) $ac_c" 1>&6
  1496. else
  1497. cat > conftest.$ac_ext <<EOF
  1498. #line 1665 "configure"
  1499. #include "confdefs.h"
  1500. #include <sys/types.h>
  1501. #include <sys/stat.h>
  1502. int main() {
  1503. struct stat s; s.st_rdev;
  1504. ; return 0; }
  1505. EOF
  1506. if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1507. rm -rf conftest*
  1508. ac_cv_struct_st_rdev=yes
  1509. else
  1510. echo "configure: failed program was:" >&5
  1511. cat conftest.$ac_ext >&5
  1512. rm -rf conftest*
  1513. ac_cv_struct_st_rdev=no
  1514. fi
  1515. rm -f conftest*
  1516. fi
  1517. echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  1518. if test $ac_cv_struct_st_rdev = yes; then
  1519. cat >> confdefs.h <<\EOF
  1520. #define HAVE_ST_RDEV 1
  1521. EOF
  1522. fi
  1523. echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
  1524. echo "configure:1695: checking for uint8_t" >&5
  1525. if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
  1526. echo $ac_n "(cached) $ac_c" 1>&6
  1527. else
  1528. cat > conftest.$ac_ext <<EOF
  1529. #line 1700 "configure"
  1530. #include "confdefs.h"
  1531. #include <sys/types.h>
  1532. #if STDC_HEADERS
  1533. #include <stdlib.h>
  1534. #include <stddef.h>
  1535. #endif
  1536. EOF
  1537. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1538. egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1539. rm -rf conftest*
  1540. ac_cv_type_uint8_t=yes
  1541. else
  1542. rm -rf conftest*
  1543. ac_cv_type_uint8_t=no
  1544. fi
  1545. rm -f conftest*
  1546. fi
  1547. echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
  1548. if test $ac_cv_type_uint8_t = no; then
  1549. cat >> confdefs.h <<\EOF
  1550. #define uint8_t unsigned char
  1551. EOF
  1552. fi
  1553. echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
  1554. echo "configure:1728: checking for uint16_t" >&5
  1555. if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
  1556. echo $ac_n "(cached) $ac_c" 1>&6
  1557. else
  1558. cat > conftest.$ac_ext <<EOF
  1559. #line 1733 "configure"
  1560. #include "confdefs.h"
  1561. #include <sys/types.h>
  1562. #if STDC_HEADERS
  1563. #include <stdlib.h>
  1564. #include <stddef.h>
  1565. #endif
  1566. EOF
  1567. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1568. egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1569. rm -rf conftest*
  1570. ac_cv_type_uint16_t=yes
  1571. else
  1572. rm -rf conftest*
  1573. ac_cv_type_uint16_t=no
  1574. fi
  1575. rm -f conftest*
  1576. fi
  1577. echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
  1578. if test $ac_cv_type_uint16_t = no; then
  1579. cat >> confdefs.h <<\EOF
  1580. #define uint16_t unsigned short
  1581. EOF
  1582. fi
  1583. echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
  1584. echo "configure:1761: checking for uint32_t" >&5
  1585. if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
  1586. echo $ac_n "(cached) $ac_c" 1>&6
  1587. else
  1588. cat > conftest.$ac_ext <<EOF
  1589. #line 1766 "configure"
  1590. #include "confdefs.h"
  1591. #include <sys/types.h>
  1592. #if STDC_HEADERS
  1593. #include <stdlib.h>
  1594. #include <stddef.h>
  1595. #endif
  1596. EOF
  1597. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1598. egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1599. rm -rf conftest*
  1600. ac_cv_type_uint32_t=yes
  1601. else
  1602. rm -rf conftest*
  1603. ac_cv_type_uint32_t=no
  1604. fi
  1605. rm -f conftest*
  1606. fi
  1607. echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
  1608. if test $ac_cv_type_uint32_t = no; then
  1609. cat >> confdefs.h <<\EOF
  1610. #define uint32_t unsigned int
  1611. EOF
  1612. fi
  1613. echo $ac_n "checking for long long""... $ac_c" 1>&6
  1614. echo "configure:1795: checking for long long" >&5
  1615. if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
  1616. echo $ac_n "(cached) $ac_c" 1>&6
  1617. else
  1618. if test "$GCC" = yes; then
  1619. ac_cv_c_long_long=yes
  1620. else
  1621. if test "$cross_compiling" = yes; then
  1622. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1623. else
  1624. cat > conftest.$ac_ext <<EOF
  1625. #line 1806 "configure"
  1626. #include "confdefs.h"
  1627. int main() {
  1628. long long foo = 0;
  1629. exit(sizeof(long long) < sizeof(long)); }
  1630. EOF
  1631. if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1632. then
  1633. ac_cv_c_long_long=yes
  1634. else
  1635. echo "configure: failed program was:" >&5
  1636. cat conftest.$ac_ext >&5
  1637. rm -fr conftest*
  1638. ac_cv_c_long_long=no
  1639. fi
  1640. rm -fr conftest*
  1641. fi
  1642. fi
  1643. fi
  1644. echo "$ac_t""$ac_cv_c_long_long" 1>&6
  1645. if test $ac_cv_c_long_long = yes; then
  1646. cat >> confdefs.h <<\EOF
  1647. #define HAVE_LONG_LONG 1
  1648. EOF
  1649. fi
  1650. if test $ac_cv_c_long_long = yes; then
  1651. long64='unsigned long long';
  1652. else
  1653. long64='unsigned long';
  1654. fi
  1655. echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
  1656. echo "configure:1841: checking for uint64_t" >&5
  1657. if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
  1658. echo $ac_n "(cached) $ac_c" 1>&6
  1659. else
  1660. cat > conftest.$ac_ext <<EOF
  1661. #line 1846 "configure"
  1662. #include "confdefs.h"
  1663. #include <sys/types.h>
  1664. #if STDC_HEADERS
  1665. #include <stdlib.h>
  1666. #include <stddef.h>
  1667. #endif
  1668. EOF
  1669. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1670. egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1671. rm -rf conftest*
  1672. eval "ac_cv_type_uint64_t=yes"
  1673. else
  1674. rm -rf conftest*
  1675. eval "ac_cv_type_uint64_t=no"
  1676. fi
  1677. rm -f conftest*
  1678. fi
  1679. if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
  1680. echo "$ac_t""yes" 1>&6
  1681. else
  1682. echo "$ac_t""no" 1>&6
  1683. cat >> confdefs.h <<EOF
  1684. #define uint64_t $long64
  1685. EOF
  1686. fi
  1687. echo $ac_n "checking size of uint8_t""... $ac_c" 1>&6
  1688. echo "configure:1877: checking size of uint8_t" >&5
  1689. if eval "test \"`echo '$''{'ac_cv_sizeof_uint8_t'+set}'`\" = set"; then
  1690. echo $ac_n "(cached) $ac_c" 1>&6
  1691. else
  1692. if test "$cross_compiling" = yes; then
  1693. ac_cv_sizeof_uint8_t=0
  1694. else
  1695. cat > conftest.$ac_ext <<EOF
  1696. #line 1885 "configure"
  1697. #include "confdefs.h"
  1698. #include <sys/types.h>
  1699. #ifdef STDC_HEADERS
  1700. #include <stdlib.h>
  1701. #endif
  1702. #include <stdio.h>
  1703. main()
  1704. {
  1705. FILE *f=fopen("conftestval", "w");
  1706. if (!f) exit(1);
  1707. fprintf(f, "%d\n", sizeof(uint8_t));
  1708. exit(0);
  1709. }
  1710. EOF
  1711. if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1712. then
  1713. ac_cv_sizeof_uint8_t=`cat conftestval`
  1714. else
  1715. echo "configure: failed program was:" >&5
  1716. cat conftest.$ac_ext >&5
  1717. rm -fr conftest*
  1718. ac_cv_sizeof_uint8_t=0
  1719. fi
  1720. rm -fr conftest*
  1721. fi
  1722. fi
  1723. echo "$ac_t""$ac_cv_sizeof_uint8_t" 1>&6
  1724. cat >> confdefs.h <<EOF
  1725. #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
  1726. EOF
  1727. echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6
  1728. echo "configure:1922: checking size of uint16_t" >&5
  1729. if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then
  1730. echo $ac_n "(cached) $ac_c" 1>&6
  1731. else
  1732. if test "$cross_compiling" = yes; then
  1733. ac_cv_sizeof_uint16_t=0
  1734. else
  1735. cat > conftest.$ac_ext <<EOF
  1736. #line 1930 "configure"
  1737. #include "confdefs.h"
  1738. #include <sys/types.h>
  1739. #ifdef STDC_HEADERS
  1740. #include <stdlib.h>
  1741. #endif
  1742. #include <stdio.h>
  1743. main()
  1744. {
  1745. FILE *f=fopen("conftestval", "w");
  1746. if (!f) exit(1);
  1747. fprintf(f, "%d\n", sizeof(uint16_t));
  1748. exit(0);
  1749. }
  1750. EOF
  1751. if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1752. then
  1753. ac_cv_sizeof_uint16_t=`cat conftestval`
  1754. else
  1755. echo "configure: failed program was:" >&5
  1756. cat conftest.$ac_ext >&5
  1757. rm -fr conftest*
  1758. ac_cv_sizeof_uint16_t=0
  1759. fi
  1760. rm -fr conftest*
  1761. fi
  1762. fi
  1763. echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6
  1764. cat >> confdefs.h <<EOF
  1765. #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
  1766. EOF
  1767. echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6
  1768. echo "configure:1967: checking size of uint32_t" >&5
  1769. if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then
  1770. echo $ac_n "(cached) $ac_c" 1>&6
  1771. else
  1772. if test "$cross_compiling" = yes; then
  1773. ac_cv_sizeof_uint32_t=0
  1774. else
  1775. cat > conftest.$ac_ext <<EOF
  1776. #line 1975 "configure"
  1777. #include "confdefs.h"
  1778. #include <sys/types.h>
  1779. #ifdef STDC_HEADERS
  1780. #include <stdlib.h>
  1781. #endif
  1782. #include <stdio.h>
  1783. main()
  1784. {
  1785. FILE *f=fopen("conftestval", "w");
  1786. if (!f) exit(1);
  1787. fprintf(f, "%d\n", sizeof(uint32_t));
  1788. exit(0);
  1789. }
  1790. EOF
  1791. if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1792. then
  1793. ac_cv_sizeof_uint32_t=`cat conftestval`
  1794. else
  1795. echo "configure: failed program was:" >&5
  1796. cat conftest.$ac_ext >&5
  1797. rm -fr conftest*
  1798. ac_cv_sizeof_uint32_t=0
  1799. fi
  1800. rm -fr conftest*
  1801. fi
  1802. fi
  1803. echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6
  1804. cat >> confdefs.h <<EOF
  1805. #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
  1806. EOF
  1807. echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6
  1808. echo "configure:2012: checking size of uint64_t" >&5
  1809. if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then
  1810. echo $ac_n "(cached) $ac_c" 1>&6
  1811. else
  1812. if test "$cross_compiling" = yes; then
  1813. ac_cv_sizeof_uint64_t=0
  1814. else
  1815. cat > conftest.$ac_ext <<EOF
  1816. #line 2020 "configure"
  1817. #include "confdefs.h"
  1818. #include <sys/types.h>
  1819. #ifdef STDC_HEADERS
  1820. #include <stdlib.h>
  1821. #endif
  1822. #include <stdio.h>
  1823. main()
  1824. {
  1825. FILE *f=fopen("conftestval", "w");
  1826. if (!f) exit(1);
  1827. fprintf(f, "%d\n", sizeof(uint64_t));
  1828. exit(0);
  1829. }
  1830. EOF
  1831. if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1832. then
  1833. ac_cv_sizeof_uint64_t=`cat conftestval`
  1834. else
  1835. echo "configure: failed program was:" >&5
  1836. cat conftest.$ac_ext >&5
  1837. rm -fr conftest*
  1838. ac_cv_sizeof_uint64_t=0
  1839. fi
  1840. rm -fr conftest*
  1841. fi
  1842. fi
  1843. echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6
  1844. cat >> confdefs.h <<EOF
  1845. #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
  1846. EOF
  1847. for ac_func in strerror strtoul
  1848. do
  1849. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1850. echo "configure:2060: checking for $ac_func" >&5
  1851. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1852. echo $ac_n "(cached) $ac_c" 1>&6
  1853. else
  1854. cat > conftest.$ac_ext <<EOF
  1855. #line 2065 "configure"
  1856. #include "confdefs.h"
  1857. /* System header to define __stub macros and hopefully few prototypes,
  1858. which can conflict with char $ac_func(); below. */
  1859. #include <assert.h>
  1860. /* Override any gcc2 internal prototype to avoid an error. */
  1861. /* We use char because int might match the return type of a gcc2
  1862. builtin and then its argument prototype would still apply. */
  1863. char $ac_func();
  1864. int main() {
  1865. /* The GNU C library defines this for functions which it implements
  1866. to always fail with ENOSYS. Some functions are actually named
  1867. something starting with __ and the normal name is an alias. */
  1868. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1869. choke me
  1870. #else
  1871. $ac_func();
  1872. #endif
  1873. ; return 0; }
  1874. EOF
  1875. if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1876. rm -rf conftest*
  1877. eval "ac_cv_func_$ac_func=yes"
  1878. else
  1879. echo "configure: failed program was:" >&5
  1880. cat conftest.$ac_ext >&5
  1881. rm -rf conftest*
  1882. eval "ac_cv_func_$ac_func=no"
  1883. fi
  1884. rm -f conftest*
  1885. fi
  1886. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1887. echo "$ac_t""yes" 1>&6
  1888. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1889. cat >> confdefs.h <<EOF
  1890. #define $ac_tr_func 1
  1891. EOF
  1892. else
  1893. echo "$ac_t""no" 1>&6
  1894. fi
  1895. done
  1896. trap '' 1 2 15
  1897. cat > confcache <<\EOF
  1898. # This file is a shell script that caches the results of configure
  1899. # tests run on this system so they can be shared between configure
  1900. # scripts and configure runs. It is not useful on other systems.
  1901. # If it contains results you don't want to keep, you may remove or edit it.
  1902. #
  1903. # By default, configure uses ./config.cache as the cache file,
  1904. # creating it if it does not exist already. You can give configure
  1905. # the --cache-file=FILE option to use a different cache file; that is
  1906. # what configure does when it calls configure scripts in
  1907. # subdirectories, so they share the cache.
  1908. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1909. # config.status only pays attention to the cache file if you give it the
  1910. # --recheck option to rerun configure.
  1911. #
  1912. EOF
  1913. # The following way of writing the cache mishandles newlines in values,
  1914. # but we know of no workaround that is simple, portable, and efficient.
  1915. # So, don't put newlines in cache variables' values.
  1916. # Ultrix sh set writes to stderr and can't be redirected directly,
  1917. # and sets the high bit in the cache file unless we assign to the vars.
  1918. (set) 2>&1 |
  1919. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1920. *ac_space=\ *)
  1921. # `set' does not quote correctly, so add quotes (double-quote substitution
  1922. # turns \\\\ into \\, and sed turns \\ into \).
  1923. sed -n \
  1924. -e "s/'/'\\\\''/g" \
  1925. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1926. ;;
  1927. *)
  1928. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1929. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1930. ;;
  1931. esac >> confcache
  1932. if cmp -s $cache_file confcache; then
  1933. :
  1934. else
  1935. if test -w $cache_file; then
  1936. echo "updating cache $cache_file"
  1937. cat confcache > $cache_file
  1938. else
  1939. echo "not updating unwritable cache $cache_file"
  1940. fi
  1941. fi
  1942. rm -f confcache
  1943. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1944. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1945. # Let make expand exec_prefix.
  1946. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1947. # Any assignment to VPATH causes Sun make to only execute
  1948. # the first set of double-colon rules, so remove it if not needed.
  1949. # If there is a colon in the path, we need to keep it.
  1950. if test "x$srcdir" = x.; then
  1951. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1952. fi
  1953. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1954. DEFS=-DHAVE_CONFIG_H
  1955. # Without the "./", some shells look in PATH for config.status.
  1956. : ${CONFIG_STATUS=./config.status}
  1957. echo creating $CONFIG_STATUS
  1958. rm -f $CONFIG_STATUS
  1959. cat > $CONFIG_STATUS <<EOF
  1960. #! /bin/sh
  1961. # Generated automatically by configure.
  1962. # Run this file to recreate the current configuration.
  1963. # This directory was configured as follows,
  1964. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1965. #
  1966. # $0 $ac_configure_args
  1967. #
  1968. # Compiler output produced by configure, useful for debugging
  1969. # configure, is in ./config.log if it exists.
  1970. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1971. for ac_option
  1972. do
  1973. case "\$ac_option" in
  1974. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1975. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1976. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1977. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1978. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1979. exit 0 ;;
  1980. -help | --help | --hel | --he | --h)
  1981. echo "\$ac_cs_usage"; exit 0 ;;
  1982. *) echo "\$ac_cs_usage"; exit 1 ;;
  1983. esac
  1984. done
  1985. ac_given_srcdir=$srcdir
  1986. ac_given_INSTALL="$INSTALL"
  1987. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1988. EOF
  1989. cat >> $CONFIG_STATUS <<EOF
  1990. # Protect against being on the right side of a sed subst in config.status.
  1991. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1992. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1993. $ac_vpsub
  1994. $extrasub
  1995. s%@SHELL@%$SHELL%g
  1996. s%@CFLAGS@%$CFLAGS%g
  1997. s%@CPPFLAGS@%$CPPFLAGS%g
  1998. s%@CXXFLAGS@%$CXXFLAGS%g
  1999. s%@FFLAGS@%$FFLAGS%g
  2000. s%@DEFS@%$DEFS%g
  2001. s%@LDFLAGS@%$LDFLAGS%g
  2002. s%@LIBS@%$LIBS%g
  2003. s%@exec_prefix@%$exec_prefix%g
  2004. s%@prefix@%$prefix%g
  2005. s%@program_transform_name@%$program_transform_name%g
  2006. s%@bindir@%$bindir%g
  2007. s%@sbindir@%$sbindir%g
  2008. s%@libexecdir@%$libexecdir%g
  2009. s%@datadir@%$datadir%g
  2010. s%@sysconfdir@%$sysconfdir%g
  2011. s%@sharedstatedir@%$sharedstatedir%g
  2012. s%@localstatedir@%$localstatedir%g
  2013. s%@libdir@%$libdir%g
  2014. s%@includedir@%$includedir%g
  2015. s%@oldincludedir@%$oldincludedir%g
  2016. s%@infodir@%$infodir%g
  2017. s%@mandir@%$mandir%g
  2018. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2019. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2020. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2021. s%@PACKAGE@%$PACKAGE%g
  2022. s%@VERSION@%$VERSION%g
  2023. s%@ACLOCAL@%$ACLOCAL%g
  2024. s%@AUTOCONF@%$AUTOCONF%g
  2025. s%@AUTOMAKE@%$AUTOMAKE%g
  2026. s%@AUTOHEADER@%$AUTOHEADER%g
  2027. s%@MAKEINFO@%$MAKEINFO%g
  2028. s%@SET_MAKE@%$SET_MAKE%g
  2029. s%@CC@%$CC%g
  2030. s%@LN_S@%$LN_S%g
  2031. s%@CPP@%$CPP%g
  2032. CEOF
  2033. EOF
  2034. cat >> $CONFIG_STATUS <<\EOF
  2035. # Split the substitutions into bite-sized pieces for seds with
  2036. # small command number limits, like on Digital OSF/1 and HP-UX.
  2037. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2038. ac_file=1 # Number of current file.
  2039. ac_beg=1 # First line for current file.
  2040. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2041. ac_more_lines=:
  2042. ac_sed_cmds=""
  2043. while $ac_more_lines; do
  2044. if test $ac_beg -gt 1; then
  2045. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2046. else
  2047. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2048. fi
  2049. if test ! -s conftest.s$ac_file; then
  2050. ac_more_lines=false
  2051. rm -f conftest.s$ac_file
  2052. else
  2053. if test -z "$ac_sed_cmds"; then
  2054. ac_sed_cmds="sed -f conftest.s$ac_file"
  2055. else
  2056. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2057. fi
  2058. ac_file=`expr $ac_file + 1`
  2059. ac_beg=$ac_end
  2060. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2061. fi
  2062. done
  2063. if test -z "$ac_sed_cmds"; then
  2064. ac_sed_cmds=cat
  2065. fi
  2066. EOF
  2067. cat >> $CONFIG_STATUS <<EOF
  2068. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2069. EOF
  2070. cat >> $CONFIG_STATUS <<\EOF
  2071. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2072. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2073. case "$ac_file" in
  2074. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2075. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2076. *) ac_file_in="${ac_file}.in" ;;
  2077. esac
  2078. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2079. # Remove last slash and all that follows it. Not all systems have dirname.
  2080. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2081. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2082. # The file is in a subdirectory.
  2083. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2084. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2085. # A "../" for each directory in $ac_dir_suffix.
  2086. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2087. else
  2088. ac_dir_suffix= ac_dots=
  2089. fi
  2090. case "$ac_given_srcdir" in
  2091. .) srcdir=.
  2092. if test -z "$ac_dots"; then top_srcdir=.
  2093. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2094. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2095. *) # Relative path.
  2096. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2097. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2098. esac
  2099. case "$ac_given_INSTALL" in
  2100. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2101. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2102. esac
  2103. echo creating "$ac_file"
  2104. rm -f "$ac_file"
  2105. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2106. case "$ac_file" in
  2107. *Makefile*) ac_comsub="1i\\
  2108. # $configure_input" ;;
  2109. *) ac_comsub= ;;
  2110. esac
  2111. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2112. sed -e "$ac_comsub
  2113. s%@configure_input@%$configure_input%g
  2114. s%@srcdir@%$srcdir%g
  2115. s%@top_srcdir@%$top_srcdir%g
  2116. s%@INSTALL@%$INSTALL%g
  2117. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2118. fi; done
  2119. rm -f conftest.s*
  2120. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2121. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2122. #
  2123. # ac_d sets the value in "#define NAME VALUE" lines.
  2124. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2125. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2126. ac_dC='\3'
  2127. ac_dD='%g'
  2128. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2129. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2130. ac_uB='\([ ]\)%\1#\2define\3'
  2131. ac_uC=' '
  2132. ac_uD='\4%g'
  2133. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2134. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2135. ac_eB='$%\1#\2define\3'
  2136. ac_eC=' '
  2137. ac_eD='%g'
  2138. if test "${CONFIG_HEADERS+set}" != set; then
  2139. EOF
  2140. cat >> $CONFIG_STATUS <<EOF
  2141. CONFIG_HEADERS="config.h"
  2142. EOF
  2143. cat >> $CONFIG_STATUS <<\EOF
  2144. fi
  2145. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2146. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2147. case "$ac_file" in
  2148. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2149. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2150. *) ac_file_in="${ac_file}.in" ;;
  2151. esac
  2152. echo creating $ac_file
  2153. rm -f conftest.frag conftest.in conftest.out
  2154. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2155. cat $ac_file_inputs > conftest.in
  2156. EOF
  2157. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2158. # the proper values into config.h.in to produce config.h. And first:
  2159. # Protect against being on the right side of a sed subst in config.status.
  2160. # Protect against being in an unquoted here document in config.status.
  2161. rm -f conftest.vals
  2162. cat > conftest.hdr <<\EOF
  2163. s/[\\&%]/\\&/g
  2164. s%[\\$`]%\\&%g
  2165. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2166. s%ac_d%ac_u%gp
  2167. s%ac_u%ac_e%gp
  2168. EOF
  2169. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2170. rm -f conftest.hdr
  2171. # This sed command replaces #undef with comments. This is necessary, for
  2172. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2173. # on some systems where configure will not decide to define it.
  2174. cat >> conftest.vals <<\EOF
  2175. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2176. EOF
  2177. # Break up conftest.vals because some shells have a limit on
  2178. # the size of here documents, and old seds have small limits too.
  2179. rm -f conftest.tail
  2180. while :
  2181. do
  2182. ac_lines=`grep -c . conftest.vals`
  2183. # grep -c gives empty output for an empty file on some AIX systems.
  2184. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2185. # Write a limited-size here document to conftest.frag.
  2186. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2187. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2188. echo 'CEOF
  2189. sed -f conftest.frag conftest.in > conftest.out
  2190. rm -f conftest.in
  2191. mv conftest.out conftest.in
  2192. ' >> $CONFIG_STATUS
  2193. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2194. rm -f conftest.vals
  2195. mv conftest.tail conftest.vals
  2196. done
  2197. rm -f conftest.vals
  2198. cat >> $CONFIG_STATUS <<\EOF
  2199. rm -f conftest.frag conftest.h
  2200. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2201. cat conftest.in >> conftest.h
  2202. rm -f conftest.in
  2203. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2204. echo "$ac_file is unchanged"
  2205. rm -f conftest.h
  2206. else
  2207. # Remove last slash and all that follows it. Not all systems have dirname.
  2208. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2209. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2210. # The file is in a subdirectory.
  2211. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2212. fi
  2213. rm -f $ac_file
  2214. mv conftest.h $ac_file
  2215. fi
  2216. fi; done
  2217. EOF
  2218. cat >> $CONFIG_STATUS <<EOF
  2219. EOF
  2220. cat >> $CONFIG_STATUS <<\EOF
  2221. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  2222. exit 0
  2223. EOF
  2224. chmod +x $CONFIG_STATUS
  2225. rm -fr confdefs* $ac_clean_files
  2226. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1