configure 49 KB

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