configure 119 KB

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