configure 125 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718
  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.4
  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. *)
  1187. CFLAGS="$CFLAGS -Wall"
  1188. ;;
  1189. esac
  1190. ;;
  1191. CYGWI*)
  1192. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  1193. 1.*)
  1194. NEED_DL=0
  1195. echo $ac_n "checking how to access the Win32 API""... $ac_c" 1>&6
  1196. echo "configure:1338: checking how to access the Win32 API" >&5
  1197. WIN32FLAGS=
  1198. cat > conftest.$ac_ext <<EOF
  1199. #line 1341 "configure"
  1200. #include "confdefs.h"
  1201. int main() {
  1202. #ifndef WIN32
  1203. # ifndef _WIN32
  1204. # error WIN32 or _WIN32 not defined
  1205. # endif
  1206. #endif
  1207. ; return 0; }
  1208. EOF
  1209. if { (eval echo configure:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1210. rm -rf conftest*
  1211. echo "$ac_t""present by default" 1>&6
  1212. else
  1213. echo "configure: failed program was:" >&5
  1214. cat conftest.$ac_ext >&5
  1215. rm -rf conftest*
  1216. ac_compile_save="$ac_compile"
  1217. save_CC="$CC"
  1218. ac_compile="$ac_compile -mwin32"
  1219. CC="$CC -mwin32"
  1220. cat > conftest.$ac_ext <<EOF
  1221. #line 1368 "configure"
  1222. #include "confdefs.h"
  1223. int main() {
  1224. #ifndef WIN32
  1225. # ifndef _WIN32
  1226. # error WIN32 or _WIN32 not defined
  1227. # endif
  1228. #endif
  1229. ; return 0; }
  1230. EOF
  1231. if { (eval echo configure:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1232. rm -rf conftest*
  1233. echo "$ac_t""found via -mwin32" 1>&6
  1234. ac_compile="$ac_compile_save"
  1235. CC="$save_CC"
  1236. WIN32FLAGS="-mwin32"
  1237. else
  1238. echo "configure: failed program was:" >&5
  1239. cat conftest.$ac_ext >&5
  1240. rm -rf conftest*
  1241. ac_compile="$ac_compile_save"
  1242. CC="$save_CC"
  1243. echo "$ac_t""not found" 1>&6
  1244. fi
  1245. rm -f conftest*
  1246. fi
  1247. rm -f conftest*
  1248. CC="$CC $WIN32FLAGS"
  1249. echo $ac_n "checking for /usr/lib/binmode.o""... $ac_c" 1>&6
  1250. echo "configure:1406: checking for /usr/lib/binmode.o" >&5
  1251. if test -r /usr/lib/binmode.o
  1252. then
  1253. echo "$ac_t""yes" 1>&6
  1254. LIBS="$LIBS /usr/lib/binmode.o"
  1255. else
  1256. echo "$ac_t""no" 1>&6
  1257. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1258. fi
  1259. ;;
  1260. *)
  1261. NEED_DL=0
  1262. echo "configure: warning: Make sure the directory Eggdrop is installed into is mounted in binary mode." 1>&2
  1263. ;;
  1264. esac
  1265. EGG_CYGWIN=yes
  1266. cat >> confdefs.h <<\EOF
  1267. #define CYGWIN_HACKS 1
  1268. EOF
  1269. ;;
  1270. HP-UX)
  1271. HPUX=yes
  1272. NEED_DL=0
  1273. cat >> confdefs.h <<\EOF
  1274. #define HPUX_HACKS 1
  1275. EOF
  1276. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  1277. then
  1278. cat >> confdefs.h <<\EOF
  1279. #define HPUX10_HACKS 1
  1280. EOF
  1281. fi
  1282. ;;
  1283. dell)
  1284. echo "$ac_t""Dell SVR4" 1>&6
  1285. NEED_DL=0
  1286. ;;
  1287. IRIX)
  1288. IRIX=yes
  1289. NEED_DL=0
  1290. ;;
  1291. Ultrix)
  1292. NEED_DL=0
  1293. SHELL=/bin/sh5
  1294. ;;
  1295. SINIX*)
  1296. NEED_DL=0
  1297. ;;
  1298. BeOS)
  1299. NEED_DL=0
  1300. ;;
  1301. Linux)
  1302. LINUX=yes
  1303. CFLAGS="$CFLAGS -Wall"
  1304. ;;
  1305. Lynx)
  1306. NEED_DL=0
  1307. ;;
  1308. QNX)
  1309. NEED_DL=0
  1310. ;;
  1311. OSF1)
  1312. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  1313. V*)
  1314. # FIXME: we should check this in a separate test
  1315. # Digital OSF uses an ancient version of gawk
  1316. if test "$AWK" = "gawk"
  1317. then
  1318. AWK=awk
  1319. fi
  1320. ;;
  1321. 1.0|1.1|1.2)
  1322. cat >> confdefs.h <<\EOF
  1323. #define OSF1_HACKS 1
  1324. EOF
  1325. ;;
  1326. 1.*)
  1327. cat >> confdefs.h <<\EOF
  1328. #define OSF1_HACKS 1
  1329. EOF
  1330. ;;
  1331. *)
  1332. NEED_DL=0
  1333. ;;
  1334. esac
  1335. cat >> confdefs.h <<\EOF
  1336. #define STOP_UAC 1
  1337. EOF
  1338. cat >> confdefs.h <<\EOF
  1339. #define BROKEN_SNPRINTF 1
  1340. EOF
  1341. ;;
  1342. SunOS)
  1343. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  1344. then
  1345. # SunOS 4
  1346. SUNOS=yes
  1347. cat >> confdefs.h <<\EOF
  1348. #define DLOPEN_1 1
  1349. EOF
  1350. fi
  1351. ;;
  1352. *BSD)
  1353. # FreeBSD/OpenBSD/NetBSD
  1354. ;;
  1355. *)
  1356. echo $ac_n "checking if system is Mach based""... $ac_c" 1>&6
  1357. echo "configure:1514: checking if system is Mach based" >&5
  1358. if test -r /mach
  1359. then
  1360. echo "$ac_t""yes" 1>&6
  1361. NEED_DL=0
  1362. cat >> confdefs.h <<\EOF
  1363. #define BORGCUBES 1
  1364. EOF
  1365. else
  1366. echo "$ac_t""no" 1>&6
  1367. echo $ac_n "checking if system is QNX""... $ac_c" 1>&6
  1368. echo "configure:1525: checking if system is QNX" >&5
  1369. if test -r /cmds
  1370. then
  1371. echo "$ac_t""yes" 1>&6
  1372. NEED_DL=0
  1373. else
  1374. echo "$ac_t""no" 1>&6
  1375. echo "$ac_t""Something unknown!" 1>&6
  1376. echo "$ac_t""If you get dynamic modules to work, be sure to let the devel team know HOW :)" 1>&6
  1377. NEED_DL=0
  1378. fi
  1379. fi
  1380. ;;
  1381. esac
  1382. # Checks for system libraries
  1383. # FIXME: this needs to be fixed so that it works on IRIX
  1384. if test "$IRIX" = "yes"
  1385. then
  1386. echo "configure: warning: Skipping library tests because they CONFUSE Irix." 1>&2
  1387. else
  1388. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  1389. echo "configure:1548: checking for socket in -lsocket" >&5
  1390. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  1391. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1392. echo $ac_n "(cached) $ac_c" 1>&6
  1393. else
  1394. ac_save_LIBS="$LIBS"
  1395. LIBS="-lsocket $LIBS"
  1396. cat > conftest.$ac_ext <<EOF
  1397. #line 1556 "configure"
  1398. #include "confdefs.h"
  1399. /* Override any gcc2 internal prototype to avoid an error. */
  1400. /* We use char because int might match the return type of a gcc2
  1401. builtin and then its argument prototype would still apply. */
  1402. char socket();
  1403. int main() {
  1404. socket()
  1405. ; return 0; }
  1406. EOF
  1407. if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1408. rm -rf conftest*
  1409. eval "ac_cv_lib_$ac_lib_var=yes"
  1410. else
  1411. echo "configure: failed program was:" >&5
  1412. cat conftest.$ac_ext >&5
  1413. rm -rf conftest*
  1414. eval "ac_cv_lib_$ac_lib_var=no"
  1415. fi
  1416. rm -f conftest*
  1417. LIBS="$ac_save_LIBS"
  1418. fi
  1419. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1420. echo "$ac_t""yes" 1>&6
  1421. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1422. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1423. cat >> confdefs.h <<EOF
  1424. #define $ac_tr_lib 1
  1425. EOF
  1426. LIBS="-lsocket $LIBS"
  1427. else
  1428. echo "$ac_t""no" 1>&6
  1429. fi
  1430. echo $ac_n "checking for connect in -lnsl""... $ac_c" 1>&6
  1431. echo "configure:1595: checking for connect in -lnsl" >&5
  1432. ac_lib_var=`echo nsl'_'connect | sed 'y%./+-%__p_%'`
  1433. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1434. echo $ac_n "(cached) $ac_c" 1>&6
  1435. else
  1436. ac_save_LIBS="$LIBS"
  1437. LIBS="-lnsl $LIBS"
  1438. cat > conftest.$ac_ext <<EOF
  1439. #line 1603 "configure"
  1440. #include "confdefs.h"
  1441. /* Override any gcc2 internal prototype to avoid an error. */
  1442. /* We use char because int might match the return type of a gcc2
  1443. builtin and then its argument prototype would still apply. */
  1444. char connect();
  1445. int main() {
  1446. connect()
  1447. ; return 0; }
  1448. EOF
  1449. if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1450. rm -rf conftest*
  1451. eval "ac_cv_lib_$ac_lib_var=yes"
  1452. else
  1453. echo "configure: failed program was:" >&5
  1454. cat conftest.$ac_ext >&5
  1455. rm -rf conftest*
  1456. eval "ac_cv_lib_$ac_lib_var=no"
  1457. fi
  1458. rm -f conftest*
  1459. LIBS="$ac_save_LIBS"
  1460. fi
  1461. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1462. echo "$ac_t""yes" 1>&6
  1463. ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1464. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1465. cat >> confdefs.h <<EOF
  1466. #define $ac_tr_lib 1
  1467. EOF
  1468. LIBS="-lnsl $LIBS"
  1469. else
  1470. echo "$ac_t""no" 1>&6
  1471. fi
  1472. echo $ac_n "checking for gethostbyname in -ldns""... $ac_c" 1>&6
  1473. echo "configure:1642: checking for gethostbyname in -ldns" >&5
  1474. ac_lib_var=`echo dns'_'gethostbyname | sed 'y%./+-%__p_%'`
  1475. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1476. echo $ac_n "(cached) $ac_c" 1>&6
  1477. else
  1478. ac_save_LIBS="$LIBS"
  1479. LIBS="-ldns $LIBS"
  1480. cat > conftest.$ac_ext <<EOF
  1481. #line 1650 "configure"
  1482. #include "confdefs.h"
  1483. /* Override any gcc2 internal prototype to avoid an error. */
  1484. /* We use char because int might match the return type of a gcc2
  1485. builtin and then its argument prototype would still apply. */
  1486. char gethostbyname();
  1487. int main() {
  1488. gethostbyname()
  1489. ; return 0; }
  1490. EOF
  1491. if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1492. rm -rf conftest*
  1493. eval "ac_cv_lib_$ac_lib_var=yes"
  1494. else
  1495. echo "configure: failed program was:" >&5
  1496. cat conftest.$ac_ext >&5
  1497. rm -rf conftest*
  1498. eval "ac_cv_lib_$ac_lib_var=no"
  1499. fi
  1500. rm -f conftest*
  1501. LIBS="$ac_save_LIBS"
  1502. fi
  1503. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1504. echo "$ac_t""yes" 1>&6
  1505. ac_tr_lib=HAVE_LIB`echo dns | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1506. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1507. cat >> confdefs.h <<EOF
  1508. #define $ac_tr_lib 1
  1509. EOF
  1510. LIBS="-ldns $LIBS"
  1511. else
  1512. echo "$ac_t""no" 1>&6
  1513. fi
  1514. echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6
  1515. echo "configure:1689: checking for gzopen in -lz" >&5
  1516. ac_lib_var=`echo z'_'gzopen | sed 'y%./+-%__p_%'`
  1517. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1518. echo $ac_n "(cached) $ac_c" 1>&6
  1519. else
  1520. ac_save_LIBS="$LIBS"
  1521. LIBS="-lz $LIBS"
  1522. cat > conftest.$ac_ext <<EOF
  1523. #line 1697 "configure"
  1524. #include "confdefs.h"
  1525. /* Override any gcc2 internal prototype to avoid an error. */
  1526. /* We use char because int might match the return type of a gcc2
  1527. builtin and then its argument prototype would still apply. */
  1528. char gzopen();
  1529. int main() {
  1530. gzopen()
  1531. ; return 0; }
  1532. EOF
  1533. if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1534. rm -rf conftest*
  1535. eval "ac_cv_lib_$ac_lib_var=yes"
  1536. else
  1537. echo "configure: failed program was:" >&5
  1538. cat conftest.$ac_ext >&5
  1539. rm -rf conftest*
  1540. eval "ac_cv_lib_$ac_lib_var=no"
  1541. fi
  1542. rm -f conftest*
  1543. LIBS="$ac_save_LIBS"
  1544. fi
  1545. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1546. echo "$ac_t""yes" 1>&6
  1547. ZLIB="-lz"
  1548. else
  1549. echo "$ac_t""no" 1>&6
  1550. fi
  1551. echo $ac_n "checking for SSL_accept in -lssl""... $ac_c" 1>&6
  1552. echo "configure:1729: checking for SSL_accept in -lssl" >&5
  1553. ac_lib_var=`echo ssl'_'SSL_accept | sed 'y%./+-%__p_%'`
  1554. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1555. echo $ac_n "(cached) $ac_c" 1>&6
  1556. else
  1557. ac_save_LIBS="$LIBS"
  1558. LIBS="-lssl -lcrypto $LIBS"
  1559. cat > conftest.$ac_ext <<EOF
  1560. #line 1737 "configure"
  1561. #include "confdefs.h"
  1562. /* Override any gcc2 internal prototype to avoid an error. */
  1563. /* We use char because int might match the return type of a gcc2
  1564. builtin and then its argument prototype would still apply. */
  1565. char SSL_accept();
  1566. int main() {
  1567. SSL_accept()
  1568. ; return 0; }
  1569. EOF
  1570. if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1571. rm -rf conftest*
  1572. eval "ac_cv_lib_$ac_lib_var=yes"
  1573. else
  1574. echo "configure: failed program was:" >&5
  1575. cat conftest.$ac_ext >&5
  1576. rm -rf conftest*
  1577. eval "ac_cv_lib_$ac_lib_var=no"
  1578. fi
  1579. rm -f conftest*
  1580. LIBS="$ac_save_LIBS"
  1581. fi
  1582. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1583. echo "$ac_t""yes" 1>&6
  1584. SSL="-lssl -lcrypto"
  1585. else
  1586. echo "$ac_t""no" 1>&6
  1587. SSL=""
  1588. fi
  1589. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1590. echo "configure:1770: checking for dlopen in -ldl" >&5
  1591. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1592. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1593. echo $ac_n "(cached) $ac_c" 1>&6
  1594. else
  1595. ac_save_LIBS="$LIBS"
  1596. LIBS="-ldl $LIBS"
  1597. cat > conftest.$ac_ext <<EOF
  1598. #line 1778 "configure"
  1599. #include "confdefs.h"
  1600. /* Override any gcc2 internal prototype to avoid an error. */
  1601. /* We use char because int might match the return type of a gcc2
  1602. builtin and then its argument prototype would still apply. */
  1603. char dlopen();
  1604. int main() {
  1605. dlopen()
  1606. ; return 0; }
  1607. EOF
  1608. if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1609. rm -rf conftest*
  1610. eval "ac_cv_lib_$ac_lib_var=yes"
  1611. else
  1612. echo "configure: failed program was:" >&5
  1613. cat conftest.$ac_ext >&5
  1614. rm -rf conftest*
  1615. eval "ac_cv_lib_$ac_lib_var=no"
  1616. fi
  1617. rm -f conftest*
  1618. LIBS="$ac_save_LIBS"
  1619. fi
  1620. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1621. echo "$ac_t""yes" 1>&6
  1622. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1623. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1624. cat >> confdefs.h <<EOF
  1625. #define $ac_tr_lib 1
  1626. EOF
  1627. LIBS="-ldl $LIBS"
  1628. else
  1629. echo "$ac_t""no" 1>&6
  1630. fi
  1631. echo $ac_n "checking for tan in -lm""... $ac_c" 1>&6
  1632. echo "configure:1817: checking for tan in -lm" >&5
  1633. ac_lib_var=`echo m'_'tan | sed 'y%./+-%__p_%'`
  1634. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1635. echo $ac_n "(cached) $ac_c" 1>&6
  1636. else
  1637. ac_save_LIBS="$LIBS"
  1638. LIBS="-lm $LIBS"
  1639. cat > conftest.$ac_ext <<EOF
  1640. #line 1825 "configure"
  1641. #include "confdefs.h"
  1642. /* Override any gcc2 internal prototype to avoid an error. */
  1643. /* We use char because int might match the return type of a gcc2
  1644. builtin and then its argument prototype would still apply. */
  1645. char tan();
  1646. int main() {
  1647. tan()
  1648. ; return 0; }
  1649. EOF
  1650. if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1651. rm -rf conftest*
  1652. eval "ac_cv_lib_$ac_lib_var=yes"
  1653. else
  1654. echo "configure: failed program was:" >&5
  1655. cat conftest.$ac_ext >&5
  1656. rm -rf conftest*
  1657. eval "ac_cv_lib_$ac_lib_var=no"
  1658. fi
  1659. rm -f conftest*
  1660. LIBS="$ac_save_LIBS"
  1661. fi
  1662. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1663. echo "$ac_t""yes" 1>&6
  1664. EGG_MATH_LIB="-lm"
  1665. else
  1666. echo "$ac_t""no" 1>&6
  1667. fi
  1668. # This is needed for Tcl libraries compiled with thread support
  1669. echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1670. echo "configure:1858: checking for pthread_mutex_init in -lpthread" >&5
  1671. ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1672. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1673. echo $ac_n "(cached) $ac_c" 1>&6
  1674. else
  1675. ac_save_LIBS="$LIBS"
  1676. LIBS="-lpthread $LIBS"
  1677. cat > conftest.$ac_ext <<EOF
  1678. #line 1866 "configure"
  1679. #include "confdefs.h"
  1680. /* Override any gcc2 internal prototype to avoid an error. */
  1681. /* We use char because int might match the return type of a gcc2
  1682. builtin and then its argument prototype would still apply. */
  1683. char pthread_mutex_init();
  1684. int main() {
  1685. pthread_mutex_init()
  1686. ; return 0; }
  1687. EOF
  1688. if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1689. rm -rf conftest*
  1690. eval "ac_cv_lib_$ac_lib_var=yes"
  1691. else
  1692. echo "configure: failed program was:" >&5
  1693. cat conftest.$ac_ext >&5
  1694. rm -rf conftest*
  1695. eval "ac_cv_lib_$ac_lib_var=no"
  1696. fi
  1697. rm -f conftest*
  1698. LIBS="$ac_save_LIBS"
  1699. fi
  1700. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1701. echo "$ac_t""yes" 1>&6
  1702. ac_cv_lib_pthread_pthread_mutex_init=yes
  1703. ac_cv_lib_pthread="-lpthread"
  1704. else
  1705. echo "$ac_t""no" 1>&6
  1706. echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6
  1707. echo "configure:1897: checking for __pthread_mutex_init in -lpthread" >&5
  1708. ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'`
  1709. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1710. echo $ac_n "(cached) $ac_c" 1>&6
  1711. else
  1712. ac_save_LIBS="$LIBS"
  1713. LIBS="-lpthread $LIBS"
  1714. cat > conftest.$ac_ext <<EOF
  1715. #line 1905 "configure"
  1716. #include "confdefs.h"
  1717. /* Override any gcc2 internal prototype to avoid an error. */
  1718. /* We use char because int might match the return type of a gcc2
  1719. builtin and then its argument prototype would still apply. */
  1720. char __pthread_mutex_init();
  1721. int main() {
  1722. __pthread_mutex_init()
  1723. ; return 0; }
  1724. EOF
  1725. if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1726. rm -rf conftest*
  1727. eval "ac_cv_lib_$ac_lib_var=yes"
  1728. else
  1729. echo "configure: failed program was:" >&5
  1730. cat conftest.$ac_ext >&5
  1731. rm -rf conftest*
  1732. eval "ac_cv_lib_$ac_lib_var=no"
  1733. fi
  1734. rm -f conftest*
  1735. LIBS="$ac_save_LIBS"
  1736. fi
  1737. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1738. echo "$ac_t""yes" 1>&6
  1739. ac_cv_lib_pthread_pthread_mutex_init=yes
  1740. ac_cv_lib_pthread="-lpthread"
  1741. else
  1742. echo "$ac_t""no" 1>&6
  1743. echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6
  1744. echo "configure:1936: checking for pthread_mutex_init in -lpthreads" >&5
  1745. ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
  1746. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1747. echo $ac_n "(cached) $ac_c" 1>&6
  1748. else
  1749. ac_save_LIBS="$LIBS"
  1750. LIBS="-lpthreads $LIBS"
  1751. cat > conftest.$ac_ext <<EOF
  1752. #line 1944 "configure"
  1753. #include "confdefs.h"
  1754. /* Override any gcc2 internal prototype to avoid an error. */
  1755. /* We use char because int might match the return type of a gcc2
  1756. builtin and then its argument prototype would still apply. */
  1757. char pthread_mutex_init();
  1758. int main() {
  1759. pthread_mutex_init()
  1760. ; return 0; }
  1761. EOF
  1762. if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1763. rm -rf conftest*
  1764. eval "ac_cv_lib_$ac_lib_var=yes"
  1765. else
  1766. echo "configure: failed program was:" >&5
  1767. cat conftest.$ac_ext >&5
  1768. rm -rf conftest*
  1769. eval "ac_cv_lib_$ac_lib_var=no"
  1770. fi
  1771. rm -f conftest*
  1772. LIBS="$ac_save_LIBS"
  1773. fi
  1774. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1775. echo "$ac_t""yes" 1>&6
  1776. ac_cv_lib_pthread_pthread_mutex_init=yes
  1777. ac_cv_lib_pthread="-lpthreads"
  1778. else
  1779. echo "$ac_t""no" 1>&6
  1780. echo $ac_n "checking for pthread_mutex_init""... $ac_c" 1>&6
  1781. echo "configure:1975: checking for pthread_mutex_init" >&5
  1782. if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_init'+set}'`\" = set"; then
  1783. echo $ac_n "(cached) $ac_c" 1>&6
  1784. else
  1785. cat > conftest.$ac_ext <<EOF
  1786. #line 1980 "configure"
  1787. #include "confdefs.h"
  1788. /* System header to define __stub macros and hopefully few prototypes,
  1789. which can conflict with char pthread_mutex_init(); below. */
  1790. #include <assert.h>
  1791. /* Override any gcc2 internal prototype to avoid an error. */
  1792. /* We use char because int might match the return type of a gcc2
  1793. builtin and then its argument prototype would still apply. */
  1794. char pthread_mutex_init();
  1795. int main() {
  1796. /* The GNU C library defines this for functions which it implements
  1797. to always fail with ENOSYS. Some functions are actually named
  1798. something starting with __ and the normal name is an alias. */
  1799. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  1800. choke me
  1801. #else
  1802. pthread_mutex_init();
  1803. #endif
  1804. ; return 0; }
  1805. EOF
  1806. if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1807. rm -rf conftest*
  1808. eval "ac_cv_func_pthread_mutex_init=yes"
  1809. else
  1810. echo "configure: failed program was:" >&5
  1811. cat conftest.$ac_ext >&5
  1812. rm -rf conftest*
  1813. eval "ac_cv_func_pthread_mutex_init=no"
  1814. fi
  1815. rm -f conftest*
  1816. fi
  1817. if eval "test \"`echo '$ac_cv_func_'pthread_mutex_init`\" = yes"; then
  1818. echo "$ac_t""yes" 1>&6
  1819. ac_cv_lib_pthread_pthread_mutex_init=yes
  1820. ac_cv_lib_pthread=""
  1821. else
  1822. echo "$ac_t""no" 1>&6
  1823. ac_cv_lib_pthread_pthread_mutex_init=no
  1824. fi
  1825. fi
  1826. fi
  1827. fi
  1828. if test "$SUNOS" = "yes"
  1829. then
  1830. # For suns without yp or something like that
  1831. echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
  1832. echo "configure:2034: checking for main in -ldl" >&5
  1833. ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
  1834. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1835. echo $ac_n "(cached) $ac_c" 1>&6
  1836. else
  1837. ac_save_LIBS="$LIBS"
  1838. LIBS="-ldl $LIBS"
  1839. cat > conftest.$ac_ext <<EOF
  1840. #line 2042 "configure"
  1841. #include "confdefs.h"
  1842. int main() {
  1843. main()
  1844. ; return 0; }
  1845. EOF
  1846. if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1847. rm -rf conftest*
  1848. eval "ac_cv_lib_$ac_lib_var=yes"
  1849. else
  1850. echo "configure: failed program was:" >&5
  1851. cat conftest.$ac_ext >&5
  1852. rm -rf conftest*
  1853. eval "ac_cv_lib_$ac_lib_var=no"
  1854. fi
  1855. rm -f conftest*
  1856. LIBS="$ac_save_LIBS"
  1857. fi
  1858. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1859. echo "$ac_t""yes" 1>&6
  1860. ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1861. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1862. cat >> confdefs.h <<EOF
  1863. #define $ac_tr_lib 1
  1864. EOF
  1865. LIBS="-ldl $LIBS"
  1866. else
  1867. echo "$ac_t""no" 1>&6
  1868. fi
  1869. else
  1870. if test "$HPUX" = "yes"
  1871. then
  1872. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1873. echo "configure:2080: checking for shl_load in -ldld" >&5
  1874. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1875. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1876. echo $ac_n "(cached) $ac_c" 1>&6
  1877. else
  1878. ac_save_LIBS="$LIBS"
  1879. LIBS="-ldld $LIBS"
  1880. cat > conftest.$ac_ext <<EOF
  1881. #line 2088 "configure"
  1882. #include "confdefs.h"
  1883. /* Override any gcc2 internal prototype to avoid an error. */
  1884. /* We use char because int might match the return type of a gcc2
  1885. builtin and then its argument prototype would still apply. */
  1886. char shl_load();
  1887. int main() {
  1888. shl_load()
  1889. ; return 0; }
  1890. EOF
  1891. if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1892. rm -rf conftest*
  1893. eval "ac_cv_lib_$ac_lib_var=yes"
  1894. else
  1895. echo "configure: failed program was:" >&5
  1896. cat conftest.$ac_ext >&5
  1897. rm -rf conftest*
  1898. eval "ac_cv_lib_$ac_lib_var=no"
  1899. fi
  1900. rm -f conftest*
  1901. LIBS="$ac_save_LIBS"
  1902. fi
  1903. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1904. echo "$ac_t""yes" 1>&6
  1905. ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1906. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1907. cat >> confdefs.h <<EOF
  1908. #define $ac_tr_lib 1
  1909. EOF
  1910. LIBS="-ldld $LIBS"
  1911. else
  1912. echo "$ac_t""no" 1>&6
  1913. fi
  1914. fi
  1915. fi
  1916. fi
  1917. for ac_hdr in unistd.h
  1918. do
  1919. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1920. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1921. echo "configure:2135: checking for $ac_hdr" >&5
  1922. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1923. echo $ac_n "(cached) $ac_c" 1>&6
  1924. else
  1925. cat > conftest.$ac_ext <<EOF
  1926. #line 2140 "configure"
  1927. #include "confdefs.h"
  1928. #include <$ac_hdr>
  1929. EOF
  1930. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1931. { (eval echo configure:2145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1932. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1933. if test -z "$ac_err"; then
  1934. rm -rf conftest*
  1935. eval "ac_cv_header_$ac_safe=yes"
  1936. else
  1937. echo "$ac_err" >&5
  1938. echo "configure: failed program was:" >&5
  1939. cat conftest.$ac_ext >&5
  1940. rm -rf conftest*
  1941. eval "ac_cv_header_$ac_safe=no"
  1942. fi
  1943. rm -f conftest*
  1944. fi
  1945. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1946. echo "$ac_t""yes" 1>&6
  1947. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1948. cat >> confdefs.h <<EOF
  1949. #define $ac_tr_hdr 1
  1950. EOF
  1951. else
  1952. echo "$ac_t""no" 1>&6
  1953. fi
  1954. done
  1955. for ac_func in getpagesize
  1956. do
  1957. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1958. echo "configure:2174: checking for $ac_func" >&5
  1959. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1960. echo $ac_n "(cached) $ac_c" 1>&6
  1961. else
  1962. cat > conftest.$ac_ext <<EOF
  1963. #line 2179 "configure"
  1964. #include "confdefs.h"
  1965. /* System header to define __stub macros and hopefully few prototypes,
  1966. which can conflict with char $ac_func(); below. */
  1967. #include <assert.h>
  1968. /* Override any gcc2 internal prototype to avoid an error. */
  1969. /* We use char because int might match the return type of a gcc2
  1970. builtin and then its argument prototype would still apply. */
  1971. char $ac_func();
  1972. int main() {
  1973. /* The GNU C library defines this for functions which it implements
  1974. to always fail with ENOSYS. Some functions are actually named
  1975. something starting with __ and the normal name is an alias. */
  1976. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1977. choke me
  1978. #else
  1979. $ac_func();
  1980. #endif
  1981. ; return 0; }
  1982. EOF
  1983. if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1984. rm -rf conftest*
  1985. eval "ac_cv_func_$ac_func=yes"
  1986. else
  1987. echo "configure: failed program was:" >&5
  1988. cat conftest.$ac_ext >&5
  1989. rm -rf conftest*
  1990. eval "ac_cv_func_$ac_func=no"
  1991. fi
  1992. rm -f conftest*
  1993. fi
  1994. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1995. echo "$ac_t""yes" 1>&6
  1996. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1997. cat >> confdefs.h <<EOF
  1998. #define $ac_tr_func 1
  1999. EOF
  2000. else
  2001. echo "$ac_t""no" 1>&6
  2002. fi
  2003. done
  2004. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2005. echo "configure:2227: checking for working mmap" >&5
  2006. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  2007. echo $ac_n "(cached) $ac_c" 1>&6
  2008. else
  2009. if test "$cross_compiling" = yes; then
  2010. ac_cv_func_mmap_fixed_mapped=no
  2011. else
  2012. cat > conftest.$ac_ext <<EOF
  2013. #line 2235 "configure"
  2014. #include "confdefs.h"
  2015. /* Thanks to Mike Haertel and Jim Avera for this test.
  2016. Here is a matrix of mmap possibilities:
  2017. mmap private not fixed
  2018. mmap private fixed at somewhere currently unmapped
  2019. mmap private fixed at somewhere already mapped
  2020. mmap shared not fixed
  2021. mmap shared fixed at somewhere currently unmapped
  2022. mmap shared fixed at somewhere already mapped
  2023. For private mappings, we should verify that changes cannot be read()
  2024. back from the file, nor mmap's back from the file at a different
  2025. address. (There have been systems where private was not correctly
  2026. implemented like the infamous i386 svr4.0, and systems where the
  2027. VM page cache was not coherent with the filesystem buffer cache
  2028. like early versions of FreeBSD and possibly contemporary NetBSD.)
  2029. For shared mappings, we should conversely verify that changes get
  2030. propogated back to all the places they're supposed to be.
  2031. Grep wants private fixed already mapped.
  2032. The main things grep needs to know about mmap are:
  2033. * does it exist and is it safe to write into the mmap'd area
  2034. * how to use it (BSD variants) */
  2035. #include <sys/types.h>
  2036. #include <fcntl.h>
  2037. #include <sys/mman.h>
  2038. /* This mess was copied from the GNU getpagesize.h. */
  2039. #ifndef HAVE_GETPAGESIZE
  2040. # ifdef HAVE_UNISTD_H
  2041. # include <unistd.h>
  2042. # endif
  2043. /* Assume that all systems that can run configure have sys/param.h. */
  2044. # ifndef HAVE_SYS_PARAM_H
  2045. # define HAVE_SYS_PARAM_H 1
  2046. # endif
  2047. # ifdef _SC_PAGESIZE
  2048. # define getpagesize() sysconf(_SC_PAGESIZE)
  2049. # else /* no _SC_PAGESIZE */
  2050. # ifdef HAVE_SYS_PARAM_H
  2051. # include <sys/param.h>
  2052. # ifdef EXEC_PAGESIZE
  2053. # define getpagesize() EXEC_PAGESIZE
  2054. # else /* no EXEC_PAGESIZE */
  2055. # ifdef NBPG
  2056. # define getpagesize() NBPG * CLSIZE
  2057. # ifndef CLSIZE
  2058. # define CLSIZE 1
  2059. # endif /* no CLSIZE */
  2060. # else /* no NBPG */
  2061. # ifdef NBPC
  2062. # define getpagesize() NBPC
  2063. # else /* no NBPC */
  2064. # ifdef PAGESIZE
  2065. # define getpagesize() PAGESIZE
  2066. # endif /* PAGESIZE */
  2067. # endif /* no NBPC */
  2068. # endif /* no NBPG */
  2069. # endif /* no EXEC_PAGESIZE */
  2070. # else /* no HAVE_SYS_PARAM_H */
  2071. # define getpagesize() 8192 /* punt totally */
  2072. # endif /* no HAVE_SYS_PARAM_H */
  2073. # endif /* no _SC_PAGESIZE */
  2074. #endif /* no HAVE_GETPAGESIZE */
  2075. #ifdef __cplusplus
  2076. extern "C" { void *malloc(unsigned); }
  2077. #else
  2078. char *malloc();
  2079. #endif
  2080. int
  2081. main()
  2082. {
  2083. char *data, *data2, *data3;
  2084. int i, pagesize;
  2085. int fd;
  2086. pagesize = getpagesize();
  2087. /*
  2088. * First, make a file with some known garbage in it.
  2089. */
  2090. data = malloc(pagesize);
  2091. if (!data)
  2092. exit(1);
  2093. for (i = 0; i < pagesize; ++i)
  2094. *(data + i) = rand();
  2095. umask(0);
  2096. fd = creat("conftestmmap", 0600);
  2097. if (fd < 0)
  2098. exit(1);
  2099. if (write(fd, data, pagesize) != pagesize)
  2100. exit(1);
  2101. close(fd);
  2102. /*
  2103. * Next, try to mmap the file at a fixed address which
  2104. * already has something else allocated at it. If we can,
  2105. * also make sure that we see the same garbage.
  2106. */
  2107. fd = open("conftestmmap", O_RDWR);
  2108. if (fd < 0)
  2109. exit(1);
  2110. data2 = malloc(2 * pagesize);
  2111. if (!data2)
  2112. exit(1);
  2113. data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  2114. if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  2115. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  2116. exit(1);
  2117. for (i = 0; i < pagesize; ++i)
  2118. if (*(data + i) != *(data2 + i))
  2119. exit(1);
  2120. /*
  2121. * Finally, make sure that changes to the mapped area
  2122. * do not percolate back to the file as seen by read().
  2123. * (This is a bug on some variants of i386 svr4.0.)
  2124. */
  2125. for (i = 0; i < pagesize; ++i)
  2126. *(data2 + i) = *(data2 + i) + 1;
  2127. data3 = malloc(pagesize);
  2128. if (!data3)
  2129. exit(1);
  2130. if (read(fd, data3, pagesize) != pagesize)
  2131. exit(1);
  2132. for (i = 0; i < pagesize; ++i)
  2133. if (*(data + i) != *(data3 + i))
  2134. exit(1);
  2135. close(fd);
  2136. unlink("conftestmmap");
  2137. exit(0);
  2138. }
  2139. EOF
  2140. if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2141. then
  2142. ac_cv_func_mmap_fixed_mapped=yes
  2143. else
  2144. echo "configure: failed program was:" >&5
  2145. cat conftest.$ac_ext >&5
  2146. rm -fr conftest*
  2147. ac_cv_func_mmap_fixed_mapped=no
  2148. fi
  2149. rm -fr conftest*
  2150. fi
  2151. fi
  2152. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  2153. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  2154. cat >> confdefs.h <<\EOF
  2155. #define HAVE_MMAP 1
  2156. EOF
  2157. fi
  2158. # Checks for header files
  2159. ac_header_dirent=no
  2160. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  2161. do
  2162. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2163. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  2164. echo "configure:2404: checking for $ac_hdr that defines DIR" >&5
  2165. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  2166. echo $ac_n "(cached) $ac_c" 1>&6
  2167. else
  2168. cat > conftest.$ac_ext <<EOF
  2169. #line 2409 "configure"
  2170. #include "confdefs.h"
  2171. #include <sys/types.h>
  2172. #include <$ac_hdr>
  2173. int main() {
  2174. DIR *dirp = 0;
  2175. ; return 0; }
  2176. EOF
  2177. if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2178. rm -rf conftest*
  2179. eval "ac_cv_header_dirent_$ac_safe=yes"
  2180. else
  2181. echo "configure: failed program was:" >&5
  2182. cat conftest.$ac_ext >&5
  2183. rm -rf conftest*
  2184. eval "ac_cv_header_dirent_$ac_safe=no"
  2185. fi
  2186. rm -f conftest*
  2187. fi
  2188. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2189. echo "$ac_t""yes" 1>&6
  2190. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2191. cat >> confdefs.h <<EOF
  2192. #define $ac_tr_hdr 1
  2193. EOF
  2194. ac_header_dirent=$ac_hdr; break
  2195. else
  2196. echo "$ac_t""no" 1>&6
  2197. fi
  2198. done
  2199. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2200. if test $ac_header_dirent = dirent.h; then
  2201. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  2202. echo "configure:2442: checking for opendir in -ldir" >&5
  2203. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  2204. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2205. echo $ac_n "(cached) $ac_c" 1>&6
  2206. else
  2207. ac_save_LIBS="$LIBS"
  2208. LIBS="-ldir $LIBS"
  2209. cat > conftest.$ac_ext <<EOF
  2210. #line 2450 "configure"
  2211. #include "confdefs.h"
  2212. /* Override any gcc2 internal prototype to avoid an error. */
  2213. /* We use char because int might match the return type of a gcc2
  2214. builtin and then its argument prototype would still apply. */
  2215. char opendir();
  2216. int main() {
  2217. opendir()
  2218. ; return 0; }
  2219. EOF
  2220. if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2221. rm -rf conftest*
  2222. eval "ac_cv_lib_$ac_lib_var=yes"
  2223. else
  2224. echo "configure: failed program was:" >&5
  2225. cat conftest.$ac_ext >&5
  2226. rm -rf conftest*
  2227. eval "ac_cv_lib_$ac_lib_var=no"
  2228. fi
  2229. rm -f conftest*
  2230. LIBS="$ac_save_LIBS"
  2231. fi
  2232. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2233. echo "$ac_t""yes" 1>&6
  2234. LIBS="$LIBS -ldir"
  2235. else
  2236. echo "$ac_t""no" 1>&6
  2237. fi
  2238. else
  2239. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  2240. echo "configure:2483: checking for opendir in -lx" >&5
  2241. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  2242. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2243. echo $ac_n "(cached) $ac_c" 1>&6
  2244. else
  2245. ac_save_LIBS="$LIBS"
  2246. LIBS="-lx $LIBS"
  2247. cat > conftest.$ac_ext <<EOF
  2248. #line 2491 "configure"
  2249. #include "confdefs.h"
  2250. /* Override any gcc2 internal prototype to avoid an error. */
  2251. /* We use char because int might match the return type of a gcc2
  2252. builtin and then its argument prototype would still apply. */
  2253. char opendir();
  2254. int main() {
  2255. opendir()
  2256. ; return 0; }
  2257. EOF
  2258. if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2259. rm -rf conftest*
  2260. eval "ac_cv_lib_$ac_lib_var=yes"
  2261. else
  2262. echo "configure: failed program was:" >&5
  2263. cat conftest.$ac_ext >&5
  2264. rm -rf conftest*
  2265. eval "ac_cv_lib_$ac_lib_var=no"
  2266. fi
  2267. rm -f conftest*
  2268. LIBS="$ac_save_LIBS"
  2269. fi
  2270. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2271. echo "$ac_t""yes" 1>&6
  2272. LIBS="$LIBS -lx"
  2273. else
  2274. echo "$ac_t""no" 1>&6
  2275. fi
  2276. fi
  2277. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2278. echo "configure:2525: checking for sys/wait.h that is POSIX.1 compatible" >&5
  2279. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2280. echo $ac_n "(cached) $ac_c" 1>&6
  2281. else
  2282. cat > conftest.$ac_ext <<EOF
  2283. #line 2530 "configure"
  2284. #include "confdefs.h"
  2285. #include <sys/types.h>
  2286. #include <sys/wait.h>
  2287. #ifndef WEXITSTATUS
  2288. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2289. #endif
  2290. #ifndef WIFEXITED
  2291. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2292. #endif
  2293. int main() {
  2294. int s;
  2295. wait (&s);
  2296. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2297. ; return 0; }
  2298. EOF
  2299. if { (eval echo configure:2546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2300. rm -rf conftest*
  2301. ac_cv_header_sys_wait_h=yes
  2302. else
  2303. echo "configure: failed program was:" >&5
  2304. cat conftest.$ac_ext >&5
  2305. rm -rf conftest*
  2306. ac_cv_header_sys_wait_h=no
  2307. fi
  2308. rm -f conftest*
  2309. fi
  2310. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2311. if test $ac_cv_header_sys_wait_h = yes; then
  2312. cat >> confdefs.h <<\EOF
  2313. #define HAVE_SYS_WAIT_H 1
  2314. EOF
  2315. fi
  2316. for ac_hdr in sys/time.h
  2317. do
  2318. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2319. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2320. echo "configure:2570: checking for $ac_hdr" >&5
  2321. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2322. echo $ac_n "(cached) $ac_c" 1>&6
  2323. else
  2324. cat > conftest.$ac_ext <<EOF
  2325. #line 2575 "configure"
  2326. #include "confdefs.h"
  2327. #include <$ac_hdr>
  2328. EOF
  2329. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2330. { (eval echo configure:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2331. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2332. if test -z "$ac_err"; then
  2333. rm -rf conftest*
  2334. eval "ac_cv_header_$ac_safe=yes"
  2335. else
  2336. echo "$ac_err" >&5
  2337. echo "configure: failed program was:" >&5
  2338. cat conftest.$ac_ext >&5
  2339. rm -rf conftest*
  2340. eval "ac_cv_header_$ac_safe=no"
  2341. fi
  2342. rm -f conftest*
  2343. fi
  2344. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2345. echo "$ac_t""yes" 1>&6
  2346. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2347. cat >> confdefs.h <<EOF
  2348. #define $ac_tr_hdr 1
  2349. EOF
  2350. else
  2351. echo "$ac_t""no" 1>&6
  2352. fi
  2353. done
  2354. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2355. echo "configure:2607: checking whether time.h and sys/time.h may both be included" >&5
  2356. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2357. echo $ac_n "(cached) $ac_c" 1>&6
  2358. else
  2359. cat > conftest.$ac_ext <<EOF
  2360. #line 2612 "configure"
  2361. #include "confdefs.h"
  2362. #include <sys/types.h>
  2363. #include <sys/time.h>
  2364. #include <time.h>
  2365. int main() {
  2366. struct tm *tp;
  2367. ; return 0; }
  2368. EOF
  2369. if { (eval echo configure:2621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2370. rm -rf conftest*
  2371. ac_cv_header_time=yes
  2372. else
  2373. echo "configure: failed program was:" >&5
  2374. cat conftest.$ac_ext >&5
  2375. rm -rf conftest*
  2376. ac_cv_header_time=no
  2377. fi
  2378. rm -f conftest*
  2379. fi
  2380. echo "$ac_t""$ac_cv_header_time" 1>&6
  2381. if test $ac_cv_header_time = yes; then
  2382. cat >> confdefs.h <<\EOF
  2383. #define TIME_WITH_SYS_TIME 1
  2384. EOF
  2385. fi
  2386. for ac_hdr in zlib.h
  2387. do
  2388. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2389. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2390. echo "configure:2645: checking for $ac_hdr" >&5
  2391. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2392. echo $ac_n "(cached) $ac_c" 1>&6
  2393. else
  2394. cat > conftest.$ac_ext <<EOF
  2395. #line 2650 "configure"
  2396. #include "confdefs.h"
  2397. #include <$ac_hdr>
  2398. EOF
  2399. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2400. { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2401. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2402. if test -z "$ac_err"; then
  2403. rm -rf conftest*
  2404. eval "ac_cv_header_$ac_safe=yes"
  2405. else
  2406. echo "$ac_err" >&5
  2407. echo "configure: failed program was:" >&5
  2408. cat conftest.$ac_ext >&5
  2409. rm -rf conftest*
  2410. eval "ac_cv_header_$ac_safe=no"
  2411. fi
  2412. rm -f conftest*
  2413. fi
  2414. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2415. echo "$ac_t""yes" 1>&6
  2416. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2417. cat >> confdefs.h <<EOF
  2418. #define $ac_tr_hdr 1
  2419. EOF
  2420. else
  2421. echo "$ac_t""no" 1>&6
  2422. fi
  2423. done
  2424. if test "x${ZLIB}" = x; then
  2425. cat >&2 <<EOF
  2426. configure: error:
  2427. Your system does not provide a working zlib compression library.
  2428. It is required.
  2429. EOF
  2430. exit 1
  2431. else
  2432. if test "${ac_cv_header_zlib_h}" != yes; then
  2433. cat >&2 <<EOF
  2434. configure: error:
  2435. Your system does not provide the necessary zlib header file.
  2436. It is required.
  2437. EOF
  2438. exit 1
  2439. fi
  2440. fi
  2441. for ac_hdr in openssl/ssl.h openssl/crypto.h
  2442. do
  2443. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2444. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2445. echo "configure:2707: checking for $ac_hdr" >&5
  2446. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2447. echo $ac_n "(cached) $ac_c" 1>&6
  2448. else
  2449. cat > conftest.$ac_ext <<EOF
  2450. #line 2712 "configure"
  2451. #include "confdefs.h"
  2452. #include <$ac_hdr>
  2453. EOF
  2454. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2455. { (eval echo configure:2717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2456. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2457. if test -z "$ac_err"; then
  2458. rm -rf conftest*
  2459. eval "ac_cv_header_$ac_safe=yes"
  2460. else
  2461. echo "$ac_err" >&5
  2462. echo "configure: failed program was:" >&5
  2463. cat conftest.$ac_ext >&5
  2464. rm -rf conftest*
  2465. eval "ac_cv_header_$ac_safe=no"
  2466. fi
  2467. rm -f conftest*
  2468. fi
  2469. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2470. echo "$ac_t""yes" 1>&6
  2471. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2472. cat >> confdefs.h <<EOF
  2473. #define $ac_tr_hdr 1
  2474. EOF
  2475. else
  2476. echo "$ac_t""no" 1>&6
  2477. fi
  2478. done
  2479. if test "x${SSL}" = x; then
  2480. cat >&2 <<EOF
  2481. configure: error:
  2482. Your system does not provide a working ssl library.
  2483. It is required. Download openssl at www.openssl.org
  2484. EOF
  2485. exit 1
  2486. else
  2487. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  2488. cat >&2 <<EOF
  2489. configure: error:
  2490. Your system does not provide the necessary ssl header file.
  2491. It is required. Download openssl at www.openssl.org
  2492. EOF
  2493. exit 1
  2494. fi
  2495. fi
  2496. for ac_hdr in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h
  2497. do
  2498. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2499. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2500. echo "configure:2770: checking for $ac_hdr" >&5
  2501. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2502. echo $ac_n "(cached) $ac_c" 1>&6
  2503. else
  2504. cat > conftest.$ac_ext <<EOF
  2505. #line 2775 "configure"
  2506. #include "confdefs.h"
  2507. #include <$ac_hdr>
  2508. EOF
  2509. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2510. { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2511. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2512. if test -z "$ac_err"; then
  2513. rm -rf conftest*
  2514. eval "ac_cv_header_$ac_safe=yes"
  2515. else
  2516. echo "$ac_err" >&5
  2517. echo "configure: failed program was:" >&5
  2518. cat conftest.$ac_ext >&5
  2519. rm -rf conftest*
  2520. eval "ac_cv_header_$ac_safe=no"
  2521. fi
  2522. rm -f conftest*
  2523. fi
  2524. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2525. echo "$ac_t""yes" 1>&6
  2526. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2527. cat >> confdefs.h <<EOF
  2528. #define $ac_tr_hdr 1
  2529. EOF
  2530. else
  2531. echo "$ac_t""no" 1>&6
  2532. fi
  2533. done
  2534. # Checks for typedefs, structures, and compiler characteristics
  2535. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2536. echo "configure:2810: checking for ANSI C header files" >&5
  2537. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2538. echo $ac_n "(cached) $ac_c" 1>&6
  2539. else
  2540. cat > conftest.$ac_ext <<EOF
  2541. #line 2815 "configure"
  2542. #include "confdefs.h"
  2543. #include <stdlib.h>
  2544. #include <stdarg.h>
  2545. #include <string.h>
  2546. #include <float.h>
  2547. EOF
  2548. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2549. { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2550. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2551. if test -z "$ac_err"; then
  2552. rm -rf conftest*
  2553. ac_cv_header_stdc=yes
  2554. else
  2555. echo "$ac_err" >&5
  2556. echo "configure: failed program was:" >&5
  2557. cat conftest.$ac_ext >&5
  2558. rm -rf conftest*
  2559. ac_cv_header_stdc=no
  2560. fi
  2561. rm -f conftest*
  2562. if test $ac_cv_header_stdc = yes; then
  2563. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2564. cat > conftest.$ac_ext <<EOF
  2565. #line 2840 "configure"
  2566. #include "confdefs.h"
  2567. #include <string.h>
  2568. EOF
  2569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2570. egrep "memchr" >/dev/null 2>&1; then
  2571. :
  2572. else
  2573. rm -rf conftest*
  2574. ac_cv_header_stdc=no
  2575. fi
  2576. rm -f conftest*
  2577. fi
  2578. if test $ac_cv_header_stdc = yes; then
  2579. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2580. cat > conftest.$ac_ext <<EOF
  2581. #line 2858 "configure"
  2582. #include "confdefs.h"
  2583. #include <stdlib.h>
  2584. EOF
  2585. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2586. egrep "free" >/dev/null 2>&1; then
  2587. :
  2588. else
  2589. rm -rf conftest*
  2590. ac_cv_header_stdc=no
  2591. fi
  2592. rm -f conftest*
  2593. fi
  2594. if test $ac_cv_header_stdc = yes; then
  2595. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2596. if test "$cross_compiling" = yes; then
  2597. :
  2598. else
  2599. cat > conftest.$ac_ext <<EOF
  2600. #line 2879 "configure"
  2601. #include "confdefs.h"
  2602. #include <ctype.h>
  2603. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2604. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2605. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2606. int main () { int i; for (i = 0; i < 256; i++)
  2607. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2608. exit (0); }
  2609. EOF
  2610. if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2611. then
  2612. :
  2613. else
  2614. echo "configure: failed program was:" >&5
  2615. cat conftest.$ac_ext >&5
  2616. rm -fr conftest*
  2617. ac_cv_header_stdc=no
  2618. fi
  2619. rm -fr conftest*
  2620. fi
  2621. fi
  2622. fi
  2623. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2624. if test $ac_cv_header_stdc = yes; then
  2625. cat >> confdefs.h <<\EOF
  2626. #define STDC_HEADERS 1
  2627. EOF
  2628. fi
  2629. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2630. echo "configure:2914: checking for pid_t" >&5
  2631. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2632. echo $ac_n "(cached) $ac_c" 1>&6
  2633. else
  2634. cat > conftest.$ac_ext <<EOF
  2635. #line 2919 "configure"
  2636. #include "confdefs.h"
  2637. #include <sys/types.h>
  2638. #if STDC_HEADERS
  2639. #include <stdlib.h>
  2640. #include <stddef.h>
  2641. #endif
  2642. EOF
  2643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2644. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2645. rm -rf conftest*
  2646. ac_cv_type_pid_t=yes
  2647. else
  2648. rm -rf conftest*
  2649. ac_cv_type_pid_t=no
  2650. fi
  2651. rm -f conftest*
  2652. fi
  2653. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2654. if test $ac_cv_type_pid_t = no; then
  2655. cat >> confdefs.h <<\EOF
  2656. #define pid_t int
  2657. EOF
  2658. fi
  2659. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2660. echo "configure:2947: checking for size_t" >&5
  2661. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2662. echo $ac_n "(cached) $ac_c" 1>&6
  2663. else
  2664. cat > conftest.$ac_ext <<EOF
  2665. #line 2952 "configure"
  2666. #include "confdefs.h"
  2667. #include <sys/types.h>
  2668. #if STDC_HEADERS
  2669. #include <stdlib.h>
  2670. #include <stddef.h>
  2671. #endif
  2672. EOF
  2673. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2674. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2675. rm -rf conftest*
  2676. ac_cv_type_size_t=yes
  2677. else
  2678. rm -rf conftest*
  2679. ac_cv_type_size_t=no
  2680. fi
  2681. rm -f conftest*
  2682. fi
  2683. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2684. if test $ac_cv_type_size_t = no; then
  2685. cat >> confdefs.h <<\EOF
  2686. #define size_t unsigned
  2687. EOF
  2688. fi
  2689. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2690. echo "configure:2980: checking for working const" >&5
  2691. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2692. echo $ac_n "(cached) $ac_c" 1>&6
  2693. else
  2694. cat > conftest.$ac_ext <<EOF
  2695. #line 2985 "configure"
  2696. #include "confdefs.h"
  2697. int main() {
  2698. /* Ultrix mips cc rejects this. */
  2699. typedef int charset[2]; const charset x;
  2700. /* SunOS 4.1.1 cc rejects this. */
  2701. char const *const *ccp;
  2702. char **p;
  2703. /* NEC SVR4.0.2 mips cc rejects this. */
  2704. struct point {int x, y;};
  2705. static struct point const zero = {0,0};
  2706. /* AIX XL C 1.02.0.0 rejects this.
  2707. It does not let you subtract one const X* pointer from another in an arm
  2708. of an if-expression whose if-part is not a constant expression */
  2709. const char *g = "string";
  2710. ccp = &g + (g ? g-g : 0);
  2711. /* HPUX 7.0 cc rejects these. */
  2712. ++ccp;
  2713. p = (char**) ccp;
  2714. ccp = (char const *const *) p;
  2715. { /* SCO 3.2v4 cc rejects this. */
  2716. char *t;
  2717. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2718. *t++ = 0;
  2719. }
  2720. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2721. int x[] = {25, 17};
  2722. const int *foo = &x[0];
  2723. ++foo;
  2724. }
  2725. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2726. typedef const int *iptr;
  2727. iptr p = 0;
  2728. ++p;
  2729. }
  2730. { /* AIX XL C 1.02.0.0 rejects this saying
  2731. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2732. struct s { int j; const int *ap[3]; };
  2733. struct s *b; b->j = 5;
  2734. }
  2735. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2736. const int foo = 10;
  2737. }
  2738. ; return 0; }
  2739. EOF
  2740. if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2741. rm -rf conftest*
  2742. ac_cv_c_const=yes
  2743. else
  2744. echo "configure: failed program was:" >&5
  2745. cat conftest.$ac_ext >&5
  2746. rm -rf conftest*
  2747. ac_cv_c_const=no
  2748. fi
  2749. rm -f conftest*
  2750. fi
  2751. echo "$ac_t""$ac_cv_c_const" 1>&6
  2752. if test $ac_cv_c_const = no; then
  2753. cat >> confdefs.h <<\EOF
  2754. #define const
  2755. EOF
  2756. fi
  2757. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2758. echo "configure:3055: checking whether byte ordering is bigendian" >&5
  2759. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2760. echo $ac_n "(cached) $ac_c" 1>&6
  2761. else
  2762. ac_cv_c_bigendian=unknown
  2763. # See if sys/param.h defines the BYTE_ORDER macro.
  2764. cat > conftest.$ac_ext <<EOF
  2765. #line 3062 "configure"
  2766. #include "confdefs.h"
  2767. #include <sys/types.h>
  2768. #include <sys/param.h>
  2769. int main() {
  2770. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2771. bogus endian macros
  2772. #endif
  2773. ; return 0; }
  2774. EOF
  2775. if { (eval echo configure:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2776. rm -rf conftest*
  2777. # It does; now see whether it defined to BIG_ENDIAN or not.
  2778. cat > conftest.$ac_ext <<EOF
  2779. #line 3077 "configure"
  2780. #include "confdefs.h"
  2781. #include <sys/types.h>
  2782. #include <sys/param.h>
  2783. int main() {
  2784. #if BYTE_ORDER != BIG_ENDIAN
  2785. not big endian
  2786. #endif
  2787. ; return 0; }
  2788. EOF
  2789. if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2790. rm -rf conftest*
  2791. ac_cv_c_bigendian=yes
  2792. else
  2793. echo "configure: failed program was:" >&5
  2794. cat conftest.$ac_ext >&5
  2795. rm -rf conftest*
  2796. ac_cv_c_bigendian=no
  2797. fi
  2798. rm -f conftest*
  2799. else
  2800. echo "configure: failed program was:" >&5
  2801. cat conftest.$ac_ext >&5
  2802. fi
  2803. rm -f conftest*
  2804. if test $ac_cv_c_bigendian = unknown; then
  2805. if test "$cross_compiling" = yes; then
  2806. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2807. else
  2808. cat > conftest.$ac_ext <<EOF
  2809. #line 3108 "configure"
  2810. #include "confdefs.h"
  2811. main () {
  2812. /* Are we little or big endian? From Harbison&Steele. */
  2813. union
  2814. {
  2815. long l;
  2816. char c[sizeof (long)];
  2817. } u;
  2818. u.l = 1;
  2819. exit (u.c[sizeof (long) - 1] == 1);
  2820. }
  2821. EOF
  2822. if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2823. then
  2824. ac_cv_c_bigendian=no
  2825. else
  2826. echo "configure: failed program was:" >&5
  2827. cat conftest.$ac_ext >&5
  2828. rm -fr conftest*
  2829. ac_cv_c_bigendian=yes
  2830. fi
  2831. rm -fr conftest*
  2832. fi
  2833. fi
  2834. fi
  2835. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2836. if test $ac_cv_c_bigendian = yes; then
  2837. cat >> confdefs.h <<\EOF
  2838. #define WORDS_BIGENDIAN 1
  2839. EOF
  2840. fi
  2841. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2842. echo "configure:3145: checking for inline" >&5
  2843. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2844. echo $ac_n "(cached) $ac_c" 1>&6
  2845. else
  2846. ac_cv_c_inline=no
  2847. for ac_kw in inline __inline__ __inline; do
  2848. cat > conftest.$ac_ext <<EOF
  2849. #line 3152 "configure"
  2850. #include "confdefs.h"
  2851. int main() {
  2852. } $ac_kw foo() {
  2853. ; return 0; }
  2854. EOF
  2855. if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2856. rm -rf conftest*
  2857. ac_cv_c_inline=$ac_kw; break
  2858. else
  2859. echo "configure: failed program was:" >&5
  2860. cat conftest.$ac_ext >&5
  2861. fi
  2862. rm -f conftest*
  2863. done
  2864. fi
  2865. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2866. case "$ac_cv_c_inline" in
  2867. inline | yes) ;;
  2868. no) cat >> confdefs.h <<\EOF
  2869. #define inline
  2870. EOF
  2871. ;;
  2872. *) cat >> confdefs.h <<EOF
  2873. #define inline $ac_cv_c_inline
  2874. EOF
  2875. ;;
  2876. esac
  2877. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2878. echo "configure:3185: checking size of long" >&5
  2879. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2880. echo $ac_n "(cached) $ac_c" 1>&6
  2881. else
  2882. if test "$cross_compiling" = yes; then
  2883. ac_cv_sizeof_long=0
  2884. else
  2885. cat > conftest.$ac_ext <<EOF
  2886. #line 3193 "configure"
  2887. #include "confdefs.h"
  2888. #include <stdio.h>
  2889. #include <sys/types.h>
  2890. main()
  2891. {
  2892. FILE *f=fopen("conftestval", "w");
  2893. if (!f) exit(1);
  2894. fprintf(f, "%d\n", sizeof(long));
  2895. exit(0);
  2896. }
  2897. EOF
  2898. if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2899. then
  2900. ac_cv_sizeof_long=`cat conftestval`
  2901. else
  2902. echo "configure: failed program was:" >&5
  2903. cat conftest.$ac_ext >&5
  2904. rm -fr conftest*
  2905. ac_cv_sizeof_long=0
  2906. fi
  2907. rm -fr conftest*
  2908. fi
  2909. fi
  2910. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2911. cat >> confdefs.h <<EOF
  2912. #define SIZEOF_LONG $ac_cv_sizeof_long
  2913. EOF
  2914. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2915. echo "configure:3225: checking size of int" >&5
  2916. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2917. echo $ac_n "(cached) $ac_c" 1>&6
  2918. else
  2919. if test "$cross_compiling" = yes; then
  2920. ac_cv_sizeof_int=0
  2921. else
  2922. cat > conftest.$ac_ext <<EOF
  2923. #line 3233 "configure"
  2924. #include "confdefs.h"
  2925. #include <stdio.h>
  2926. #include <sys/types.h>
  2927. main()
  2928. {
  2929. FILE *f=fopen("conftestval", "w");
  2930. if (!f) exit(1);
  2931. fprintf(f, "%d\n", sizeof(int));
  2932. exit(0);
  2933. }
  2934. EOF
  2935. if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2936. then
  2937. ac_cv_sizeof_int=`cat conftestval`
  2938. else
  2939. echo "configure: failed program was:" >&5
  2940. cat conftest.$ac_ext >&5
  2941. rm -fr conftest*
  2942. ac_cv_sizeof_int=0
  2943. fi
  2944. rm -fr conftest*
  2945. fi
  2946. fi
  2947. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2948. cat >> confdefs.h <<EOF
  2949. #define SIZEOF_INT $ac_cv_sizeof_int
  2950. EOF
  2951. # Check for IPv6 support
  2952. #EGG_IPV6_SUPPORTED
  2953. echo $ac_n "checking whether or not you disabled IPv6 support""... $ac_c" 1>&6
  2954. echo "configure:3269: checking whether or not you disabled IPv6 support" >&5
  2955. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  2956. if test "${enable_ipv6+set}" = set; then
  2957. enableval="$enable_ipv6"
  2958. ac_cv_dipv6="yes"
  2959. echo "$ac_t""yes" 1>&6
  2960. else
  2961. ac_cv_dipv6="no"
  2962. if test "$egg_cv_ipv6_supported" = "no"; then
  2963. ac_cv_dipv6="no"
  2964. fi
  2965. echo "$ac_t""$ac_cv_dipv6" 1>&6
  2966. fi
  2967. if test "$ac_cv_dipv6" = "no"; then
  2968. cat >> confdefs.h <<\EOF
  2969. #define HAVE_IPV6 1
  2970. EOF
  2971. fi
  2972. echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
  2973. echo "configure:3293: checking for socklen_t" >&5
  2974. if eval "test \"`echo '$''{'egg_cv_socklen_t'+set}'`\" = set"; then
  2975. echo $ac_n "(cached) $ac_c" 1>&6
  2976. else
  2977. if test "$cross_compiling" = yes; then
  2978. egg_cv_socklen_t=no
  2979. else
  2980. cat > conftest.$ac_ext <<EOF
  2981. #line 3302 "configure"
  2982. #include "confdefs.h"
  2983. #include <unistd.h>
  2984. #include <sys/types.h>
  2985. #include <sys/socket.h>
  2986. #include <netinet/in.h>
  2987. #include <arpa/inet.h>
  2988. int main()
  2989. {
  2990. socklen_t test = sizeof(int);
  2991. return 0;
  2992. }
  2993. EOF
  2994. if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2995. then
  2996. egg_cv_socklen_t=yes
  2997. else
  2998. echo "configure: failed program was:" >&5
  2999. cat conftest.$ac_ext >&5
  3000. rm -fr conftest*
  3001. egg_cv_socklen_t=no
  3002. fi
  3003. rm -fr conftest*
  3004. fi
  3005. fi
  3006. if test "$egg_cv_socklen_t" = "yes"; then
  3007. cat >> confdefs.h <<\EOF
  3008. #define HAVE_SOCKLEN_T 1
  3009. EOF
  3010. echo "$ac_t""yes" 1>&6
  3011. else
  3012. echo "$ac_t""no" 1>&6
  3013. fi
  3014. # Checks for library functions
  3015. for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize memset random srandom
  3016. do
  3017. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3018. echo "configure:3348: checking for $ac_func" >&5
  3019. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3020. echo $ac_n "(cached) $ac_c" 1>&6
  3021. else
  3022. cat > conftest.$ac_ext <<EOF
  3023. #line 3353 "configure"
  3024. #include "confdefs.h"
  3025. /* System header to define __stub macros and hopefully few prototypes,
  3026. which can conflict with char $ac_func(); below. */
  3027. #include <assert.h>
  3028. /* Override any gcc2 internal prototype to avoid an error. */
  3029. /* We use char because int might match the return type of a gcc2
  3030. builtin and then its argument prototype would still apply. */
  3031. char $ac_func();
  3032. int main() {
  3033. /* The GNU C library defines this for functions which it implements
  3034. to always fail with ENOSYS. Some functions are actually named
  3035. something starting with __ and the normal name is an alias. */
  3036. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3037. choke me
  3038. #else
  3039. $ac_func();
  3040. #endif
  3041. ; return 0; }
  3042. EOF
  3043. if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3044. rm -rf conftest*
  3045. eval "ac_cv_func_$ac_func=yes"
  3046. else
  3047. echo "configure: failed program was:" >&5
  3048. cat conftest.$ac_ext >&5
  3049. rm -rf conftest*
  3050. eval "ac_cv_func_$ac_func=no"
  3051. fi
  3052. rm -f conftest*
  3053. fi
  3054. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3055. echo "$ac_t""yes" 1>&6
  3056. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3057. cat >> confdefs.h <<EOF
  3058. #define $ac_tr_func 1
  3059. EOF
  3060. else
  3061. echo "$ac_t""no" 1>&6
  3062. fi
  3063. done
  3064. for ac_func in dlopen dprintf snprintf vsnprintf isascii inet_aton inet_ntop memcpy strftime fsync gethostbyname2 getipnodebyname
  3065. do
  3066. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3067. echo "configure:3403: checking for $ac_func" >&5
  3068. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3069. echo $ac_n "(cached) $ac_c" 1>&6
  3070. else
  3071. cat > conftest.$ac_ext <<EOF
  3072. #line 3408 "configure"
  3073. #include "confdefs.h"
  3074. /* System header to define __stub macros and hopefully few prototypes,
  3075. which can conflict with char $ac_func(); below. */
  3076. #include <assert.h>
  3077. /* Override any gcc2 internal prototype to avoid an error. */
  3078. /* We use char because int might match the return type of a gcc2
  3079. builtin and then its argument prototype would still apply. */
  3080. char $ac_func();
  3081. int main() {
  3082. /* The GNU C library defines this for functions which it implements
  3083. to always fail with ENOSYS. Some functions are actually named
  3084. something starting with __ and the normal name is an alias. */
  3085. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3086. choke me
  3087. #else
  3088. $ac_func();
  3089. #endif
  3090. ; return 0; }
  3091. EOF
  3092. if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3093. rm -rf conftest*
  3094. eval "ac_cv_func_$ac_func=yes"
  3095. else
  3096. echo "configure: failed program was:" >&5
  3097. cat conftest.$ac_ext >&5
  3098. rm -rf conftest*
  3099. eval "ac_cv_func_$ac_func=no"
  3100. fi
  3101. rm -f conftest*
  3102. fi
  3103. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3104. echo "$ac_t""yes" 1>&6
  3105. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3106. cat >> confdefs.h <<EOF
  3107. #define $ac_tr_func 1
  3108. EOF
  3109. else
  3110. echo "$ac_t""no" 1>&6
  3111. fi
  3112. done
  3113. for ac_func in vsprintf
  3114. do
  3115. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3116. echo "configure:3458: checking for $ac_func" >&5
  3117. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3118. echo $ac_n "(cached) $ac_c" 1>&6
  3119. else
  3120. cat > conftest.$ac_ext <<EOF
  3121. #line 3463 "configure"
  3122. #include "confdefs.h"
  3123. /* System header to define __stub macros and hopefully few prototypes,
  3124. which can conflict with char $ac_func(); below. */
  3125. #include <assert.h>
  3126. /* Override any gcc2 internal prototype to avoid an error. */
  3127. /* We use char because int might match the return type of a gcc2
  3128. builtin and then its argument prototype would still apply. */
  3129. char $ac_func();
  3130. int main() {
  3131. /* The GNU C library defines this for functions which it implements
  3132. to always fail with ENOSYS. Some functions are actually named
  3133. something starting with __ and the normal name is an alias. */
  3134. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3135. choke me
  3136. #else
  3137. $ac_func();
  3138. #endif
  3139. ; return 0; }
  3140. EOF
  3141. if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3142. rm -rf conftest*
  3143. eval "ac_cv_func_$ac_func=yes"
  3144. else
  3145. echo "configure: failed program was:" >&5
  3146. cat conftest.$ac_ext >&5
  3147. rm -rf conftest*
  3148. eval "ac_cv_func_$ac_func=no"
  3149. fi
  3150. rm -f conftest*
  3151. fi
  3152. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3153. echo "$ac_t""yes" 1>&6
  3154. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3155. cat >> confdefs.h <<EOF
  3156. #define $ac_tr_func 1
  3157. EOF
  3158. else
  3159. echo "$ac_t""no" 1>&6
  3160. fi
  3161. done
  3162. if test "$ac_cv_func_vsprintf" = "no"
  3163. then
  3164. cat << 'EOF' >&2
  3165. configure: error:
  3166. Your system does not have the sprintf/vsprintf libraries.
  3167. These are required to compile almost anything. Sorry.
  3168. EOF
  3169. exit 1
  3170. fi
  3171. for ac_func in uname
  3172. do
  3173. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3174. echo "configure:3525: checking for $ac_func" >&5
  3175. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3176. echo $ac_n "(cached) $ac_c" 1>&6
  3177. else
  3178. cat > conftest.$ac_ext <<EOF
  3179. #line 3530 "configure"
  3180. #include "confdefs.h"
  3181. /* System header to define __stub macros and hopefully few prototypes,
  3182. which can conflict with char $ac_func(); below. */
  3183. #include <assert.h>
  3184. /* Override any gcc2 internal prototype to avoid an error. */
  3185. /* We use char because int might match the return type of a gcc2
  3186. builtin and then its argument prototype would still apply. */
  3187. char $ac_func();
  3188. int main() {
  3189. /* The GNU C library defines this for functions which it implements
  3190. to always fail with ENOSYS. Some functions are actually named
  3191. something starting with __ and the normal name is an alias. */
  3192. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3193. choke me
  3194. #else
  3195. $ac_func();
  3196. #endif
  3197. ; return 0; }
  3198. EOF
  3199. if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3200. rm -rf conftest*
  3201. eval "ac_cv_func_$ac_func=yes"
  3202. else
  3203. echo "configure: failed program was:" >&5
  3204. cat conftest.$ac_ext >&5
  3205. rm -rf conftest*
  3206. eval "ac_cv_func_$ac_func=no"
  3207. fi
  3208. rm -f conftest*
  3209. fi
  3210. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3211. echo "$ac_t""yes" 1>&6
  3212. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3213. cat >> confdefs.h <<EOF
  3214. #define $ac_tr_func 1
  3215. EOF
  3216. else
  3217. echo "$ac_t""no" 1>&6
  3218. fi
  3219. done
  3220. if test "$ac_cv_func_uname" = "no"
  3221. then
  3222. cat << 'EOF' >&2
  3223. configure: error:
  3224. Your system does not have the uname() function.
  3225. This is required for the botpack.
  3226. EOF
  3227. exit 1
  3228. fi
  3229. # Make sure we have stdc headers, since we can't compile without them
  3230. if test "$ac_cv_header_stdc" = "no"
  3231. then
  3232. cat << 'EOF' >&2
  3233. configure: error:
  3234. Your system must support ANSI C Header files.
  3235. These are required for the language support. Sorry.
  3236. EOF
  3237. exit 1
  3238. fi
  3239. # Make sure we are using the correct result from a broken libsafe sscanf
  3240. echo $ac_n "checking for broken libsafe sscanf""... $ac_c" 1>&6
  3241. echo "configure:3606: checking for broken libsafe sscanf" >&5
  3242. if eval "test \"`echo '$''{'egg_cv_var_libsafe_sscanf'+set}'`\" = set"; then
  3243. echo $ac_n "(cached) $ac_c" 1>&6
  3244. else
  3245. if test "$cross_compiling" = yes; then
  3246. egg_cv_var_libsafe_sscanf="no"
  3247. else
  3248. cat > conftest.$ac_ext <<EOF
  3249. #line 3614 "configure"
  3250. #include "confdefs.h"
  3251. #include <stdio.h>
  3252. int main()
  3253. {
  3254. char *src = "0x001,guppyism\n";
  3255. char dst[10];
  3256. int idx;
  3257. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  3258. exit(1);
  3259. return 0;
  3260. }
  3261. EOF
  3262. if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3263. then
  3264. egg_cv_var_libsafe_sscanf="no"
  3265. else
  3266. echo "configure: failed program was:" >&5
  3267. cat conftest.$ac_ext >&5
  3268. rm -fr conftest*
  3269. egg_cv_var_libsafe_sscanf="yes"
  3270. fi
  3271. rm -fr conftest*
  3272. fi
  3273. fi
  3274. echo "$ac_t""$egg_cv_var_libsafe_sscanf" 1>&6
  3275. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  3276. then
  3277. cat >> confdefs.h <<\EOF
  3278. #define LIBSAFE_HACKS 1
  3279. EOF
  3280. fi
  3281. # Where is Tcl? Is it here?
  3282. # ---------- begin robey's Tcl thingies
  3283. # (well, what used to be robey's Tcl thingies...)
  3284. # Latest tested Tcl version to recommend if Tcl isn't found
  3285. tclrecommendver="8.4"
  3286. # Site recommended to download Tcl from
  3287. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  3288. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  3289. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  3290. tcl8.0 tcl80"
  3291. # Tcl library filename suffixes
  3292. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  3293. # Tcl library search paths
  3294. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  3295. /usr/local/lib /usr/local/pkgs/tcl/lib \
  3296. /usr/lib /lib /usr/i486-linuxaout/lib \
  3297. /beos/system/lib /sys/lib"
  3298. # Tcl header filenames
  3299. tclheadernames="tcl.h"
  3300. # Tcl header search paths
  3301. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  3302. /usr/local/include /usr/local/pkgs/tcl/include \
  3303. /usr/include /beos/system/include /beos/devel/include \
  3304. /sys/include"
  3305. # oohh new configure --variables for those with multiple Tcl libs
  3306. # Check whether --with-tcllib or --without-tcllib was given.
  3307. if test "${with_tcllib+set}" = set; then
  3308. withval="$with_tcllib"
  3309. tcllibname="$withval"
  3310. fi
  3311. # Check whether --with-tclinc or --without-tclinc was given.
  3312. if test "${with_tclinc+set}" = set; then
  3313. withval="$with_tclinc"
  3314. tclincname="$withval"
  3315. fi
  3316. WARN=0
  3317. # Make sure either both or neither $tcllibname and $tclincname are set
  3318. if test ! "${tcllibname-x}" = "x"
  3319. then
  3320. if test "${tclincname-x}" = "x"
  3321. then
  3322. WARN=1
  3323. tcllibname=""
  3324. TCLLIB=""
  3325. TCLINC=""
  3326. fi
  3327. else
  3328. if test ! "${tclincname-x}" = "x"
  3329. then
  3330. WARN=1
  3331. tclincname=""
  3332. TCLLIB=""
  3333. TCLINC=""
  3334. fi
  3335. fi
  3336. if test "$WARN" = 1
  3337. then
  3338. cat << 'EOF' >&2
  3339. configure: warning:
  3340. You must specify both --with-tcllib and --with-tclinc for them to work.
  3341. configure will now attempt to autodetect both the Tcl library and header...
  3342. EOF
  3343. fi
  3344. WARN=0
  3345. # Make sure either both or neither $TCLLIB and $TCLINC are set
  3346. if test ! "${TCLLIB-x}" = "x"
  3347. then
  3348. if test "${TCLINC-x}" = "x"
  3349. then
  3350. WARN=1
  3351. WVAR1=TCLLIB
  3352. WVAR2=TCLINC
  3353. TCLLIB=""
  3354. fi
  3355. else
  3356. if test ! "${TCLINC-x}" = "x"
  3357. then
  3358. WARN=1
  3359. WVAR1=TCLINC
  3360. WVAR2=TCLLIB
  3361. TCLINC=""
  3362. fi
  3363. fi
  3364. if test "$WARN" = 1
  3365. then
  3366. cat << EOF >&2
  3367. configure: warning:
  3368. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  3369. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3370. configure will now attempt to autodetect both the Tcl library and header...
  3371. EOF
  3372. fi
  3373. # Look for Tcl library: if $tcllibname is set, check there first
  3374. if test ! "${tcllibname-x}" = "x"
  3375. then
  3376. if test -f "$tcllibname" && test -r "$tcllibname"
  3377. then
  3378. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  3379. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  3380. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  3381. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  3382. else
  3383. cat << EOF >&2
  3384. configure: warning:
  3385. The file '$tcllibname' given to option --with-tcllib is not valid.
  3386. configure will now attempt to autodetect both the Tcl library and header...
  3387. EOF
  3388. tcllibname=""
  3389. tclincname=""
  3390. TCLLIB=""
  3391. TCLLIBFN=""
  3392. TCLINC=""
  3393. TCLINCFN=""
  3394. fi
  3395. fi
  3396. # Look for Tcl header: if $tclincname is set, check there first
  3397. if test ! "${tclincname-x}" = "x"
  3398. then
  3399. if test -f "$tclincname" && test -r "$tclincname"
  3400. then
  3401. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  3402. TCLINCFN=`$BASENAME $tclincname`
  3403. else
  3404. cat << EOF >&2
  3405. configure: warning:
  3406. The file '$tclincname' given to option --with-tclinc is not valid.
  3407. configure will now attempt to autodetect both the Tcl library and header...
  3408. EOF
  3409. tcllibname=""
  3410. tclincname=""
  3411. TCLLIB=""
  3412. TCLLIBFN=""
  3413. TCLINC=""
  3414. TCLINCFN=""
  3415. fi
  3416. fi
  3417. # Look for Tcl library: if $TCLLIB is set, check there first
  3418. if test "${TCLLIBFN-x}" = "x"
  3419. then
  3420. if test ! "${TCLLIB-x}" = "x"
  3421. then
  3422. if test -d "$TCLLIB"
  3423. then
  3424. for tcllibfns in $tcllibnames
  3425. do
  3426. for tcllibext in $tcllibextensions
  3427. do
  3428. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  3429. then
  3430. TCLLIBFN="$tcllibfns$tcllibext"
  3431. TCLLIBEXT="$tcllibext"
  3432. TCLLIBFNS="$tcllibfns"
  3433. break 2
  3434. fi
  3435. done
  3436. done
  3437. fi
  3438. if test "${TCLLIBFN-x}" = "x"
  3439. then
  3440. cat << 'EOF' >&2
  3441. configure: warning:
  3442. Environment variable TCLLIB was set, but incorrect.
  3443. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3444. configure will now attempt to autodetect both the Tcl library and header...
  3445. EOF
  3446. TCLLIB=""
  3447. TCLLIBFN=""
  3448. TCLINC=""
  3449. TCLINCFN=""
  3450. fi
  3451. fi
  3452. fi
  3453. # Look for Tcl header: if $TCLINC is set, check there first
  3454. if test "${TCLINCFN-x}" = "x"
  3455. then
  3456. if test ! "${TCLINC-x}" = "x"
  3457. then
  3458. if test -d "$TCLINC"
  3459. then
  3460. for tclheaderfn in $tclheadernames
  3461. do
  3462. if test -r "$TCLINC/$tclheaderfn"
  3463. then
  3464. TCLINCFN="$tclheaderfn"
  3465. break
  3466. fi
  3467. done
  3468. fi
  3469. if test "${TCLINCFN-x}" = "x"
  3470. then
  3471. cat << 'EOF' >&2
  3472. configure: warning:
  3473. Environment variable TCLINC was set, but incorrect.
  3474. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  3475. configure will now attempt to autodetect both the Tcl library and header...
  3476. EOF
  3477. TCLLIB=""
  3478. TCLLIBFN=""
  3479. TCLINC=""
  3480. TCLINCFN=""
  3481. fi
  3482. fi
  3483. fi
  3484. echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
  3485. echo "configure:3887: checking for Tcl library" >&5
  3486. # Attempt autodetect for $TCLLIBFN if it's not set
  3487. if test ! "${TCLLIBFN-x}" = "x"
  3488. then
  3489. echo "$ac_t""using $TCLLIB/lib$TCLLIBFN" 1>&6
  3490. else
  3491. for tcllibfns in $tcllibnames
  3492. do
  3493. for tcllibext in $tcllibextensions
  3494. do
  3495. for tcllibpath in $tcllibpaths
  3496. do
  3497. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  3498. then
  3499. echo "$ac_t""found $tcllibpath/lib$tcllibfns$tcllibext" 1>&6
  3500. TCLLIB="$tcllibpath"
  3501. TCLLIBFN="$tcllibfns$tcllibext"
  3502. TCLLIBEXT="$tcllibext"
  3503. TCLLIBFNS="$tcllibfns"
  3504. break 3
  3505. fi
  3506. done
  3507. done
  3508. done
  3509. fi
  3510. # Show if $TCLLIBFN wasn't found
  3511. if test "${TCLLIBFN-x}" = "x"
  3512. then
  3513. echo "$ac_t""not found" 1>&6
  3514. fi
  3515. echo $ac_n "checking for Tcl header""... $ac_c" 1>&6
  3516. echo "configure:3921: checking for Tcl header" >&5
  3517. # Attempt autodetect for $TCLINCFN if it's not set
  3518. if test ! "${TCLINCFN-x}" = "x"
  3519. then
  3520. echo "$ac_t""using $TCLINC/$TCLINCFN" 1>&6
  3521. else
  3522. for tclheaderpath in $tclheaderpaths
  3523. do
  3524. for tclheaderfn in $tclheadernames
  3525. do
  3526. if test -r "$tclheaderpath/$tclheaderfn"
  3527. then
  3528. echo "$ac_t""found $tclheaderpath/$tclheaderfn" 1>&6
  3529. TCLINC="$tclheaderpath"
  3530. TCLINCFN="$tclheaderfn"
  3531. break 2
  3532. fi
  3533. done
  3534. done
  3535. # FreeBSD hack ...
  3536. if test "${TCLINCFN-x}" = "x"
  3537. then
  3538. for tcllibfns in $tcllibnames
  3539. do
  3540. for tclheaderpath in $tclheaderpaths
  3541. do
  3542. for tclheaderfn in $tclheadernames
  3543. do
  3544. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  3545. then
  3546. echo "$ac_t""found $tclheaderpath/$tcllibfns/$tclheaderfn" 1>&6
  3547. TCLINC="$tclheaderpath/$tcllibfns"
  3548. TCLINCFN="$tclheaderfn"
  3549. break 3
  3550. fi
  3551. done
  3552. done
  3553. done
  3554. fi
  3555. fi
  3556. # Show if $TCLINCFN wasn't found
  3557. if test "${TCLINCFN-x}" = "x"
  3558. then
  3559. echo "$ac_t""not found" 1>&6
  3560. fi
  3561. echo $ac_n "checking whether the Tcl system has changed""... $ac_c" 1>&6
  3562. echo "configure:3970: checking whether the Tcl system has changed" >&5
  3563. egg_tcl_changed=yes
  3564. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  3565. if test ! "$egg_tcl_id" = ":::"
  3566. then
  3567. egg_tcl_cached=yes
  3568. if eval "test \"`echo '$''{'egg_cv_var_tcl_id'+set}'`\" = set"; then
  3569. echo $ac_n "(cached) $ac_c" 1>&6
  3570. else
  3571. egg_cv_var_tcl_id="$egg_tcl_id"
  3572. egg_tcl_cached=no
  3573. fi
  3574. if test "$egg_tcl_cached" = "yes"
  3575. then
  3576. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  3577. then
  3578. egg_tcl_changed=no
  3579. else
  3580. egg_cv_var_tcl_id="$egg_tcl_id"
  3581. fi
  3582. fi
  3583. fi
  3584. if test "$egg_tcl_changed" = "yes"
  3585. then
  3586. echo "$ac_t""yes" 1>&6
  3587. else
  3588. echo "$ac_t""no" 1>&6
  3589. fi
  3590. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  3591. TCL_FOUND=0
  3592. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  3593. then
  3594. TCL_FOUND=1
  3595. # Check Tcl's version
  3596. if test "$egg_tcl_changed" = "yes"
  3597. then
  3598. unset egg_cv_var_tcl_version
  3599. fi
  3600. echo $ac_n "checking for Tcl version""... $ac_c" 1>&6
  3601. echo "configure:4015: checking for Tcl version" >&5
  3602. if eval "test \"`echo '$''{'egg_cv_var_tcl_version'+set}'`\" = set"; then
  3603. echo $ac_n "(cached) $ac_c" 1>&6
  3604. else
  3605. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  3606. fi
  3607. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  3608. then
  3609. echo "$ac_t""$egg_cv_var_tcl_version" 1>&6
  3610. else
  3611. echo "$ac_t""not found" 1>&6
  3612. TCL_FOUND=0
  3613. fi
  3614. # Check Tcl's patch level (if available)
  3615. if test "$egg_tcl_changed" = "yes"
  3616. then
  3617. unset egg_cv_var_tcl_patch_level
  3618. fi
  3619. echo $ac_n "checking for Tcl patch level""... $ac_c" 1>&6
  3620. echo "configure:4039: checking for Tcl patch level" >&5
  3621. if eval "test \"`echo '$''{'egg_cv_var_tcl_patch_level'+set}'`\" = set"; then
  3622. echo $ac_n "(cached) $ac_c" 1>&6
  3623. else
  3624. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  3625. fi
  3626. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  3627. then
  3628. echo "$ac_t""$egg_cv_var_tcl_patch_level" 1>&6
  3629. else
  3630. egg_cv_var_tcl_patch_level="unknown"
  3631. echo "$ac_t""unknown" 1>&6
  3632. fi
  3633. fi
  3634. # Check if we found Tcl's version
  3635. if test "$TCL_FOUND" = 0
  3636. then
  3637. cat << 'EOF' >&2
  3638. configure: error:
  3639. I can't find Tcl on this system.
  3640. The download website is at:
  3641. http://www.tcl.tk/software/tcltk/download84.html
  3642. A nice direct link for the tarball is:
  3643. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  3644. OR
  3645. Just type: misc/maketcl
  3646. EOF
  3647. exit 1
  3648. fi
  3649. # Is this version of Tcl too old for us to use ?
  3650. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  3651. if test "$TCL_VER_PRE80" = "yes"
  3652. then
  3653. cat << EOF >&2
  3654. configure: error:
  3655. Your Tcl version is much too old for Eggdrop to use.
  3656. I suggest you download and compile a more recent version.
  3657. The most reliable current version is $tclrecommendver and
  3658. can be downloaded from $tclrecommendsite
  3659. EOF
  3660. exit 1
  3661. fi
  3662. # Set variables for Tcl library tests
  3663. TCL_TEST_LIB="$TCLLIBFNS"
  3664. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  3665. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3666. then
  3667. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  3668. fi
  3669. if test "$egg_tcl_changed" = "yes"
  3670. then
  3671. unset egg_cv_var_tcl_free
  3672. fi
  3673. # Check for Tcl_Free()
  3674. echo $ac_n "checking for Tcl_Free in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3675. echo "configure:4111: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  3676. ac_lib_var=`echo $TCL_TEST_LIB'_'Tcl_Free | sed 'y%./+-%__p_%'`
  3677. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3678. echo $ac_n "(cached) $ac_c" 1>&6
  3679. else
  3680. ac_save_LIBS="$LIBS"
  3681. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3682. cat > conftest.$ac_ext <<EOF
  3683. #line 4119 "configure"
  3684. #include "confdefs.h"
  3685. /* Override any gcc2 internal prototype to avoid an error. */
  3686. /* We use char because int might match the return type of a gcc2
  3687. builtin and then its argument prototype would still apply. */
  3688. char Tcl_Free();
  3689. int main() {
  3690. Tcl_Free()
  3691. ; return 0; }
  3692. EOF
  3693. if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3694. rm -rf conftest*
  3695. eval "ac_cv_lib_$ac_lib_var=yes"
  3696. else
  3697. echo "configure: failed program was:" >&5
  3698. cat conftest.$ac_ext >&5
  3699. rm -rf conftest*
  3700. eval "ac_cv_lib_$ac_lib_var=no"
  3701. fi
  3702. rm -f conftest*
  3703. LIBS="$ac_save_LIBS"
  3704. fi
  3705. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3706. echo "$ac_t""yes" 1>&6
  3707. egg_cv_var_tcl_free="yes"
  3708. else
  3709. echo "$ac_t""no" 1>&6
  3710. egg_cv_var_tcl_free="no"
  3711. fi
  3712. if test "$egg_cv_var_tcl_free" = "yes"
  3713. then
  3714. cat >> confdefs.h <<\EOF
  3715. #define HAVE_TCL_FREE 1
  3716. EOF
  3717. fi
  3718. if test "$egg_tcl_changed" = "yes"
  3719. then
  3720. unset egg_cv_var_tcl_threaded
  3721. fi
  3722. # Check for TclpFinalizeThreadData()
  3723. echo $ac_n "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB""... $ac_c" 1>&6
  3724. echo "configure:4167: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  3725. ac_lib_var=`echo $TCL_TEST_LIB'_'TclpFinalizeThreadData | sed 'y%./+-%__p_%'`
  3726. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3727. echo $ac_n "(cached) $ac_c" 1>&6
  3728. else
  3729. ac_save_LIBS="$LIBS"
  3730. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  3731. cat > conftest.$ac_ext <<EOF
  3732. #line 4175 "configure"
  3733. #include "confdefs.h"
  3734. /* Override any gcc2 internal prototype to avoid an error. */
  3735. /* We use char because int might match the return type of a gcc2
  3736. builtin and then its argument prototype would still apply. */
  3737. char TclpFinalizeThreadData();
  3738. int main() {
  3739. TclpFinalizeThreadData()
  3740. ; return 0; }
  3741. EOF
  3742. if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3743. rm -rf conftest*
  3744. eval "ac_cv_lib_$ac_lib_var=yes"
  3745. else
  3746. echo "configure: failed program was:" >&5
  3747. cat conftest.$ac_ext >&5
  3748. rm -rf conftest*
  3749. eval "ac_cv_lib_$ac_lib_var=no"
  3750. fi
  3751. rm -f conftest*
  3752. LIBS="$ac_save_LIBS"
  3753. fi
  3754. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3755. echo "$ac_t""yes" 1>&6
  3756. egg_cv_var_tcl_threaded="yes"
  3757. else
  3758. echo "$ac_t""no" 1>&6
  3759. egg_cv_var_tcl_threaded="no"
  3760. fi
  3761. enable_tcl_threads=no
  3762. if test "$egg_cv_var_tcl_threaded" = "yes"
  3763. then
  3764. if test "$enable_tcl_threads" = "no"
  3765. then
  3766. cat << 'EOF' >&2
  3767. configure: warning:
  3768. You have disabled threads support on a system with a threaded Tcl library.
  3769. Tcl features that rely on scheduled events may not function properly.
  3770. EOF
  3771. fi
  3772. # Add pthread library to $LIBS if we need it
  3773. if test ! "${ac_cv_lib_pthread-x}" = "x"
  3774. then
  3775. LIBS="$ac_cv_lib_pthread $LIBS"
  3776. fi
  3777. fi
  3778. if test "$EGG_CYGWIN" = "yes"
  3779. then
  3780. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3781. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3782. else
  3783. if test ! "$TCLLIBEXT" = ".a"
  3784. then
  3785. cat << 'EOF' >&2
  3786. configure: warning:
  3787. Your Tcl library is not compiled statically.
  3788. You will need to compile Tcl statically to successfully compile wraith.
  3789. EOF
  3790. exit 1
  3791. else
  3792. # Was the --with-tcllib option given ?
  3793. if test ! "${tcllibname-x}" = "x"
  3794. then
  3795. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3796. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  3797. else
  3798. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  3799. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  3800. fi
  3801. fi
  3802. fi
  3803. # ---------- end of (what used to be) robey's Tcl thingies
  3804. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  3805. then
  3806. if test "$LINUX" = "yes"
  3807. then
  3808. cat << 'EOF' >&2
  3809. configure: warning:
  3810. Since you are on a Linux system, this has a known problem...
  3811. I know a kludge for it,
  3812. EOF
  3813. if test -r "/lib/libdl.so.1"
  3814. then
  3815. cat << 'EOF' >&2
  3816. and you seem to have it, so we'll do that...
  3817. EOF
  3818. cat >> confdefs.h <<\EOF
  3819. #define HAVE_DLOPEN 1
  3820. EOF
  3821. LIBS="/lib/libdl.so.1 $LIBS"
  3822. else
  3823. cat << 'EOF' >&2
  3824. which you DON'T seem to have... doh!
  3825. perhaps you may still have the stuff lying around somewhere
  3826. if you work out where it is, add it to your XLIBS= lines
  3827. and #define HAVE_DLOPEN in config.h
  3828. we'll proceed on anyway, but you probably won't be able
  3829. to 'make eggdrop' but you might be able to make the
  3830. static bot (I'll default your make to this version).
  3831. EOF
  3832. fi
  3833. else
  3834. cat << 'EOF' >&2
  3835. configure: warning:
  3836. You don't seem to have libdl anywhere I can find it, this will
  3837. prevent you from doing dynamic modules, I'll set your default
  3838. make to static linking.
  3839. EOF
  3840. fi
  3841. fi
  3842. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $4}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  3843. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $4}' | sed -e 's/\;//g'`
  3844. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  3845. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  3846. cat >> confdefs.h <<EOF
  3847. #define EGG_VERSION $version_num
  3848. EOF
  3849. case "$srcdir" in
  3850. [\\/]* | ?:[\\/]*)
  3851. MOD_UPDIR=""
  3852. ;;
  3853. *)
  3854. MOD_UPDIR="../"
  3855. ;;
  3856. esac
  3857. trap '' 1 2 15
  3858. cat > confcache <<\EOF
  3859. # This file is a shell script that caches the results of configure
  3860. # tests run on this system so they can be shared between configure
  3861. # scripts and configure runs. It is not useful on other systems.
  3862. # If it contains results you don't want to keep, you may remove or edit it.
  3863. #
  3864. # By default, configure uses ./config.cache as the cache file,
  3865. # creating it if it does not exist already. You can give configure
  3866. # the --cache-file=FILE option to use a different cache file; that is
  3867. # what configure does when it calls configure scripts in
  3868. # subdirectories, so they share the cache.
  3869. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3870. # config.status only pays attention to the cache file if you give it the
  3871. # --recheck option to rerun configure.
  3872. #
  3873. EOF
  3874. # The following way of writing the cache mishandles newlines in values,
  3875. # but we know of no workaround that is simple, portable, and efficient.
  3876. # So, don't put newlines in cache variables' values.
  3877. # Ultrix sh set writes to stderr and can't be redirected directly,
  3878. # and sets the high bit in the cache file unless we assign to the vars.
  3879. (set) 2>&1 |
  3880. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3881. *ac_space=\ *)
  3882. # `set' does not quote correctly, so add quotes (double-quote substitution
  3883. # turns \\\\ into \\, and sed turns \\ into \).
  3884. sed -n \
  3885. -e "s/'/'\\\\''/g" \
  3886. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3887. ;;
  3888. *)
  3889. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3890. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3891. ;;
  3892. esac >> confcache
  3893. if cmp -s $cache_file confcache; then
  3894. :
  3895. else
  3896. if test -w $cache_file; then
  3897. echo "updating cache $cache_file"
  3898. cat confcache > $cache_file
  3899. else
  3900. echo "not updating unwritable cache $cache_file"
  3901. fi
  3902. fi
  3903. rm -f confcache
  3904. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3905. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3906. # Let make expand exec_prefix.
  3907. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3908. # Any assignment to VPATH causes Sun make to only execute
  3909. # the first set of double-colon rules, so remove it if not needed.
  3910. # If there is a colon in the path, we need to keep it.
  3911. if test "x$srcdir" = x.; then
  3912. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  3913. fi
  3914. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3915. DEFS=-DHAVE_CONFIG_H
  3916. # Without the "./", some shells look in PATH for config.status.
  3917. : ${CONFIG_STATUS=./config.status}
  3918. echo creating $CONFIG_STATUS
  3919. rm -f $CONFIG_STATUS
  3920. cat > $CONFIG_STATUS <<EOF
  3921. #! /bin/sh
  3922. # Generated automatically by configure.
  3923. # Run this file to recreate the current configuration.
  3924. # This directory was configured as follows,
  3925. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3926. #
  3927. # $0 $ac_configure_args
  3928. #
  3929. # Compiler output produced by configure, useful for debugging
  3930. # configure, is in ./config.log if it exists.
  3931. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3932. for ac_option
  3933. do
  3934. case "\$ac_option" in
  3935. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3936. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3937. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3938. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3939. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3940. exit 0 ;;
  3941. -help | --help | --hel | --he | --h)
  3942. echo "\$ac_cs_usage"; exit 0 ;;
  3943. *) echo "\$ac_cs_usage"; exit 1 ;;
  3944. esac
  3945. done
  3946. ac_given_srcdir=$srcdir
  3947. trap 'rm -fr `echo "Makefile src/Makefile src/compat/Makefile src/mod/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3948. EOF
  3949. cat >> $CONFIG_STATUS <<EOF
  3950. # Protect against being on the right side of a sed subst in config.status.
  3951. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3952. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3953. $ac_vpsub
  3954. $extrasub
  3955. s%@SHELL@%$SHELL%g
  3956. s%@CFLAGS@%$CFLAGS%g
  3957. s%@CPPFLAGS@%$CPPFLAGS%g
  3958. s%@CXXFLAGS@%$CXXFLAGS%g
  3959. s%@FFLAGS@%$FFLAGS%g
  3960. s%@DEFS@%$DEFS%g
  3961. s%@LDFLAGS@%$LDFLAGS%g
  3962. s%@LIBS@%$LIBS%g
  3963. s%@exec_prefix@%$exec_prefix%g
  3964. s%@prefix@%$prefix%g
  3965. s%@program_transform_name@%$program_transform_name%g
  3966. s%@bindir@%$bindir%g
  3967. s%@sbindir@%$sbindir%g
  3968. s%@libexecdir@%$libexecdir%g
  3969. s%@datadir@%$datadir%g
  3970. s%@sysconfdir@%$sysconfdir%g
  3971. s%@sharedstatedir@%$sharedstatedir%g
  3972. s%@localstatedir@%$localstatedir%g
  3973. s%@libdir@%$libdir%g
  3974. s%@includedir@%$includedir%g
  3975. s%@oldincludedir@%$oldincludedir%g
  3976. s%@infodir@%$infodir%g
  3977. s%@mandir@%$mandir%g
  3978. s%@egg_ac_parameters@%$egg_ac_parameters%g
  3979. s%@CC@%$CC%g
  3980. s%@CPP@%$CPP%g
  3981. s%@SET_MAKE@%$SET_MAKE%g
  3982. s%@HEAD_1@%$HEAD_1%g
  3983. s%@STRIP@%$STRIP%g
  3984. s%@AWK@%$AWK%g
  3985. s%@BASENAME@%$BASENAME%g
  3986. s%@UNAME@%$UNAME%g
  3987. s%@ZLIB@%$ZLIB%g
  3988. s%@SSL@%$SSL%g
  3989. s%@TCLLIB@%$TCLLIB%g
  3990. s%@TCLLIBFN@%$TCLLIBFN%g
  3991. s%@TCLINC@%$TCLINC%g
  3992. s%@TCLINCFN@%$TCLINCFN%g
  3993. s%@TCL_REQS@%$TCL_REQS%g
  3994. s%@TCL_LIBS@%$TCL_LIBS%g
  3995. s%@VERSION@%$VERSION%g
  3996. s%@NUMVER@%$NUMVER%g
  3997. s%@PACKNAME@%$PACKNAME%g
  3998. s%@MOD_UPDIR@%$MOD_UPDIR%g
  3999. CEOF
  4000. EOF
  4001. cat >> $CONFIG_STATUS <<\EOF
  4002. # Split the substitutions into bite-sized pieces for seds with
  4003. # small command number limits, like on Digital OSF/1 and HP-UX.
  4004. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  4005. ac_file=1 # Number of current file.
  4006. ac_beg=1 # First line for current file.
  4007. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  4008. ac_more_lines=:
  4009. ac_sed_cmds=""
  4010. while $ac_more_lines; do
  4011. if test $ac_beg -gt 1; then
  4012. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  4013. else
  4014. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  4015. fi
  4016. if test ! -s conftest.s$ac_file; then
  4017. ac_more_lines=false
  4018. rm -f conftest.s$ac_file
  4019. else
  4020. if test -z "$ac_sed_cmds"; then
  4021. ac_sed_cmds="sed -f conftest.s$ac_file"
  4022. else
  4023. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  4024. fi
  4025. ac_file=`expr $ac_file + 1`
  4026. ac_beg=$ac_end
  4027. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  4028. fi
  4029. done
  4030. if test -z "$ac_sed_cmds"; then
  4031. ac_sed_cmds=cat
  4032. fi
  4033. EOF
  4034. cat >> $CONFIG_STATUS <<EOF
  4035. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/compat/Makefile src/mod/Makefile"}
  4036. EOF
  4037. cat >> $CONFIG_STATUS <<\EOF
  4038. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4039. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4040. case "$ac_file" in
  4041. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  4042. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4043. *) ac_file_in="${ac_file}.in" ;;
  4044. esac
  4045. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  4046. # Remove last slash and all that follows it. Not all systems have dirname.
  4047. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4048. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4049. # The file is in a subdirectory.
  4050. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4051. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  4052. # A "../" for each directory in $ac_dir_suffix.
  4053. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4054. else
  4055. ac_dir_suffix= ac_dots=
  4056. fi
  4057. case "$ac_given_srcdir" in
  4058. .) srcdir=.
  4059. if test -z "$ac_dots"; then top_srcdir=.
  4060. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4061. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4062. *) # Relative path.
  4063. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4064. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4065. esac
  4066. echo creating "$ac_file"
  4067. rm -f "$ac_file"
  4068. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4069. case "$ac_file" in
  4070. *Makefile*) ac_comsub="1i\\
  4071. # $configure_input" ;;
  4072. *) ac_comsub= ;;
  4073. esac
  4074. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  4075. sed -e "$ac_comsub
  4076. s%@configure_input@%$configure_input%g
  4077. s%@srcdir@%$srcdir%g
  4078. s%@top_srcdir@%$top_srcdir%g
  4079. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  4080. fi; done
  4081. rm -f conftest.s*
  4082. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4083. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4084. #
  4085. # ac_d sets the value in "#define NAME VALUE" lines.
  4086. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  4087. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  4088. ac_dC='\3'
  4089. ac_dD='%g'
  4090. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4091. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4092. ac_uB='\([ ]\)%\1#\2define\3'
  4093. ac_uC=' '
  4094. ac_uD='\4%g'
  4095. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4096. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4097. ac_eB='$%\1#\2define\3'
  4098. ac_eC=' '
  4099. ac_eD='%g'
  4100. if test "${CONFIG_HEADERS+set}" != set; then
  4101. EOF
  4102. cat >> $CONFIG_STATUS <<EOF
  4103. CONFIG_HEADERS="config.h"
  4104. EOF
  4105. cat >> $CONFIG_STATUS <<\EOF
  4106. fi
  4107. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4108. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4109. case "$ac_file" in
  4110. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  4111. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4112. *) ac_file_in="${ac_file}.in" ;;
  4113. esac
  4114. echo creating $ac_file
  4115. rm -f conftest.frag conftest.in conftest.out
  4116. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  4117. cat $ac_file_inputs > conftest.in
  4118. EOF
  4119. # Transform confdefs.h into a sed script conftest.vals that substitutes
  4120. # the proper values into config.h.in to produce config.h. And first:
  4121. # Protect against being on the right side of a sed subst in config.status.
  4122. # Protect against being in an unquoted here document in config.status.
  4123. rm -f conftest.vals
  4124. cat > conftest.hdr <<\EOF
  4125. s/[\\&%]/\\&/g
  4126. s%[\\$`]%\\&%g
  4127. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4128. s%ac_d%ac_u%gp
  4129. s%ac_u%ac_e%gp
  4130. EOF
  4131. sed -n -f conftest.hdr confdefs.h > conftest.vals
  4132. rm -f conftest.hdr
  4133. # This sed command replaces #undef with comments. This is necessary, for
  4134. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4135. # on some systems where configure will not decide to define it.
  4136. cat >> conftest.vals <<\EOF
  4137. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4138. EOF
  4139. # Break up conftest.vals because some shells have a limit on
  4140. # the size of here documents, and old seds have small limits too.
  4141. rm -f conftest.tail
  4142. while :
  4143. do
  4144. ac_lines=`grep -c . conftest.vals`
  4145. # grep -c gives empty output for an empty file on some AIX systems.
  4146. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4147. # Write a limited-size here document to conftest.frag.
  4148. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4149. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4150. echo 'CEOF
  4151. sed -f conftest.frag conftest.in > conftest.out
  4152. rm -f conftest.in
  4153. mv conftest.out conftest.in
  4154. ' >> $CONFIG_STATUS
  4155. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4156. rm -f conftest.vals
  4157. mv conftest.tail conftest.vals
  4158. done
  4159. rm -f conftest.vals
  4160. cat >> $CONFIG_STATUS <<\EOF
  4161. rm -f conftest.frag conftest.h
  4162. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  4163. cat conftest.in >> conftest.h
  4164. rm -f conftest.in
  4165. if cmp -s $ac_file conftest.h 2>/dev/null; then
  4166. echo "$ac_file is unchanged"
  4167. rm -f conftest.h
  4168. else
  4169. # Remove last slash and all that follows it. Not all systems have dirname.
  4170. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4171. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4172. # The file is in a subdirectory.
  4173. test ! -d "$ac_dir" && mkdir "$ac_dir"
  4174. fi
  4175. rm -f $ac_file
  4176. mv conftest.h $ac_file
  4177. fi
  4178. fi; done
  4179. EOF
  4180. cat >> $CONFIG_STATUS <<EOF
  4181. egg_tclinc="$TCLINC"
  4182. egg_tclincfn="$TCLINCFN"
  4183. EOF
  4184. cat >> $CONFIG_STATUS <<\EOF
  4185. egg_replace_file="lush.h"
  4186. echo "creating lush.h"
  4187. cat > conftest.out << EGGEOF
  4188. /* Ignore me but do not erase me. I am a kludge. */
  4189. #include "$egg_tclinc/$egg_tclincfn"
  4190. EGGEOF
  4191. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file
  4192. then
  4193. echo "lush.h is unchanged"
  4194. else
  4195. mv conftest.out $egg_replace_file
  4196. fi
  4197. rm -f conftest.out
  4198. if test -f .modules
  4199. then
  4200. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  4201. fi
  4202. exit 0
  4203. EOF
  4204. chmod +x $CONFIG_STATUS
  4205. rm -fr confdefs* $ac_clean_files
  4206. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1