configure 126 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742
  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_help="$ac_help
  13. --disable-ipv6 disable IPv6 support"
  14. ac_help="$ac_help
  15. --with-tcllib=PATH full path to Tcl library"
  16. ac_help="$ac_help
  17. --with-tclinc=PATH full path to Tcl header"
  18. # Initialize some variables set by options.
  19. # The variables have the same names as the options, with
  20. # dashes changed to underlines.
  21. build=NONE
  22. cache_file=./config.cache
  23. exec_prefix=NONE
  24. host=NONE
  25. no_create=
  26. nonopt=NONE
  27. no_recursion=
  28. prefix=NONE
  29. program_prefix=NONE
  30. program_suffix=NONE
  31. program_transform_name=s,x,x,
  32. silent=
  33. site=
  34. srcdir=
  35. target=NONE
  36. verbose=
  37. x_includes=NONE
  38. x_libraries=NONE
  39. bindir='${exec_prefix}/bin'
  40. sbindir='${exec_prefix}/sbin'
  41. libexecdir='${exec_prefix}/libexec'
  42. datadir='${prefix}/share'
  43. sysconfdir='${prefix}/etc'
  44. sharedstatedir='${prefix}/com'
  45. localstatedir='${prefix}/var'
  46. libdir='${exec_prefix}/lib'
  47. includedir='${prefix}/include'
  48. oldincludedir='/usr/include'
  49. infodir='${prefix}/info'
  50. mandir='${prefix}/man'
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  54. SHELL=${CONFIG_SHELL-/bin/sh}
  55. # Maximum number of lines to put in a shell here document.
  56. ac_max_here_lines=12
  57. ac_prev=
  58. for ac_option
  59. do
  60. # If the previous option needs an argument, assign it.
  61. if test -n "$ac_prev"; then
  62. eval "$ac_prev=\$ac_option"
  63. ac_prev=
  64. continue
  65. fi
  66. case "$ac_option" in
  67. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  68. *) ac_optarg= ;;
  69. esac
  70. # Accept the important Cygnus configure options, so we can diagnose typos.
  71. case "$ac_option" in
  72. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  73. ac_prev=bindir ;;
  74. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  75. bindir="$ac_optarg" ;;
  76. -build | --build | --buil | --bui | --bu)
  77. ac_prev=build ;;
  78. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  79. build="$ac_optarg" ;;
  80. -cache-file | --cache-file | --cache-fil | --cache-fi \
  81. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  82. ac_prev=cache_file ;;
  83. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  84. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  85. cache_file="$ac_optarg" ;;
  86. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  87. ac_prev=datadir ;;
  88. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  89. | --da=*)
  90. datadir="$ac_optarg" ;;
  91. -disable-* | --disable-*)
  92. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  93. # Reject names that are not valid shell variable names.
  94. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  95. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  96. fi
  97. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  98. eval "enable_${ac_feature}=no" ;;
  99. -enable-* | --enable-*)
  100. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  101. # Reject names that are not valid shell variable names.
  102. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  103. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  104. fi
  105. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  106. case "$ac_option" in
  107. *=*) ;;
  108. *) ac_optarg=yes ;;
  109. esac
  110. eval "enable_${ac_feature}='$ac_optarg'" ;;
  111. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  112. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  113. | --exec | --exe | --ex)
  114. ac_prev=exec_prefix ;;
  115. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  116. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  117. | --exec=* | --exe=* | --ex=*)
  118. exec_prefix="$ac_optarg" ;;
  119. -gas | --gas | --ga | --g)
  120. # Obsolete; use --with-gas.
  121. with_gas=yes ;;
  122. -help | --help | --hel | --he)
  123. # Omit some internal or obsolete options to make the list less imposing.
  124. # This message is too long to be a string in the A/UX 3.1 sh.
  125. cat << EOF
  126. Usage: configure [options] [host]
  127. Options: [defaults in brackets after descriptions]
  128. Configuration:
  129. --cache-file=FILE cache test results in FILE
  130. --help print this message
  131. --no-create do not create output files
  132. --quiet, --silent do not print \`checking...' messages
  133. --version print the version of autoconf that created configure
  134. Directory and file names:
  135. --prefix=PREFIX install architecture-independent files in PREFIX
  136. [$ac_default_prefix]
  137. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  138. [same as prefix]
  139. --bindir=DIR user executables in DIR [EPREFIX/bin]
  140. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  141. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  142. --datadir=DIR read-only architecture-independent data in DIR
  143. [PREFIX/share]
  144. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  145. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  146. [PREFIX/com]
  147. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  148. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  149. --includedir=DIR C header files in DIR [PREFIX/include]
  150. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  151. --infodir=DIR info documentation in DIR [PREFIX/info]
  152. --mandir=DIR man documentation in DIR [PREFIX/man]
  153. --srcdir=DIR find the sources in DIR [configure dir or ..]
  154. --program-prefix=PREFIX prepend PREFIX to installed program names
  155. --program-suffix=SUFFIX append SUFFIX to installed program names
  156. --program-transform-name=PROGRAM
  157. run sed PROGRAM on installed program names
  158. EOF
  159. cat << EOF
  160. Host type:
  161. --build=BUILD configure for building on BUILD [BUILD=HOST]
  162. --host=HOST configure for HOST [guessed]
  163. --target=TARGET configure for TARGET [TARGET=HOST]
  164. Features and packages:
  165. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  166. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  167. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  168. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  169. --x-includes=DIR X include files are in DIR
  170. --x-libraries=DIR X library files are in DIR
  171. EOF
  172. if test -n "$ac_help"; then
  173. echo "--enable and --with options recognized:$ac_help"
  174. fi
  175. exit 0 ;;
  176. -host | --host | --hos | --ho)
  177. ac_prev=host ;;
  178. -host=* | --host=* | --hos=* | --ho=*)
  179. host="$ac_optarg" ;;
  180. -includedir | --includedir | --includedi | --included | --include \
  181. | --includ | --inclu | --incl | --inc)
  182. ac_prev=includedir ;;
  183. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  184. | --includ=* | --inclu=* | --incl=* | --inc=*)
  185. includedir="$ac_optarg" ;;
  186. -infodir | --infodir | --infodi | --infod | --info | --inf)
  187. ac_prev=infodir ;;
  188. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  189. infodir="$ac_optarg" ;;
  190. -libdir | --libdir | --libdi | --libd)
  191. ac_prev=libdir ;;
  192. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  193. libdir="$ac_optarg" ;;
  194. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  195. | --libexe | --libex | --libe)
  196. ac_prev=libexecdir ;;
  197. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  198. | --libexe=* | --libex=* | --libe=*)
  199. libexecdir="$ac_optarg" ;;
  200. -localstatedir | --localstatedir | --localstatedi | --localstated \
  201. | --localstate | --localstat | --localsta | --localst \
  202. | --locals | --local | --loca | --loc | --lo)
  203. ac_prev=localstatedir ;;
  204. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  205. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  206. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  207. localstatedir="$ac_optarg" ;;
  208. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  209. ac_prev=mandir ;;
  210. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  211. mandir="$ac_optarg" ;;
  212. -nfp | --nfp | --nf)
  213. # Obsolete; use --without-fp.
  214. with_fp=no ;;
  215. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  216. | --no-cr | --no-c)
  217. no_create=yes ;;
  218. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  219. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  220. no_recursion=yes ;;
  221. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  222. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  223. | --oldin | --oldi | --old | --ol | --o)
  224. ac_prev=oldincludedir ;;
  225. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  226. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  227. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  228. oldincludedir="$ac_optarg" ;;
  229. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  230. ac_prev=prefix ;;
  231. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  232. prefix="$ac_optarg" ;;
  233. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  234. | --program-pre | --program-pr | --program-p)
  235. ac_prev=program_prefix ;;
  236. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  237. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  238. program_prefix="$ac_optarg" ;;
  239. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  240. | --program-suf | --program-su | --program-s)
  241. ac_prev=program_suffix ;;
  242. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  243. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  244. program_suffix="$ac_optarg" ;;
  245. -program-transform-name | --program-transform-name \
  246. | --program-transform-nam | --program-transform-na \
  247. | --program-transform-n | --program-transform- \
  248. | --program-transform | --program-transfor \
  249. | --program-transfo | --program-transf \
  250. | --program-trans | --program-tran \
  251. | --progr-tra | --program-tr | --program-t)
  252. ac_prev=program_transform_name ;;
  253. -program-transform-name=* | --program-transform-name=* \
  254. | --program-transform-nam=* | --program-transform-na=* \
  255. | --program-transform-n=* | --program-transform-=* \
  256. | --program-transform=* | --program-transfor=* \
  257. | --program-transfo=* | --program-transf=* \
  258. | --program-trans=* | --program-tran=* \
  259. | --progr-tra=* | --program-tr=* | --program-t=*)
  260. program_transform_name="$ac_optarg" ;;
  261. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  262. | -silent | --silent | --silen | --sile | --sil)
  263. silent=yes ;;
  264. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  265. ac_prev=sbindir ;;
  266. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  267. | --sbi=* | --sb=*)
  268. sbindir="$ac_optarg" ;;
  269. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  270. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  271. | --sharedst | --shareds | --shared | --share | --shar \
  272. | --sha | --sh)
  273. ac_prev=sharedstatedir ;;
  274. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  275. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  276. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  277. | --sha=* | --sh=*)
  278. sharedstatedir="$ac_optarg" ;;
  279. -site | --site | --sit)
  280. ac_prev=site ;;
  281. -site=* | --site=* | --sit=*)
  282. site="$ac_optarg" ;;
  283. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  284. ac_prev=srcdir ;;
  285. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  286. srcdir="$ac_optarg" ;;
  287. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  288. | --syscon | --sysco | --sysc | --sys | --sy)
  289. ac_prev=sysconfdir ;;
  290. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  291. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  292. sysconfdir="$ac_optarg" ;;
  293. -target | --target | --targe | --targ | --tar | --ta | --t)
  294. ac_prev=target ;;
  295. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  296. target="$ac_optarg" ;;
  297. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  298. verbose=yes ;;
  299. -version | --version | --versio | --versi | --vers)
  300. echo "configure generated by autoconf version 2.13"
  301. exit 0 ;;
  302. -with-* | --with-*)
  303. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  304. # Reject names that are not valid shell variable names.
  305. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  306. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  307. fi
  308. ac_package=`echo $ac_package| sed 's/-/_/g'`
  309. case "$ac_option" in
  310. *=*) ;;
  311. *) ac_optarg=yes ;;
  312. esac
  313. eval "with_${ac_package}='$ac_optarg'" ;;
  314. -without-* | --without-*)
  315. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  316. # Reject names that are not valid shell variable names.
  317. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  318. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  319. fi
  320. ac_package=`echo $ac_package| sed 's/-/_/g'`
  321. eval "with_${ac_package}=no" ;;
  322. --x)
  323. # Obsolete; use --with-x.
  324. with_x=yes ;;
  325. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  326. | --x-incl | --x-inc | --x-in | --x-i)
  327. ac_prev=x_includes ;;
  328. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  329. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  330. x_includes="$ac_optarg" ;;
  331. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  332. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  333. ac_prev=x_libraries ;;
  334. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  335. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  336. x_libraries="$ac_optarg" ;;
  337. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  338. ;;
  339. *)
  340. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  341. echo "configure: warning: $ac_option: invalid host type" 1>&2
  342. fi
  343. if test "x$nonopt" != xNONE; then
  344. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  345. fi
  346. nonopt="$ac_option"
  347. ;;
  348. esac
  349. done
  350. if test -n "$ac_prev"; then
  351. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  352. fi
  353. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  354. # File descriptor usage:
  355. # 0 standard input
  356. # 1 file creation
  357. # 2 errors and warnings
  358. # 3 some systems may open it to /dev/tty
  359. # 4 used on the Kubota Titan
  360. # 6 checking for... messages and results
  361. # 5 compiler messages saved in config.log
  362. if test "$silent" = yes; then
  363. exec 6>/dev/null
  364. else
  365. exec 6>&1
  366. fi
  367. exec 5>./config.log
  368. echo "\
  369. This file contains any messages produced by compilers while
  370. running configure, to aid debugging if configure makes a mistake.
  371. " 1>&5
  372. # Strip out --no-create and --no-recursion so they do not pile up.
  373. # Also quote any args containing shell metacharacters.
  374. ac_configure_args=
  375. for ac_arg
  376. do
  377. case "$ac_arg" in
  378. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  379. | --no-cr | --no-c) ;;
  380. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  381. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  382. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  383. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  384. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  385. esac
  386. done
  387. # NLS nuisances.
  388. # Only set these to C if already set. These must not be set unconditionally
  389. # because not all systems understand e.g. LANG=C (notably SCO).
  390. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  391. # Non-C LC_CTYPE values break the ctype check.
  392. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  393. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  394. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  395. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  396. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  397. rm -rf conftest* confdefs.h
  398. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  399. echo > confdefs.h
  400. # A filename unique to this package, relative to the directory that
  401. # configure is in, which we can look for to find out if srcdir is correct.
  402. ac_unique_file=src/eggdrop.h
  403. # Find the source files, if location was not specified.
  404. if test -z "$srcdir"; then
  405. ac_srcdir_defaulted=yes
  406. # Try the directory containing this script, then its parent.
  407. ac_prog=$0
  408. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  409. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  410. srcdir=$ac_confdir
  411. if test ! -r $srcdir/$ac_unique_file; then
  412. srcdir=..
  413. fi
  414. else
  415. ac_srcdir_defaulted=no
  416. fi
  417. if test ! -r $srcdir/$ac_unique_file; then
  418. if test "$ac_srcdir_defaulted" = yes; then
  419. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  420. else
  421. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  422. fi
  423. fi
  424. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  425. # Prefer explicitly selected file to automatically selected ones.
  426. if test -z "$CONFIG_SITE"; then
  427. if test "x$prefix" != xNONE; then
  428. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  429. else
  430. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  431. fi
  432. fi
  433. for ac_site_file in $CONFIG_SITE; do
  434. if test -r "$ac_site_file"; then
  435. echo "loading site script $ac_site_file"
  436. . "$ac_site_file"
  437. fi
  438. done
  439. if test -r "$cache_file"; then
  440. echo "loading cache $cache_file"
  441. . $cache_file
  442. else
  443. echo "creating cache $cache_file"
  444. > $cache_file
  445. fi
  446. ac_ext=c
  447. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  448. ac_cpp='$CPP $CPPFLAGS'
  449. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  450. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  451. cross_compiling=$ac_cv_prog_cc_cross
  452. ac_exeext=
  453. ac_objext=o
  454. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  455. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  456. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  457. ac_n= ac_c='
  458. ' ac_t=' '
  459. else
  460. ac_n=-n ac_c= ac_t=
  461. fi
  462. else
  463. ac_n= ac_c='\c' ac_t=
  464. fi
  465. # From configure.in Revision: 1.3
  466. # Remove --cache-file and --srcdir arguments so they do not pile up.
  467. egg_ac_parameters=
  468. ac_prev=
  469. for ac_arg in $ac_configure_args; do
  470. if test -n "$ac_prev"; then
  471. ac_prev=
  472. continue
  473. fi
  474. case $ac_arg in
  475. -cache-file | --cache-file | --cache-fil | --cache-fi \
  476. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  477. ac_prev=cache_file ;;
  478. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  479. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  480. | --c=*)
  481. ;;
  482. --config-cache | -C)
  483. ;;
  484. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  485. ac_prev=srcdir ;;
  486. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  487. ;;
  488. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  489. esac
  490. done
  491. # Setup build environment
  492. # Extract the first word of "gcc", so it can be a program name with args.
  493. set dummy gcc; ac_word=$2
  494. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  495. echo "configure:566: checking for $ac_word" >&5
  496. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  497. echo $ac_n "(cached) $ac_c" 1>&6
  498. else
  499. if test -n "$CC"; then
  500. ac_cv_prog_CC="$CC" # Let the user override the test.
  501. else
  502. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  503. ac_dummy="$PATH"
  504. for ac_dir in $ac_dummy; do
  505. test -z "$ac_dir" && ac_dir=.
  506. if test -f $ac_dir/$ac_word; then
  507. ac_cv_prog_CC="gcc"
  508. break
  509. fi
  510. done
  511. IFS="$ac_save_ifs"
  512. fi
  513. fi
  514. CC="$ac_cv_prog_CC"
  515. if test -n "$CC"; then
  516. echo "$ac_t""$CC" 1>&6
  517. else
  518. echo "$ac_t""no" 1>&6
  519. fi
  520. if test -z "$CC"; then
  521. # Extract the first word of "cc", so it can be a program name with args.
  522. set dummy cc; ac_word=$2
  523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  524. echo "configure:596: checking for $ac_word" >&5
  525. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  526. echo $ac_n "(cached) $ac_c" 1>&6
  527. else
  528. if test -n "$CC"; then
  529. ac_cv_prog_CC="$CC" # Let the user override the test.
  530. else
  531. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  532. ac_prog_rejected=no
  533. ac_dummy="$PATH"
  534. for ac_dir in $ac_dummy; do
  535. test -z "$ac_dir" && ac_dir=.
  536. if test -f $ac_dir/$ac_word; then
  537. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  538. ac_prog_rejected=yes
  539. continue
  540. fi
  541. ac_cv_prog_CC="cc"
  542. break
  543. fi
  544. done
  545. IFS="$ac_save_ifs"
  546. if test $ac_prog_rejected = yes; then
  547. # We found a bogon in the path, so make sure we never use it.
  548. set dummy $ac_cv_prog_CC
  549. shift
  550. if test $# -gt 0; then
  551. # We chose a different compiler from the bogus one.
  552. # However, it has the same basename, so the bogon will be chosen
  553. # first if we set CC to just the basename; use the full file name.
  554. shift
  555. set dummy "$ac_dir/$ac_word" "$@"
  556. shift
  557. ac_cv_prog_CC="$@"
  558. fi
  559. fi
  560. fi
  561. fi
  562. CC="$ac_cv_prog_CC"
  563. if test -n "$CC"; then
  564. echo "$ac_t""$CC" 1>&6
  565. else
  566. echo "$ac_t""no" 1>&6
  567. fi
  568. if test -z "$CC"; then
  569. case "`uname -s`" in
  570. *win32* | *WIN32*)
  571. # Extract the first word of "cl", so it can be a program name with args.
  572. set dummy cl; ac_word=$2
  573. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  574. echo "configure:647: 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_dummy="$PATH"
  583. for ac_dir in $ac_dummy; do
  584. test -z "$ac_dir" && ac_dir=.
  585. if test -f $ac_dir/$ac_word; then
  586. ac_cv_prog_CC="cl"
  587. break
  588. fi
  589. done
  590. IFS="$ac_save_ifs"
  591. fi
  592. fi
  593. CC="$ac_cv_prog_CC"
  594. if test -n "$CC"; then
  595. echo "$ac_t""$CC" 1>&6
  596. else
  597. echo "$ac_t""no" 1>&6
  598. fi
  599. ;;
  600. esac
  601. fi
  602. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  603. fi
  604. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  605. echo "configure:679: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  606. ac_ext=c
  607. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  608. ac_cpp='$CPP $CPPFLAGS'
  609. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  610. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  611. cross_compiling=$ac_cv_prog_cc_cross
  612. cat > conftest.$ac_ext << EOF
  613. #line 690 "configure"
  614. #include "confdefs.h"
  615. main(){return(0);}
  616. EOF
  617. if { (eval echo configure:695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  618. ac_cv_prog_cc_works=yes
  619. # If we can't run a trivial program, we are probably using a cross compiler.
  620. if (./conftest; exit) 2>/dev/null; then
  621. ac_cv_prog_cc_cross=no
  622. else
  623. ac_cv_prog_cc_cross=yes
  624. fi
  625. else
  626. echo "configure: failed program was:" >&5
  627. cat conftest.$ac_ext >&5
  628. ac_cv_prog_cc_works=no
  629. fi
  630. rm -fr conftest*
  631. ac_ext=c
  632. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  633. ac_cpp='$CPP $CPPFLAGS'
  634. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  635. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  636. cross_compiling=$ac_cv_prog_cc_cross
  637. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  638. if test $ac_cv_prog_cc_works = no; then
  639. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  640. fi
  641. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  642. echo "configure:721: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  643. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  644. cross_compiling=$ac_cv_prog_cc_cross
  645. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  646. echo "configure:726: checking whether we are using GNU C" >&5
  647. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  648. echo $ac_n "(cached) $ac_c" 1>&6
  649. else
  650. cat > conftest.c <<EOF
  651. #ifdef __GNUC__
  652. yes;
  653. #endif
  654. EOF
  655. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  656. ac_cv_prog_gcc=yes
  657. else
  658. ac_cv_prog_gcc=no
  659. fi
  660. fi
  661. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  662. if test $ac_cv_prog_gcc = yes; then
  663. GCC=yes
  664. else
  665. GCC=
  666. fi
  667. ac_test_CFLAGS="${CFLAGS+set}"
  668. ac_save_CFLAGS="$CFLAGS"
  669. CFLAGS=
  670. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  671. echo "configure:754: checking whether ${CC-cc} accepts -g" >&5
  672. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  673. echo $ac_n "(cached) $ac_c" 1>&6
  674. else
  675. echo 'void f(){}' > conftest.c
  676. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  677. ac_cv_prog_cc_g=yes
  678. else
  679. ac_cv_prog_cc_g=no
  680. fi
  681. rm -f conftest*
  682. fi
  683. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  684. if test "$ac_test_CFLAGS" = set; then
  685. CFLAGS="$ac_save_CFLAGS"
  686. elif test $ac_cv_prog_cc_g = yes; then
  687. if test "$GCC" = yes; then
  688. CFLAGS="-g -O2"
  689. else
  690. CFLAGS="-g"
  691. fi
  692. else
  693. if test "$GCC" = yes; then
  694. CFLAGS="-O2"
  695. else
  696. CFLAGS=
  697. fi
  698. fi
  699. if test "${cross_compiling-x}" = "x"
  700. then
  701. cat << 'EOF' >&2
  702. configure: error:
  703. This system does not appear to have a working C compiler.
  704. A working C compiler is required to compile Eggdrop.
  705. EOF
  706. exit 1
  707. fi
  708. # Crazy machines
  709. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  710. echo "configure:800: checking how to run the C preprocessor" >&5
  711. # On Suns, sometimes $CPP names a directory.
  712. if test -n "$CPP" && test -d "$CPP"; then
  713. CPP=
  714. fi
  715. if test -z "$CPP"; then
  716. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  717. echo $ac_n "(cached) $ac_c" 1>&6
  718. else
  719. # This must be in double quotes, not single quotes, because CPP may get
  720. # substituted into the Makefile and "${CC-cc}" will confuse make.
  721. CPP="${CC-cc} -E"
  722. # On the NeXT, cc -E runs the code through the compiler's parser,
  723. # not just through cpp.
  724. cat > conftest.$ac_ext <<EOF
  725. #line 815 "configure"
  726. #include "confdefs.h"
  727. #include <assert.h>
  728. Syntax Error
  729. EOF
  730. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  731. { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  732. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  733. if test -z "$ac_err"; then
  734. :
  735. else
  736. echo "$ac_err" >&5
  737. echo "configure: failed program was:" >&5
  738. cat conftest.$ac_ext >&5
  739. rm -rf conftest*
  740. CPP="${CC-cc} -E -traditional-cpp"
  741. cat > conftest.$ac_ext <<EOF
  742. #line 832 "configure"
  743. #include "confdefs.h"
  744. #include <assert.h>
  745. Syntax Error
  746. EOF
  747. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  748. { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  749. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  750. if test -z "$ac_err"; then
  751. :
  752. else
  753. echo "$ac_err" >&5
  754. echo "configure: failed program was:" >&5
  755. cat conftest.$ac_ext >&5
  756. rm -rf conftest*
  757. CPP="${CC-cc} -nologo -E"
  758. cat > conftest.$ac_ext <<EOF
  759. #line 849 "configure"
  760. #include "confdefs.h"
  761. #include <assert.h>
  762. Syntax Error
  763. EOF
  764. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  765. { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  766. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  767. if test -z "$ac_err"; then
  768. :
  769. else
  770. echo "$ac_err" >&5
  771. echo "configure: failed program was:" >&5
  772. cat conftest.$ac_ext >&5
  773. rm -rf conftest*
  774. CPP=/lib/cpp
  775. fi
  776. rm -f conftest*
  777. fi
  778. rm -f conftest*
  779. fi
  780. rm -f conftest*
  781. ac_cv_prog_CPP="$CPP"
  782. fi
  783. CPP="$ac_cv_prog_CPP"
  784. else
  785. ac_cv_prog_CPP="$CPP"
  786. fi
  787. echo "$ac_t""$CPP" 1>&6
  788. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  789. echo "configure:880: checking for AIX" >&5
  790. cat > conftest.$ac_ext <<EOF
  791. #line 882 "configure"
  792. #include "confdefs.h"
  793. #ifdef _AIX
  794. yes
  795. #endif
  796. EOF
  797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  798. egrep "yes" >/dev/null 2>&1; then
  799. rm -rf conftest*
  800. echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  801. #define _ALL_SOURCE 1
  802. EOF
  803. else
  804. rm -rf conftest*
  805. echo "$ac_t""no" 1>&6
  806. fi
  807. rm -f conftest*
  808. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  809. echo "configure:904: checking for POSIXized ISC" >&5
  810. if test -d /etc/conf/kconfig.d &&
  811. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  812. then
  813. echo "$ac_t""yes" 1>&6
  814. ISC=yes # If later tests want to check for ISC.
  815. cat >> confdefs.h <<\EOF
  816. #define _POSIX_SOURCE 1
  817. EOF
  818. if test "$GCC" = yes; then
  819. CC="$CC -posix"
  820. else
  821. CC="$CC -Xp"
  822. fi
  823. else
  824. echo "$ac_t""no" 1>&6
  825. ISC=
  826. fi
  827. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  828. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  829. echo "configure:926: checking for minix/config.h" >&5
  830. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  831. echo $ac_n "(cached) $ac_c" 1>&6
  832. else
  833. cat > conftest.$ac_ext <<EOF
  834. #line 931 "configure"
  835. #include "confdefs.h"
  836. #include <minix/config.h>
  837. EOF
  838. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  839. { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  840. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  841. if test -z "$ac_err"; then
  842. rm -rf conftest*
  843. eval "ac_cv_header_$ac_safe=yes"
  844. else
  845. echo "$ac_err" >&5
  846. echo "configure: failed program was:" >&5
  847. cat conftest.$ac_ext >&5
  848. rm -rf conftest*
  849. eval "ac_cv_header_$ac_safe=no"
  850. fi
  851. rm -f conftest*
  852. fi
  853. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  854. echo "$ac_t""yes" 1>&6
  855. MINIX=yes
  856. else
  857. echo "$ac_t""no" 1>&6
  858. MINIX=
  859. fi
  860. if test "$MINIX" = yes; then
  861. cat >> confdefs.h <<\EOF
  862. #define _POSIX_SOURCE 1
  863. EOF
  864. cat >> confdefs.h <<\EOF
  865. #define _POSIX_1_SOURCE 2
  866. EOF
  867. cat >> confdefs.h <<\EOF
  868. #define _MINIX 1
  869. EOF
  870. fi
  871. # Speedup compile
  872. if test -z "$no_pipe"
  873. then
  874. if test -n "$GCC"
  875. then
  876. echo $ac_n "checking whether the compiler understands -pipe""... $ac_c" 1>&6
  877. echo "configure:980: checking whether the compiler understands -pipe" >&5
  878. if eval "test \"`echo '$''{'egg_cv_var_ccpipe'+set}'`\" = set"; then
  879. echo $ac_n "(cached) $ac_c" 1>&6
  880. else
  881. ac_old_CC="$CC"
  882. CC="$CC -pipe"
  883. cat > conftest.$ac_ext <<EOF
  884. #line 987 "configure"
  885. #include "confdefs.h"
  886. int main() {
  887. ; return 0; }
  888. EOF
  889. if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  890. rm -rf conftest*
  891. egg_cv_var_ccpipe="yes"
  892. else
  893. echo "configure: failed program was:" >&5
  894. cat conftest.$ac_ext >&5
  895. rm -rf conftest*
  896. egg_cv_var_ccpipe="no"
  897. fi
  898. rm -f conftest*
  899. CC="$ac_old_CC"
  900. fi
  901. echo "$ac_t""$egg_cv_var_ccpipe" 1>&6
  902. if test "$egg_cv_var_ccpipe" = "yes"
  903. then
  904. CC="$CC -pipe"
  905. fi
  906. fi
  907. fi
  908. # Create static binaries
  909. if test -z "$no_static"
  910. then
  911. if test -n "$GCC"
  912. then
  913. echo $ac_n "checking whether the compiler understands -static""... $ac_c" 1>&6
  914. echo "configure:1023: checking whether the compiler understands -static" >&5
  915. if eval "test \"`echo '$''{'egg_cv_var_ccstatic'+set}'`\" = set"; then
  916. echo $ac_n "(cached) $ac_c" 1>&6
  917. else
  918. ac_old_CC="$CC"
  919. CC="$CC -static"
  920. cat > conftest.$ac_ext <<EOF
  921. #line 1030 "configure"
  922. #include "confdefs.h"
  923. int main() {
  924. ; return 0; }
  925. EOF
  926. if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  927. rm -rf conftest*
  928. egg_cv_var_ccstatic="yes"
  929. else
  930. echo "configure: failed program was:" >&5
  931. cat conftest.$ac_ext >&5
  932. rm -rf conftest*
  933. egg_cv_var_ccstatic="no"
  934. fi
  935. rm -f conftest*
  936. CC="$ac_old_CC"
  937. fi
  938. echo "$ac_t""$egg_cv_var_ccstatic" 1>&6
  939. if test "$egg_cv_var_ccstatic" = "yes"
  940. then
  941. CC="$CC -static"
  942. else
  943. cat << 'EOF' >&2
  944. configure: error:
  945. Your C compiler does not support -static.
  946. This compile flag is required for the botpack.
  947. EOF
  948. exit 1
  949. fi
  950. fi
  951. fi
  952. # Checks for programs
  953. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  954. echo "configure:1071: checking whether ${MAKE-make} sets \${MAKE}" >&5
  955. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  956. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  957. echo $ac_n "(cached) $ac_c" 1>&6
  958. else
  959. cat > conftestmake <<\EOF
  960. all:
  961. @echo 'ac_maketemp="${MAKE}"'
  962. EOF
  963. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  964. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  965. if test -n "$ac_maketemp"; then
  966. eval ac_cv_prog_make_${ac_make}_set=yes
  967. else
  968. eval ac_cv_prog_make_${ac_make}_set=no
  969. fi
  970. rm -f conftestmake
  971. fi
  972. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  973. echo "$ac_t""yes" 1>&6
  974. SET_MAKE=
  975. else
  976. echo "$ac_t""no" 1>&6
  977. SET_MAKE="MAKE=${MAKE-make}"
  978. fi
  979. cat << 'EOF' > conftest.head
  980. a
  981. b
  982. c
  983. EOF
  984. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  985. do
  986. echo $ac_n "checking whether $ac_prog works""... $ac_c" 1>&6
  987. echo "configure:1106: checking whether $ac_prog works" >&5
  988. if eval "test \"`echo '$''{'ac_cv_prog_HEAD_1'+set}'`\" = set"; then
  989. echo $ac_n "(cached) $ac_c" 1>&6
  990. else
  991. if test -n "$HEAD_1"
  992. then
  993. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  994. else
  995. if test "`cat conftest.head | $ac_prog`" = "a";
  996. then
  997. echo "$ac_t""yes" 1>&6
  998. ac_cv_prog_HEAD_1=$ac_prog
  999. else
  1000. echo "$ac_t""no" 1>&6
  1001. fi
  1002. fi
  1003. fi
  1004. test -n "$ac_cv_prog_HEAD_1" && break
  1005. done
  1006. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  1007. then
  1008. cat << 'EOF' >&2
  1009. configure: error:
  1010. This system seems to lack a working 'head -1' or 'head -n 1' command.
  1011. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  1012. EOF
  1013. exit 1
  1014. fi
  1015. rm -f conftest.head
  1016. HEAD_1=$ac_cv_prog_HEAD_1
  1017. # Extract the first word of "strip", so it can be a program name with args.
  1018. set dummy strip; ac_word=$2
  1019. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1020. echo "configure:1144: checking for $ac_word" >&5
  1021. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1022. echo $ac_n "(cached) $ac_c" 1>&6
  1023. else
  1024. if test -n "$STRIP"; then
  1025. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1026. else
  1027. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1028. ac_dummy="$PATH"
  1029. for ac_dir in $ac_dummy; do
  1030. test -z "$ac_dir" && ac_dir=.
  1031. if test -f $ac_dir/$ac_word; then
  1032. ac_cv_prog_STRIP="strip"
  1033. break
  1034. fi
  1035. done
  1036. IFS="$ac_save_ifs"
  1037. fi
  1038. fi
  1039. STRIP="$ac_cv_prog_STRIP"
  1040. if test -n "$STRIP"; then
  1041. echo "$ac_t""$STRIP" 1>&6
  1042. else
  1043. echo "$ac_t""no" 1>&6
  1044. fi
  1045. if test "${STRIP-x}" = "x"
  1046. then
  1047. STRIP=touch
  1048. fi
  1049. # awk is needed for Tcl library and header checks, and eggdrop version subst
  1050. for ac_prog in mawk gawk nawk awk
  1051. do
  1052. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1053. set dummy $ac_prog; ac_word=$2
  1054. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1055. echo "configure:1181: checking for $ac_word" >&5
  1056. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  1057. echo $ac_n "(cached) $ac_c" 1>&6
  1058. else
  1059. if test -n "$AWK"; then
  1060. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1061. else
  1062. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1063. ac_dummy="$PATH"
  1064. for ac_dir in $ac_dummy; do
  1065. test -z "$ac_dir" && ac_dir=.
  1066. if test -f $ac_dir/$ac_word; then
  1067. ac_cv_prog_AWK="$ac_prog"
  1068. break
  1069. fi
  1070. done
  1071. IFS="$ac_save_ifs"
  1072. fi
  1073. fi
  1074. AWK="$ac_cv_prog_AWK"
  1075. if test -n "$AWK"; then
  1076. echo "$ac_t""$AWK" 1>&6
  1077. else
  1078. echo "$ac_t""no" 1>&6
  1079. fi
  1080. test -n "$AWK" && break
  1081. done
  1082. if test "${AWK-x}" = "x"
  1083. then
  1084. cat << 'EOF' >&2
  1085. configure: error:
  1086. This system seems to lack a working 'awk' command.
  1087. A working 'awk' command is required to compile Eggdrop.
  1088. EOF
  1089. exit 1
  1090. fi
  1091. # basename is needed for Tcl library and header checks
  1092. # Extract the first word of "basename", so it can be a program name with args.
  1093. set dummy basename; ac_word=$2
  1094. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1095. echo "configure:1226: checking for $ac_word" >&5
  1096. if eval "test \"`echo '$''{'ac_cv_prog_BASENAME'+set}'`\" = set"; then
  1097. echo $ac_n "(cached) $ac_c" 1>&6
  1098. else
  1099. if test -n "$BASENAME"; then
  1100. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  1101. else
  1102. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1103. ac_dummy="$PATH"
  1104. for ac_dir in $ac_dummy; do
  1105. test -z "$ac_dir" && ac_dir=.
  1106. if test -f $ac_dir/$ac_word; then
  1107. ac_cv_prog_BASENAME="basename"
  1108. break
  1109. fi
  1110. done
  1111. IFS="$ac_save_ifs"
  1112. fi
  1113. fi
  1114. BASENAME="$ac_cv_prog_BASENAME"
  1115. if test -n "$BASENAME"; then
  1116. echo "$ac_t""$BASENAME" 1>&6
  1117. else
  1118. echo "$ac_t""no" 1>&6
  1119. fi
  1120. if test "${BASENAME-x}" = "x"
  1121. then
  1122. cat << 'EOF' >&2
  1123. configure: error:
  1124. This system seems to lack a working 'basename' command.
  1125. A working 'basename' command is required to compile Eggdrop.
  1126. EOF
  1127. exit 1
  1128. fi
  1129. # Extract the first word of "uname", so it can be a program name with args.
  1130. set dummy uname; ac_word=$2
  1131. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1132. echo "configure:1267: checking for $ac_word" >&5
  1133. if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then
  1134. echo $ac_n "(cached) $ac_c" 1>&6
  1135. else
  1136. if test -n "$UNAME"; then
  1137. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  1138. else
  1139. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1140. ac_dummy="$PATH"
  1141. for ac_dir in $ac_dummy; do
  1142. test -z "$ac_dir" && ac_dir=.
  1143. if test -f $ac_dir/$ac_word; then
  1144. ac_cv_prog_UNAME="uname"
  1145. break
  1146. fi
  1147. done
  1148. IFS="$ac_save_ifs"
  1149. fi
  1150. fi
  1151. UNAME="$ac_cv_prog_UNAME"
  1152. if test -n "$UNAME"; then
  1153. echo "$ac_t""$UNAME" 1>&6
  1154. else
  1155. echo "$ac_t""no" 1>&6
  1156. fi
  1157. # Test the os and set the module linking settings
  1158. LINUX=no
  1159. IRIX=no
  1160. SUNOS=no
  1161. HPUX=no
  1162. EGG_CYGWIN=no
  1163. NEED_DL=1
  1164. echo $ac_n "checking system type""... $ac_c" 1>&6
  1165. echo "configure:1303: checking system type" >&5
  1166. if eval "test \"`echo '$''{'egg_cv_var_system_type'+set}'`\" = set"; then
  1167. echo $ac_n "(cached) $ac_c" 1>&6
  1168. else
  1169. egg_cv_var_system_type=`$UNAME -s`
  1170. fi
  1171. echo "$ac_t""$egg_cv_var_system_type" 1>&6
  1172. echo $ac_n "checking system release""... $ac_c" 1>&6
  1173. echo "configure:1312: checking system release" >&5
  1174. if eval "test \"`echo '$''{'egg_cv_var_system_release'+set}'`\" = set"; then
  1175. echo $ac_n "(cached) $ac_c" 1>&6
  1176. else
  1177. egg_cv_var_system_release=`$UNAME -r`
  1178. fi
  1179. echo "$ac_t""$egg_cv_var_system_release" 1>&6
  1180. case "$egg_cv_var_system_type" in
  1181. BSD/OS)
  1182. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1183. 2)
  1184. NEED_DL=0
  1185. ;;
  1186. 3)
  1187. cat >> confdefs.h <<\EOF
  1188. #define MODULES_OK 1
  1189. EOF
  1190. ;;
  1191. *)
  1192. CFLAGS="$CFLAGS -Wall"
  1193. cat >> confdefs.h <<\EOF
  1194. #define MODULES_OK 1
  1195. EOF
  1196. ;;
  1197. esac
  1198. ;;
  1199. CYGWI*)
  1200. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  1201. 1.*)
  1202. NEED_DL=0
  1203. echo $ac_n "checking how to access the Win32 API""... $ac_c" 1>&6
  1204. echo "configure:1346: checking how to access the Win32 API" >&5
  1205. WIN32FLAGS=
  1206. cat > conftest.$ac_ext <<EOF
  1207. #line 1349 "configure"
  1208. #include "confdefs.h"
  1209. int main() {
  1210. #ifndef WIN32
  1211. # ifndef _WIN32
  1212. # error WIN32 or _WIN32 not defined
  1213. # endif
  1214. #endif
  1215. ; return 0; }
  1216. EOF
  1217. if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1218. rm -rf conftest*
  1219. echo "$ac_t""present by default" 1>&6
  1220. else
  1221. echo "configure: failed program was:" >&5
  1222. cat conftest.$ac_ext >&5
  1223. rm -rf conftest*
  1224. ac_compile_save="$ac_compile"
  1225. save_CC="$CC"
  1226. ac_compile="$ac_compile -mwin32"
  1227. CC="$CC -mwin32"
  1228. cat > conftest.$ac_ext <<EOF
  1229. #line 1376 "configure"
  1230. #include "confdefs.h"
  1231. int main() {
  1232. #ifndef WIN32
  1233. # ifndef _WIN32
  1234. # error WIN32 or _WIN32 not defined
  1235. # endif
  1236. #endif
  1237. ; return 0; }
  1238. EOF
  1239. if { (eval echo configure:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1240. rm -rf conftest*
  1241. echo "$ac_t""found via -mwin32" 1>&6
  1242. ac_compile="$ac_compile_save"
  1243. CC="$save_CC"
  1244. WIN32FLAGS="-mwin32"
  1245. else
  1246. echo "configure: failed program was:" >&5
  1247. cat conftest.$ac_ext >&5
  1248. rm -rf conftest*
  1249. ac_compile="$ac_compile_save"
  1250. CC="$save_CC"
  1251. echo "$ac_t""not found" 1>&6
  1252. fi
  1253. rm -f conftest*
  1254. fi
  1255. rm -f conftest*
  1256. CC="$CC $WIN32FLAGS"
  1257. echo $ac_n "checking for /usr/lib/binmode.o""... $ac_c" 1>&6
  1258. echo "configure:1414: checking for /usr/lib/binmode.o" >&5
  1259. if test -r /usr/lib/binmode.o
  1260. then
  1261. echo "$ac_t""yes" 1>&6
  1262. LIBS="$LIBS /usr/lib/binmode.o"
  1263. else
  1264. echo "$ac_t""no" 1>&6
  1265. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1266. fi
  1267. cat >> confdefs.h <<\EOF
  1268. #define MODULES_OK 1
  1269. EOF
  1270. ;;
  1271. *)
  1272. NEED_DL=0
  1273. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1274. ;;
  1275. esac
  1276. EGG_CYGWIN=yes
  1277. cat >> confdefs.h <<\EOF
  1278. #define CYGWIN_HACKS 1
  1279. EOF
  1280. ;;
  1281. HP-UX)
  1282. HPUX=yes
  1283. NEED_DL=0
  1284. cat >> confdefs.h <<\EOF
  1285. #define MODULES_OK 1
  1286. EOF
  1287. cat >> confdefs.h <<\EOF
  1288. #define HPUX_HACKS 1
  1289. EOF
  1290. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  1291. then
  1292. cat >> confdefs.h <<\EOF
  1293. #define HPUX10_HACKS 1
  1294. EOF
  1295. fi
  1296. ;;
  1297. dell)
  1298. echo "$ac_t""Dell SVR4" 1>&6
  1299. NEED_DL=0
  1300. ;;
  1301. IRIX)
  1302. IRIX=yes
  1303. NEED_DL=0
  1304. ;;
  1305. Ultrix)
  1306. NEED_DL=0
  1307. SHELL=/bin/sh5
  1308. ;;
  1309. SINIX*)
  1310. NEED_DL=0
  1311. ;;
  1312. BeOS)
  1313. NEED_DL=0
  1314. ;;
  1315. Linux)
  1316. LINUX=yes
  1317. CFLAGS="$CFLAGS -Wall"
  1318. cat >> confdefs.h <<\EOF
  1319. #define MODULES_OK 1
  1320. EOF
  1321. ;;
  1322. Lynx)
  1323. NEED_DL=0
  1324. ;;
  1325. QNX)
  1326. NEED_DL=0
  1327. ;;
  1328. OSF1)
  1329. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1330. V*)
  1331. # FIXME: we should check this in a separate test
  1332. # Digital OSF uses an ancient version of gawk
  1333. if test "$AWK" = "gawk"
  1334. then
  1335. AWK=awk
  1336. fi
  1337. cat >> confdefs.h <<\EOF
  1338. #define MODULES_OK 1
  1339. EOF
  1340. ;;
  1341. 1.0|1.1|1.2)
  1342. cat >> confdefs.h <<\EOF
  1343. #define MODULES_OK 1
  1344. EOF
  1345. cat >> confdefs.h <<\EOF
  1346. #define OSF1_HACKS 1
  1347. EOF
  1348. ;;
  1349. 1.*)
  1350. cat >> confdefs.h <<\EOF
  1351. #define MODULES_OK 1
  1352. EOF
  1353. cat >> confdefs.h <<\EOF
  1354. #define OSF1_HACKS 1
  1355. EOF
  1356. ;;
  1357. *)
  1358. NEED_DL=0
  1359. ;;
  1360. esac
  1361. cat >> confdefs.h <<\EOF
  1362. #define STOP_UAC 1
  1363. EOF
  1364. cat >> confdefs.h <<\EOF
  1365. #define BROKEN_SNPRINTF 1
  1366. EOF
  1367. ;;
  1368. SunOS)
  1369. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  1370. then
  1371. # SunOS 4
  1372. SUNOS=yes
  1373. cat >> confdefs.h <<\EOF
  1374. #define DLOPEN_1 1
  1375. EOF
  1376. fi
  1377. cat >> confdefs.h <<\EOF
  1378. #define MODULES_OK 1
  1379. EOF
  1380. ;;
  1381. *BSD)
  1382. # FreeBSD/OpenBSD/NetBSD
  1383. cat >> confdefs.h <<\EOF
  1384. #define MODULES_OK 1
  1385. EOF
  1386. ;;
  1387. *)
  1388. echo $ac_n "checking if system is Mach based""... $ac_c" 1>&6
  1389. echo "configure:1546: checking if system is Mach based" >&5
  1390. if test -r /mach
  1391. then
  1392. echo "$ac_t""yes" 1>&6
  1393. NEED_DL=0
  1394. cat >> confdefs.h <<\EOF
  1395. #define BORGCUBES 1
  1396. EOF
  1397. else
  1398. echo "$ac_t""no" 1>&6
  1399. echo $ac_n "checking if system is QNX""... $ac_c" 1>&6
  1400. echo "configure:1557: checking if system is QNX" >&5
  1401. if test -r /cmds
  1402. then
  1403. echo "$ac_t""yes" 1>&6
  1404. NEED_DL=0
  1405. else
  1406. echo "$ac_t""no" 1>&6
  1407. echo "$ac_t""Something unknown!" 1>&6
  1408. echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
  1409. NEED_DL=0
  1410. fi
  1411. fi
  1412. ;;
  1413. esac
  1414. # Checks for system libraries
  1415. # FIXME: this needs to be fixed so that it works on IRIX
  1416. if test "$IRIX" = "yes"
  1417. then
  1418. echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
  1419. else
  1420. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  1421. echo "configure:1580: checking for socket in -lsocket" >&5
  1422. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  1423. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1424. echo $ac_n "(cached) $ac_c" 1>&6
  1425. else
  1426. ac_save_LIBS="$LIBS"
  1427. LIBS="-lsocket $LIBS"
  1428. cat > conftest.$ac_ext <<EOF
  1429. #line 1588 "configure"
  1430. #include "confdefs.h"
  1431. /* Override any gcc2 internal prototype to avoid an error. */
  1432. /* We use char because int might match the return type of a gcc2
  1433. builtin and then its argument prototype would still apply. */
  1434. char socket();
  1435. int main() {
  1436. socket()
  1437. ; return 0; }
  1438. EOF
  1439. if { (eval echo configure:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1440. rm -rf conftest*
  1441. eval "ac_cv_lib_$ac_lib_var=yes"
  1442. else
  1443. echo "configure: failed program was:" >&5
  1444. cat conftest.$ac_ext >&5
  1445. rm -rf conftest*
  1446. eval "ac_cv_lib_$ac_lib_var=no"
  1447. fi
  1448. rm -f conftest*
  1449. LIBS="$ac_save_LIBS"
  1450. fi
  1451. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1452. echo "$ac_t""yes" 1>&6
  1453. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1454. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1455. cat >> confdefs.h <<EOF
  1456. #define $ac_tr_lib 1
  1457. EOF
  1458. LIBS="-lsocket $LIBS"
  1459. else
  1460. echo "$ac_t""no" 1>&6
  1461. fi
  1462. echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
  1463. echo "configure:1627: checking for connect in -lnsl" >&5
  1464. ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
  1465. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1466. echo $ac_n "(cached) $ac_c" 1>&6
  1467. else
  1468. ac_save_LIBS="$LIBS"
  1469. LIBS="-lnsl $LIBS"
  1470. cat > conftest.$ac_ext <<EOF
  1471. #line 1635 "configure"
  1472. #include "confdefs.h"
  1473. /* Override any gcc2 internal prototype to avoid an error. */
  1474. /* We use char because int might match the return type of a gcc2
  1475. builtin and then its argument prototype would still apply. */
  1476. char connect();
  1477. int main() {
  1478. connect()
  1479. ; return 0; }
  1480. EOF
  1481. if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1482. rm -rf conftest*
  1483. eval "ac_cv_lib_$ac_lib_var=yes"
  1484. else
  1485. echo "configure: failed program was:" >&5
  1486. cat conftest.$ac_ext >&5
  1487. rm -rf conftest*
  1488. eval "ac_cv_lib_$ac_lib_var=no"
  1489. fi
  1490. rm -f conftest*
  1491. LIBS="$ac_save_LIBS"
  1492. fi
  1493. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1494. echo "$ac_t""yes" 1>&6
  1495. ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1496. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1497. cat >> confdefs.h <<EOF
  1498. #define $ac_tr_lib 1
  1499. EOF
  1500. LIBS="-lnsl $LIBS"
  1501. else
  1502. echo "$ac_t""no" 1>&6
  1503. fi
  1504. echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
  1505. echo "configure:1674: checking for gethostbyname in -ldns" >&5
  1506. ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
  1507. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1508. echo $ac_n "(cached) $ac_c" 1>&6
  1509. else
  1510. ac_save_LIBS="$LIBS"
  1511. LIBS="-ldns $LIBS"
  1512. cat > conftest.$ac_ext <<EOF
  1513. #line 1682 "configure"
  1514. #include "confdefs.h"
  1515. /* Override any gcc2 internal prototype to avoid an error. */
  1516. /* We use char because int might match the return type of a gcc2
  1517. builtin and then its argument prototype would still apply. */
  1518. char gethostbyname();
  1519. int main() {
  1520. gethostbyname()
  1521. ; return 0; }
  1522. EOF
  1523. if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1524. rm -rf conftest*
  1525. eval "ac_cv_lib_$ac_lib_var=yes"
  1526. else
  1527. echo "configure: failed program was:" >&5
  1528. cat conftest.$ac_ext >&5
  1529. rm -rf conftest*
  1530. eval "ac_cv_lib_$ac_lib_var=no"
  1531. fi
  1532. rm -f conftest*
  1533. LIBS="$ac_save_LIBS"
  1534. fi
  1535. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1536. echo "$ac_t""yes" 1>&6
  1537. ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1538. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1539. cat >> confdefs.h <<EOF
  1540. #define $ac_tr_lib 1
  1541. EOF
  1542. LIBS="-ldns $LIBS"
  1543. else
  1544. echo "$ac_t""no" 1>&6
  1545. fi
  1546. echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6
  1547. echo "configure:1721: checking for gzopen in -lz" >&5
  1548. ac_lib_var=`echo z'_'gzopen | sed 'y%./+-%__p_%'`
  1549. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1550. echo $ac_n "(cached) $ac_c" 1>&6
  1551. else
  1552. ac_save_LIBS="$LIBS"
  1553. LIBS="-lz $LIBS"
  1554. cat > conftest.$ac_ext <<EOF
  1555. #line 1729 "configure"
  1556. #include "confdefs.h"
  1557. /* Override any gcc2 internal prototype to avoid an error. */
  1558. /* We use char because int might match the return type of a gcc2
  1559. builtin and then its argument prototype would still apply. */
  1560. char gzopen();
  1561. int main() {
  1562. gzopen()
  1563. ; return 0; }
  1564. EOF
  1565. if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1566. rm -rf conftest*
  1567. eval "ac_cv_lib_$ac_lib_var=yes"
  1568. else
  1569. echo "configure: failed program was:" >&5
  1570. cat conftest.$ac_ext >&5
  1571. rm -rf conftest*
  1572. eval "ac_cv_lib_$ac_lib_var=no"
  1573. fi
  1574. rm -f conftest*
  1575. LIBS="$ac_save_LIBS"
  1576. fi
  1577. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1578. echo "$ac_t""yes" 1>&6
  1579. ZLIB="-lz"
  1580. else
  1581. echo "$ac_t""no" 1>&6
  1582. fi
  1583. echo $ac_n "checking for SSL_accept in -lssl""... $ac_c" 1>&6
  1584. echo "configure:1761: checking for SSL_accept in -lssl" >&5
  1585. ac_lib_var=`echo ssl'_'SSL_accept | sed 'y%./+-%__p_%'`
  1586. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1587. echo $ac_n "(cached) $ac_c" 1>&6
  1588. else
  1589. ac_save_LIBS="$LIBS"
  1590. LIBS="-lssl -lcrypto $LIBS"
  1591. cat > conftest.$ac_ext <<EOF
  1592. #line 1769 "configure"
  1593. #include "confdefs.h"
  1594. /* Override any gcc2 internal prototype to avoid an error. */
  1595. /* We use char because int might match the return type of a gcc2
  1596. builtin and then its argument prototype would still apply. */
  1597. char SSL_accept();
  1598. int main() {
  1599. SSL_accept()
  1600. ; return 0; }
  1601. EOF
  1602. if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1603. rm -rf conftest*
  1604. eval "ac_cv_lib_$ac_lib_var=yes"
  1605. else
  1606. echo "configure: failed program was:" >&5
  1607. cat conftest.$ac_ext >&5
  1608. rm -rf conftest*
  1609. eval "ac_cv_lib_$ac_lib_var=no"
  1610. fi
  1611. rm -f conftest*
  1612. LIBS="$ac_save_LIBS"
  1613. fi
  1614. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1615. echo "$ac_t""yes" 1>&6
  1616. SSL="-lssl -lcrypto"
  1617. else
  1618. echo "$ac_t""no" 1>&6
  1619. SSL=""
  1620. fi
  1621. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1622. echo "configure:1802: checking for dlopen in -ldl" >&5
  1623. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1624. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1625. echo $ac_n "(cached) $ac_c" 1>&6
  1626. else
  1627. ac_save_LIBS="$LIBS"
  1628. LIBS="-ldl $LIBS"
  1629. cat > conftest.$ac_ext <<EOF
  1630. #line 1810 "configure"
  1631. #include "confdefs.h"
  1632. /* Override any gcc2 internal prototype to avoid an error. */
  1633. /* We use char because int might match the return type of a gcc2
  1634. builtin and then its argument prototype would still apply. */
  1635. char dlopen();
  1636. int main() {
  1637. dlopen()
  1638. ; return 0; }
  1639. EOF
  1640. if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1641. rm -rf conftest*
  1642. eval "ac_cv_lib_$ac_lib_var=yes"
  1643. else
  1644. echo "configure: failed program was:" >&5
  1645. cat conftest.$ac_ext >&5
  1646. rm -rf conftest*
  1647. eval "ac_cv_lib_$ac_lib_var=no"
  1648. fi
  1649. rm -f conftest*
  1650. LIBS="$ac_save_LIBS"
  1651. fi
  1652. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1653. echo "$ac_t""yes" 1>&6
  1654. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1655. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1656. cat >> confdefs.h <<EOF
  1657. #define $ac_tr_lib 1
  1658. EOF
  1659. LIBS="-ldl $LIBS"
  1660. else
  1661. echo "$ac_t""no" 1>&6
  1662. fi
  1663. echo $ac_n "checking for tan in -lm""... $ac_c" 1>&6
  1664. echo "configure:1849: checking for tan in -lm" >&5
  1665. ac_lib_var=`echo m'_'tan | sed 'y%./+-%__p_%'`
  1666. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1667. echo $ac_n "(cached) $ac_c" 1>&6
  1668. else
  1669. ac_save_LIBS="$LIBS"
  1670. LIBS="-lm $LIBS"
  1671. cat > conftest.$ac_ext <<EOF
  1672. #line 1857 "configure"
  1673. #include "confdefs.h"
  1674. /* Override any gcc2 internal prototype to avoid an error. */
  1675. /* We use char because int might match the return type of a gcc2
  1676. builtin and then its argument prototype would still apply. */
  1677. char tan();
  1678. int main() {
  1679. tan()
  1680. ; return 0; }
  1681. EOF
  1682. if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1683. rm -rf conftest*
  1684. eval "ac_cv_lib_$ac_lib_var=yes"
  1685. else
  1686. echo "configure: failed program was:" >&5
  1687. cat conftest.$ac_ext >&5
  1688. rm -rf conftest*
  1689. eval "ac_cv_lib_$ac_lib_var=no"
  1690. fi
  1691. rm -f conftest*
  1692. LIBS="$ac_save_LIBS"
  1693. fi
  1694. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1695. echo "$ac_t""yes" 1>&6
  1696. EGG_MATH_LIB="-lm"
  1697. else
  1698. echo "$ac_t""no" 1>&6
  1699. fi
  1700. # This is needed for Tcl libraries compiled with thread support
  1701. echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1702. echo "configure:1890: checking for pthread_mutex_init in -lpthread" >&5
  1703. ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1704. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1705. echo $ac_n "(cached) $ac_c" 1>&6
  1706. else
  1707. ac_save_LIBS="$LIBS"
  1708. LIBS="-lpthread $LIBS"
  1709. cat > conftest.$ac_ext <<EOF
  1710. #line 1898 "configure"
  1711. #include "confdefs.h"
  1712. /* Override any gcc2 internal prototype to avoid an error. */
  1713. /* We use char because int might match the return type of a gcc2
  1714. builtin and then its argument prototype would still apply. */
  1715. char pthread_mutex_init();
  1716. int main() {
  1717. pthread_mutex_init()
  1718. ; return 0; }
  1719. EOF
  1720. if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1721. rm -rf conftest*
  1722. eval "ac_cv_lib_$ac_lib_var=yes"
  1723. else
  1724. echo "configure: failed program was:" >&5
  1725. cat conftest.$ac_ext >&5
  1726. rm -rf conftest*
  1727. eval "ac_cv_lib_$ac_lib_var=no"
  1728. fi
  1729. rm -f conftest*
  1730. LIBS="$ac_save_LIBS"
  1731. fi
  1732. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1733. echo "$ac_t""yes" 1>&6
  1734. ac_cv_lib_pthread_pthread_mutex_init=yes
  1735. ac_cv_lib_pthread="-lpthread"
  1736. else
  1737. echo "$ac_t""no" 1>&6
  1738. echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1739. echo "configure:1929: checking for __pthread_mutex_init in -lpthread" >&5
  1740. ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'`
  1741. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1742. echo $ac_n "(cached) $ac_c" 1>&6
  1743. else
  1744. ac_save_LIBS="$LIBS"
  1745. LIBS="-lpthread $LIBS"
  1746. cat > conftest.$ac_ext <<EOF
  1747. #line 1937 "configure"
  1748. #include "confdefs.h"
  1749. /* Override any gcc2 internal prototype to avoid an error. */
  1750. /* We use char because int might match the return type of a gcc2
  1751. builtin and then its argument prototype would still apply. */
  1752. char __pthread_mutex_init();
  1753. int main() {
  1754. __pthread_mutex_init()
  1755. ; return 0; }
  1756. EOF
  1757. if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1758. rm -rf conftest*
  1759. eval "ac_cv_lib_$ac_lib_var=yes"
  1760. else
  1761. echo "configure: failed program was:" >&5
  1762. cat conftest.$ac_ext >&5
  1763. rm -rf conftest*
  1764. eval "ac_cv_lib_$ac_lib_var=no"
  1765. fi
  1766. rm -f conftest*
  1767. LIBS="$ac_save_LIBS"
  1768. fi
  1769. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1770. echo "$ac_t""yes" 1>&6
  1771. ac_cv_lib_pthread_pthread_mutex_init=yes
  1772. ac_cv_lib_pthread="-lpthread"
  1773. else
  1774. echo "$ac_t""no" 1>&6
  1775. echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6
  1776. echo "configure:1968: checking for pthread_mutex_init in -lpthreads" >&5
  1777. ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1778. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1779. echo $ac_n "(cached) $ac_c" 1>&6
  1780. else
  1781. ac_save_LIBS="$LIBS"
  1782. LIBS="-lpthreads $LIBS"
  1783. cat > conftest.$ac_ext <<EOF
  1784. #line 1976 "configure"
  1785. #include "confdefs.h"
  1786. /* Override any gcc2 internal prototype to avoid an error. */
  1787. /* We use char because int might match the return type of a gcc2
  1788. builtin and then its argument prototype would still apply. */
  1789. char pthread_mutex_init();
  1790. int main() {
  1791. pthread_mutex_init()
  1792. ; return 0; }
  1793. EOF
  1794. if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1795. rm -rf conftest*
  1796. eval "ac_cv_lib_$ac_lib_var=yes"
  1797. else
  1798. echo "configure: failed program was:" >&5
  1799. cat conftest.$ac_ext >&5
  1800. rm -rf conftest*
  1801. eval "ac_cv_lib_$ac_lib_var=no"
  1802. fi
  1803. rm -f conftest*
  1804. LIBS="$ac_save_LIBS"
  1805. fi
  1806. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1807. echo "$ac_t""yes" 1>&6
  1808. ac_cv_lib_pthread_pthread_mutex_init=yes
  1809. ac_cv_lib_pthread="-lpthreads"
  1810. else
  1811. echo "$ac_t""no" 1>&6
  1812. echo $ac_n "checking for pthread_mutex_init""... $ac_c" 1>&6
  1813. echo "configure:2007: checking for pthread_mutex_init" >&5
  1814. if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_init'+set}'`\" = set"; then
  1815. echo $ac_n "(cached) $ac_c" 1>&6
  1816. else
  1817. cat > conftest.$ac_ext <<EOF
  1818. #line 2012 "configure"
  1819. #include "confdefs.h"
  1820. /* System header to define __stub macros and hopefully few prototypes,
  1821. which can conflict with char pthread_mutex_init(); below. */
  1822. #include <assert.h>
  1823. /* Override any gcc2 internal prototype to avoid an error. */
  1824. /* We use char because int might match the return type of a gcc2
  1825. builtin and then its argument prototype would still apply. */
  1826. char pthread_mutex_init();
  1827. int main() {
  1828. /* The GNU C library defines this for functions which it implements
  1829. to always fail with ENOSYS. Some functions are actually named
  1830. something starting with __ and the normal name is an alias. */
  1831. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  1832. choke me
  1833. #else
  1834. pthread_mutex_init();
  1835. #endif
  1836. ; return 0; }
  1837. EOF
  1838. if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1839. rm -rf conftest*
  1840. eval "ac_cv_func_pthread_mutex_init=yes"
  1841. else
  1842. echo "configure: failed program was:" >&5
  1843. cat conftest.$ac_ext >&5
  1844. rm -rf conftest*
  1845. eval "ac_cv_func_pthread_mutex_init=no"
  1846. fi
  1847. rm -f conftest*
  1848. fi
  1849. if eval "test \"`echo '$ac_cv_func_'pthread_mutex_init`\" = yes"; then
  1850. echo "$ac_t""yes" 1>&6
  1851. ac_cv_lib_pthread_pthread_mutex_init=yes
  1852. ac_cv_lib_pthread=""
  1853. else
  1854. echo "$ac_t""no" 1>&6
  1855. ac_cv_lib_pthread_pthread_mutex_init=no
  1856. fi
  1857. fi
  1858. fi
  1859. fi
  1860. if test "$SUNOS" = "yes"
  1861. then
  1862. # For suns without yp or something like that
  1863. echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
  1864. echo "configure:2066: checking for main in -ldl" >&5
  1865. ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
  1866. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1867. echo $ac_n "(cached) $ac_c" 1>&6
  1868. else
  1869. ac_save_LIBS="$LIBS"
  1870. LIBS="-ldl $LIBS"
  1871. cat > conftest.$ac_ext <<EOF
  1872. #line 2074 "configure"
  1873. #include "confdefs.h"
  1874. int main() {
  1875. main()
  1876. ; return 0; }
  1877. EOF
  1878. if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1879. rm -rf conftest*
  1880. eval "ac_cv_lib_$ac_lib_var=yes"
  1881. else
  1882. echo "configure: failed program was:" >&5
  1883. cat conftest.$ac_ext >&5
  1884. rm -rf conftest*
  1885. eval "ac_cv_lib_$ac_lib_var=no"
  1886. fi
  1887. rm -f conftest*
  1888. LIBS="$ac_save_LIBS"
  1889. fi
  1890. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1891. echo "$ac_t""yes" 1>&6
  1892. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1893. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1894. cat >> confdefs.h <<EOF
  1895. #define $ac_tr_lib 1
  1896. EOF
  1897. LIBS="-ldl $LIBS"
  1898. else
  1899. echo "$ac_t""no" 1>&6
  1900. fi
  1901. else
  1902. if test "$HPUX" = "yes"
  1903. then
  1904. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1905. echo "configure:2112: checking for shl_load in -ldld" >&5
  1906. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1907. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1908. echo $ac_n "(cached) $ac_c" 1>&6
  1909. else
  1910. ac_save_LIBS="$LIBS"
  1911. LIBS="-ldld $LIBS"
  1912. cat > conftest.$ac_ext <<EOF
  1913. #line 2120 "configure"
  1914. #include "confdefs.h"
  1915. /* Override any gcc2 internal prototype to avoid an error. */
  1916. /* We use char because int might match the return type of a gcc2
  1917. builtin and then its argument prototype would still apply. */
  1918. char shl_load();
  1919. int main() {
  1920. shl_load()
  1921. ; return 0; }
  1922. EOF
  1923. if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1924. rm -rf conftest*
  1925. eval "ac_cv_lib_$ac_lib_var=yes"
  1926. else
  1927. echo "configure: failed program was:" >&5
  1928. cat conftest.$ac_ext >&5
  1929. rm -rf conftest*
  1930. eval "ac_cv_lib_$ac_lib_var=no"
  1931. fi
  1932. rm -f conftest*
  1933. LIBS="$ac_save_LIBS"
  1934. fi
  1935. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1936. echo "$ac_t""yes" 1>&6
  1937. ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1938. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1939. cat >> confdefs.h <<EOF
  1940. #define $ac_tr_lib 1
  1941. EOF
  1942. LIBS="-ldld $LIBS"
  1943. else
  1944. echo "$ac_t""no" 1>&6
  1945. fi
  1946. fi
  1947. fi
  1948. fi
  1949. for ac_hdr in unistd.h
  1950. do
  1951. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1952. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1953. echo "configure:2167: checking for $ac_hdr" >&5
  1954. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1955. echo $ac_n "(cached) $ac_c" 1>&6
  1956. else
  1957. cat > conftest.$ac_ext <<EOF
  1958. #line 2172 "configure"
  1959. #include "confdefs.h"
  1960. #include <$ac_hdr>
  1961. EOF
  1962. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1963. { (eval echo configure:2177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1964. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1965. if test -z "$ac_err"; then
  1966. rm -rf conftest*
  1967. eval "ac_cv_header_$ac_safe=yes"
  1968. else
  1969. echo "$ac_err" >&5
  1970. echo "configure: failed program was:" >&5
  1971. cat conftest.$ac_ext >&5
  1972. rm -rf conftest*
  1973. eval "ac_cv_header_$ac_safe=no"
  1974. fi
  1975. rm -f conftest*
  1976. fi
  1977. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1978. echo "$ac_t""yes" 1>&6
  1979. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1980. cat >> confdefs.h <<EOF
  1981. #define $ac_tr_hdr 1
  1982. EOF
  1983. else
  1984. echo "$ac_t""no" 1>&6
  1985. fi
  1986. done
  1987. for ac_func in getpagesize
  1988. do
  1989. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1990. echo "configure:2206: checking for $ac_func" >&5
  1991. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1992. echo $ac_n "(cached) $ac_c" 1>&6
  1993. else
  1994. cat > conftest.$ac_ext <<EOF
  1995. #line 2211 "configure"
  1996. #include "confdefs.h"
  1997. /* System header to define __stub macros and hopefully few prototypes,
  1998. which can conflict with char $ac_func(); below. */
  1999. #include <assert.h>
  2000. /* Override any gcc2 internal prototype to avoid an error. */
  2001. /* We use char because int might match the return type of a gcc2
  2002. builtin and then its argument prototype would still apply. */
  2003. char $ac_func();
  2004. int main() {
  2005. /* The GNU C library defines this for functions which it implements
  2006. to always fail with ENOSYS. Some functions are actually named
  2007. something starting with __ and the normal name is an alias. */
  2008. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2009. choke me
  2010. #else
  2011. $ac_func();
  2012. #endif
  2013. ; return 0; }
  2014. EOF
  2015. if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2016. rm -rf conftest*
  2017. eval "ac_cv_func_$ac_func=yes"
  2018. else
  2019. echo "configure: failed program was:" >&5
  2020. cat conftest.$ac_ext >&5
  2021. rm -rf conftest*
  2022. eval "ac_cv_func_$ac_func=no"
  2023. fi
  2024. rm -f conftest*
  2025. fi
  2026. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2027. echo "$ac_t""yes" 1>&6
  2028. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2029. cat >> confdefs.h <<EOF
  2030. #define $ac_tr_func 1
  2031. EOF
  2032. else
  2033. echo "$ac_t""no" 1>&6
  2034. fi
  2035. done
  2036. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2037. echo "configure:2259: checking for working mmap" >&5
  2038. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  2039. echo $ac_n "(cached) $ac_c" 1>&6
  2040. else
  2041. if test "$cross_compiling" = yes; then
  2042. ac_cv_func_mmap_fixed_mapped=no
  2043. else
  2044. cat > conftest.$ac_ext <<EOF
  2045. #line 2267 "configure"
  2046. #include "confdefs.h"
  2047. /* Thanks to Mike Haertel and Jim Avera for this test.
  2048. Here is a matrix of mmap possibilities:
  2049. mmap private not fixed
  2050. mmap private fixed at somewhere currently unmapped
  2051. mmap private fixed at somewhere already mapped
  2052. mmap shared not fixed
  2053. mmap shared fixed at somewhere currently unmapped
  2054. mmap shared fixed at somewhere already mapped
  2055. For private mappings, we should verify that changes cannot be read()
  2056. back from the file, nor mmap's back from the file at a different
  2057. address. (There have been systems where private was not correctly
  2058. implemented like the infamous i386 svr4.0, and systems where the
  2059. VM page cache was not coherent with the filesystem buffer cache
  2060. like early versions of FreeBSD and possibly contemporary NetBSD.)
  2061. For shared mappings, we should conversely verify that changes get
  2062. propogated back to all the places they're supposed to be.
  2063. Grep wants private fixed already mapped.
  2064. The main things grep needs to know about mmap are:
  2065. * does it exist and is it safe to write into the mmap'd area
  2066. * how to use it (BSD variants) */
  2067. #include <sys/types.h>
  2068. #include <fcntl.h>
  2069. #include <sys/mman.h>
  2070. /* This mess was copied from the GNU getpagesize.h. */
  2071. #ifndef HAVE_GETPAGESIZE
  2072. # ifdef HAVE_UNISTD_H
  2073. # include <unistd.h>
  2074. # endif
  2075. /* Assume that all systems that can run configure have sys/param.h. */
  2076. # ifndef HAVE_SYS_PARAM_H
  2077. # define HAVE_SYS_PARAM_H 1
  2078. # endif
  2079. # ifdef _SC_PAGESIZE
  2080. # define getpagesize() sysconf(_SC_PAGESIZE)
  2081. # else /* no _SC_PAGESIZE */
  2082. # ifdef HAVE_SYS_PARAM_H
  2083. # include <sys/param.h>
  2084. # ifdef EXEC_PAGESIZE
  2085. # define getpagesize() EXEC_PAGESIZE
  2086. # else /* no EXEC_PAGESIZE */
  2087. # ifdef NBPG
  2088. # define getpagesize() NBPG * CLSIZE
  2089. # ifndef CLSIZE
  2090. # define CLSIZE 1
  2091. # endif /* no CLSIZE */
  2092. # else /* no NBPG */
  2093. # ifdef NBPC
  2094. # define getpagesize() NBPC
  2095. # else /* no NBPC */
  2096. # ifdef PAGESIZE
  2097. # define getpagesize() PAGESIZE
  2098. # endif /* PAGESIZE */
  2099. # endif /* no NBPC */
  2100. # endif /* no NBPG */
  2101. # endif /* no EXEC_PAGESIZE */
  2102. # else /* no HAVE_SYS_PARAM_H */
  2103. # define getpagesize() 8192 /* punt totally */
  2104. # endif /* no HAVE_SYS_PARAM_H */
  2105. # endif /* no _SC_PAGESIZE */
  2106. #endif /* no HAVE_GETPAGESIZE */
  2107. #ifdef __cplusplus
  2108. extern "C" { void *malloc(unsigned); }
  2109. #else
  2110. char *malloc();
  2111. #endif
  2112. int
  2113. main()
  2114. {
  2115. char *data, *data2, *data3;
  2116. int i, pagesize;
  2117. int fd;
  2118. pagesize = getpagesize();
  2119. /*
  2120. * First, make a file with some known garbage in it.
  2121. */
  2122. data = malloc(pagesize);
  2123. if (!data)
  2124. exit(1);
  2125. for (i = 0; i < pagesize; ++i)
  2126. *(data + i) = rand();
  2127. umask(0);
  2128. fd = creat("conftestmmap", 0600);
  2129. if (fd < 0)
  2130. exit(1);
  2131. if (write(fd, data, pagesize) != pagesize)
  2132. exit(1);
  2133. close(fd);
  2134. /*
  2135. * Next, try to mmap the file at a fixed address which
  2136. * already has something else allocated at it. If we can,
  2137. * also make sure that we see the same garbage.
  2138. */
  2139. fd = open("conftestmmap", O_RDWR);
  2140. if (fd < 0)
  2141. exit(1);
  2142. data2 = malloc(2 * pagesize);
  2143. if (!data2)
  2144. exit(1);
  2145. data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  2146. if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  2147. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  2148. exit(1);
  2149. for (i = 0; i < pagesize; ++i)
  2150. if (*(data + i) != *(data2 + i))
  2151. exit(1);
  2152. /*
  2153. * Finally, make sure that changes to the mapped area
  2154. * do not percolate back to the file as seen by read().
  2155. * (This is a bug on some variants of i386 svr4.0.)
  2156. */
  2157. for (i = 0; i < pagesize; ++i)
  2158. *(data2 + i) = *(data2 + i) + 1;
  2159. data3 = malloc(pagesize);
  2160. if (!data3)
  2161. exit(1);
  2162. if (read(fd, data3, pagesize) != pagesize)
  2163. exit(1);
  2164. for (i = 0; i < pagesize; ++i)
  2165. if (*(data + i) != *(data3 + i))
  2166. exit(1);
  2167. close(fd);
  2168. unlink("conftestmmap");
  2169. exit(0);
  2170. }
  2171. EOF
  2172. if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2173. then
  2174. ac_cv_func_mmap_fixed_mapped=yes
  2175. else
  2176. echo "configure: failed program was:" >&5
  2177. cat conftest.$ac_ext >&5
  2178. rm -fr conftest*
  2179. ac_cv_func_mmap_fixed_mapped=no
  2180. fi
  2181. rm -fr conftest*
  2182. fi
  2183. fi
  2184. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  2185. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  2186. cat >> confdefs.h <<\EOF
  2187. #define HAVE_MMAP 1
  2188. EOF
  2189. fi
  2190. # Checks for header files
  2191. ac_header_dirent=no
  2192. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  2193. do
  2194. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2195. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  2196. echo "configure:2436: checking for $ac_hdr that defines DIR" >&5
  2197. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  2198. echo $ac_n "(cached) $ac_c" 1>&6
  2199. else
  2200. cat > conftest.$ac_ext <<EOF
  2201. #line 2441 "configure"
  2202. #include "confdefs.h"
  2203. #include <sys/types.h>
  2204. #include <$ac_hdr>
  2205. int main() {
  2206. DIR *dirp = 0;
  2207. ; return 0; }
  2208. EOF
  2209. if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2210. rm -rf conftest*
  2211. eval "ac_cv_header_dirent_$ac_safe=yes"
  2212. else
  2213. echo "configure: failed program was:" >&5
  2214. cat conftest.$ac_ext >&5
  2215. rm -rf conftest*
  2216. eval "ac_cv_header_dirent_$ac_safe=no"
  2217. fi
  2218. rm -f conftest*
  2219. fi
  2220. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2221. echo "$ac_t""yes" 1>&6
  2222. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2223. cat >> confdefs.h <<EOF
  2224. #define $ac_tr_hdr 1
  2225. EOF
  2226. ac_header_dirent=$ac_hdr; break
  2227. else
  2228. echo "$ac_t""no" 1>&6
  2229. fi
  2230. done
  2231. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2232. if test $ac_header_dirent = dirent.h; then
  2233. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  2234. echo "configure:2474: checking for opendir in -ldir" >&5
  2235. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  2236. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2237. echo $ac_n "(cached) $ac_c" 1>&6
  2238. else
  2239. ac_save_LIBS="$LIBS"
  2240. LIBS="-ldir $LIBS"
  2241. cat > conftest.$ac_ext <<EOF
  2242. #line 2482 "configure"
  2243. #include "confdefs.h"
  2244. /* Override any gcc2 internal prototype to avoid an error. */
  2245. /* We use char because int might match the return type of a gcc2
  2246. builtin and then its argument prototype would still apply. */
  2247. char opendir();
  2248. int main() {
  2249. opendir()
  2250. ; return 0; }
  2251. EOF
  2252. if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2253. rm -rf conftest*
  2254. eval "ac_cv_lib_$ac_lib_var=yes"
  2255. else
  2256. echo "configure: failed program was:" >&5
  2257. cat conftest.$ac_ext >&5
  2258. rm -rf conftest*
  2259. eval "ac_cv_lib_$ac_lib_var=no"
  2260. fi
  2261. rm -f conftest*
  2262. LIBS="$ac_save_LIBS"
  2263. fi
  2264. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2265. echo "$ac_t""yes" 1>&6
  2266. LIBS="$LIBS -ldir"
  2267. else
  2268. echo "$ac_t""no" 1>&6
  2269. fi
  2270. else
  2271. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  2272. echo "configure:2515: checking for opendir in -lx" >&5
  2273. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  2274. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2275. echo $ac_n "(cached) $ac_c" 1>&6
  2276. else
  2277. ac_save_LIBS="$LIBS"
  2278. LIBS="-lx $LIBS"
  2279. cat > conftest.$ac_ext <<EOF
  2280. #line 2523 "configure"
  2281. #include "confdefs.h"
  2282. /* Override any gcc2 internal prototype to avoid an error. */
  2283. /* We use char because int might match the return type of a gcc2
  2284. builtin and then its argument prototype would still apply. */
  2285. char opendir();
  2286. int main() {
  2287. opendir()
  2288. ; return 0; }
  2289. EOF
  2290. if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2291. rm -rf conftest*
  2292. eval "ac_cv_lib_$ac_lib_var=yes"
  2293. else
  2294. echo "configure: failed program was:" >&5
  2295. cat conftest.$ac_ext >&5
  2296. rm -rf conftest*
  2297. eval "ac_cv_lib_$ac_lib_var=no"
  2298. fi
  2299. rm -f conftest*
  2300. LIBS="$ac_save_LIBS"
  2301. fi
  2302. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2303. echo "$ac_t""yes" 1>&6
  2304. LIBS="$LIBS -lx"
  2305. else
  2306. echo "$ac_t""no" 1>&6
  2307. fi
  2308. fi
  2309. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2310. echo "configure:2557: checking for sys/wait.h that is POSIX.1 compatible" >&5
  2311. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2312. echo $ac_n "(cached) $ac_c" 1>&6
  2313. else
  2314. cat > conftest.$ac_ext <<EOF
  2315. #line 2562 "configure"
  2316. #include "confdefs.h"
  2317. #include <sys/types.h>
  2318. #include <sys/wait.h>
  2319. #ifndef WEXITSTATUS
  2320. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2321. #endif
  2322. #ifndef WIFEXITED
  2323. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2324. #endif
  2325. int main() {
  2326. int s;
  2327. wait (&s);
  2328. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2329. ; return 0; }
  2330. EOF
  2331. if { (eval echo configure:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2332. rm -rf conftest*
  2333. ac_cv_header_sys_wait_h=yes
  2334. else
  2335. echo "configure: failed program was:" >&5
  2336. cat conftest.$ac_ext >&5
  2337. rm -rf conftest*
  2338. ac_cv_header_sys_wait_h=no
  2339. fi
  2340. rm -f conftest*
  2341. fi
  2342. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2343. if test $ac_cv_header_sys_wait_h = yes; then
  2344. cat >> confdefs.h <<\EOF
  2345. #define HAVE_SYS_WAIT_H 1
  2346. EOF
  2347. fi
  2348. for ac_hdr in sys/time.h
  2349. do
  2350. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2351. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2352. echo "configure:2602: checking for $ac_hdr" >&5
  2353. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2354. echo $ac_n "(cached) $ac_c" 1>&6
  2355. else
  2356. cat > conftest.$ac_ext <<EOF
  2357. #line 2607 "configure"
  2358. #include "confdefs.h"
  2359. #include <$ac_hdr>
  2360. EOF
  2361. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2362. { (eval echo configure:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2363. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2364. if test -z "$ac_err"; then
  2365. rm -rf conftest*
  2366. eval "ac_cv_header_$ac_safe=yes"
  2367. else
  2368. echo "$ac_err" >&5
  2369. echo "configure: failed program was:" >&5
  2370. cat conftest.$ac_ext >&5
  2371. rm -rf conftest*
  2372. eval "ac_cv_header_$ac_safe=no"
  2373. fi
  2374. rm -f conftest*
  2375. fi
  2376. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2377. echo "$ac_t""yes" 1>&6
  2378. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2379. cat >> confdefs.h <<EOF
  2380. #define $ac_tr_hdr 1
  2381. EOF
  2382. else
  2383. echo "$ac_t""no" 1>&6
  2384. fi
  2385. done
  2386. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2387. echo "configure:2639: checking whether time.h and sys/time.h may both be included" >&5
  2388. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2389. echo $ac_n "(cached) $ac_c" 1>&6
  2390. else
  2391. cat > conftest.$ac_ext <<EOF
  2392. #line 2644 "configure"
  2393. #include "confdefs.h"
  2394. #include <sys/types.h>
  2395. #include <sys/time.h>
  2396. #include <time.h>
  2397. int main() {
  2398. struct tm *tp;
  2399. ; return 0; }
  2400. EOF
  2401. if { (eval echo configure:2653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2402. rm -rf conftest*
  2403. ac_cv_header_time=yes
  2404. else
  2405. echo "configure: failed program was:" >&5
  2406. cat conftest.$ac_ext >&5
  2407. rm -rf conftest*
  2408. ac_cv_header_time=no
  2409. fi
  2410. rm -f conftest*
  2411. fi
  2412. echo "$ac_t""$ac_cv_header_time" 1>&6
  2413. if test $ac_cv_header_time = yes; then
  2414. cat >> confdefs.h <<\EOF
  2415. #define TIME_WITH_SYS_TIME 1
  2416. EOF
  2417. fi
  2418. for ac_hdr in zlib.h
  2419. do
  2420. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2421. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2422. echo "configure:2677: checking for $ac_hdr" >&5
  2423. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2424. echo $ac_n "(cached) $ac_c" 1>&6
  2425. else
  2426. cat > conftest.$ac_ext <<EOF
  2427. #line 2682 "configure"
  2428. #include "confdefs.h"
  2429. #include <$ac_hdr>
  2430. EOF
  2431. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2432. { (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2433. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2434. if test -z "$ac_err"; then
  2435. rm -rf conftest*
  2436. eval "ac_cv_header_$ac_safe=yes"
  2437. else
  2438. echo "$ac_err" >&5
  2439. echo "configure: failed program was:" >&5
  2440. cat conftest.$ac_ext >&5
  2441. rm -rf conftest*
  2442. eval "ac_cv_header_$ac_safe=no"
  2443. fi
  2444. rm -f conftest*
  2445. fi
  2446. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2447. echo "$ac_t""yes" 1>&6
  2448. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2449. cat >> confdefs.h <<EOF
  2450. #define $ac_tr_hdr 1
  2451. EOF
  2452. else
  2453. echo "$ac_t""no" 1>&6
  2454. fi
  2455. done
  2456. if test "x${ZLIB}" = x; then
  2457. cat >&2 <<EOF
  2458. configure: error:
  2459. Your system does not provide a working zlib compression library.
  2460. It is required.
  2461. EOF
  2462. exit 1
  2463. else
  2464. if test "${ac_cv_header_zlib_h}" != yes; then
  2465. cat >&2 <<EOF
  2466. configure: error:
  2467. Your system does not provide the necessary zlib header file.
  2468. It is required.
  2469. EOF
  2470. exit 1
  2471. fi
  2472. fi
  2473. for ac_hdr in openssl/ssl.h openssl/crypto.h
  2474. do
  2475. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2476. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2477. echo "configure:2739: checking for $ac_hdr" >&5
  2478. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2479. echo $ac_n "(cached) $ac_c" 1>&6
  2480. else
  2481. cat > conftest.$ac_ext <<EOF
  2482. #line 2744 "configure"
  2483. #include "confdefs.h"
  2484. #include <$ac_hdr>
  2485. EOF
  2486. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2487. { (eval echo configure:2749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2488. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2489. if test -z "$ac_err"; then
  2490. rm -rf conftest*
  2491. eval "ac_cv_header_$ac_safe=yes"
  2492. else
  2493. echo "$ac_err" >&5
  2494. echo "configure: failed program was:" >&5
  2495. cat conftest.$ac_ext >&5
  2496. rm -rf conftest*
  2497. eval "ac_cv_header_$ac_safe=no"
  2498. fi
  2499. rm -f conftest*
  2500. fi
  2501. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2502. echo "$ac_t""yes" 1>&6
  2503. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2504. cat >> confdefs.h <<EOF
  2505. #define $ac_tr_hdr 1
  2506. EOF
  2507. else
  2508. echo "$ac_t""no" 1>&6
  2509. fi
  2510. done
  2511. if test "x${SSL}" = x; then
  2512. cat >&2 <<EOF
  2513. configure: error:
  2514. Your system does not provide a working ssl library.
  2515. It is required. Download openssl at www.openssl.org
  2516. EOF
  2517. exit 1
  2518. else
  2519. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  2520. cat >&2 <<EOF
  2521. configure: error:
  2522. Your system does not provide the necessary ssl header file.
  2523. It is required. Download openssl at www.openssl.org
  2524. EOF
  2525. exit 1
  2526. fi
  2527. fi
  2528. for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h
  2529. do
  2530. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2531. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2532. echo "configure:2802: checking for $ac_hdr" >&5
  2533. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2534. echo $ac_n "(cached) $ac_c" 1>&6
  2535. else
  2536. cat > conftest.$ac_ext <<EOF
  2537. #line 2807 "configure"
  2538. #include "confdefs.h"
  2539. #include <$ac_hdr>
  2540. EOF
  2541. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2542. { (eval echo configure:2812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2543. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2544. if test -z "$ac_err"; then
  2545. rm -rf conftest*
  2546. eval "ac_cv_header_$ac_safe=yes"
  2547. else
  2548. echo "$ac_err" >&5
  2549. echo "configure: failed program was:" >&5
  2550. cat conftest.$ac_ext >&5
  2551. rm -rf conftest*
  2552. eval "ac_cv_header_$ac_safe=no"
  2553. fi
  2554. rm -f conftest*
  2555. fi
  2556. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2557. echo "$ac_t""yes" 1>&6
  2558. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2559. cat >> confdefs.h <<EOF
  2560. #define $ac_tr_hdr 1
  2561. EOF
  2562. else
  2563. echo "$ac_t""no" 1>&6
  2564. fi
  2565. done
  2566. # Checks for typedefs, structures, and compiler characteristics
  2567. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2568. echo "configure:2842: checking for ANSI C header files" >&5
  2569. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2570. echo $ac_n "(cached) $ac_c" 1>&6
  2571. else
  2572. cat > conftest.$ac_ext <<EOF
  2573. #line 2847 "configure"
  2574. #include "confdefs.h"
  2575. #include <stdlib.h>
  2576. #include <stdarg.h>
  2577. #include <string.h>
  2578. #include <float.h>
  2579. EOF
  2580. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2581. { (eval echo configure:2855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2582. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2583. if test -z "$ac_err"; then
  2584. rm -rf conftest*
  2585. ac_cv_header_stdc=yes
  2586. else
  2587. echo "$ac_err" >&5
  2588. echo "configure: failed program was:" >&5
  2589. cat conftest.$ac_ext >&5
  2590. rm -rf conftest*
  2591. ac_cv_header_stdc=no
  2592. fi
  2593. rm -f conftest*
  2594. if test $ac_cv_header_stdc = yes; then
  2595. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2596. cat > conftest.$ac_ext <<EOF
  2597. #line 2872 "configure"
  2598. #include "confdefs.h"
  2599. #include <string.h>
  2600. EOF
  2601. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2602. egrep "memchr" >/dev/null 2>&1; then
  2603. :
  2604. else
  2605. rm -rf conftest*
  2606. ac_cv_header_stdc=no
  2607. fi
  2608. rm -f conftest*
  2609. fi
  2610. if test $ac_cv_header_stdc = yes; then
  2611. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2612. cat > conftest.$ac_ext <<EOF
  2613. #line 2890 "configure"
  2614. #include "confdefs.h"
  2615. #include <stdlib.h>
  2616. EOF
  2617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2618. egrep "free" >/dev/null 2>&1; then
  2619. :
  2620. else
  2621. rm -rf conftest*
  2622. ac_cv_header_stdc=no
  2623. fi
  2624. rm -f conftest*
  2625. fi
  2626. if test $ac_cv_header_stdc = yes; then
  2627. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2628. if test "$cross_compiling" = yes; then
  2629. :
  2630. else
  2631. cat > conftest.$ac_ext <<EOF
  2632. #line 2911 "configure"
  2633. #include "confdefs.h"
  2634. #include <ctype.h>
  2635. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2636. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2637. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2638. int main () { int i; for (i = 0; i < 256; i++)
  2639. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2640. exit (0); }
  2641. EOF
  2642. if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2643. then
  2644. :
  2645. else
  2646. echo "configure: failed program was:" >&5
  2647. cat conftest.$ac_ext >&5
  2648. rm -fr conftest*
  2649. ac_cv_header_stdc=no
  2650. fi
  2651. rm -fr conftest*
  2652. fi
  2653. fi
  2654. fi
  2655. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2656. if test $ac_cv_header_stdc = yes; then
  2657. cat >> confdefs.h <<\EOF
  2658. #define STDC_HEADERS 1
  2659. EOF
  2660. fi
  2661. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2662. echo "configure:2946: checking for pid_t" >&5
  2663. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2664. echo $ac_n "(cached) $ac_c" 1>&6
  2665. else
  2666. cat > conftest.$ac_ext <<EOF
  2667. #line 2951 "configure"
  2668. #include "confdefs.h"
  2669. #include <sys/types.h>
  2670. #if STDC_HEADERS
  2671. #include <stdlib.h>
  2672. #include <stddef.h>
  2673. #endif
  2674. EOF
  2675. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2676. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2677. rm -rf conftest*
  2678. ac_cv_type_pid_t=yes
  2679. else
  2680. rm -rf conftest*
  2681. ac_cv_type_pid_t=no
  2682. fi
  2683. rm -f conftest*
  2684. fi
  2685. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2686. if test $ac_cv_type_pid_t = no; then
  2687. cat >> confdefs.h <<\EOF
  2688. #define pid_t int
  2689. EOF
  2690. fi
  2691. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2692. echo "configure:2979: checking for size_t" >&5
  2693. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2694. echo $ac_n "(cached) $ac_c" 1>&6
  2695. else
  2696. cat > conftest.$ac_ext <<EOF
  2697. #line 2984 "configure"
  2698. #include "confdefs.h"
  2699. #include <sys/types.h>
  2700. #if STDC_HEADERS
  2701. #include <stdlib.h>
  2702. #include <stddef.h>
  2703. #endif
  2704. EOF
  2705. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2706. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2707. rm -rf conftest*
  2708. ac_cv_type_size_t=yes
  2709. else
  2710. rm -rf conftest*
  2711. ac_cv_type_size_t=no
  2712. fi
  2713. rm -f conftest*
  2714. fi
  2715. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2716. if test $ac_cv_type_size_t = no; then
  2717. cat >> confdefs.h <<\EOF
  2718. #define size_t unsigned
  2719. EOF
  2720. fi
  2721. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2722. echo "configure:3012: checking for working const" >&5
  2723. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2724. echo $ac_n "(cached) $ac_c" 1>&6
  2725. else
  2726. cat > conftest.$ac_ext <<EOF
  2727. #line 3017 "configure"
  2728. #include "confdefs.h"
  2729. int main() {
  2730. /* Ultrix mips cc rejects this. */
  2731. typedef int charset[2]; const charset x;
  2732. /* SunOS 4.1.1 cc rejects this. */
  2733. char const *const *ccp;
  2734. char **p;
  2735. /* NEC SVR4.0.2 mips cc rejects this. */
  2736. struct point {int x, y;};
  2737. static struct point const zero = {0,0};
  2738. /* AIX XL C 1.02.0.0 rejects this.
  2739. It does not let you subtract one const X* pointer from another in an arm
  2740. of an if-expression whose if-part is not a constant expression */
  2741. const char *g = "string";
  2742. ccp = &g + (g ? g-g : 0);
  2743. /* HPUX 7.0 cc rejects these. */
  2744. ++ccp;
  2745. p = (char**) ccp;
  2746. ccp = (char const *const *) p;
  2747. { /* SCO 3.2v4 cc rejects this. */
  2748. char *t;
  2749. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2750. *t++ = 0;
  2751. }
  2752. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2753. int x[] = {25, 17};
  2754. const int *foo = &x[0];
  2755. ++foo;
  2756. }
  2757. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2758. typedef const int *iptr;
  2759. iptr p = 0;
  2760. ++p;
  2761. }
  2762. { /* AIX XL C 1.02.0.0 rejects this saying
  2763. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2764. struct s { int j; const int *ap[3]; };
  2765. struct s *b; b->j = 5;
  2766. }
  2767. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2768. const int foo = 10;
  2769. }
  2770. ; return 0; }
  2771. EOF
  2772. if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2773. rm -rf conftest*
  2774. ac_cv_c_const=yes
  2775. else
  2776. echo "configure: failed program was:" >&5
  2777. cat conftest.$ac_ext >&5
  2778. rm -rf conftest*
  2779. ac_cv_c_const=no
  2780. fi
  2781. rm -f conftest*
  2782. fi
  2783. echo "$ac_t""$ac_cv_c_const" 1>&6
  2784. if test $ac_cv_c_const = no; then
  2785. cat >> confdefs.h <<\EOF
  2786. #define const
  2787. EOF
  2788. fi
  2789. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2790. echo "configure:3087: checking whether byte ordering is bigendian" >&5
  2791. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2792. echo $ac_n "(cached) $ac_c" 1>&6
  2793. else
  2794. ac_cv_c_bigendian=unknown
  2795. # See if sys/param.h defines the BYTE_ORDER macro.
  2796. cat > conftest.$ac_ext <<EOF
  2797. #line 3094 "configure"
  2798. #include "confdefs.h"
  2799. #include <sys/types.h>
  2800. #include <sys/param.h>
  2801. int main() {
  2802. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2803. bogus endian macros
  2804. #endif
  2805. ; return 0; }
  2806. EOF
  2807. if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2808. rm -rf conftest*
  2809. # It does; now see whether it defined to BIG_ENDIAN or not.
  2810. cat > conftest.$ac_ext <<EOF
  2811. #line 3109 "configure"
  2812. #include "confdefs.h"
  2813. #include <sys/types.h>
  2814. #include <sys/param.h>
  2815. int main() {
  2816. #if BYTE_ORDER != BIG_ENDIAN
  2817. not big endian
  2818. #endif
  2819. ; return 0; }
  2820. EOF
  2821. if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2822. rm -rf conftest*
  2823. ac_cv_c_bigendian=yes
  2824. else
  2825. echo "configure: failed program was:" >&5
  2826. cat conftest.$ac_ext >&5
  2827. rm -rf conftest*
  2828. ac_cv_c_bigendian=no
  2829. fi
  2830. rm -f conftest*
  2831. else
  2832. echo "configure: failed program was:" >&5
  2833. cat conftest.$ac_ext >&5
  2834. fi
  2835. rm -f conftest*
  2836. if test $ac_cv_c_bigendian = unknown; then
  2837. if test "$cross_compiling" = yes; then
  2838. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2839. else
  2840. cat > conftest.$ac_ext <<EOF
  2841. #line 3140 "configure"
  2842. #include "confdefs.h"
  2843. main () {
  2844. /* Are we little or big endian? From Harbison&Steele. */
  2845. union
  2846. {
  2847. long l;
  2848. char c[sizeof (long)];
  2849. } u;
  2850. u.l = 1;
  2851. exit (u.c[sizeof (long) - 1] == 1);
  2852. }
  2853. EOF
  2854. if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2855. then
  2856. ac_cv_c_bigendian=no
  2857. else
  2858. echo "configure: failed program was:" >&5
  2859. cat conftest.$ac_ext >&5
  2860. rm -fr conftest*
  2861. ac_cv_c_bigendian=yes
  2862. fi
  2863. rm -fr conftest*
  2864. fi
  2865. fi
  2866. fi
  2867. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2868. if test $ac_cv_c_bigendian = yes; then
  2869. cat >> confdefs.h <<\EOF
  2870. #define WORDS_BIGENDIAN 1
  2871. EOF
  2872. fi
  2873. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2874. echo "configure:3177: checking for inline" >&5
  2875. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2876. echo $ac_n "(cached) $ac_c" 1>&6
  2877. else
  2878. ac_cv_c_inline=no
  2879. for ac_kw in inline __inline__ __inline; do
  2880. cat > conftest.$ac_ext <<EOF
  2881. #line 3184 "configure"
  2882. #include "confdefs.h"
  2883. int main() {
  2884. } $ac_kw foo() {
  2885. ; return 0; }
  2886. EOF
  2887. if { (eval echo configure:3191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2888. rm -rf conftest*
  2889. ac_cv_c_inline=$ac_kw; break
  2890. else
  2891. echo "configure: failed program was:" >&5
  2892. cat conftest.$ac_ext >&5
  2893. fi
  2894. rm -f conftest*
  2895. done
  2896. fi
  2897. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2898. case "$ac_cv_c_inline" in
  2899. inline | yes) ;;
  2900. no) cat >> confdefs.h <<\EOF
  2901. #define inline
  2902. EOF
  2903. ;;
  2904. *) cat >> confdefs.h <<EOF
  2905. #define inline $ac_cv_c_inline
  2906. EOF
  2907. ;;
  2908. esac
  2909. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2910. echo "configure:3217: checking size of long" >&5
  2911. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2912. echo $ac_n "(cached) $ac_c" 1>&6
  2913. else
  2914. if test "$cross_compiling" = yes; then
  2915. ac_cv_sizeof_long=0
  2916. else
  2917. cat > conftest.$ac_ext <<EOF
  2918. #line 3225 "configure"
  2919. #include "confdefs.h"
  2920. #include <stdio.h>
  2921. #include <sys/types.h>
  2922. main()
  2923. {
  2924. FILE *f=fopen("conftestval", "w");
  2925. if (!f) exit(1);
  2926. fprintf(f, "%d\n", sizeof(long));
  2927. exit(0);
  2928. }
  2929. EOF
  2930. if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2931. then
  2932. ac_cv_sizeof_long=`cat conftestval`
  2933. else
  2934. echo "configure: failed program was:" >&5
  2935. cat conftest.$ac_ext >&5
  2936. rm -fr conftest*
  2937. ac_cv_sizeof_long=0
  2938. fi
  2939. rm -fr conftest*
  2940. fi
  2941. fi
  2942. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2943. cat >> confdefs.h <<EOF
  2944. #define SIZEOF_LONG $ac_cv_sizeof_long
  2945. EOF
  2946. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2947. echo "configure:3257: checking size of int" >&5
  2948. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2949. echo $ac_n "(cached) $ac_c" 1>&6
  2950. else
  2951. if test "$cross_compiling" = yes; then
  2952. ac_cv_sizeof_int=0
  2953. else
  2954. cat > conftest.$ac_ext <<EOF
  2955. #line 3265 "configure"
  2956. #include "confdefs.h"
  2957. #include <stdio.h>
  2958. #include <sys/types.h>
  2959. main()
  2960. {
  2961. FILE *f=fopen("conftestval", "w");
  2962. if (!f) exit(1);
  2963. fprintf(f, "%d\n", sizeof(int));
  2964. exit(0);
  2965. }
  2966. EOF
  2967. if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2968. then
  2969. ac_cv_sizeof_int=`cat conftestval`
  2970. else
  2971. echo "configure: failed program was:" >&5
  2972. cat conftest.$ac_ext >&5
  2973. rm -fr conftest*
  2974. ac_cv_sizeof_int=0
  2975. fi
  2976. rm -fr conftest*
  2977. fi
  2978. fi
  2979. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2980. cat >> confdefs.h <<EOF
  2981. #define SIZEOF_INT $ac_cv_sizeof_int
  2982. EOF
  2983. # Check for IPv6 support
  2984. #EGG_IPV6_SUPPORTED
  2985. echo $ac_n "checking whether or not you disabled IPv6 support""... $ac_c" 1>&6
  2986. echo "configure:3301: checking whether or not you disabled IPv6 support" >&5
  2987. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  2988. if test "${enable_ipv6+set}" = set; then
  2989. enableval="$enable_ipv6"
  2990. ac_cv_dipv6="yes"
  2991. echo "$ac_t""yes" 1>&6
  2992. else
  2993. ac_cv_dipv6="no"
  2994. if test "$egg_cv_ipv6_supported" = "no"; then
  2995. ac_cv_dipv6="no"
  2996. fi
  2997. echo "$ac_t""$ac_cv_dipv6" 1>&6
  2998. fi
  2999. if test "$ac_cv_dipv6" = "no"; then
  3000. cat >> confdefs.h <<\EOF
  3001. #define HAVE_IPV6 1
  3002. EOF
  3003. fi
  3004. echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
  3005. echo "configure:3325: checking for socklen_t" >&5
  3006. if eval "test \"`echo '$''{'egg_cv_socklen_t'+set}'`\" = set"; then
  3007. echo $ac_n "(cached) $ac_c" 1>&6
  3008. else
  3009. if test "$cross_compiling" = yes; then
  3010. egg_cv_socklen_t=no
  3011. else
  3012. cat > conftest.$ac_ext <<EOF
  3013. #line 3334 "configure"
  3014. #include "confdefs.h"
  3015. #include <unistd.h>
  3016. #include <sys/types.h>
  3017. #include <sys/socket.h>
  3018. #include <netinet/in.h>
  3019. #include <arpa/inet.h>
  3020. int main()
  3021. {
  3022. socklen_t test = sizeof(int);
  3023. return 0;
  3024. }
  3025. EOF
  3026. if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3027. then
  3028. egg_cv_socklen_t=yes
  3029. else
  3030. echo "configure: failed program was:" >&5
  3031. cat conftest.$ac_ext >&5
  3032. rm -fr conftest*
  3033. egg_cv_socklen_t=no
  3034. fi
  3035. rm -fr conftest*
  3036. fi
  3037. fi
  3038. if test "$egg_cv_socklen_t" = "yes"; then
  3039. cat >> confdefs.h <<\EOF
  3040. #define HAVE_SOCKLEN_T 1
  3041. EOF
  3042. echo "$ac_t""yes" 1>&6
  3043. else
  3044. echo "$ac_t""no" 1>&6
  3045. fi
  3046. # Checks for library functions
  3047. for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize memset random srandom
  3048. do
  3049. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3050. echo "configure:3380: checking for $ac_func" >&5
  3051. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3052. echo $ac_n "(cached) $ac_c" 1>&6
  3053. else
  3054. cat > conftest.$ac_ext <<EOF
  3055. #line 3385 "configure"
  3056. #include "confdefs.h"
  3057. /* System header to define __stub macros and hopefully few prototypes,
  3058. which can conflict with char $ac_func(); below. */
  3059. #include <assert.h>
  3060. /* Override any gcc2 internal prototype to avoid an error. */
  3061. /* We use char because int might match the return type of a gcc2
  3062. builtin and then its argument prototype would still apply. */
  3063. char $ac_func();
  3064. int main() {
  3065. /* The GNU C library defines this for functions which it implements
  3066. to always fail with ENOSYS. Some functions are actually named
  3067. something starting with __ and the normal name is an alias. */
  3068. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3069. choke me
  3070. #else
  3071. $ac_func();
  3072. #endif
  3073. ; return 0; }
  3074. EOF
  3075. if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3076. rm -rf conftest*
  3077. eval "ac_cv_func_$ac_func=yes"
  3078. else
  3079. echo "configure: failed program was:" >&5
  3080. cat conftest.$ac_ext >&5
  3081. rm -rf conftest*
  3082. eval "ac_cv_func_$ac_func=no"
  3083. fi
  3084. rm -f conftest*
  3085. fi
  3086. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3087. echo "$ac_t""yes" 1>&6
  3088. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3089. cat >> confdefs.h <<EOF
  3090. #define $ac_tr_func 1
  3091. EOF
  3092. else
  3093. echo "$ac_t""no" 1>&6
  3094. fi
  3095. done
  3096. for ac_func in dlopen dprintf snprintf vsnprintf isascii inet_aton inet_ntop memcpy strftime fsync gethostbyname2 getipnodebyname
  3097. do
  3098. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3099. echo "configure:3435: checking for $ac_func" >&5
  3100. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3101. echo $ac_n "(cached) $ac_c" 1>&6
  3102. else
  3103. cat > conftest.$ac_ext <<EOF
  3104. #line 3440 "configure"
  3105. #include "confdefs.h"
  3106. /* System header to define __stub macros and hopefully few prototypes,
  3107. which can conflict with char $ac_func(); below. */
  3108. #include <assert.h>
  3109. /* Override any gcc2 internal prototype to avoid an error. */
  3110. /* We use char because int might match the return type of a gcc2
  3111. builtin and then its argument prototype would still apply. */
  3112. char $ac_func();
  3113. int main() {
  3114. /* The GNU C library defines this for functions which it implements
  3115. to always fail with ENOSYS. Some functions are actually named
  3116. something starting with __ and the normal name is an alias. */
  3117. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3118. choke me
  3119. #else
  3120. $ac_func();
  3121. #endif
  3122. ; return 0; }
  3123. EOF
  3124. if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3125. rm -rf conftest*
  3126. eval "ac_cv_func_$ac_func=yes"
  3127. else
  3128. echo "configure: failed program was:" >&5
  3129. cat conftest.$ac_ext >&5
  3130. rm -rf conftest*
  3131. eval "ac_cv_func_$ac_func=no"
  3132. fi
  3133. rm -f conftest*
  3134. fi
  3135. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3136. echo "$ac_t""yes" 1>&6
  3137. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3138. cat >> confdefs.h <<EOF
  3139. #define $ac_tr_func 1
  3140. EOF
  3141. else
  3142. echo "$ac_t""no" 1>&6
  3143. fi
  3144. done
  3145. for ac_func in vsprintf
  3146. do
  3147. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3148. echo "configure:3490: checking for $ac_func" >&5
  3149. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3150. echo $ac_n "(cached) $ac_c" 1>&6
  3151. else
  3152. cat > conftest.$ac_ext <<EOF
  3153. #line 3495 "configure"
  3154. #include "confdefs.h"
  3155. /* System header to define __stub macros and hopefully few prototypes,
  3156. which can conflict with char $ac_func(); below. */
  3157. #include <assert.h>
  3158. /* Override any gcc2 internal prototype to avoid an error. */
  3159. /* We use char because int might match the return type of a gcc2
  3160. builtin and then its argument prototype would still apply. */
  3161. char $ac_func();
  3162. int main() {
  3163. /* The GNU C library defines this for functions which it implements
  3164. to always fail with ENOSYS. Some functions are actually named
  3165. something starting with __ and the normal name is an alias. */
  3166. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3167. choke me
  3168. #else
  3169. $ac_func();
  3170. #endif
  3171. ; return 0; }
  3172. EOF
  3173. if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3174. rm -rf conftest*
  3175. eval "ac_cv_func_$ac_func=yes"
  3176. else
  3177. echo "configure: failed program was:" >&5
  3178. cat conftest.$ac_ext >&5
  3179. rm -rf conftest*
  3180. eval "ac_cv_func_$ac_func=no"
  3181. fi
  3182. rm -f conftest*
  3183. fi
  3184. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3185. echo "$ac_t""yes" 1>&6
  3186. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3187. cat >> confdefs.h <<EOF
  3188. #define $ac_tr_func 1
  3189. EOF
  3190. else
  3191. echo "$ac_t""no" 1>&6
  3192. fi
  3193. done
  3194. if test "$ac_cv_func_vsprintf" = "no"
  3195. then
  3196. cat << 'EOF' >&2
  3197. configure: error:
  3198. Your system does not have the sprintf/vsprintf libraries.
  3199. These are required to compile almost anything. Sorry.
  3200. EOF
  3201. exit 1
  3202. fi
  3203. for ac_func in uname
  3204. do
  3205. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3206. echo "configure:3557: checking for $ac_func" >&5
  3207. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3208. echo $ac_n "(cached) $ac_c" 1>&6
  3209. else
  3210. cat > conftest.$ac_ext <<EOF
  3211. #line 3562 "configure"
  3212. #include "confdefs.h"
  3213. /* System header to define __stub macros and hopefully few prototypes,
  3214. which can conflict with char $ac_func(); below. */
  3215. #include <assert.h>
  3216. /* Override any gcc2 internal prototype to avoid an error. */
  3217. /* We use char because int might match the return type of a gcc2
  3218. builtin and then its argument prototype would still apply. */
  3219. char $ac_func();
  3220. int main() {
  3221. /* The GNU C library defines this for functions which it implements
  3222. to always fail with ENOSYS. Some functions are actually named
  3223. something starting with __ and the normal name is an alias. */
  3224. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3225. choke me
  3226. #else
  3227. $ac_func();
  3228. #endif
  3229. ; return 0; }
  3230. EOF
  3231. if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3232. rm -rf conftest*
  3233. eval "ac_cv_func_$ac_func=yes"
  3234. else
  3235. echo "configure: failed program was:" >&5
  3236. cat conftest.$ac_ext >&5
  3237. rm -rf conftest*
  3238. eval "ac_cv_func_$ac_func=no"
  3239. fi
  3240. rm -f conftest*
  3241. fi
  3242. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3243. echo "$ac_t""yes" 1>&6
  3244. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3245. cat >> confdefs.h <<EOF
  3246. #define $ac_tr_func 1
  3247. EOF
  3248. else
  3249. echo "$ac_t""no" 1>&6
  3250. fi
  3251. done
  3252. if test "$ac_cv_func_uname" = "no"
  3253. then
  3254. cat << 'EOF' >&2
  3255. configure: error:
  3256. Your system does not have the uname() function.
  3257. This is required for the botpack.
  3258. EOF
  3259. exit 1
  3260. fi
  3261. # Make sure we have stdc headers, since we can't compile without them
  3262. if test "$ac_cv_header_stdc" = "no"
  3263. then
  3264. cat << 'EOF' >&2
  3265. configure: error:
  3266. Your system must support ANSI C Header files.
  3267. These are required for the language support. Sorry.
  3268. EOF
  3269. exit 1
  3270. fi
  3271. # Make sure we are using the correct result from a broken libsafe sscanf
  3272. echo $ac_n "checking for broken libsafe sscanf""... $ac_c" 1>&6
  3273. echo "configure:3638: checking for broken libsafe sscanf" >&5
  3274. if eval "test \"`echo '$''{'egg_cv_var_libsafe_sscanf'+set}'`\" = set"; then
  3275. echo $ac_n "(cached) $ac_c" 1>&6
  3276. else
  3277. if test "$cross_compiling" = yes; then
  3278. egg_cv_var_libsafe_sscanf="no"
  3279. else
  3280. cat > conftest.$ac_ext <<EOF
  3281. #line 3646 "configure"
  3282. #include "confdefs.h"
  3283. #include <stdio.h>
  3284. int main()
  3285. {
  3286. char *src = "0x001,guppyism\n";
  3287. char dst[10];
  3288. int idx;
  3289. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  3290. exit(1);
  3291. return 0;
  3292. }
  3293. EOF
  3294. if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3295. then
  3296. egg_cv_var_libsafe_sscanf="no"
  3297. else
  3298. echo "configure: failed program was:" >&5
  3299. cat conftest.$ac_ext >&5
  3300. rm -fr conftest*
  3301. egg_cv_var_libsafe_sscanf="yes"
  3302. fi
  3303. rm -fr conftest*
  3304. fi
  3305. fi
  3306. echo "$ac_t""$egg_cv_var_libsafe_sscanf" 1>&6
  3307. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  3308. then
  3309. cat >> confdefs.h <<\EOF
  3310. #define LIBSAFE_HACKS 1
  3311. EOF
  3312. fi
  3313. # Where is Tcl? Is it here?
  3314. # ---------- begin robey's Tcl thingies
  3315. # (well, what used to be robey's Tcl thingies...)
  3316. # Latest tested Tcl version to recommend if Tcl isn't found
  3317. tclrecommendver="8.4"
  3318. # Site recommended to download Tcl from
  3319. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  3320. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  3321. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  3322. tcl8.0 tcl80"
  3323. # Tcl library filename suffixes
  3324. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  3325. # Tcl library search paths
  3326. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  3327. /usr/local/lib /usr/local/pkgs/tcl/lib \
  3328. /usr/lib /lib /usr/i486-linuxaout/lib \
  3329. /beos/system/lib /sys/lib"
  3330. # Tcl header filenames
  3331. tclheadernames="tcl.h"
  3332. # Tcl header search paths
  3333. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  3334. /usr/local/include /usr/local/pkgs/tcl/include \
  3335. /usr/include /beos/system/include /beos/devel/include \
  3336. /sys/include"
  3337. # oohh new configure --variables for those with multiple Tcl libs
  3338. # Check whether --with-tcllib or --without-tcllib was given.
  3339. if test "${with_tcllib+set}" = set; then
  3340. withval="$with_tcllib"
  3341. tcllibname="$withval"
  3342. fi
  3343. # Check whether --with-tclinc or --without-tclinc was given.
  3344. if test "${with_tclinc+set}" = set; then
  3345. withval="$with_tclinc"
  3346. tclincname="$withval"
  3347. fi
  3348. WARN=0
  3349. # Make sure either both or neither $tcllibname and $tclincname are set
  3350. if test ! "${tcllibname-x}" = "x"
  3351. then
  3352. if test "${tclincname-x}" = "x"
  3353. then
  3354. WARN=1
  3355. tcllibname=""
  3356. TCLLIB=""
  3357. TCLINC=""
  3358. fi
  3359. else
  3360. if test ! "${tclincname-x}" = "x"
  3361. then
  3362. WARN=1
  3363. tclincname=""
  3364. TCLLIB=""
  3365. TCLINC=""
  3366. fi
  3367. fi
  3368. if test "$WARN" = 1
  3369. then
  3370. cat << 'EOF' >&2
  3371. configure: warning:
  3372. You must specify both --with-tcllib and --with-tclinc for them to work.
  3373. configure will now attempt to autodetect both the Tcl library and header...
  3374. EOF
  3375. fi
  3376. WARN=0
  3377. # Make sure either both or neither $TCLLIB and $TCLINC are set
  3378. if test ! "${TCLLIB-x}" = "x"
  3379. then
  3380. if test "${TCLINC-x}" = "x"
  3381. then
  3382. WARN=1
  3383. WVAR1=TCLLIB
  3384. WVAR2=TCLINC
  3385. TCLLIB=""
  3386. fi
  3387. else
  3388. if test ! "${TCLINC-x}" = "x"
  3389. then
  3390. WARN=1
  3391. WVAR1=TCLINC
  3392. WVAR2=TCLLIB
  3393. TCLINC=""
  3394. fi
  3395. fi
  3396. if test "$WARN" = 1
  3397. then
  3398. cat << EOF >&2
  3399. configure: warning:
  3400. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  3401. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3402. configure will now attempt to autodetect both the Tcl library and header...
  3403. EOF
  3404. fi
  3405. # Look for Tcl library: if $tcllibname is set, check there first
  3406. if test ! "${tcllibname-x}" = "x"
  3407. then
  3408. if test -f "$tcllibname" && test -r "$tcllibname"
  3409. then
  3410. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  3411. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  3412. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  3413. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  3414. else
  3415. cat << EOF >&2
  3416. configure: warning:
  3417. The file '$tcllibname' given to option --with-tcllib is not valid.
  3418. configure will now attempt to autodetect both the Tcl library and header...
  3419. EOF
  3420. tcllibname=""
  3421. tclincname=""
  3422. TCLLIB=""
  3423. TCLLIBFN=""
  3424. TCLINC=""
  3425. TCLINCFN=""
  3426. fi
  3427. fi
  3428. # Look for Tcl header: if $tclincname is set, check there first
  3429. if test ! "${tclincname-x}" = "x"
  3430. then
  3431. if test -f "$tclincname" && test -r "$tclincname"
  3432. then
  3433. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  3434. TCLINCFN=`$BASENAME $tclincname`
  3435. else
  3436. cat << EOF >&2
  3437. configure: warning:
  3438. The file '$tclincname' given to option --with-tclinc is not valid.
  3439. configure will now attempt to autodetect both the Tcl library and header...
  3440. EOF
  3441. tcllibname=""
  3442. tclincname=""
  3443. TCLLIB=""
  3444. TCLLIBFN=""
  3445. TCLINC=""
  3446. TCLINCFN=""
  3447. fi
  3448. fi
  3449. # Look for Tcl library: if $TCLLIB is set, check there first
  3450. if test "${TCLLIBFN-x}" = "x"
  3451. then
  3452. if test ! "${TCLLIB-x}" = "x"
  3453. then
  3454. if test -d "$TCLLIB"
  3455. then
  3456. for tcllibfns in $tcllibnames
  3457. do
  3458. for tcllibext in $tcllibextensions
  3459. do
  3460. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  3461. then
  3462. TCLLIBFN="$tcllibfns$tcllibext"
  3463. TCLLIBEXT="$tcllibext"
  3464. TCLLIBFNS="$tcllibfns"
  3465. break 2
  3466. fi
  3467. done
  3468. done
  3469. fi
  3470. if test "${TCLLIBFN-x}" = "x"
  3471. then
  3472. cat << 'EOF' >&2
  3473. configure: warning:
  3474. Environment variable TCLLIB was set, but incorrect.
  3475. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3476. configure will now attempt to autodetect both the Tcl library and header...
  3477. EOF
  3478. TCLLIB=""
  3479. TCLLIBFN=""
  3480. TCLINC=""
  3481. TCLINCFN=""
  3482. fi
  3483. fi
  3484. fi
  3485. # Look for Tcl header: if $TCLINC is set, check there first
  3486. if test "${TCLINCFN-x}" = "x"
  3487. then
  3488. if test ! "${TCLINC-x}" = "x"
  3489. then
  3490. if test -d "$TCLINC"
  3491. then
  3492. for tclheaderfn in $tclheadernames
  3493. do
  3494. if test -r "$TCLINC/$tclheaderfn"
  3495. then
  3496. TCLINCFN="$tclheaderfn"
  3497. break
  3498. fi
  3499. done
  3500. fi
  3501. if test "${TCLINCFN-x}" = "x"
  3502. then
  3503. cat << 'EOF' >&2
  3504. configure: warning:
  3505. Environment variable TCLINC was set, but incorrect.
  3506. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3507. configure will now attempt to autodetect both the Tcl library and header...
  3508. EOF
  3509. TCLLIB=""
  3510. TCLLIBFN=""
  3511. TCLINC=""
  3512. TCLINCFN=""
  3513. fi
  3514. fi
  3515. fi
  3516. echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
  3517. echo "configure:3919: checking for Tcl library" >&5
  3518. # Attempt autodetect for $TCLLIBFN if it's not set
  3519. if test ! "${TCLLIBFN-x}" = "x"
  3520. then
  3521. echo "$ac_t""using $TCLLIB/lib$TCLLIBFN" 1>&6
  3522. else
  3523. for tcllibfns in $tcllibnames
  3524. do
  3525. for tcllibext in $tcllibextensions
  3526. do
  3527. for tcllibpath in $tcllibpaths
  3528. do
  3529. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  3530. then
  3531. echo "$ac_t""found $tcllibpath/lib$tcllibfns$tcllibext" 1>&6
  3532. TCLLIB="$tcllibpath"
  3533. TCLLIBFN="$tcllibfns$tcllibext"
  3534. TCLLIBEXT="$tcllibext"
  3535. TCLLIBFNS="$tcllibfns"
  3536. break 3
  3537. fi
  3538. done
  3539. done
  3540. done
  3541. fi
  3542. # Show if $TCLLIBFN wasn't found
  3543. if test "${TCLLIBFN-x}" = "x"
  3544. then
  3545. echo "$ac_t""not found" 1>&6
  3546. fi
  3547. echo $ac_n "checking for Tcl header""... $ac_c" 1>&6
  3548. echo "configure:3953: checking for Tcl header" >&5
  3549. # Attempt autodetect for $TCLINCFN if it's not set
  3550. if test ! "${TCLINCFN-x}" = "x"
  3551. then
  3552. echo "$ac_t""using $TCLINC/$TCLINCFN" 1>&6
  3553. else
  3554. for tclheaderpath in $tclheaderpaths
  3555. do
  3556. for tclheaderfn in $tclheadernames
  3557. do
  3558. if test -r "$tclheaderpath/$tclheaderfn"
  3559. then
  3560. echo "$ac_t""found $tclheaderpath/$tclheaderfn" 1>&6
  3561. TCLINC="$tclheaderpath"
  3562. TCLINCFN="$tclheaderfn"
  3563. break 2
  3564. fi
  3565. done
  3566. done
  3567. # FreeBSD hack ...
  3568. if test "${TCLINCFN-x}" = "x"
  3569. then
  3570. for tcllibfns in $tcllibnames
  3571. do
  3572. for tclheaderpath in $tclheaderpaths
  3573. do
  3574. for tclheaderfn in $tclheadernames
  3575. do
  3576. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  3577. then
  3578. echo "$ac_t""found $tclheaderpath/$tcllibfns/$tclheaderfn" 1>&6
  3579. TCLINC="$tclheaderpath/$tcllibfns"
  3580. TCLINCFN="$tclheaderfn"
  3581. break 3
  3582. fi
  3583. done
  3584. done
  3585. done
  3586. fi
  3587. fi
  3588. # Show if $TCLINCFN wasn't found
  3589. if test "${TCLINCFN-x}" = "x"
  3590. then
  3591. echo "$ac_t""not found" 1>&6
  3592. fi
  3593. echo $ac_n "checking whether the Tcl system has changed""... $ac_c" 1>&6
  3594. echo "configure:4002: checking whether the Tcl system has changed" >&5
  3595. egg_tcl_changed=yes
  3596. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  3597. if test ! "$egg_tcl_id" = ":::"
  3598. then
  3599. egg_tcl_cached=yes
  3600. if eval "test \"`echo '$''{'egg_cv_var_tcl_id'+set}'`\" = set"; then
  3601. echo $ac_n "(cached) $ac_c" 1>&6
  3602. else
  3603. egg_cv_var_tcl_id="$egg_tcl_id"
  3604. egg_tcl_cached=no
  3605. fi
  3606. if test "$egg_tcl_cached" = "yes"
  3607. then
  3608. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  3609. then
  3610. egg_tcl_changed=no
  3611. else
  3612. egg_cv_var_tcl_id="$egg_tcl_id"
  3613. fi
  3614. fi
  3615. fi
  3616. if test "$egg_tcl_changed" = "yes"
  3617. then
  3618. echo "$ac_t""yes" 1>&6
  3619. else
  3620. echo "$ac_t""no" 1>&6
  3621. fi
  3622. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  3623. TCL_FOUND=0
  3624. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  3625. then
  3626. TCL_FOUND=1
  3627. # Check Tcl's version
  3628. if test "$egg_tcl_changed" = "yes"
  3629. then
  3630. unset egg_cv_var_tcl_version
  3631. fi
  3632. echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
  3633. echo "configure:4047: checking for Tcl version" >&5
  3634. if eval "test \"`echo '$''{'egg_cv_var_tcl_version'+set}'`\" = set"; then
  3635. echo $ac_n "(cached) $ac_c" 1>&6
  3636. else
  3637. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  3638. fi
  3639. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  3640. then
  3641. echo "$ac_t""$egg_cv_var_tcl_version" 1>&6
  3642. else
  3643. echo "$ac_t""not found" 1>&6
  3644. TCL_FOUND=0
  3645. fi
  3646. # Check Tcl's patch level (if available)
  3647. if test "$egg_tcl_changed" = "yes"
  3648. then
  3649. unset egg_cv_var_tcl_patch_level
  3650. fi
  3651. echo $ac_n "checking for Tcl patch level""... $ac_c" 1>&6
  3652. echo "configure:4071: checking for Tcl patch level" >&5
  3653. if eval "test \"`echo '$''{'egg_cv_var_tcl_patch_level'+set}'`\" = set"; then
  3654. echo $ac_n "(cached) $ac_c" 1>&6
  3655. else
  3656. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  3657. fi
  3658. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  3659. then
  3660. echo "$ac_t""$egg_cv_var_tcl_patch_level" 1>&6
  3661. else
  3662. egg_cv_var_tcl_patch_level="unknown"
  3663. echo "$ac_t""unknown" 1>&6
  3664. fi
  3665. fi
  3666. # Check if we found Tcl's version
  3667. if test "$TCL_FOUND" = 0
  3668. then
  3669. cat << 'EOF' >&2
  3670. configure: error:
  3671. I can't find Tcl on this system.
  3672. You must set the path for it in pack/conf.h
  3673. EOF
  3674. exit 1
  3675. fi
  3676. # Is this version of Tcl too old for us to use ?
  3677. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  3678. if test "$TCL_VER_PRE80" = "yes"
  3679. then
  3680. cat << EOF >&2
  3681. configure: error:
  3682. Your Tcl version is much too old for Eggdrop to use.
  3683. I suggest you download and compile a more recent version.
  3684. The most reliable current version is $tclrecommendver and
  3685. can be downloaded from $tclrecommendsite
  3686. EOF
  3687. exit 1
  3688. fi
  3689. # Set variables for Tcl library tests
  3690. TCL_TEST_LIB="$TCLLIBFNS"
  3691. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  3692. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3693. then
  3694. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  3695. fi
  3696. if test "$egg_tcl_changed" = "yes"
  3697. then
  3698. unset egg_cv_var_tcl_free
  3699. fi
  3700. # Check for Tcl_Free()
  3701. echo $ac_n "checking for Tcl_Free in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3702. echo "configure:4135: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  3703. ac_lib_var=`echo $TCL_TEST_LIB'_'Tcl_Free | sed 'y%./+-%__p_%'`
  3704. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3705. echo $ac_n "(cached) $ac_c" 1>&6
  3706. else
  3707. ac_save_LIBS="$LIBS"
  3708. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3709. cat > conftest.$ac_ext <<EOF
  3710. #line 4143 "configure"
  3711. #include "confdefs.h"
  3712. /* Override any gcc2 internal prototype to avoid an error. */
  3713. /* We use char because int might match the return type of a gcc2
  3714. builtin and then its argument prototype would still apply. */
  3715. char Tcl_Free();
  3716. int main() {
  3717. Tcl_Free()
  3718. ; return 0; }
  3719. EOF
  3720. if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3721. rm -rf conftest*
  3722. eval "ac_cv_lib_$ac_lib_var=yes"
  3723. else
  3724. echo "configure: failed program was:" >&5
  3725. cat conftest.$ac_ext >&5
  3726. rm -rf conftest*
  3727. eval "ac_cv_lib_$ac_lib_var=no"
  3728. fi
  3729. rm -f conftest*
  3730. LIBS="$ac_save_LIBS"
  3731. fi
  3732. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3733. echo "$ac_t""yes" 1>&6
  3734. egg_cv_var_tcl_free="yes"
  3735. else
  3736. echo "$ac_t""no" 1>&6
  3737. egg_cv_var_tcl_free="no"
  3738. fi
  3739. if test "$egg_cv_var_tcl_free" = "yes"
  3740. then
  3741. cat >> confdefs.h <<\EOF
  3742. #define HAVE_TCL_FREE 1
  3743. EOF
  3744. fi
  3745. if test "$egg_tcl_changed" = "yes"
  3746. then
  3747. unset egg_cv_var_tcl_threaded
  3748. fi
  3749. # Check for TclpFinalizeThreadData()
  3750. echo $ac_n "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3751. echo "configure:4191: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  3752. ac_lib_var=`echo $TCL_TEST_LIB'_'TclpFinalizeThreadData | sed 'y%./+-%__p_%'`
  3753. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3754. echo $ac_n "(cached) $ac_c" 1>&6
  3755. else
  3756. ac_save_LIBS="$LIBS"
  3757. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3758. cat > conftest.$ac_ext <<EOF
  3759. #line 4199 "configure"
  3760. #include "confdefs.h"
  3761. /* Override any gcc2 internal prototype to avoid an error. */
  3762. /* We use char because int might match the return type of a gcc2
  3763. builtin and then its argument prototype would still apply. */
  3764. char TclpFinalizeThreadData();
  3765. int main() {
  3766. TclpFinalizeThreadData()
  3767. ; return 0; }
  3768. EOF
  3769. if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3770. rm -rf conftest*
  3771. eval "ac_cv_lib_$ac_lib_var=yes"
  3772. else
  3773. echo "configure: failed program was:" >&5
  3774. cat conftest.$ac_ext >&5
  3775. rm -rf conftest*
  3776. eval "ac_cv_lib_$ac_lib_var=no"
  3777. fi
  3778. rm -f conftest*
  3779. LIBS="$ac_save_LIBS"
  3780. fi
  3781. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3782. echo "$ac_t""yes" 1>&6
  3783. egg_cv_var_tcl_threaded="yes"
  3784. else
  3785. echo "$ac_t""no" 1>&6
  3786. egg_cv_var_tcl_threaded="no"
  3787. fi
  3788. enable_tcl_threads=no
  3789. if test "$egg_cv_var_tcl_threaded" = "yes"
  3790. then
  3791. if test "$enable_tcl_threads" = "no"
  3792. then
  3793. cat << 'EOF' >&2
  3794. configure: warning:
  3795. You have disabled threads support on a system with a threaded Tcl library.
  3796. Tcl features that rely on scheduled events may not function properly.
  3797. EOF
  3798. fi
  3799. # Add pthread library to $LIBS if we need it
  3800. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3801. then
  3802. LIBS="$ac_cv_lib_pthread $LIBS"
  3803. fi
  3804. fi
  3805. if test "$EGG_CYGWIN" = "yes"
  3806. then
  3807. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3808. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3809. else
  3810. if test ! "$TCLLIBEXT" = ".a"
  3811. then
  3812. cat << 'EOF' >&2
  3813. configure: warning:
  3814. Your Tcl library is not compiled statically.
  3815. You will need to compile Tcl statically to successfully compile wraith.
  3816. EOF
  3817. exit 1
  3818. else
  3819. # Was the --with-tcllib option given ?
  3820. if test ! "${tcllibname-x}" = "x"
  3821. then
  3822. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3823. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  3824. else
  3825. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3826. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3827. fi
  3828. fi
  3829. fi
  3830. # ---------- end of (what used to be) robey's Tcl thingies
  3831. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  3832. then
  3833. if test "$LINUX" = "yes"
  3834. then
  3835. cat << 'EOF' >&2
  3836. configure: warning:
  3837. Since you are on a Linux system, this has a known problem...
  3838. I know a kludge for it,
  3839. EOF
  3840. if test -r "/lib/libdl.so.1"
  3841. then
  3842. cat << 'EOF' >&2
  3843. and you seem to have it, so we'll do that...
  3844. EOF
  3845. cat >> confdefs.h <<\EOF
  3846. #define HAVE_DLOPEN 1
  3847. EOF
  3848. LIBS="/lib/libdl.so.1 $LIBS"
  3849. else
  3850. cat << 'EOF' >&2
  3851. which you DON'T seem to have... doh!
  3852. perhaps you may still have the stuff lying around somewhere
  3853. if you work out where it is, add it to your XLIBS= lines
  3854. and #define HAVE_DLOPEN in config.h
  3855. we'll proceed on anyway, but you probably won't be able
  3856. to 'make eggdrop' but you might be able to make the
  3857. static bot (I'll default your make to this version).
  3858. EOF
  3859. fi
  3860. else
  3861. cat << 'EOF' >&2
  3862. configure: warning:
  3863. You don't seem to have libdl anywhere I can find it, this will
  3864. prevent you from doing dynamic modules, I'll set your default
  3865. make to static linking.
  3866. EOF
  3867. fi
  3868. fi
  3869. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $4}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  3870. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $4}' | sed -e 's/\;//g'`
  3871. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  3872. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  3873. cat >> confdefs.h <<EOF
  3874. #define EGG_VERSION $version_num
  3875. EOF
  3876. case "$srcdir" in
  3877. [\\/]* | ?:[\\/]*)
  3878. MOD_UPDIR=""
  3879. ;;
  3880. *)
  3881. MOD_UPDIR="../"
  3882. ;;
  3883. esac
  3884. trap '' 1 2 15
  3885. cat > confcache <<\EOF
  3886. # This file is a shell script that caches the results of configure
  3887. # tests run on this system so they can be shared between configure
  3888. # scripts and configure runs. It is not useful on other systems.
  3889. # If it contains results you don't want to keep, you may remove or edit it.
  3890. #
  3891. # By default, configure uses ./config.cache as the cache file,
  3892. # creating it if it does not exist already. You can give configure
  3893. # the --cache-file=FILE option to use a different cache file; that is
  3894. # what configure does when it calls configure scripts in
  3895. # subdirectories, so they share the cache.
  3896. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3897. # config.status only pays attention to the cache file if you give it the
  3898. # --recheck option to rerun configure.
  3899. #
  3900. EOF
  3901. # The following way of writing the cache mishandles newlines in values,
  3902. # but we know of no workaround that is simple, portable, and efficient.
  3903. # So, don't put newlines in cache variables' values.
  3904. # Ultrix sh set writes to stderr and can't be redirected directly,
  3905. # and sets the high bit in the cache file unless we assign to the vars.
  3906. (set) 2>&1 |
  3907. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3908. *ac_space=\ *)
  3909. # `set' does not quote correctly, so add quotes (double-quote substitution
  3910. # turns \\\\ into \\, and sed turns \\ into \).
  3911. sed -n \
  3912. -e "s/'/'\\\\''/g" \
  3913. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3914. ;;
  3915. *)
  3916. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3917. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3918. ;;
  3919. esac >> confcache
  3920. if cmp -s $cache_file confcache; then
  3921. :
  3922. else
  3923. if test -w $cache_file; then
  3924. echo "updating cache $cache_file"
  3925. cat confcache > $cache_file
  3926. else
  3927. echo "not updating unwritable cache $cache_file"
  3928. fi
  3929. fi
  3930. rm -f confcache
  3931. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3932. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3933. # Let make expand exec_prefix.
  3934. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3935. # Any assignment to VPATH causes Sun make to only execute
  3936. # the first set of double-colon rules, so remove it if not needed.
  3937. # If there is a colon in the path, we need to keep it.
  3938. if test "x$srcdir" = x.; then
  3939. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  3940. fi
  3941. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3942. DEFS=-DHAVE_CONFIG_H
  3943. # Without the "./", some shells look in PATH for config.status.
  3944. : ${CONFIG_STATUS=./config.status}
  3945. echo creating $CONFIG_STATUS
  3946. rm -f $CONFIG_STATUS
  3947. cat > $CONFIG_STATUS <<EOF
  3948. #! /bin/sh
  3949. # Generated automatically by configure.
  3950. # Run this file to recreate the current configuration.
  3951. # This directory was configured as follows,
  3952. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3953. #
  3954. # $0 $ac_configure_args
  3955. #
  3956. # Compiler output produced by configure, useful for debugging
  3957. # configure, is in ./config.log if it exists.
  3958. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3959. for ac_option
  3960. do
  3961. case "\$ac_option" in
  3962. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3963. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3964. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3965. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3966. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3967. exit 0 ;;
  3968. -help | --help | --hel | --he | --h)
  3969. echo "\$ac_cs_usage"; exit 0 ;;
  3970. *) echo "\$ac_cs_usage"; exit 1 ;;
  3971. esac
  3972. done
  3973. ac_given_srcdir=$srcdir
  3974. trap 'rm -fr `echo "Makefile src/Makefile src/compat/Makefile src/mod/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3975. EOF
  3976. cat >> $CONFIG_STATUS <<EOF
  3977. # Protect against being on the right side of a sed subst in config.status.
  3978. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3979. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3980. $ac_vpsub
  3981. $extrasub
  3982. s%@SHELL@%$SHELL%g
  3983. s%@CFLAGS@%$CFLAGS%g
  3984. s%@CPPFLAGS@%$CPPFLAGS%g
  3985. s%@CXXFLAGS@%$CXXFLAGS%g
  3986. s%@FFLAGS@%$FFLAGS%g
  3987. s%@DEFS@%$DEFS%g
  3988. s%@LDFLAGS@%$LDFLAGS%g
  3989. s%@LIBS@%$LIBS%g
  3990. s%@exec_prefix@%$exec_prefix%g
  3991. s%@prefix@%$prefix%g
  3992. s%@program_transform_name@%$program_transform_name%g
  3993. s%@bindir@%$bindir%g
  3994. s%@sbindir@%$sbindir%g
  3995. s%@libexecdir@%$libexecdir%g
  3996. s%@datadir@%$datadir%g
  3997. s%@sysconfdir@%$sysconfdir%g
  3998. s%@sharedstatedir@%$sharedstatedir%g
  3999. s%@localstatedir@%$localstatedir%g
  4000. s%@libdir@%$libdir%g
  4001. s%@includedir@%$includedir%g
  4002. s%@oldincludedir@%$oldincludedir%g
  4003. s%@infodir@%$infodir%g
  4004. s%@mandir@%$mandir%g
  4005. s%@egg_ac_parameters@%$egg_ac_parameters%g
  4006. s%@CC@%$CC%g
  4007. s%@CPP@%$CPP%g
  4008. s%@SET_MAKE@%$SET_MAKE%g
  4009. s%@HEAD_1@%$HEAD_1%g
  4010. s%@STRIP@%$STRIP%g
  4011. s%@AWK@%$AWK%g
  4012. s%@BASENAME@%$BASENAME%g
  4013. s%@UNAME@%$UNAME%g
  4014. s%@ZLIB@%$ZLIB%g
  4015. s%@SSL@%$SSL%g
  4016. s%@TCLLIB@%$TCLLIB%g
  4017. s%@TCLLIBFN@%$TCLLIBFN%g
  4018. s%@TCLINC@%$TCLINC%g
  4019. s%@TCLINCFN@%$TCLINCFN%g
  4020. s%@TCL_REQS@%$TCL_REQS%g
  4021. s%@TCL_LIBS@%$TCL_LIBS%g
  4022. s%@VERSION@%$VERSION%g
  4023. s%@NUMVER@%$NUMVER%g
  4024. s%@PACKNAME@%$PACKNAME%g
  4025. s%@MOD_UPDIR@%$MOD_UPDIR%g
  4026. CEOF
  4027. EOF
  4028. cat >> $CONFIG_STATUS <<\EOF
  4029. # Split the substitutions into bite-sized pieces for seds with
  4030. # small command number limits, like on Digital OSF/1 and HP-UX.
  4031. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  4032. ac_file=1 # Number of current file.
  4033. ac_beg=1 # First line for current file.
  4034. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  4035. ac_more_lines=:
  4036. ac_sed_cmds=""
  4037. while $ac_more_lines; do
  4038. if test $ac_beg -gt 1; then
  4039. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  4040. else
  4041. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  4042. fi
  4043. if test ! -s conftest.s$ac_file; then
  4044. ac_more_lines=false
  4045. rm -f conftest.s$ac_file
  4046. else
  4047. if test -z "$ac_sed_cmds"; then
  4048. ac_sed_cmds="sed -f conftest.s$ac_file"
  4049. else
  4050. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  4051. fi
  4052. ac_file=`expr $ac_file + 1`
  4053. ac_beg=$ac_end
  4054. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  4055. fi
  4056. done
  4057. if test -z "$ac_sed_cmds"; then
  4058. ac_sed_cmds=cat
  4059. fi
  4060. EOF
  4061. cat >> $CONFIG_STATUS <<EOF
  4062. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/compat/Makefile src/mod/Makefile"}
  4063. EOF
  4064. cat >> $CONFIG_STATUS <<\EOF
  4065. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4066. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4067. case "$ac_file" in
  4068. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  4069. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4070. *) ac_file_in="${ac_file}.in" ;;
  4071. esac
  4072. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  4073. # Remove last slash and all that follows it. Not all systems have dirname.
  4074. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4075. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4076. # The file is in a subdirectory.
  4077. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4078. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  4079. # A "../" for each directory in $ac_dir_suffix.
  4080. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4081. else
  4082. ac_dir_suffix= ac_dots=
  4083. fi
  4084. case "$ac_given_srcdir" in
  4085. .) srcdir=.
  4086. if test -z "$ac_dots"; then top_srcdir=.
  4087. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4088. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4089. *) # Relative path.
  4090. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4091. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4092. esac
  4093. echo creating "$ac_file"
  4094. rm -f "$ac_file"
  4095. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4096. case "$ac_file" in
  4097. *Makefile*) ac_comsub="1i\\
  4098. # $configure_input" ;;
  4099. *) ac_comsub= ;;
  4100. esac
  4101. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  4102. sed -e "$ac_comsub
  4103. s%@configure_input@%$configure_input%g
  4104. s%@srcdir@%$srcdir%g
  4105. s%@top_srcdir@%$top_srcdir%g
  4106. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  4107. fi; done
  4108. rm -f conftest.s*
  4109. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4110. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4111. #
  4112. # ac_d sets the value in "#define NAME VALUE" lines.
  4113. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  4114. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  4115. ac_dC='\3'
  4116. ac_dD='%g'
  4117. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4118. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4119. ac_uB='\([ ]\)%\1#\2define\3'
  4120. ac_uC=' '
  4121. ac_uD='\4%g'
  4122. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4123. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4124. ac_eB='$%\1#\2define\3'
  4125. ac_eC=' '
  4126. ac_eD='%g'
  4127. if test "${CONFIG_HEADERS+set}" != set; then
  4128. EOF
  4129. cat >> $CONFIG_STATUS <<EOF
  4130. CONFIG_HEADERS="config.h"
  4131. EOF
  4132. cat >> $CONFIG_STATUS <<\EOF
  4133. fi
  4134. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4135. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4136. case "$ac_file" in
  4137. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  4138. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4139. *) ac_file_in="${ac_file}.in" ;;
  4140. esac
  4141. echo creating $ac_file
  4142. rm -f conftest.frag conftest.in conftest.out
  4143. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  4144. cat $ac_file_inputs > conftest.in
  4145. EOF
  4146. # Transform confdefs.h into a sed script conftest.vals that substitutes
  4147. # the proper values into config.h.in to produce config.h. And first:
  4148. # Protect against being on the right side of a sed subst in config.status.
  4149. # Protect against being in an unquoted here document in config.status.
  4150. rm -f conftest.vals
  4151. cat > conftest.hdr <<\EOF
  4152. s/[\\&%]/\\&/g
  4153. s%[\\$`]%\\&%g
  4154. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4155. s%ac_d%ac_u%gp
  4156. s%ac_u%ac_e%gp
  4157. EOF
  4158. sed -n -f conftest.hdr confdefs.h > conftest.vals
  4159. rm -f conftest.hdr
  4160. # This sed command replaces #undef with comments. This is necessary, for
  4161. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4162. # on some systems where configure will not decide to define it.
  4163. cat >> conftest.vals <<\EOF
  4164. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4165. EOF
  4166. # Break up conftest.vals because some shells have a limit on
  4167. # the size of here documents, and old seds have small limits too.
  4168. rm -f conftest.tail
  4169. while :
  4170. do
  4171. ac_lines=`grep -c . conftest.vals`
  4172. # grep -c gives empty output for an empty file on some AIX systems.
  4173. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4174. # Write a limited-size here document to conftest.frag.
  4175. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4176. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4177. echo 'CEOF
  4178. sed -f conftest.frag conftest.in > conftest.out
  4179. rm -f conftest.in
  4180. mv conftest.out conftest.in
  4181. ' >> $CONFIG_STATUS
  4182. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4183. rm -f conftest.vals
  4184. mv conftest.tail conftest.vals
  4185. done
  4186. rm -f conftest.vals
  4187. cat >> $CONFIG_STATUS <<\EOF
  4188. rm -f conftest.frag conftest.h
  4189. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  4190. cat conftest.in >> conftest.h
  4191. rm -f conftest.in
  4192. if cmp -s $ac_file conftest.h 2>/dev/null; then
  4193. echo "$ac_file is unchanged"
  4194. rm -f conftest.h
  4195. else
  4196. # Remove last slash and all that follows it. Not all systems have dirname.
  4197. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4198. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4199. # The file is in a subdirectory.
  4200. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4201. fi
  4202. rm -f $ac_file
  4203. mv conftest.h $ac_file
  4204. fi
  4205. fi; done
  4206. EOF
  4207. cat >> $CONFIG_STATUS <<EOF
  4208. egg_tclinc="$TCLINC"
  4209. egg_tclincfn="$TCLINCFN"
  4210. EOF
  4211. cat >> $CONFIG_STATUS <<\EOF
  4212. egg_replace_file="lush.h"
  4213. echo "creating lush.h"
  4214. cat > conftest.out << EGGEOF
  4215. /* Ignore me but do not erase me. I am a kludge. */
  4216. #include "$egg_tclinc/$egg_tclincfn"
  4217. EGGEOF
  4218. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file
  4219. then
  4220. echo "lush.h is unchanged"
  4221. else
  4222. mv conftest.out $egg_replace_file
  4223. fi
  4224. rm -f conftest.out
  4225. if test -f .modules
  4226. then
  4227. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  4228. fi
  4229. exit 0
  4230. EOF
  4231. chmod +x $CONFIG_STATUS
  4232. rm -fr confdefs* $ac_clean_files
  4233. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1