configure 42 KB

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