configure 68 KB

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