configure 67 KB

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