configure 118 KB

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