configure 61 KB

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