configure 147 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430
  1. #! /bin/sh
  2. # From configure.in Revision: 11312 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be more Bourne compatible
  14. DUALCASE=1; export DUALCASE # for MKS sh
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. setopt NO_GLOB_SUBST
  22. else
  23. case `(set -o) 2>/dev/null` in
  24. *posix*) set -o posix ;;
  25. esac
  26. fi
  27. # PATH needs CR
  28. # Avoid depending upon Character Ranges.
  29. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  30. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  32. as_cr_digits='0123456789'
  33. as_cr_alnum=$as_cr_Letters$as_cr_digits
  34. # The user is always right.
  35. if test "${PATH_SEPARATOR+set}" != set; then
  36. echo "#! /bin/sh" >conf$$.sh
  37. echo "exit 0" >>conf$$.sh
  38. chmod +x conf$$.sh
  39. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  40. PATH_SEPARATOR=';'
  41. else
  42. PATH_SEPARATOR=:
  43. fi
  44. rm -f conf$$.sh
  45. fi
  46. # Support unset when possible.
  47. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  48. as_unset=unset
  49. else
  50. as_unset=false
  51. fi
  52. # IFS
  53. # We need space, tab and new line, in precisely that order. Quoting is
  54. # there to prevent editors from complaining about space-tab.
  55. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  56. # splitting by setting IFS to empty value.)
  57. as_nl='
  58. '
  59. IFS=" "" $as_nl"
  60. # Find who we are. Look in the path if we contain no directory separator.
  61. case $0 in
  62. *[\\/]* ) as_myself=$0 ;;
  63. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64. for as_dir in $PATH
  65. do
  66. IFS=$as_save_IFS
  67. test -z "$as_dir" && as_dir=.
  68. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  69. done
  70. IFS=$as_save_IFS
  71. ;;
  72. esac
  73. # We did not find ourselves, most probably we were run as `sh COMMAND'
  74. # in which case we are not to be found in the path.
  75. if test "x$as_myself" = x; then
  76. as_myself=$0
  77. fi
  78. if test ! -f "$as_myself"; then
  79. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  80. { (exit 1); exit 1; }
  81. fi
  82. # Work around bugs in pre-3.0 UWIN ksh.
  83. for as_var in ENV MAIL MAILPATH
  84. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  85. done
  86. PS1='$ '
  87. PS2='> '
  88. PS4='+ '
  89. # NLS nuisances.
  90. for as_var in \
  91. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  92. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  93. LC_TELEPHONE LC_TIME
  94. do
  95. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  96. eval $as_var=C; export $as_var
  97. else
  98. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  99. fi
  100. done
  101. # Required to use basename.
  102. if expr a : '\(a\)' >/dev/null 2>&1 &&
  103. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  104. as_expr=expr
  105. else
  106. as_expr=false
  107. fi
  108. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  109. as_basename=basename
  110. else
  111. as_basename=false
  112. fi
  113. # Name of the executable.
  114. as_me=`$as_basename -- "$0" ||
  115. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  116. X"$0" : 'X\(//\)$' \| \
  117. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  118. echo X/"$0" |
  119. sed '/^.*\/\([^/][^/]*\)\/*$/{
  120. s//\1/
  121. q
  122. }
  123. /^X\/\(\/\/\)$/{
  124. s//\1/
  125. q
  126. }
  127. /^X\/\(\/\).*/{
  128. s//\1/
  129. q
  130. }
  131. s/.*/./; q'`
  132. # CDPATH.
  133. $as_unset CDPATH
  134. if test "x$CONFIG_SHELL" = x; then
  135. if (eval ":") 2>/dev/null; then
  136. as_have_required=yes
  137. else
  138. as_have_required=no
  139. fi
  140. if test $as_have_required = yes && (eval ":
  141. (as_func_return () {
  142. (exit \$1)
  143. }
  144. as_func_success () {
  145. as_func_return 0
  146. }
  147. as_func_failure () {
  148. as_func_return 1
  149. }
  150. as_func_ret_success () {
  151. return 0
  152. }
  153. as_func_ret_failure () {
  154. return 1
  155. }
  156. exitcode=0
  157. if as_func_success; then
  158. :
  159. else
  160. exitcode=1
  161. echo as_func_success failed.
  162. fi
  163. if as_func_failure; then
  164. exitcode=1
  165. echo as_func_failure succeeded.
  166. fi
  167. if as_func_ret_success; then
  168. :
  169. else
  170. exitcode=1
  171. echo as_func_ret_success failed.
  172. fi
  173. if as_func_ret_failure; then
  174. exitcode=1
  175. echo as_func_ret_failure succeeded.
  176. fi
  177. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  178. :
  179. else
  180. exitcode=1
  181. echo positional parameters were not saved.
  182. fi
  183. test \$exitcode = 0) || { (exit 1); exit 1; }
  184. (
  185. as_lineno_1=\$LINENO
  186. as_lineno_2=\$LINENO
  187. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  188. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  189. ") 2> /dev/null; then
  190. :
  191. else
  192. as_candidate_shells=
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. case $as_dir in
  199. /*)
  200. for as_base in sh bash ksh sh5; do
  201. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  202. done;;
  203. esac
  204. done
  205. IFS=$as_save_IFS
  206. for as_shell in $as_candidate_shells $SHELL; do
  207. # Try only shells that exist, to save several forks.
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { ("$as_shell") 2> /dev/null <<\_ASEOF
  210. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  211. emulate sh
  212. NULLCMD=:
  213. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  214. # is contrary to our usage. Disable this feature.
  215. alias -g '${1+"$@"}'='"$@"'
  216. setopt NO_GLOB_SUBST
  217. else
  218. case `(set -o) 2>/dev/null` in
  219. *posix*) set -o posix ;;
  220. esac
  221. fi
  222. :
  223. _ASEOF
  224. }; then
  225. CONFIG_SHELL=$as_shell
  226. as_have_required=yes
  227. if { "$as_shell" 2> /dev/null <<\_ASEOF
  228. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  229. emulate sh
  230. NULLCMD=:
  231. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  232. # is contrary to our usage. Disable this feature.
  233. alias -g '${1+"$@"}'='"$@"'
  234. setopt NO_GLOB_SUBST
  235. else
  236. case `(set -o) 2>/dev/null` in
  237. *posix*) set -o posix ;;
  238. esac
  239. fi
  240. :
  241. (as_func_return () {
  242. (exit $1)
  243. }
  244. as_func_success () {
  245. as_func_return 0
  246. }
  247. as_func_failure () {
  248. as_func_return 1
  249. }
  250. as_func_ret_success () {
  251. return 0
  252. }
  253. as_func_ret_failure () {
  254. return 1
  255. }
  256. exitcode=0
  257. if as_func_success; then
  258. :
  259. else
  260. exitcode=1
  261. echo as_func_success failed.
  262. fi
  263. if as_func_failure; then
  264. exitcode=1
  265. echo as_func_failure succeeded.
  266. fi
  267. if as_func_ret_success; then
  268. :
  269. else
  270. exitcode=1
  271. echo as_func_ret_success failed.
  272. fi
  273. if as_func_ret_failure; then
  274. exitcode=1
  275. echo as_func_ret_failure succeeded.
  276. fi
  277. if ( set x; as_func_ret_success y && test x = "$1" ); then
  278. :
  279. else
  280. exitcode=1
  281. echo positional parameters were not saved.
  282. fi
  283. test $exitcode = 0) || { (exit 1); exit 1; }
  284. (
  285. as_lineno_1=$LINENO
  286. as_lineno_2=$LINENO
  287. test "x$as_lineno_1" != "x$as_lineno_2" &&
  288. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  289. _ASEOF
  290. }; then
  291. break
  292. fi
  293. fi
  294. done
  295. if test "x$CONFIG_SHELL" != x; then
  296. for as_var in BASH_ENV ENV
  297. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  298. done
  299. export CONFIG_SHELL
  300. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  301. fi
  302. if test $as_have_required = no; then
  303. echo This script requires a shell more modern than all the
  304. echo shells that I found on your system. Please install a
  305. echo modern shell, or manually run the script under such a
  306. echo shell if you do have one.
  307. { (exit 1); exit 1; }
  308. fi
  309. fi
  310. fi
  311. (eval "as_func_return () {
  312. (exit \$1)
  313. }
  314. as_func_success () {
  315. as_func_return 0
  316. }
  317. as_func_failure () {
  318. as_func_return 1
  319. }
  320. as_func_ret_success () {
  321. return 0
  322. }
  323. as_func_ret_failure () {
  324. return 1
  325. }
  326. exitcode=0
  327. if as_func_success; then
  328. :
  329. else
  330. exitcode=1
  331. echo as_func_success failed.
  332. fi
  333. if as_func_failure; then
  334. exitcode=1
  335. echo as_func_failure succeeded.
  336. fi
  337. if as_func_ret_success; then
  338. :
  339. else
  340. exitcode=1
  341. echo as_func_ret_success failed.
  342. fi
  343. if as_func_ret_failure; then
  344. exitcode=1
  345. echo as_func_ret_failure succeeded.
  346. fi
  347. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  348. :
  349. else
  350. exitcode=1
  351. echo positional parameters were not saved.
  352. fi
  353. test \$exitcode = 0") || {
  354. echo No shell found that supports shell functions.
  355. echo Please tell autoconf@gnu.org about your system,
  356. echo including any error possibly output before this
  357. echo message
  358. }
  359. as_lineno_1=$LINENO
  360. as_lineno_2=$LINENO
  361. test "x$as_lineno_1" != "x$as_lineno_2" &&
  362. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  363. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  364. # uniformly replaced by the line number. The first 'sed' inserts a
  365. # line-number line after each line using $LINENO; the second 'sed'
  366. # does the real work. The second script uses 'N' to pair each
  367. # line-number line with the line containing $LINENO, and appends
  368. # trailing '-' during substitution so that $LINENO is not a special
  369. # case at line end.
  370. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  371. # scripts with optimization help from Paolo Bonzini. Blame Lee
  372. # E. McMahon (1931-1989) for sed's syntax. :-)
  373. sed -n '
  374. p
  375. /[$]LINENO/=
  376. ' <$as_myself |
  377. sed '
  378. s/[$]LINENO.*/&-/
  379. t lineno
  380. b
  381. :lineno
  382. N
  383. :loop
  384. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  385. t loop
  386. s/-\n.*//
  387. ' >$as_me.lineno &&
  388. chmod +x "$as_me.lineno" ||
  389. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  390. { (exit 1); exit 1; }; }
  391. # Don't try to exec as it changes $[0], causing all sort of problems
  392. # (the dirname of $[0] is not the place where we might find the
  393. # original and so on. Autoconf is especially sensitive to this).
  394. . "./$as_me.lineno"
  395. # Exit status is that of the last command.
  396. exit
  397. }
  398. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  399. as_dirname=dirname
  400. else
  401. as_dirname=false
  402. fi
  403. ECHO_C= ECHO_N= ECHO_T=
  404. case `echo -n x` in
  405. -n*)
  406. case `echo 'x\c'` in
  407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  408. *) ECHO_C='\c';;
  409. esac;;
  410. *)
  411. ECHO_N='-n';;
  412. esac
  413. if expr a : '\(a\)' >/dev/null 2>&1 &&
  414. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  415. as_expr=expr
  416. else
  417. as_expr=false
  418. fi
  419. rm -f conf$$ conf$$.exe conf$$.file
  420. if test -d conf$$.dir; then
  421. rm -f conf$$.dir/conf$$.file
  422. else
  423. rm -f conf$$.dir
  424. mkdir conf$$.dir
  425. fi
  426. echo >conf$$.file
  427. if ln -s conf$$.file conf$$ 2>/dev/null; then
  428. as_ln_s='ln -s'
  429. # ... but there are two gotchas:
  430. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  431. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  432. # In both cases, we have to default to `cp -p'.
  433. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  434. as_ln_s='cp -p'
  435. elif ln conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s=ln
  437. else
  438. as_ln_s='cp -p'
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  441. rmdir conf$$.dir 2>/dev/null
  442. if mkdir -p . 2>/dev/null; then
  443. as_mkdir_p=:
  444. else
  445. test -d ./-p && rmdir ./-p
  446. as_mkdir_p=false
  447. fi
  448. if test -x / >/dev/null 2>&1; then
  449. as_test_x='test -x'
  450. else
  451. if ls -dL / >/dev/null 2>&1; then
  452. as_ls_L_option=L
  453. else
  454. as_ls_L_option=
  455. fi
  456. as_test_x='
  457. eval sh -c '\''
  458. if test -d "$1"; then
  459. test -d "$1/.";
  460. else
  461. case $1 in
  462. -*)set "./$1";;
  463. esac;
  464. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  465. ???[sx]*):;;*)false;;esac;fi
  466. '\'' sh
  467. '
  468. fi
  469. as_executable_p=$as_test_x
  470. # Sed expression to map a string onto a valid CPP name.
  471. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  472. # Sed expression to map a string onto a valid variable name.
  473. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  474. exec 7<&0 </dev/null 6>&1
  475. # Name of the host.
  476. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  477. # so uname gets run too.
  478. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  479. #
  480. # Initializations.
  481. #
  482. ac_default_prefix=/usr/local
  483. ac_clean_files=
  484. ac_config_libobj_dir=.
  485. LIBOBJS=
  486. cross_compiling=no
  487. subdirs=
  488. MFLAGS=
  489. MAKEFLAGS=
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. # Identity of this package.
  492. PACKAGE_NAME=
  493. PACKAGE_TARNAME=
  494. PACKAGE_VERSION=
  495. PACKAGE_STRING=
  496. PACKAGE_BUGREPORT=
  497. ac_unique_file="eAthena"
  498. ac_unique_file="src/common/cbasetypes.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. SET_MAKE
  572. CC
  573. CFLAGS
  574. LDFLAGS
  575. CPPFLAGS
  576. ac_ct_CC
  577. EXEEXT
  578. OBJEXT
  579. CPP
  580. GREP
  581. EGREP
  582. MYSQL_CONFIG_HOME
  583. HAVE_MYSQL
  584. MYSQL_VERSION
  585. MYSQL_CFLAGS
  586. MYSQL_LIBS
  587. HAVE_PCRE
  588. PCRE_LIBS
  589. PCRE_CFLAGS
  590. DLLEXT
  591. LIBOBJS
  592. LTLIBOBJS'
  593. ac_subst_files=''
  594. ac_precious_vars='build_alias
  595. host_alias
  596. target_alias
  597. CC
  598. CFLAGS
  599. LDFLAGS
  600. LIBS
  601. CPPFLAGS
  602. CPP'
  603. # Initialize some variables set by options.
  604. ac_init_help=
  605. ac_init_version=false
  606. # The variables have the same names as the options, with
  607. # dashes changed to underlines.
  608. cache_file=/dev/null
  609. exec_prefix=NONE
  610. no_create=
  611. no_recursion=
  612. prefix=NONE
  613. program_prefix=NONE
  614. program_suffix=NONE
  615. program_transform_name=s,x,x,
  616. silent=
  617. site=
  618. srcdir=
  619. verbose=
  620. x_includes=NONE
  621. x_libraries=NONE
  622. # Installation directory options.
  623. # These are left unexpanded so users can "make install exec_prefix=/foo"
  624. # and all the variables that are supposed to be based on exec_prefix
  625. # by default will actually change.
  626. # Use braces instead of parens because sh, perl, etc. also accept them.
  627. # (The list follows the same order as the GNU Coding Standards.)
  628. bindir='${exec_prefix}/bin'
  629. sbindir='${exec_prefix}/sbin'
  630. libexecdir='${exec_prefix}/libexec'
  631. datarootdir='${prefix}/share'
  632. datadir='${datarootdir}'
  633. sysconfdir='${prefix}/etc'
  634. sharedstatedir='${prefix}/com'
  635. localstatedir='${prefix}/var'
  636. includedir='${prefix}/include'
  637. oldincludedir='/usr/include'
  638. docdir='${datarootdir}/doc/${PACKAGE}'
  639. infodir='${datarootdir}/info'
  640. htmldir='${docdir}'
  641. dvidir='${docdir}'
  642. pdfdir='${docdir}'
  643. psdir='${docdir}'
  644. libdir='${exec_prefix}/lib'
  645. localedir='${datarootdir}/locale'
  646. mandir='${datarootdir}/man'
  647. ac_prev=
  648. ac_dashdash=
  649. for ac_option
  650. do
  651. # If the previous option needs an argument, assign it.
  652. if test -n "$ac_prev"; then
  653. eval $ac_prev=\$ac_option
  654. ac_prev=
  655. continue
  656. fi
  657. case $ac_option in
  658. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  659. *) ac_optarg=yes ;;
  660. esac
  661. # Accept the important Cygnus configure options, so we can diagnose typos.
  662. case $ac_dashdash$ac_option in
  663. --)
  664. ac_dashdash=yes ;;
  665. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  666. ac_prev=bindir ;;
  667. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  668. bindir=$ac_optarg ;;
  669. -build | --build | --buil | --bui | --bu)
  670. ac_prev=build_alias ;;
  671. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  672. build_alias=$ac_optarg ;;
  673. -cache-file | --cache-file | --cache-fil | --cache-fi \
  674. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  675. ac_prev=cache_file ;;
  676. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  677. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  678. cache_file=$ac_optarg ;;
  679. --config-cache | -C)
  680. cache_file=config.cache ;;
  681. -datadir | --datadir | --datadi | --datad)
  682. ac_prev=datadir ;;
  683. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  684. datadir=$ac_optarg ;;
  685. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  686. | --dataroo | --dataro | --datar)
  687. ac_prev=datarootdir ;;
  688. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  689. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  690. datarootdir=$ac_optarg ;;
  691. -disable-* | --disable-*)
  692. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  693. # Reject names that are not valid shell variable names.
  694. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  695. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  696. { (exit 1); exit 1; }; }
  697. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  698. eval enable_$ac_feature=no ;;
  699. -docdir | --docdir | --docdi | --doc | --do)
  700. ac_prev=docdir ;;
  701. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  702. docdir=$ac_optarg ;;
  703. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  704. ac_prev=dvidir ;;
  705. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  706. dvidir=$ac_optarg ;;
  707. -enable-* | --enable-*)
  708. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  709. # Reject names that are not valid shell variable names.
  710. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  711. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  712. { (exit 1); exit 1; }; }
  713. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  714. eval enable_$ac_feature=\$ac_optarg ;;
  715. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  716. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  717. | --exec | --exe | --ex)
  718. ac_prev=exec_prefix ;;
  719. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  720. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  721. | --exec=* | --exe=* | --ex=*)
  722. exec_prefix=$ac_optarg ;;
  723. -gas | --gas | --ga | --g)
  724. # Obsolete; use --with-gas.
  725. with_gas=yes ;;
  726. -help | --help | --hel | --he | -h)
  727. ac_init_help=long ;;
  728. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  729. ac_init_help=recursive ;;
  730. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  731. ac_init_help=short ;;
  732. -host | --host | --hos | --ho)
  733. ac_prev=host_alias ;;
  734. -host=* | --host=* | --hos=* | --ho=*)
  735. host_alias=$ac_optarg ;;
  736. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  737. ac_prev=htmldir ;;
  738. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  739. | --ht=*)
  740. htmldir=$ac_optarg ;;
  741. -includedir | --includedir | --includedi | --included | --include \
  742. | --includ | --inclu | --incl | --inc)
  743. ac_prev=includedir ;;
  744. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  745. | --includ=* | --inclu=* | --incl=* | --inc=*)
  746. includedir=$ac_optarg ;;
  747. -infodir | --infodir | --infodi | --infod | --info | --inf)
  748. ac_prev=infodir ;;
  749. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  750. infodir=$ac_optarg ;;
  751. -libdir | --libdir | --libdi | --libd)
  752. ac_prev=libdir ;;
  753. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  754. libdir=$ac_optarg ;;
  755. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  756. | --libexe | --libex | --libe)
  757. ac_prev=libexecdir ;;
  758. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  759. | --libexe=* | --libex=* | --libe=*)
  760. libexecdir=$ac_optarg ;;
  761. -localedir | --localedir | --localedi | --localed | --locale)
  762. ac_prev=localedir ;;
  763. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  764. localedir=$ac_optarg ;;
  765. -localstatedir | --localstatedir | --localstatedi | --localstated \
  766. | --localstate | --localstat | --localsta | --localst | --locals)
  767. ac_prev=localstatedir ;;
  768. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  769. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  770. localstatedir=$ac_optarg ;;
  771. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  772. ac_prev=mandir ;;
  773. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  774. mandir=$ac_optarg ;;
  775. -nfp | --nfp | --nf)
  776. # Obsolete; use --without-fp.
  777. with_fp=no ;;
  778. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  779. | --no-cr | --no-c | -n)
  780. no_create=yes ;;
  781. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  782. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  783. no_recursion=yes ;;
  784. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  785. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  786. | --oldin | --oldi | --old | --ol | --o)
  787. ac_prev=oldincludedir ;;
  788. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  789. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  790. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  791. oldincludedir=$ac_optarg ;;
  792. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  793. ac_prev=prefix ;;
  794. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  795. prefix=$ac_optarg ;;
  796. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  797. | --program-pre | --program-pr | --program-p)
  798. ac_prev=program_prefix ;;
  799. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  800. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  801. program_prefix=$ac_optarg ;;
  802. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  803. | --program-suf | --program-su | --program-s)
  804. ac_prev=program_suffix ;;
  805. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  806. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  807. program_suffix=$ac_optarg ;;
  808. -program-transform-name | --program-transform-name \
  809. | --program-transform-nam | --program-transform-na \
  810. | --program-transform-n | --program-transform- \
  811. | --program-transform | --program-transfor \
  812. | --program-transfo | --program-transf \
  813. | --program-trans | --program-tran \
  814. | --progr-tra | --program-tr | --program-t)
  815. ac_prev=program_transform_name ;;
  816. -program-transform-name=* | --program-transform-name=* \
  817. | --program-transform-nam=* | --program-transform-na=* \
  818. | --program-transform-n=* | --program-transform-=* \
  819. | --program-transform=* | --program-transfor=* \
  820. | --program-transfo=* | --program-transf=* \
  821. | --program-trans=* | --program-tran=* \
  822. | --progr-tra=* | --program-tr=* | --program-t=*)
  823. program_transform_name=$ac_optarg ;;
  824. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  825. ac_prev=pdfdir ;;
  826. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  827. pdfdir=$ac_optarg ;;
  828. -psdir | --psdir | --psdi | --psd | --ps)
  829. ac_prev=psdir ;;
  830. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  831. psdir=$ac_optarg ;;
  832. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  833. | -silent | --silent | --silen | --sile | --sil)
  834. silent=yes ;;
  835. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  836. ac_prev=sbindir ;;
  837. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  838. | --sbi=* | --sb=*)
  839. sbindir=$ac_optarg ;;
  840. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  841. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  842. | --sharedst | --shareds | --shared | --share | --shar \
  843. | --sha | --sh)
  844. ac_prev=sharedstatedir ;;
  845. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  846. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  847. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  848. | --sha=* | --sh=*)
  849. sharedstatedir=$ac_optarg ;;
  850. -site | --site | --sit)
  851. ac_prev=site ;;
  852. -site=* | --site=* | --sit=*)
  853. site=$ac_optarg ;;
  854. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  855. ac_prev=srcdir ;;
  856. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  857. srcdir=$ac_optarg ;;
  858. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  859. | --syscon | --sysco | --sysc | --sys | --sy)
  860. ac_prev=sysconfdir ;;
  861. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  862. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  863. sysconfdir=$ac_optarg ;;
  864. -target | --target | --targe | --targ | --tar | --ta | --t)
  865. ac_prev=target_alias ;;
  866. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  867. target_alias=$ac_optarg ;;
  868. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  869. verbose=yes ;;
  870. -version | --version | --versio | --versi | --vers | -V)
  871. ac_init_version=: ;;
  872. -with-* | --with-*)
  873. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  874. # Reject names that are not valid shell variable names.
  875. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  876. { echo "$as_me: error: invalid package name: $ac_package" >&2
  877. { (exit 1); exit 1; }; }
  878. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  879. eval with_$ac_package=\$ac_optarg ;;
  880. -without-* | --without-*)
  881. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  882. # Reject names that are not valid shell variable names.
  883. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  884. { echo "$as_me: error: invalid package name: $ac_package" >&2
  885. { (exit 1); exit 1; }; }
  886. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  887. eval with_$ac_package=no ;;
  888. --x)
  889. # Obsolete; use --with-x.
  890. with_x=yes ;;
  891. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  892. | --x-incl | --x-inc | --x-in | --x-i)
  893. ac_prev=x_includes ;;
  894. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  895. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  896. x_includes=$ac_optarg ;;
  897. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  898. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  899. ac_prev=x_libraries ;;
  900. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  901. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  902. x_libraries=$ac_optarg ;;
  903. -*) { echo "$as_me: error: unrecognized option: $ac_option
  904. Try \`$0 --help' for more information." >&2
  905. { (exit 1); exit 1; }; }
  906. ;;
  907. *=*)
  908. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  911. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  912. { (exit 1); exit 1; }; }
  913. eval $ac_envvar=\$ac_optarg
  914. export $ac_envvar ;;
  915. *)
  916. # FIXME: should be removed in autoconf 3.0.
  917. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  918. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  919. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  920. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  921. ;;
  922. esac
  923. done
  924. if test -n "$ac_prev"; then
  925. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  926. { echo "$as_me: error: missing argument to $ac_option" >&2
  927. { (exit 1); exit 1; }; }
  928. fi
  929. # Be sure to have absolute directory names.
  930. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  931. datadir sysconfdir sharedstatedir localstatedir includedir \
  932. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  933. libdir localedir mandir
  934. do
  935. eval ac_val=\$$ac_var
  936. case $ac_val in
  937. [\\/$]* | ?:[\\/]* ) continue;;
  938. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  939. esac
  940. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  941. { (exit 1); exit 1; }; }
  942. done
  943. # There might be people who depend on the old broken behavior: `$host'
  944. # used to hold the argument of --host etc.
  945. # FIXME: To remove some day.
  946. build=$build_alias
  947. host=$host_alias
  948. target=$target_alias
  949. # FIXME: To remove some day.
  950. if test "x$host_alias" != x; then
  951. if test "x$build_alias" = x; then
  952. cross_compiling=maybe
  953. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  954. If a cross compiler is detected then cross compile mode will be used." >&2
  955. elif test "x$build_alias" != "x$host_alias"; then
  956. cross_compiling=yes
  957. fi
  958. fi
  959. ac_tool_prefix=
  960. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  961. test "$silent" = yes && exec 6>/dev/null
  962. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  963. ac_ls_di=`ls -di .` &&
  964. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  965. { echo "$as_me: error: Working directory cannot be determined" >&2
  966. { (exit 1); exit 1; }; }
  967. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  968. { echo "$as_me: error: pwd does not report name of working directory" >&2
  969. { (exit 1); exit 1; }; }
  970. # Find the source files, if location was not specified.
  971. if test -z "$srcdir"; then
  972. ac_srcdir_defaulted=yes
  973. # Try the directory containing this script, then the parent directory.
  974. ac_confdir=`$as_dirname -- "$0" ||
  975. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  976. X"$0" : 'X\(//\)[^/]' \| \
  977. X"$0" : 'X\(//\)$' \| \
  978. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  979. echo X"$0" |
  980. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  981. s//\1/
  982. q
  983. }
  984. /^X\(\/\/\)[^/].*/{
  985. s//\1/
  986. q
  987. }
  988. /^X\(\/\/\)$/{
  989. s//\1/
  990. q
  991. }
  992. /^X\(\/\).*/{
  993. s//\1/
  994. q
  995. }
  996. s/.*/./; q'`
  997. srcdir=$ac_confdir
  998. if test ! -r "$srcdir/$ac_unique_file"; then
  999. srcdir=..
  1000. fi
  1001. else
  1002. ac_srcdir_defaulted=no
  1003. fi
  1004. if test ! -r "$srcdir/$ac_unique_file"; then
  1005. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1006. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1007. { (exit 1); exit 1; }; }
  1008. fi
  1009. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1010. ac_abs_confdir=`(
  1011. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1012. { (exit 1); exit 1; }; }
  1013. pwd)`
  1014. # When building in place, set srcdir=.
  1015. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1016. srcdir=.
  1017. fi
  1018. # Remove unnecessary trailing slashes from srcdir.
  1019. # Double slashes in file names in object file debugging info
  1020. # mess up M-x gdb in Emacs.
  1021. case $srcdir in
  1022. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1023. esac
  1024. for ac_var in $ac_precious_vars; do
  1025. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1026. eval ac_env_${ac_var}_value=\$${ac_var}
  1027. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1028. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1029. done
  1030. #
  1031. # Report the --help message.
  1032. #
  1033. if test "$ac_init_help" = "long"; then
  1034. # Omit some internal or obsolete options to make the list less imposing.
  1035. # This message is too long to be a string in the A/UX 3.1 sh.
  1036. cat <<_ACEOF
  1037. \`configure' configures this package to adapt to many kinds of systems.
  1038. Usage: $0 [OPTION]... [VAR=VALUE]...
  1039. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1040. VAR=VALUE. See below for descriptions of some of the useful variables.
  1041. Defaults for the options are specified in brackets.
  1042. Configuration:
  1043. -h, --help display this help and exit
  1044. --help=short display options specific to this package
  1045. --help=recursive display the short help of all the included packages
  1046. -V, --version display version information and exit
  1047. -q, --quiet, --silent do not print \`checking...' messages
  1048. --cache-file=FILE cache test results in FILE [disabled]
  1049. -C, --config-cache alias for \`--cache-file=config.cache'
  1050. -n, --no-create do not create output files
  1051. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1052. Installation directories:
  1053. --prefix=PREFIX install architecture-independent files in PREFIX
  1054. [$ac_default_prefix]
  1055. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1056. [PREFIX]
  1057. By default, \`make install' will install all the files in
  1058. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1059. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1060. for instance \`--prefix=\$HOME'.
  1061. For better control, use the options below.
  1062. Fine tuning of the installation directories:
  1063. --bindir=DIR user executables [EPREFIX/bin]
  1064. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1065. --libexecdir=DIR program executables [EPREFIX/libexec]
  1066. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1067. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1068. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1069. --libdir=DIR object code libraries [EPREFIX/lib]
  1070. --includedir=DIR C header files [PREFIX/include]
  1071. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1072. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1073. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1074. --infodir=DIR info documentation [DATAROOTDIR/info]
  1075. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1076. --mandir=DIR man documentation [DATAROOTDIR/man]
  1077. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1078. --htmldir=DIR html documentation [DOCDIR]
  1079. --dvidir=DIR dvi documentation [DOCDIR]
  1080. --pdfdir=DIR pdf documentation [DOCDIR]
  1081. --psdir=DIR ps documentation [DOCDIR]
  1082. _ACEOF
  1083. cat <<\_ACEOF
  1084. _ACEOF
  1085. fi
  1086. if test -n "$ac_init_help"; then
  1087. cat <<\_ACEOF
  1088. Optional Packages:
  1089. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1090. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1091. --with-mysql=[ARG] use MySQL client library [default=yes], optionally
  1092. specify path to the mysql_config executable
  1093. --with-pcre=[ARG] use PCRE library [default=yes], optionally specify
  1094. the root directory path of pcre installation
  1095. --with-zlib=DIR root directory path of zlib installation (defaults
  1096. to /usr/local or /usr if not found in /usr/local)
  1097. Some influential environment variables:
  1098. CC C compiler command
  1099. CFLAGS C compiler flags
  1100. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1101. nonstandard directory <lib dir>
  1102. LIBS libraries to pass to the linker, e.g. -l<library>
  1103. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1104. you have headers in a nonstandard directory <include dir>
  1105. CPP C preprocessor
  1106. Use these variables to override the choices made by `configure' or to help
  1107. it to find libraries and programs with nonstandard names/locations.
  1108. _ACEOF
  1109. ac_status=$?
  1110. fi
  1111. if test "$ac_init_help" = "recursive"; then
  1112. # If there are subdirs, report their specific --help.
  1113. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1114. test -d "$ac_dir" || continue
  1115. ac_builddir=.
  1116. case "$ac_dir" in
  1117. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1118. *)
  1119. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1120. # A ".." for each directory in $ac_dir_suffix.
  1121. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1122. case $ac_top_builddir_sub in
  1123. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1124. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1125. esac ;;
  1126. esac
  1127. ac_abs_top_builddir=$ac_pwd
  1128. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1129. # for backward compatibility:
  1130. ac_top_builddir=$ac_top_build_prefix
  1131. case $srcdir in
  1132. .) # We are building in place.
  1133. ac_srcdir=.
  1134. ac_top_srcdir=$ac_top_builddir_sub
  1135. ac_abs_top_srcdir=$ac_pwd ;;
  1136. [\\/]* | ?:[\\/]* ) # Absolute name.
  1137. ac_srcdir=$srcdir$ac_dir_suffix;
  1138. ac_top_srcdir=$srcdir
  1139. ac_abs_top_srcdir=$srcdir ;;
  1140. *) # Relative name.
  1141. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1142. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1143. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1144. esac
  1145. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1146. cd "$ac_dir" || { ac_status=$?; continue; }
  1147. # Check for guested configure.
  1148. if test -f "$ac_srcdir/configure.gnu"; then
  1149. echo &&
  1150. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1151. elif test -f "$ac_srcdir/configure"; then
  1152. echo &&
  1153. $SHELL "$ac_srcdir/configure" --help=recursive
  1154. else
  1155. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1156. fi || ac_status=$?
  1157. cd "$ac_pwd" || { ac_status=$?; break; }
  1158. done
  1159. fi
  1160. test -n "$ac_init_help" && exit $ac_status
  1161. if $ac_init_version; then
  1162. cat <<\_ACEOF
  1163. configure
  1164. generated by GNU Autoconf 2.61
  1165. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1166. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1167. This configure script is free software; the Free Software Foundation
  1168. gives unlimited permission to copy, distribute and modify it.
  1169. _ACEOF
  1170. exit
  1171. fi
  1172. cat >config.log <<_ACEOF
  1173. This file contains any messages produced by compilers while
  1174. running configure, to aid debugging if configure makes a mistake.
  1175. It was created by $as_me, which was
  1176. generated by GNU Autoconf 2.61. Invocation command line was
  1177. $ $0 $@
  1178. _ACEOF
  1179. exec 5>>config.log
  1180. {
  1181. cat <<_ASUNAME
  1182. ## --------- ##
  1183. ## Platform. ##
  1184. ## --------- ##
  1185. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1186. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1187. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1188. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1189. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1190. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1191. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1192. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1193. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1194. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1195. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1196. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1197. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1198. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1199. _ASUNAME
  1200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1201. for as_dir in $PATH
  1202. do
  1203. IFS=$as_save_IFS
  1204. test -z "$as_dir" && as_dir=.
  1205. echo "PATH: $as_dir"
  1206. done
  1207. IFS=$as_save_IFS
  1208. } >&5
  1209. cat >&5 <<_ACEOF
  1210. ## ----------- ##
  1211. ## Core tests. ##
  1212. ## ----------- ##
  1213. _ACEOF
  1214. # Keep a trace of the command line.
  1215. # Strip out --no-create and --no-recursion so they do not pile up.
  1216. # Strip out --silent because we don't want to record it for future runs.
  1217. # Also quote any args containing shell meta-characters.
  1218. # Make two passes to allow for proper duplicate-argument suppression.
  1219. ac_configure_args=
  1220. ac_configure_args0=
  1221. ac_configure_args1=
  1222. ac_must_keep_next=false
  1223. for ac_pass in 1 2
  1224. do
  1225. for ac_arg
  1226. do
  1227. case $ac_arg in
  1228. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1229. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1230. | -silent | --silent | --silen | --sile | --sil)
  1231. continue ;;
  1232. *\'*)
  1233. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1234. esac
  1235. case $ac_pass in
  1236. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1237. 2)
  1238. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1239. if test $ac_must_keep_next = true; then
  1240. ac_must_keep_next=false # Got value, back to normal.
  1241. else
  1242. case $ac_arg in
  1243. *=* | --config-cache | -C | -disable-* | --disable-* \
  1244. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1245. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1246. | -with-* | --with-* | -without-* | --without-* | --x)
  1247. case "$ac_configure_args0 " in
  1248. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1249. esac
  1250. ;;
  1251. -* ) ac_must_keep_next=true ;;
  1252. esac
  1253. fi
  1254. ac_configure_args="$ac_configure_args '$ac_arg'"
  1255. ;;
  1256. esac
  1257. done
  1258. done
  1259. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1260. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1261. # When interrupted or exit'd, cleanup temporary files, and complete
  1262. # config.log. We remove comments because anyway the quotes in there
  1263. # would cause problems or look ugly.
  1264. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1265. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1266. trap 'exit_status=$?
  1267. # Save into config.log some information that might help in debugging.
  1268. {
  1269. echo
  1270. cat <<\_ASBOX
  1271. ## ---------------- ##
  1272. ## Cache variables. ##
  1273. ## ---------------- ##
  1274. _ASBOX
  1275. echo
  1276. # The following way of writing the cache mishandles newlines in values,
  1277. (
  1278. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1279. eval ac_val=\$$ac_var
  1280. case $ac_val in #(
  1281. *${as_nl}*)
  1282. case $ac_var in #(
  1283. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1284. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1285. esac
  1286. case $ac_var in #(
  1287. _ | IFS | as_nl) ;; #(
  1288. *) $as_unset $ac_var ;;
  1289. esac ;;
  1290. esac
  1291. done
  1292. (set) 2>&1 |
  1293. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1294. *${as_nl}ac_space=\ *)
  1295. sed -n \
  1296. "s/'\''/'\''\\\\'\'''\''/g;
  1297. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1298. ;; #(
  1299. *)
  1300. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1301. ;;
  1302. esac |
  1303. sort
  1304. )
  1305. echo
  1306. cat <<\_ASBOX
  1307. ## ----------------- ##
  1308. ## Output variables. ##
  1309. ## ----------------- ##
  1310. _ASBOX
  1311. echo
  1312. for ac_var in $ac_subst_vars
  1313. do
  1314. eval ac_val=\$$ac_var
  1315. case $ac_val in
  1316. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1317. esac
  1318. echo "$ac_var='\''$ac_val'\''"
  1319. done | sort
  1320. echo
  1321. if test -n "$ac_subst_files"; then
  1322. cat <<\_ASBOX
  1323. ## ------------------- ##
  1324. ## File substitutions. ##
  1325. ## ------------------- ##
  1326. _ASBOX
  1327. echo
  1328. for ac_var in $ac_subst_files
  1329. do
  1330. eval ac_val=\$$ac_var
  1331. case $ac_val in
  1332. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1333. esac
  1334. echo "$ac_var='\''$ac_val'\''"
  1335. done | sort
  1336. echo
  1337. fi
  1338. if test -s confdefs.h; then
  1339. cat <<\_ASBOX
  1340. ## ----------- ##
  1341. ## confdefs.h. ##
  1342. ## ----------- ##
  1343. _ASBOX
  1344. echo
  1345. cat confdefs.h
  1346. echo
  1347. fi
  1348. test "$ac_signal" != 0 &&
  1349. echo "$as_me: caught signal $ac_signal"
  1350. echo "$as_me: exit $exit_status"
  1351. } >&5
  1352. rm -f core *.core core.conftest.* &&
  1353. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1354. exit $exit_status
  1355. ' 0
  1356. for ac_signal in 1 2 13 15; do
  1357. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1358. done
  1359. ac_signal=0
  1360. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1361. rm -f -r conftest* confdefs.h
  1362. # Predefined preprocessor variables.
  1363. cat >>confdefs.h <<_ACEOF
  1364. #define PACKAGE_NAME "$PACKAGE_NAME"
  1365. _ACEOF
  1366. cat >>confdefs.h <<_ACEOF
  1367. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1368. _ACEOF
  1369. cat >>confdefs.h <<_ACEOF
  1370. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1371. _ACEOF
  1372. cat >>confdefs.h <<_ACEOF
  1373. #define PACKAGE_STRING "$PACKAGE_STRING"
  1374. _ACEOF
  1375. cat >>confdefs.h <<_ACEOF
  1376. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1377. _ACEOF
  1378. # Let the site file select an alternate cache file if it wants to.
  1379. # Prefer explicitly selected file to automatically selected ones.
  1380. if test -n "$CONFIG_SITE"; then
  1381. set x "$CONFIG_SITE"
  1382. elif test "x$prefix" != xNONE; then
  1383. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1384. else
  1385. set x "$ac_default_prefix/share/config.site" \
  1386. "$ac_default_prefix/etc/config.site"
  1387. fi
  1388. shift
  1389. for ac_site_file
  1390. do
  1391. if test -r "$ac_site_file"; then
  1392. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1393. echo "$as_me: loading site script $ac_site_file" >&6;}
  1394. sed 's/^/| /' "$ac_site_file" >&5
  1395. . "$ac_site_file"
  1396. fi
  1397. done
  1398. if test -r "$cache_file"; then
  1399. # Some versions of bash will fail to source /dev/null (special
  1400. # files actually), so we avoid doing that.
  1401. if test -f "$cache_file"; then
  1402. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1403. echo "$as_me: loading cache $cache_file" >&6;}
  1404. case $cache_file in
  1405. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1406. *) . "./$cache_file";;
  1407. esac
  1408. fi
  1409. else
  1410. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1411. echo "$as_me: creating cache $cache_file" >&6;}
  1412. >$cache_file
  1413. fi
  1414. # Check that the precious variables saved in the cache have kept the same
  1415. # value.
  1416. ac_cache_corrupted=false
  1417. for ac_var in $ac_precious_vars; do
  1418. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1419. eval ac_new_set=\$ac_env_${ac_var}_set
  1420. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1421. eval ac_new_val=\$ac_env_${ac_var}_value
  1422. case $ac_old_set,$ac_new_set in
  1423. set,)
  1424. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1425. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1426. ac_cache_corrupted=: ;;
  1427. ,set)
  1428. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1429. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1430. ac_cache_corrupted=: ;;
  1431. ,);;
  1432. *)
  1433. if test "x$ac_old_val" != "x$ac_new_val"; then
  1434. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1435. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1436. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1437. echo "$as_me: former value: $ac_old_val" >&2;}
  1438. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1439. echo "$as_me: current value: $ac_new_val" >&2;}
  1440. ac_cache_corrupted=:
  1441. fi;;
  1442. esac
  1443. # Pass precious variables to config.status.
  1444. if test "$ac_new_set" = set; then
  1445. case $ac_new_val in
  1446. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1447. *) ac_arg=$ac_var=$ac_new_val ;;
  1448. esac
  1449. case " $ac_configure_args " in
  1450. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1451. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1452. esac
  1453. fi
  1454. done
  1455. if $ac_cache_corrupted; then
  1456. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1457. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1458. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1459. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1460. { (exit 1); exit 1; }; }
  1461. fi
  1462. ac_ext=c
  1463. ac_cpp='$CPP $CPPFLAGS'
  1464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1467. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1468. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile src/ladmin/Makefile"
  1469. ac_config_files="$ac_config_files src/char_sql/Makefile src/login_sql/Makefile src/txt-converter/Makefile"
  1470. ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile"
  1471. #
  1472. # Enable/disable MySql and optionally specify the path (optional library)
  1473. #
  1474. # Check whether --with-mysql was given.
  1475. if test "${with_mysql+set}" = set; then
  1476. withval=$with_mysql;
  1477. if test "$withval" = "no" ; then
  1478. want_mysql="no"
  1479. else
  1480. want_mysql="yes"
  1481. require_mysql="yes"
  1482. if test "$withval" != "yes" ; then
  1483. MYSQL_CONFIG_HOME="$withval"
  1484. fi
  1485. fi
  1486. else
  1487. want_mysql="yes" require_mysql="no"
  1488. fi
  1489. #
  1490. # Enable/disable PCRE and optionally specify the path (optional library)
  1491. #
  1492. # Check whether --with-pcre was given.
  1493. if test "${with_pcre+set}" = set; then
  1494. withval=$with_pcre;
  1495. if test "$withval" = "no" ; then
  1496. want_pcre="no"
  1497. else
  1498. want_pcre="yes"
  1499. require_pcre="yes"
  1500. if test "$withval" != "yes" ; then
  1501. PCRE_HOME="$withval"
  1502. fi
  1503. fi
  1504. else
  1505. want_pcre="yes" require_pcre="no"
  1506. fi
  1507. #
  1508. # Specify the path of the zlib library (required library)
  1509. #
  1510. # Check whether --with-zlib was given.
  1511. if test "${with_zlib+set}" = set; then
  1512. withval=$with_zlib;
  1513. test -n "$withval" && ZLIB_HOME="$withval"
  1514. else
  1515. ZLIB_HOME=/usr/local
  1516. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  1517. fi
  1518. ###############################################################################
  1519. # Checks for programs and types.
  1520. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1521. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1522. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1523. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1524. echo $ECHO_N "(cached) $ECHO_C" >&6
  1525. else
  1526. cat >conftest.make <<\_ACEOF
  1527. SHELL = /bin/sh
  1528. all:
  1529. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1530. _ACEOF
  1531. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1532. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1533. *@@@%%%=?*=@@@%%%*)
  1534. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1535. *)
  1536. eval ac_cv_prog_make_${ac_make}_set=no;;
  1537. esac
  1538. rm -f conftest.make
  1539. fi
  1540. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1541. { echo "$as_me:$LINENO: result: yes" >&5
  1542. echo "${ECHO_T}yes" >&6; }
  1543. SET_MAKE=
  1544. else
  1545. { echo "$as_me:$LINENO: result: no" >&5
  1546. echo "${ECHO_T}no" >&6; }
  1547. SET_MAKE="MAKE=${MAKE-make}"
  1548. fi
  1549. ac_ext=c
  1550. ac_cpp='$CPP $CPPFLAGS'
  1551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1554. if test -n "$ac_tool_prefix"; then
  1555. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1556. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1557. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1558. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1559. if test "${ac_cv_prog_CC+set}" = set; then
  1560. echo $ECHO_N "(cached) $ECHO_C" >&6
  1561. else
  1562. if test -n "$CC"; then
  1563. ac_cv_prog_CC="$CC" # Let the user override the test.
  1564. else
  1565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1566. for as_dir in $PATH
  1567. do
  1568. IFS=$as_save_IFS
  1569. test -z "$as_dir" && as_dir=.
  1570. for ac_exec_ext in '' $ac_executable_extensions; do
  1571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1572. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1573. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1574. break 2
  1575. fi
  1576. done
  1577. done
  1578. IFS=$as_save_IFS
  1579. fi
  1580. fi
  1581. CC=$ac_cv_prog_CC
  1582. if test -n "$CC"; then
  1583. { echo "$as_me:$LINENO: result: $CC" >&5
  1584. echo "${ECHO_T}$CC" >&6; }
  1585. else
  1586. { echo "$as_me:$LINENO: result: no" >&5
  1587. echo "${ECHO_T}no" >&6; }
  1588. fi
  1589. fi
  1590. if test -z "$ac_cv_prog_CC"; then
  1591. ac_ct_CC=$CC
  1592. # Extract the first word of "gcc", so it can be a program name with args.
  1593. set dummy gcc; ac_word=$2
  1594. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1595. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1596. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1597. echo $ECHO_N "(cached) $ECHO_C" >&6
  1598. else
  1599. if test -n "$ac_ct_CC"; then
  1600. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1601. else
  1602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1603. for as_dir in $PATH
  1604. do
  1605. IFS=$as_save_IFS
  1606. test -z "$as_dir" && as_dir=.
  1607. for ac_exec_ext in '' $ac_executable_extensions; do
  1608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1609. ac_cv_prog_ac_ct_CC="gcc"
  1610. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1611. break 2
  1612. fi
  1613. done
  1614. done
  1615. IFS=$as_save_IFS
  1616. fi
  1617. fi
  1618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1619. if test -n "$ac_ct_CC"; then
  1620. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1621. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1622. else
  1623. { echo "$as_me:$LINENO: result: no" >&5
  1624. echo "${ECHO_T}no" >&6; }
  1625. fi
  1626. if test "x$ac_ct_CC" = x; then
  1627. CC=""
  1628. else
  1629. case $cross_compiling:$ac_tool_warned in
  1630. yes:)
  1631. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1632. whose name does not start with the host triplet. If you think this
  1633. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1634. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1635. whose name does not start with the host triplet. If you think this
  1636. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1637. ac_tool_warned=yes ;;
  1638. esac
  1639. CC=$ac_ct_CC
  1640. fi
  1641. else
  1642. CC="$ac_cv_prog_CC"
  1643. fi
  1644. if test -z "$CC"; then
  1645. if test -n "$ac_tool_prefix"; then
  1646. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1647. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1648. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1649. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1650. if test "${ac_cv_prog_CC+set}" = set; then
  1651. echo $ECHO_N "(cached) $ECHO_C" >&6
  1652. else
  1653. if test -n "$CC"; then
  1654. ac_cv_prog_CC="$CC" # Let the user override the test.
  1655. else
  1656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1657. for as_dir in $PATH
  1658. do
  1659. IFS=$as_save_IFS
  1660. test -z "$as_dir" && as_dir=.
  1661. for ac_exec_ext in '' $ac_executable_extensions; do
  1662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1663. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1664. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1665. break 2
  1666. fi
  1667. done
  1668. done
  1669. IFS=$as_save_IFS
  1670. fi
  1671. fi
  1672. CC=$ac_cv_prog_CC
  1673. if test -n "$CC"; then
  1674. { echo "$as_me:$LINENO: result: $CC" >&5
  1675. echo "${ECHO_T}$CC" >&6; }
  1676. else
  1677. { echo "$as_me:$LINENO: result: no" >&5
  1678. echo "${ECHO_T}no" >&6; }
  1679. fi
  1680. fi
  1681. fi
  1682. if test -z "$CC"; then
  1683. # Extract the first word of "cc", so it can be a program name with args.
  1684. set dummy cc; ac_word=$2
  1685. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1686. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1687. if test "${ac_cv_prog_CC+set}" = set; then
  1688. echo $ECHO_N "(cached) $ECHO_C" >&6
  1689. else
  1690. if test -n "$CC"; then
  1691. ac_cv_prog_CC="$CC" # Let the user override the test.
  1692. else
  1693. ac_prog_rejected=no
  1694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1695. for as_dir in $PATH
  1696. do
  1697. IFS=$as_save_IFS
  1698. test -z "$as_dir" && as_dir=.
  1699. for ac_exec_ext in '' $ac_executable_extensions; do
  1700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1701. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1702. ac_prog_rejected=yes
  1703. continue
  1704. fi
  1705. ac_cv_prog_CC="cc"
  1706. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1707. break 2
  1708. fi
  1709. done
  1710. done
  1711. IFS=$as_save_IFS
  1712. if test $ac_prog_rejected = yes; then
  1713. # We found a bogon in the path, so make sure we never use it.
  1714. set dummy $ac_cv_prog_CC
  1715. shift
  1716. if test $# != 0; then
  1717. # We chose a different compiler from the bogus one.
  1718. # However, it has the same basename, so the bogon will be chosen
  1719. # first if we set CC to just the basename; use the full file name.
  1720. shift
  1721. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1722. fi
  1723. fi
  1724. fi
  1725. fi
  1726. CC=$ac_cv_prog_CC
  1727. if test -n "$CC"; then
  1728. { echo "$as_me:$LINENO: result: $CC" >&5
  1729. echo "${ECHO_T}$CC" >&6; }
  1730. else
  1731. { echo "$as_me:$LINENO: result: no" >&5
  1732. echo "${ECHO_T}no" >&6; }
  1733. fi
  1734. fi
  1735. if test -z "$CC"; then
  1736. if test -n "$ac_tool_prefix"; then
  1737. for ac_prog in cl.exe
  1738. do
  1739. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1740. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1741. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1742. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1743. if test "${ac_cv_prog_CC+set}" = set; then
  1744. echo $ECHO_N "(cached) $ECHO_C" >&6
  1745. else
  1746. if test -n "$CC"; then
  1747. ac_cv_prog_CC="$CC" # Let the user override the test.
  1748. else
  1749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1750. for as_dir in $PATH
  1751. do
  1752. IFS=$as_save_IFS
  1753. test -z "$as_dir" && as_dir=.
  1754. for ac_exec_ext in '' $ac_executable_extensions; do
  1755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1756. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1757. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1758. break 2
  1759. fi
  1760. done
  1761. done
  1762. IFS=$as_save_IFS
  1763. fi
  1764. fi
  1765. CC=$ac_cv_prog_CC
  1766. if test -n "$CC"; then
  1767. { echo "$as_me:$LINENO: result: $CC" >&5
  1768. echo "${ECHO_T}$CC" >&6; }
  1769. else
  1770. { echo "$as_me:$LINENO: result: no" >&5
  1771. echo "${ECHO_T}no" >&6; }
  1772. fi
  1773. test -n "$CC" && break
  1774. done
  1775. fi
  1776. if test -z "$CC"; then
  1777. ac_ct_CC=$CC
  1778. for ac_prog in cl.exe
  1779. do
  1780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1781. set dummy $ac_prog; ac_word=$2
  1782. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1783. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1784. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. if test -n "$ac_ct_CC"; then
  1788. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1789. else
  1790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1791. for as_dir in $PATH
  1792. do
  1793. IFS=$as_save_IFS
  1794. test -z "$as_dir" && as_dir=.
  1795. for ac_exec_ext in '' $ac_executable_extensions; do
  1796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1797. ac_cv_prog_ac_ct_CC="$ac_prog"
  1798. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1799. break 2
  1800. fi
  1801. done
  1802. done
  1803. IFS=$as_save_IFS
  1804. fi
  1805. fi
  1806. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1807. if test -n "$ac_ct_CC"; then
  1808. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1809. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1810. else
  1811. { echo "$as_me:$LINENO: result: no" >&5
  1812. echo "${ECHO_T}no" >&6; }
  1813. fi
  1814. test -n "$ac_ct_CC" && break
  1815. done
  1816. if test "x$ac_ct_CC" = x; then
  1817. CC=""
  1818. else
  1819. case $cross_compiling:$ac_tool_warned in
  1820. yes:)
  1821. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1822. whose name does not start with the host triplet. If you think this
  1823. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1824. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1825. whose name does not start with the host triplet. If you think this
  1826. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1827. ac_tool_warned=yes ;;
  1828. esac
  1829. CC=$ac_ct_CC
  1830. fi
  1831. fi
  1832. fi
  1833. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1834. See \`config.log' for more details." >&5
  1835. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1836. See \`config.log' for more details." >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. # Provide some information about the compiler.
  1839. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1840. ac_compiler=`set X $ac_compile; echo $2`
  1841. { (ac_try="$ac_compiler --version >&5"
  1842. case "(($ac_try" in
  1843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1844. *) ac_try_echo=$ac_try;;
  1845. esac
  1846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1847. (eval "$ac_compiler --version >&5") 2>&5
  1848. ac_status=$?
  1849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1850. (exit $ac_status); }
  1851. { (ac_try="$ac_compiler -v >&5"
  1852. case "(($ac_try" in
  1853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1854. *) ac_try_echo=$ac_try;;
  1855. esac
  1856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1857. (eval "$ac_compiler -v >&5") 2>&5
  1858. ac_status=$?
  1859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1860. (exit $ac_status); }
  1861. { (ac_try="$ac_compiler -V >&5"
  1862. case "(($ac_try" in
  1863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1864. *) ac_try_echo=$ac_try;;
  1865. esac
  1866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1867. (eval "$ac_compiler -V >&5") 2>&5
  1868. ac_status=$?
  1869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1870. (exit $ac_status); }
  1871. cat >conftest.$ac_ext <<_ACEOF
  1872. /* confdefs.h. */
  1873. _ACEOF
  1874. cat confdefs.h >>conftest.$ac_ext
  1875. cat >>conftest.$ac_ext <<_ACEOF
  1876. /* end confdefs.h. */
  1877. int
  1878. main ()
  1879. {
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. ac_clean_files_save=$ac_clean_files
  1885. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1886. # Try to create an executable without -o first, disregard a.out.
  1887. # It will help us diagnose broken compilers, and finding out an intuition
  1888. # of exeext.
  1889. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1890. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1891. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1892. #
  1893. # List of possible output files, starting from the most likely.
  1894. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1895. # only as a last resort. b.out is created by i960 compilers.
  1896. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1897. #
  1898. # The IRIX 6 linker writes into existing files which may not be
  1899. # executable, retaining their permissions. Remove them first so a
  1900. # subsequent execution test works.
  1901. ac_rmfiles=
  1902. for ac_file in $ac_files
  1903. do
  1904. case $ac_file in
  1905. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1906. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1907. esac
  1908. done
  1909. rm -f $ac_rmfiles
  1910. if { (ac_try="$ac_link_default"
  1911. case "(($ac_try" in
  1912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1913. *) ac_try_echo=$ac_try;;
  1914. esac
  1915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1916. (eval "$ac_link_default") 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; then
  1920. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1921. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1922. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1923. # so that the user can short-circuit this test for compilers unknown to
  1924. # Autoconf.
  1925. for ac_file in $ac_files ''
  1926. do
  1927. test -f "$ac_file" || continue
  1928. case $ac_file in
  1929. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1930. ;;
  1931. [ab].out )
  1932. # We found the default executable, but exeext='' is most
  1933. # certainly right.
  1934. break;;
  1935. *.* )
  1936. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1937. then :; else
  1938. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1939. fi
  1940. # We set ac_cv_exeext here because the later test for it is not
  1941. # safe: cross compilers may not add the suffix if given an `-o'
  1942. # argument, so we may need to know it at that point already.
  1943. # Even if this section looks crufty: it has the advantage of
  1944. # actually working.
  1945. break;;
  1946. * )
  1947. break;;
  1948. esac
  1949. done
  1950. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1951. else
  1952. ac_file=''
  1953. fi
  1954. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1955. echo "${ECHO_T}$ac_file" >&6; }
  1956. if test -z "$ac_file"; then
  1957. echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1960. See \`config.log' for more details." >&5
  1961. echo "$as_me: error: C compiler cannot create executables
  1962. See \`config.log' for more details." >&2;}
  1963. { (exit 77); exit 77; }; }
  1964. fi
  1965. ac_exeext=$ac_cv_exeext
  1966. # Check that the compiler produces executables we can run. If not, either
  1967. # the compiler is broken, or we cross compile.
  1968. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1969. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1970. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1971. # If not cross compiling, check that we can run a simple program.
  1972. if test "$cross_compiling" != yes; then
  1973. if { ac_try='./$ac_file'
  1974. { (case "(($ac_try" in
  1975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1976. *) ac_try_echo=$ac_try;;
  1977. esac
  1978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1979. (eval "$ac_try") 2>&5
  1980. ac_status=$?
  1981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1982. (exit $ac_status); }; }; then
  1983. cross_compiling=no
  1984. else
  1985. if test "$cross_compiling" = maybe; then
  1986. cross_compiling=yes
  1987. else
  1988. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1989. If you meant to cross compile, use \`--host'.
  1990. See \`config.log' for more details." >&5
  1991. echo "$as_me: error: cannot run C compiled programs.
  1992. If you meant to cross compile, use \`--host'.
  1993. See \`config.log' for more details." >&2;}
  1994. { (exit 1); exit 1; }; }
  1995. fi
  1996. fi
  1997. fi
  1998. { echo "$as_me:$LINENO: result: yes" >&5
  1999. echo "${ECHO_T}yes" >&6; }
  2000. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2001. ac_clean_files=$ac_clean_files_save
  2002. # Check that the compiler produces executables we can run. If not, either
  2003. # the compiler is broken, or we cross compile.
  2004. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2005. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2006. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2007. echo "${ECHO_T}$cross_compiling" >&6; }
  2008. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2009. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2010. if { (ac_try="$ac_link"
  2011. case "(($ac_try" in
  2012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2013. *) ac_try_echo=$ac_try;;
  2014. esac
  2015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2016. (eval "$ac_link") 2>&5
  2017. ac_status=$?
  2018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2019. (exit $ac_status); }; then
  2020. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2021. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2022. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2023. # `rm'.
  2024. for ac_file in conftest.exe conftest conftest.*; do
  2025. test -f "$ac_file" || continue
  2026. case $ac_file in
  2027. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2028. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2029. break;;
  2030. * ) break;;
  2031. esac
  2032. done
  2033. else
  2034. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2035. See \`config.log' for more details." >&5
  2036. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2037. See \`config.log' for more details." >&2;}
  2038. { (exit 1); exit 1; }; }
  2039. fi
  2040. rm -f conftest$ac_cv_exeext
  2041. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2042. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2043. rm -f conftest.$ac_ext
  2044. EXEEXT=$ac_cv_exeext
  2045. ac_exeext=$EXEEXT
  2046. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2047. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2048. if test "${ac_cv_objext+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. cat >conftest.$ac_ext <<_ACEOF
  2052. /* confdefs.h. */
  2053. _ACEOF
  2054. cat confdefs.h >>conftest.$ac_ext
  2055. cat >>conftest.$ac_ext <<_ACEOF
  2056. /* end confdefs.h. */
  2057. int
  2058. main ()
  2059. {
  2060. ;
  2061. return 0;
  2062. }
  2063. _ACEOF
  2064. rm -f conftest.o conftest.obj
  2065. if { (ac_try="$ac_compile"
  2066. case "(($ac_try" in
  2067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2068. *) ac_try_echo=$ac_try;;
  2069. esac
  2070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2071. (eval "$ac_compile") 2>&5
  2072. ac_status=$?
  2073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2074. (exit $ac_status); }; then
  2075. for ac_file in conftest.o conftest.obj conftest.*; do
  2076. test -f "$ac_file" || continue;
  2077. case $ac_file in
  2078. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2079. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2080. break;;
  2081. esac
  2082. done
  2083. else
  2084. echo "$as_me: failed program was:" >&5
  2085. sed 's/^/| /' conftest.$ac_ext >&5
  2086. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2087. See \`config.log' for more details." >&5
  2088. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2089. See \`config.log' for more details." >&2;}
  2090. { (exit 1); exit 1; }; }
  2091. fi
  2092. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2093. fi
  2094. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2095. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2096. OBJEXT=$ac_cv_objext
  2097. ac_objext=$OBJEXT
  2098. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2099. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2100. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2101. echo $ECHO_N "(cached) $ECHO_C" >&6
  2102. else
  2103. cat >conftest.$ac_ext <<_ACEOF
  2104. /* confdefs.h. */
  2105. _ACEOF
  2106. cat confdefs.h >>conftest.$ac_ext
  2107. cat >>conftest.$ac_ext <<_ACEOF
  2108. /* end confdefs.h. */
  2109. int
  2110. main ()
  2111. {
  2112. #ifndef __GNUC__
  2113. choke me
  2114. #endif
  2115. ;
  2116. return 0;
  2117. }
  2118. _ACEOF
  2119. rm -f conftest.$ac_objext
  2120. if { (ac_try="$ac_compile"
  2121. case "(($ac_try" in
  2122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2123. *) ac_try_echo=$ac_try;;
  2124. esac
  2125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2126. (eval "$ac_compile") 2>conftest.er1
  2127. ac_status=$?
  2128. grep -v '^ *+' conftest.er1 >conftest.err
  2129. rm -f conftest.er1
  2130. cat conftest.err >&5
  2131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2132. (exit $ac_status); } && {
  2133. test -z "$ac_c_werror_flag" ||
  2134. test ! -s conftest.err
  2135. } && test -s conftest.$ac_objext; then
  2136. ac_compiler_gnu=yes
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. ac_compiler_gnu=no
  2141. fi
  2142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2143. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2144. fi
  2145. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2146. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2147. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2148. ac_test_CFLAGS=${CFLAGS+set}
  2149. ac_save_CFLAGS=$CFLAGS
  2150. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2151. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2152. if test "${ac_cv_prog_cc_g+set}" = set; then
  2153. echo $ECHO_N "(cached) $ECHO_C" >&6
  2154. else
  2155. ac_save_c_werror_flag=$ac_c_werror_flag
  2156. ac_c_werror_flag=yes
  2157. ac_cv_prog_cc_g=no
  2158. CFLAGS="-g"
  2159. cat >conftest.$ac_ext <<_ACEOF
  2160. /* confdefs.h. */
  2161. _ACEOF
  2162. cat confdefs.h >>conftest.$ac_ext
  2163. cat >>conftest.$ac_ext <<_ACEOF
  2164. /* end confdefs.h. */
  2165. int
  2166. main ()
  2167. {
  2168. ;
  2169. return 0;
  2170. }
  2171. _ACEOF
  2172. rm -f conftest.$ac_objext
  2173. if { (ac_try="$ac_compile"
  2174. case "(($ac_try" in
  2175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2176. *) ac_try_echo=$ac_try;;
  2177. esac
  2178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2179. (eval "$ac_compile") 2>conftest.er1
  2180. ac_status=$?
  2181. grep -v '^ *+' conftest.er1 >conftest.err
  2182. rm -f conftest.er1
  2183. cat conftest.err >&5
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); } && {
  2186. test -z "$ac_c_werror_flag" ||
  2187. test ! -s conftest.err
  2188. } && test -s conftest.$ac_objext; then
  2189. ac_cv_prog_cc_g=yes
  2190. else
  2191. echo "$as_me: failed program was:" >&5
  2192. sed 's/^/| /' conftest.$ac_ext >&5
  2193. CFLAGS=""
  2194. cat >conftest.$ac_ext <<_ACEOF
  2195. /* confdefs.h. */
  2196. _ACEOF
  2197. cat confdefs.h >>conftest.$ac_ext
  2198. cat >>conftest.$ac_ext <<_ACEOF
  2199. /* end confdefs.h. */
  2200. int
  2201. main ()
  2202. {
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. rm -f conftest.$ac_objext
  2208. if { (ac_try="$ac_compile"
  2209. case "(($ac_try" in
  2210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2211. *) ac_try_echo=$ac_try;;
  2212. esac
  2213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2214. (eval "$ac_compile") 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } && {
  2221. test -z "$ac_c_werror_flag" ||
  2222. test ! -s conftest.err
  2223. } && test -s conftest.$ac_objext; then
  2224. :
  2225. else
  2226. echo "$as_me: failed program was:" >&5
  2227. sed 's/^/| /' conftest.$ac_ext >&5
  2228. ac_c_werror_flag=$ac_save_c_werror_flag
  2229. CFLAGS="-g"
  2230. cat >conftest.$ac_ext <<_ACEOF
  2231. /* confdefs.h. */
  2232. _ACEOF
  2233. cat confdefs.h >>conftest.$ac_ext
  2234. cat >>conftest.$ac_ext <<_ACEOF
  2235. /* end confdefs.h. */
  2236. int
  2237. main ()
  2238. {
  2239. ;
  2240. return 0;
  2241. }
  2242. _ACEOF
  2243. rm -f conftest.$ac_objext
  2244. if { (ac_try="$ac_compile"
  2245. case "(($ac_try" in
  2246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2247. *) ac_try_echo=$ac_try;;
  2248. esac
  2249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2250. (eval "$ac_compile") 2>conftest.er1
  2251. ac_status=$?
  2252. grep -v '^ *+' conftest.er1 >conftest.err
  2253. rm -f conftest.er1
  2254. cat conftest.err >&5
  2255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2256. (exit $ac_status); } && {
  2257. test -z "$ac_c_werror_flag" ||
  2258. test ! -s conftest.err
  2259. } && test -s conftest.$ac_objext; then
  2260. ac_cv_prog_cc_g=yes
  2261. else
  2262. echo "$as_me: failed program was:" >&5
  2263. sed 's/^/| /' conftest.$ac_ext >&5
  2264. fi
  2265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2266. fi
  2267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2268. fi
  2269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2270. ac_c_werror_flag=$ac_save_c_werror_flag
  2271. fi
  2272. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2273. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2274. if test "$ac_test_CFLAGS" = set; then
  2275. CFLAGS=$ac_save_CFLAGS
  2276. elif test $ac_cv_prog_cc_g = yes; then
  2277. if test "$GCC" = yes; then
  2278. CFLAGS="-g -O2"
  2279. else
  2280. CFLAGS="-g"
  2281. fi
  2282. else
  2283. if test "$GCC" = yes; then
  2284. CFLAGS="-O2"
  2285. else
  2286. CFLAGS=
  2287. fi
  2288. fi
  2289. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2290. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2291. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2292. echo $ECHO_N "(cached) $ECHO_C" >&6
  2293. else
  2294. ac_cv_prog_cc_c89=no
  2295. ac_save_CC=$CC
  2296. cat >conftest.$ac_ext <<_ACEOF
  2297. /* confdefs.h. */
  2298. _ACEOF
  2299. cat confdefs.h >>conftest.$ac_ext
  2300. cat >>conftest.$ac_ext <<_ACEOF
  2301. /* end confdefs.h. */
  2302. #include <stdarg.h>
  2303. #include <stdio.h>
  2304. #include <sys/types.h>
  2305. #include <sys/stat.h>
  2306. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2307. struct buf { int x; };
  2308. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2309. static char *e (p, i)
  2310. char **p;
  2311. int i;
  2312. {
  2313. return p[i];
  2314. }
  2315. static char *f (char * (*g) (char **, int), char **p, ...)
  2316. {
  2317. char *s;
  2318. va_list v;
  2319. va_start (v,p);
  2320. s = g (p, va_arg (v,int));
  2321. va_end (v);
  2322. return s;
  2323. }
  2324. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2325. function prototypes and stuff, but not '\xHH' hex character constants.
  2326. These don't provoke an error unfortunately, instead are silently treated
  2327. as 'x'. The following induces an error, until -std is added to get
  2328. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2329. array size at least. It's necessary to write '\x00'==0 to get something
  2330. that's true only with -std. */
  2331. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2332. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2333. inside strings and character constants. */
  2334. #define FOO(x) 'x'
  2335. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2336. int test (int i, double x);
  2337. struct s1 {int (*f) (int a);};
  2338. struct s2 {int (*f) (double a);};
  2339. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2340. int argc;
  2341. char **argv;
  2342. int
  2343. main ()
  2344. {
  2345. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2346. ;
  2347. return 0;
  2348. }
  2349. _ACEOF
  2350. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2351. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2352. do
  2353. CC="$ac_save_CC $ac_arg"
  2354. rm -f conftest.$ac_objext
  2355. if { (ac_try="$ac_compile"
  2356. case "(($ac_try" in
  2357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2358. *) ac_try_echo=$ac_try;;
  2359. esac
  2360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2361. (eval "$ac_compile") 2>conftest.er1
  2362. ac_status=$?
  2363. grep -v '^ *+' conftest.er1 >conftest.err
  2364. rm -f conftest.er1
  2365. cat conftest.err >&5
  2366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2367. (exit $ac_status); } && {
  2368. test -z "$ac_c_werror_flag" ||
  2369. test ! -s conftest.err
  2370. } && test -s conftest.$ac_objext; then
  2371. ac_cv_prog_cc_c89=$ac_arg
  2372. else
  2373. echo "$as_me: failed program was:" >&5
  2374. sed 's/^/| /' conftest.$ac_ext >&5
  2375. fi
  2376. rm -f core conftest.err conftest.$ac_objext
  2377. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2378. done
  2379. rm -f conftest.$ac_ext
  2380. CC=$ac_save_CC
  2381. fi
  2382. # AC_CACHE_VAL
  2383. case "x$ac_cv_prog_cc_c89" in
  2384. x)
  2385. { echo "$as_me:$LINENO: result: none needed" >&5
  2386. echo "${ECHO_T}none needed" >&6; } ;;
  2387. xno)
  2388. { echo "$as_me:$LINENO: result: unsupported" >&5
  2389. echo "${ECHO_T}unsupported" >&6; } ;;
  2390. *)
  2391. CC="$CC $ac_cv_prog_cc_c89"
  2392. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2393. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2394. esac
  2395. ac_ext=c
  2396. ac_cpp='$CPP $CPPFLAGS'
  2397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2400. ac_ext=c
  2401. ac_cpp='$CPP $CPPFLAGS'
  2402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2405. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2406. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2407. # On Suns, sometimes $CPP names a directory.
  2408. if test -n "$CPP" && test -d "$CPP"; then
  2409. CPP=
  2410. fi
  2411. if test -z "$CPP"; then
  2412. if test "${ac_cv_prog_CPP+set}" = set; then
  2413. echo $ECHO_N "(cached) $ECHO_C" >&6
  2414. else
  2415. # Double quotes because CPP needs to be expanded
  2416. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2417. do
  2418. ac_preproc_ok=false
  2419. for ac_c_preproc_warn_flag in '' yes
  2420. do
  2421. # Use a header file that comes with gcc, so configuring glibc
  2422. # with a fresh cross-compiler works.
  2423. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2424. # <limits.h> exists even on freestanding compilers.
  2425. # On the NeXT, cc -E runs the code through the compiler's parser,
  2426. # not just through cpp. "Syntax error" is here to catch this case.
  2427. cat >conftest.$ac_ext <<_ACEOF
  2428. /* confdefs.h. */
  2429. _ACEOF
  2430. cat confdefs.h >>conftest.$ac_ext
  2431. cat >>conftest.$ac_ext <<_ACEOF
  2432. /* end confdefs.h. */
  2433. #ifdef __STDC__
  2434. # include <limits.h>
  2435. #else
  2436. # include <assert.h>
  2437. #endif
  2438. Syntax error
  2439. _ACEOF
  2440. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2441. case "(($ac_try" in
  2442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2443. *) ac_try_echo=$ac_try;;
  2444. esac
  2445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2446. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2447. ac_status=$?
  2448. grep -v '^ *+' conftest.er1 >conftest.err
  2449. rm -f conftest.er1
  2450. cat conftest.err >&5
  2451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2452. (exit $ac_status); } >/dev/null && {
  2453. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2454. test ! -s conftest.err
  2455. }; then
  2456. :
  2457. else
  2458. echo "$as_me: failed program was:" >&5
  2459. sed 's/^/| /' conftest.$ac_ext >&5
  2460. # Broken: fails on valid input.
  2461. continue
  2462. fi
  2463. rm -f conftest.err conftest.$ac_ext
  2464. # OK, works on sane cases. Now check whether nonexistent headers
  2465. # can be detected and how.
  2466. cat >conftest.$ac_ext <<_ACEOF
  2467. /* confdefs.h. */
  2468. _ACEOF
  2469. cat confdefs.h >>conftest.$ac_ext
  2470. cat >>conftest.$ac_ext <<_ACEOF
  2471. /* end confdefs.h. */
  2472. #include <ac_nonexistent.h>
  2473. _ACEOF
  2474. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2475. case "(($ac_try" in
  2476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2477. *) ac_try_echo=$ac_try;;
  2478. esac
  2479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2480. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2481. ac_status=$?
  2482. grep -v '^ *+' conftest.er1 >conftest.err
  2483. rm -f conftest.er1
  2484. cat conftest.err >&5
  2485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2486. (exit $ac_status); } >/dev/null && {
  2487. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2488. test ! -s conftest.err
  2489. }; then
  2490. # Broken: success on invalid input.
  2491. continue
  2492. else
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. # Passes both tests.
  2496. ac_preproc_ok=:
  2497. break
  2498. fi
  2499. rm -f conftest.err conftest.$ac_ext
  2500. done
  2501. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2502. rm -f conftest.err conftest.$ac_ext
  2503. if $ac_preproc_ok; then
  2504. break
  2505. fi
  2506. done
  2507. ac_cv_prog_CPP=$CPP
  2508. fi
  2509. CPP=$ac_cv_prog_CPP
  2510. else
  2511. ac_cv_prog_CPP=$CPP
  2512. fi
  2513. { echo "$as_me:$LINENO: result: $CPP" >&5
  2514. echo "${ECHO_T}$CPP" >&6; }
  2515. ac_preproc_ok=false
  2516. for ac_c_preproc_warn_flag in '' yes
  2517. do
  2518. # Use a header file that comes with gcc, so configuring glibc
  2519. # with a fresh cross-compiler works.
  2520. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2521. # <limits.h> exists even on freestanding compilers.
  2522. # On the NeXT, cc -E runs the code through the compiler's parser,
  2523. # not just through cpp. "Syntax error" is here to catch this case.
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. #ifdef __STDC__
  2531. # include <limits.h>
  2532. #else
  2533. # include <assert.h>
  2534. #endif
  2535. Syntax error
  2536. _ACEOF
  2537. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2538. case "(($ac_try" in
  2539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2540. *) ac_try_echo=$ac_try;;
  2541. esac
  2542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2543. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2544. ac_status=$?
  2545. grep -v '^ *+' conftest.er1 >conftest.err
  2546. rm -f conftest.er1
  2547. cat conftest.err >&5
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); } >/dev/null && {
  2550. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2551. test ! -s conftest.err
  2552. }; then
  2553. :
  2554. else
  2555. echo "$as_me: failed program was:" >&5
  2556. sed 's/^/| /' conftest.$ac_ext >&5
  2557. # Broken: fails on valid input.
  2558. continue
  2559. fi
  2560. rm -f conftest.err conftest.$ac_ext
  2561. # OK, works on sane cases. Now check whether nonexistent headers
  2562. # can be detected and how.
  2563. cat >conftest.$ac_ext <<_ACEOF
  2564. /* confdefs.h. */
  2565. _ACEOF
  2566. cat confdefs.h >>conftest.$ac_ext
  2567. cat >>conftest.$ac_ext <<_ACEOF
  2568. /* end confdefs.h. */
  2569. #include <ac_nonexistent.h>
  2570. _ACEOF
  2571. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2572. case "(($ac_try" in
  2573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2574. *) ac_try_echo=$ac_try;;
  2575. esac
  2576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2577. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2578. ac_status=$?
  2579. grep -v '^ *+' conftest.er1 >conftest.err
  2580. rm -f conftest.er1
  2581. cat conftest.err >&5
  2582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2583. (exit $ac_status); } >/dev/null && {
  2584. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2585. test ! -s conftest.err
  2586. }; then
  2587. # Broken: success on invalid input.
  2588. continue
  2589. else
  2590. echo "$as_me: failed program was:" >&5
  2591. sed 's/^/| /' conftest.$ac_ext >&5
  2592. # Passes both tests.
  2593. ac_preproc_ok=:
  2594. break
  2595. fi
  2596. rm -f conftest.err conftest.$ac_ext
  2597. done
  2598. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2599. rm -f conftest.err conftest.$ac_ext
  2600. if $ac_preproc_ok; then
  2601. :
  2602. else
  2603. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2604. See \`config.log' for more details." >&5
  2605. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2606. See \`config.log' for more details." >&2;}
  2607. { (exit 1); exit 1; }; }
  2608. fi
  2609. ac_ext=c
  2610. ac_cpp='$CPP $CPPFLAGS'
  2611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2614. ac_ext=c
  2615. ac_cpp='$CPP $CPPFLAGS'
  2616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2619. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  2620. CPPFLAGS="$CPPFLAGS -I../common"
  2621. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2622. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2623. if test "${ac_cv_path_GREP+set}" = set; then
  2624. echo $ECHO_N "(cached) $ECHO_C" >&6
  2625. else
  2626. # Extract the first word of "grep ggrep" to use in msg output
  2627. if test -z "$GREP"; then
  2628. set dummy grep ggrep; ac_prog_name=$2
  2629. if test "${ac_cv_path_GREP+set}" = set; then
  2630. echo $ECHO_N "(cached) $ECHO_C" >&6
  2631. else
  2632. ac_path_GREP_found=false
  2633. # Loop through the user's path and test for each of PROGNAME-LIST
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_prog in grep ggrep; do
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2642. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2643. # Check for GNU ac_path_GREP and select it if it is found.
  2644. # Check for GNU $ac_path_GREP
  2645. case `"$ac_path_GREP" --version 2>&1` in
  2646. *GNU*)
  2647. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2648. *)
  2649. ac_count=0
  2650. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2651. while :
  2652. do
  2653. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2654. mv "conftest.tmp" "conftest.in"
  2655. cp "conftest.in" "conftest.nl"
  2656. echo 'GREP' >> "conftest.nl"
  2657. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2658. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2659. ac_count=`expr $ac_count + 1`
  2660. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2661. # Best one so far, save it but keep looking for a better one
  2662. ac_cv_path_GREP="$ac_path_GREP"
  2663. ac_path_GREP_max=$ac_count
  2664. fi
  2665. # 10*(2^10) chars as input seems more than enough
  2666. test $ac_count -gt 10 && break
  2667. done
  2668. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2669. esac
  2670. $ac_path_GREP_found && break 3
  2671. done
  2672. done
  2673. done
  2674. IFS=$as_save_IFS
  2675. fi
  2676. GREP="$ac_cv_path_GREP"
  2677. if test -z "$GREP"; then
  2678. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2679. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2680. { (exit 1); exit 1; }; }
  2681. fi
  2682. else
  2683. ac_cv_path_GREP=$GREP
  2684. fi
  2685. fi
  2686. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2687. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2688. GREP="$ac_cv_path_GREP"
  2689. { echo "$as_me:$LINENO: checking for egrep" >&5
  2690. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2691. if test "${ac_cv_path_EGREP+set}" = set; then
  2692. echo $ECHO_N "(cached) $ECHO_C" >&6
  2693. else
  2694. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2695. then ac_cv_path_EGREP="$GREP -E"
  2696. else
  2697. # Extract the first word of "egrep" to use in msg output
  2698. if test -z "$EGREP"; then
  2699. set dummy egrep; ac_prog_name=$2
  2700. if test "${ac_cv_path_EGREP+set}" = set; then
  2701. echo $ECHO_N "(cached) $ECHO_C" >&6
  2702. else
  2703. ac_path_EGREP_found=false
  2704. # Loop through the user's path and test for each of PROGNAME-LIST
  2705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2707. do
  2708. IFS=$as_save_IFS
  2709. test -z "$as_dir" && as_dir=.
  2710. for ac_prog in egrep; do
  2711. for ac_exec_ext in '' $ac_executable_extensions; do
  2712. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2713. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2714. # Check for GNU ac_path_EGREP and select it if it is found.
  2715. # Check for GNU $ac_path_EGREP
  2716. case `"$ac_path_EGREP" --version 2>&1` in
  2717. *GNU*)
  2718. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2719. *)
  2720. ac_count=0
  2721. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2722. while :
  2723. do
  2724. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2725. mv "conftest.tmp" "conftest.in"
  2726. cp "conftest.in" "conftest.nl"
  2727. echo 'EGREP' >> "conftest.nl"
  2728. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2729. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2730. ac_count=`expr $ac_count + 1`
  2731. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2732. # Best one so far, save it but keep looking for a better one
  2733. ac_cv_path_EGREP="$ac_path_EGREP"
  2734. ac_path_EGREP_max=$ac_count
  2735. fi
  2736. # 10*(2^10) chars as input seems more than enough
  2737. test $ac_count -gt 10 && break
  2738. done
  2739. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2740. esac
  2741. $ac_path_EGREP_found && break 3
  2742. done
  2743. done
  2744. done
  2745. IFS=$as_save_IFS
  2746. fi
  2747. EGREP="$ac_cv_path_EGREP"
  2748. if test -z "$EGREP"; then
  2749. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2750. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2751. { (exit 1); exit 1; }; }
  2752. fi
  2753. else
  2754. ac_cv_path_EGREP=$EGREP
  2755. fi
  2756. fi
  2757. fi
  2758. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2759. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2760. EGREP="$ac_cv_path_EGREP"
  2761. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2762. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2763. if test "${ac_cv_header_stdc+set}" = set; then
  2764. echo $ECHO_N "(cached) $ECHO_C" >&6
  2765. else
  2766. cat >conftest.$ac_ext <<_ACEOF
  2767. /* confdefs.h. */
  2768. _ACEOF
  2769. cat confdefs.h >>conftest.$ac_ext
  2770. cat >>conftest.$ac_ext <<_ACEOF
  2771. /* end confdefs.h. */
  2772. #include <stdlib.h>
  2773. #include <stdarg.h>
  2774. #include <string.h>
  2775. #include <float.h>
  2776. int
  2777. main ()
  2778. {
  2779. ;
  2780. return 0;
  2781. }
  2782. _ACEOF
  2783. rm -f conftest.$ac_objext
  2784. if { (ac_try="$ac_compile"
  2785. case "(($ac_try" in
  2786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2787. *) ac_try_echo=$ac_try;;
  2788. esac
  2789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2790. (eval "$ac_compile") 2>conftest.er1
  2791. ac_status=$?
  2792. grep -v '^ *+' conftest.er1 >conftest.err
  2793. rm -f conftest.er1
  2794. cat conftest.err >&5
  2795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2796. (exit $ac_status); } && {
  2797. test -z "$ac_c_werror_flag" ||
  2798. test ! -s conftest.err
  2799. } && test -s conftest.$ac_objext; then
  2800. ac_cv_header_stdc=yes
  2801. else
  2802. echo "$as_me: failed program was:" >&5
  2803. sed 's/^/| /' conftest.$ac_ext >&5
  2804. ac_cv_header_stdc=no
  2805. fi
  2806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2807. if test $ac_cv_header_stdc = yes; then
  2808. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2809. cat >conftest.$ac_ext <<_ACEOF
  2810. /* confdefs.h. */
  2811. _ACEOF
  2812. cat confdefs.h >>conftest.$ac_ext
  2813. cat >>conftest.$ac_ext <<_ACEOF
  2814. /* end confdefs.h. */
  2815. #include <string.h>
  2816. _ACEOF
  2817. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2818. $EGREP "memchr" >/dev/null 2>&1; then
  2819. :
  2820. else
  2821. ac_cv_header_stdc=no
  2822. fi
  2823. rm -f conftest*
  2824. fi
  2825. if test $ac_cv_header_stdc = yes; then
  2826. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2827. cat >conftest.$ac_ext <<_ACEOF
  2828. /* confdefs.h. */
  2829. _ACEOF
  2830. cat confdefs.h >>conftest.$ac_ext
  2831. cat >>conftest.$ac_ext <<_ACEOF
  2832. /* end confdefs.h. */
  2833. #include <stdlib.h>
  2834. _ACEOF
  2835. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2836. $EGREP "free" >/dev/null 2>&1; then
  2837. :
  2838. else
  2839. ac_cv_header_stdc=no
  2840. fi
  2841. rm -f conftest*
  2842. fi
  2843. if test $ac_cv_header_stdc = yes; then
  2844. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2845. if test "$cross_compiling" = yes; then
  2846. :
  2847. else
  2848. cat >conftest.$ac_ext <<_ACEOF
  2849. /* confdefs.h. */
  2850. _ACEOF
  2851. cat confdefs.h >>conftest.$ac_ext
  2852. cat >>conftest.$ac_ext <<_ACEOF
  2853. /* end confdefs.h. */
  2854. #include <ctype.h>
  2855. #include <stdlib.h>
  2856. #if ((' ' & 0x0FF) == 0x020)
  2857. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2858. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2859. #else
  2860. # define ISLOWER(c) \
  2861. (('a' <= (c) && (c) <= 'i') \
  2862. || ('j' <= (c) && (c) <= 'r') \
  2863. || ('s' <= (c) && (c) <= 'z'))
  2864. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2865. #endif
  2866. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2867. int
  2868. main ()
  2869. {
  2870. int i;
  2871. for (i = 0; i < 256; i++)
  2872. if (XOR (islower (i), ISLOWER (i))
  2873. || toupper (i) != TOUPPER (i))
  2874. return 2;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. rm -f conftest$ac_exeext
  2879. if { (ac_try="$ac_link"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_link") 2>&5
  2886. ac_status=$?
  2887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2889. { (case "(($ac_try" in
  2890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2891. *) ac_try_echo=$ac_try;;
  2892. esac
  2893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2894. (eval "$ac_try") 2>&5
  2895. ac_status=$?
  2896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2897. (exit $ac_status); }; }; then
  2898. :
  2899. else
  2900. echo "$as_me: program exited with status $ac_status" >&5
  2901. echo "$as_me: failed program was:" >&5
  2902. sed 's/^/| /' conftest.$ac_ext >&5
  2903. ( exit $ac_status )
  2904. ac_cv_header_stdc=no
  2905. fi
  2906. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2907. fi
  2908. fi
  2909. fi
  2910. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2911. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2912. if test $ac_cv_header_stdc = yes; then
  2913. cat >>confdefs.h <<\_ACEOF
  2914. #define STDC_HEADERS 1
  2915. _ACEOF
  2916. fi
  2917. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2918. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2919. inttypes.h stdint.h unistd.h
  2920. do
  2921. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2922. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2923. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2924. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2925. echo $ECHO_N "(cached) $ECHO_C" >&6
  2926. else
  2927. cat >conftest.$ac_ext <<_ACEOF
  2928. /* confdefs.h. */
  2929. _ACEOF
  2930. cat confdefs.h >>conftest.$ac_ext
  2931. cat >>conftest.$ac_ext <<_ACEOF
  2932. /* end confdefs.h. */
  2933. $ac_includes_default
  2934. #include <$ac_header>
  2935. _ACEOF
  2936. rm -f conftest.$ac_objext
  2937. if { (ac_try="$ac_compile"
  2938. case "(($ac_try" in
  2939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2940. *) ac_try_echo=$ac_try;;
  2941. esac
  2942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2943. (eval "$ac_compile") 2>conftest.er1
  2944. ac_status=$?
  2945. grep -v '^ *+' conftest.er1 >conftest.err
  2946. rm -f conftest.er1
  2947. cat conftest.err >&5
  2948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2949. (exit $ac_status); } && {
  2950. test -z "$ac_c_werror_flag" ||
  2951. test ! -s conftest.err
  2952. } && test -s conftest.$ac_objext; then
  2953. eval "$as_ac_Header=yes"
  2954. else
  2955. echo "$as_me: failed program was:" >&5
  2956. sed 's/^/| /' conftest.$ac_ext >&5
  2957. eval "$as_ac_Header=no"
  2958. fi
  2959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2960. fi
  2961. ac_res=`eval echo '${'$as_ac_Header'}'`
  2962. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2963. echo "${ECHO_T}$ac_res" >&6; }
  2964. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2965. cat >>confdefs.h <<_ACEOF
  2966. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2967. _ACEOF
  2968. fi
  2969. done
  2970. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  2971. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  2972. if test "${ac_cv_c_bigendian+set}" = set; then
  2973. echo $ECHO_N "(cached) $ECHO_C" >&6
  2974. else
  2975. # See if sys/param.h defines the BYTE_ORDER macro.
  2976. cat >conftest.$ac_ext <<_ACEOF
  2977. /* confdefs.h. */
  2978. _ACEOF
  2979. cat confdefs.h >>conftest.$ac_ext
  2980. cat >>conftest.$ac_ext <<_ACEOF
  2981. /* end confdefs.h. */
  2982. #include <sys/types.h>
  2983. #include <sys/param.h>
  2984. int
  2985. main ()
  2986. {
  2987. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  2988. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  2989. bogus endian macros
  2990. #endif
  2991. ;
  2992. return 0;
  2993. }
  2994. _ACEOF
  2995. rm -f conftest.$ac_objext
  2996. if { (ac_try="$ac_compile"
  2997. case "(($ac_try" in
  2998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2999. *) ac_try_echo=$ac_try;;
  3000. esac
  3001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3002. (eval "$ac_compile") 2>conftest.er1
  3003. ac_status=$?
  3004. grep -v '^ *+' conftest.er1 >conftest.err
  3005. rm -f conftest.er1
  3006. cat conftest.err >&5
  3007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3008. (exit $ac_status); } && {
  3009. test -z "$ac_c_werror_flag" ||
  3010. test ! -s conftest.err
  3011. } && test -s conftest.$ac_objext; then
  3012. # It does; now see whether it defined to BIG_ENDIAN or not.
  3013. cat >conftest.$ac_ext <<_ACEOF
  3014. /* confdefs.h. */
  3015. _ACEOF
  3016. cat confdefs.h >>conftest.$ac_ext
  3017. cat >>conftest.$ac_ext <<_ACEOF
  3018. /* end confdefs.h. */
  3019. #include <sys/types.h>
  3020. #include <sys/param.h>
  3021. int
  3022. main ()
  3023. {
  3024. #if BYTE_ORDER != BIG_ENDIAN
  3025. not big endian
  3026. #endif
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. rm -f conftest.$ac_objext
  3032. if { (ac_try="$ac_compile"
  3033. case "(($ac_try" in
  3034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3035. *) ac_try_echo=$ac_try;;
  3036. esac
  3037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3038. (eval "$ac_compile") 2>conftest.er1
  3039. ac_status=$?
  3040. grep -v '^ *+' conftest.er1 >conftest.err
  3041. rm -f conftest.er1
  3042. cat conftest.err >&5
  3043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3044. (exit $ac_status); } && {
  3045. test -z "$ac_c_werror_flag" ||
  3046. test ! -s conftest.err
  3047. } && test -s conftest.$ac_objext; then
  3048. ac_cv_c_bigendian=yes
  3049. else
  3050. echo "$as_me: failed program was:" >&5
  3051. sed 's/^/| /' conftest.$ac_ext >&5
  3052. ac_cv_c_bigendian=no
  3053. fi
  3054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3055. else
  3056. echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. # It does not; compile a test program.
  3059. if test "$cross_compiling" = yes; then
  3060. # try to guess the endianness by grepping values into an object file
  3061. ac_cv_c_bigendian=unknown
  3062. cat >conftest.$ac_ext <<_ACEOF
  3063. /* confdefs.h. */
  3064. _ACEOF
  3065. cat confdefs.h >>conftest.$ac_ext
  3066. cat >>conftest.$ac_ext <<_ACEOF
  3067. /* end confdefs.h. */
  3068. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3069. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3070. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  3071. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3072. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3073. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  3074. int
  3075. main ()
  3076. {
  3077. _ascii (); _ebcdic ();
  3078. ;
  3079. return 0;
  3080. }
  3081. _ACEOF
  3082. rm -f conftest.$ac_objext
  3083. if { (ac_try="$ac_compile"
  3084. case "(($ac_try" in
  3085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3086. *) ac_try_echo=$ac_try;;
  3087. esac
  3088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3089. (eval "$ac_compile") 2>conftest.er1
  3090. ac_status=$?
  3091. grep -v '^ *+' conftest.er1 >conftest.err
  3092. rm -f conftest.er1
  3093. cat conftest.err >&5
  3094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3095. (exit $ac_status); } && {
  3096. test -z "$ac_c_werror_flag" ||
  3097. test ! -s conftest.err
  3098. } && test -s conftest.$ac_objext; then
  3099. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  3100. ac_cv_c_bigendian=yes
  3101. fi
  3102. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3103. if test "$ac_cv_c_bigendian" = unknown; then
  3104. ac_cv_c_bigendian=no
  3105. else
  3106. # finding both strings is unlikely to happen, but who knows?
  3107. ac_cv_c_bigendian=unknown
  3108. fi
  3109. fi
  3110. else
  3111. echo "$as_me: failed program was:" >&5
  3112. sed 's/^/| /' conftest.$ac_ext >&5
  3113. fi
  3114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3115. else
  3116. cat >conftest.$ac_ext <<_ACEOF
  3117. /* confdefs.h. */
  3118. _ACEOF
  3119. cat confdefs.h >>conftest.$ac_ext
  3120. cat >>conftest.$ac_ext <<_ACEOF
  3121. /* end confdefs.h. */
  3122. $ac_includes_default
  3123. int
  3124. main ()
  3125. {
  3126. /* Are we little or big endian? From Harbison&Steele. */
  3127. union
  3128. {
  3129. long int l;
  3130. char c[sizeof (long int)];
  3131. } u;
  3132. u.l = 1;
  3133. return u.c[sizeof (long int) - 1] == 1;
  3134. ;
  3135. return 0;
  3136. }
  3137. _ACEOF
  3138. rm -f conftest$ac_exeext
  3139. if { (ac_try="$ac_link"
  3140. case "(($ac_try" in
  3141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3142. *) ac_try_echo=$ac_try;;
  3143. esac
  3144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3145. (eval "$ac_link") 2>&5
  3146. ac_status=$?
  3147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3148. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3149. { (case "(($ac_try" in
  3150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3151. *) ac_try_echo=$ac_try;;
  3152. esac
  3153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3154. (eval "$ac_try") 2>&5
  3155. ac_status=$?
  3156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3157. (exit $ac_status); }; }; then
  3158. ac_cv_c_bigendian=no
  3159. else
  3160. echo "$as_me: program exited with status $ac_status" >&5
  3161. echo "$as_me: failed program was:" >&5
  3162. sed 's/^/| /' conftest.$ac_ext >&5
  3163. ( exit $ac_status )
  3164. ac_cv_c_bigendian=yes
  3165. fi
  3166. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3167. fi
  3168. fi
  3169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3170. fi
  3171. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  3172. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  3173. case $ac_cv_c_bigendian in
  3174. yes)
  3175. { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5
  3176. echo "$as_me: error: bigendian is not supported... stopping" >&2;}
  3177. { (exit 1); exit 1; }; } ;;
  3178. no)
  3179. ;;
  3180. *)
  3181. { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5
  3182. echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  3183. ;;
  3184. esac
  3185. { echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5
  3186. echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6; }
  3187. pointers_fit_in_ints="no"
  3188. cat >conftest.$ac_ext <<_ACEOF
  3189. /* confdefs.h. */
  3190. _ACEOF
  3191. cat confdefs.h >>conftest.$ac_ext
  3192. cat >>conftest.$ac_ext <<_ACEOF
  3193. /* end confdefs.h. */
  3194. int hw[(sizeof(int) == sizeof(void *))];
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. rm -f conftest.$ac_objext
  3203. if { (ac_try="$ac_compile"
  3204. case "(($ac_try" in
  3205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3206. *) ac_try_echo=$ac_try;;
  3207. esac
  3208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3209. (eval "$ac_compile") 2>conftest.er1
  3210. ac_status=$?
  3211. grep -v '^ *+' conftest.er1 >conftest.err
  3212. rm -f conftest.er1
  3213. cat conftest.err >&5
  3214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3215. (exit $ac_status); } && {
  3216. test -z "$ac_c_werror_flag" ||
  3217. test ! -s conftest.err
  3218. } && test -s conftest.$ac_objext; then
  3219. pointers_fit_in_ints="yes"
  3220. else
  3221. echo "$as_me: failed program was:" >&5
  3222. sed 's/^/| /' conftest.$ac_ext >&5
  3223. fi
  3224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3225. if test "$pointers_fit_in_ints" = "no" ; then
  3226. CFLAGS="$CFLAGS -m32"
  3227. cat >conftest.$ac_ext <<_ACEOF
  3228. /* confdefs.h. */
  3229. _ACEOF
  3230. cat confdefs.h >>conftest.$ac_ext
  3231. cat >>conftest.$ac_ext <<_ACEOF
  3232. /* end confdefs.h. */
  3233. int hw[(sizeof(int) == sizeof(void *))];
  3234. int
  3235. main ()
  3236. {
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. rm -f conftest.$ac_objext
  3242. if { (ac_try="$ac_compile"
  3243. case "(($ac_try" in
  3244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3245. *) ac_try_echo=$ac_try;;
  3246. esac
  3247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3248. (eval "$ac_compile") 2>conftest.er1
  3249. ac_status=$?
  3250. grep -v '^ *+' conftest.er1 >conftest.err
  3251. rm -f conftest.er1
  3252. cat conftest.err >&5
  3253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3254. (exit $ac_status); } && {
  3255. test -z "$ac_c_werror_flag" ||
  3256. test ! -s conftest.err
  3257. } && test -s conftest.$ac_objext; then
  3258. pointers_fit_in_ints="yes (with -m32)"
  3259. else
  3260. echo "$as_me: failed program was:" >&5
  3261. sed 's/^/| /' conftest.$ac_ext >&5
  3262. fi
  3263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3264. fi
  3265. { echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5
  3266. echo "${ECHO_T}$pointers_fit_in_ints" >&6; }
  3267. if test "$pointers_fit_in_ints" = "no" ; then
  3268. { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5
  3269. echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;}
  3270. { (exit 1); exit 1; }; }
  3271. fi
  3272. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  3273. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6; }
  3274. OLD_CFLAGS="$CFLAGS"
  3275. CFLAGS="$CFLAGS -Wno-unused-parameter"
  3276. cat >conftest.$ac_ext <<_ACEOF
  3277. int foo;
  3278. _ACEOF
  3279. rm -f conftest.$ac_objext
  3280. if { (ac_try="$ac_compile"
  3281. case "(($ac_try" in
  3282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3283. *) ac_try_echo=$ac_try;;
  3284. esac
  3285. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3286. (eval "$ac_compile") 2>conftest.er1
  3287. ac_status=$?
  3288. grep -v '^ *+' conftest.er1 >conftest.err
  3289. rm -f conftest.er1
  3290. cat conftest.err >&5
  3291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3292. (exit $ac_status); } && {
  3293. test -z "$ac_c_werror_flag" ||
  3294. test ! -s conftest.err
  3295. } && test -s conftest.$ac_objext; then
  3296. { echo "$as_me:$LINENO: result: yes" >&5
  3297. echo "${ECHO_T}yes" >&6; }
  3298. else
  3299. echo "$as_me: failed program was:" >&5
  3300. sed 's/^/| /' conftest.$ac_ext >&5
  3301. { echo "$as_me:$LINENO: result: no" >&5
  3302. echo "${ECHO_T}no" >&6; }
  3303. CFLAGS="$OLD_CFLAGS"
  3304. fi
  3305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3306. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5
  3307. echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6; }
  3308. OLD_CFLAGS="$CFLAGS"
  3309. CFLAGS="$CFLAGS -Wno-pointer-sign"
  3310. cat >conftest.$ac_ext <<_ACEOF
  3311. int foo;
  3312. _ACEOF
  3313. rm -f conftest.$ac_objext
  3314. if { (ac_try="$ac_compile"
  3315. case "(($ac_try" in
  3316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3317. *) ac_try_echo=$ac_try;;
  3318. esac
  3319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3320. (eval "$ac_compile") 2>conftest.er1
  3321. ac_status=$?
  3322. grep -v '^ *+' conftest.er1 >conftest.err
  3323. rm -f conftest.er1
  3324. cat conftest.err >&5
  3325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. (exit $ac_status); } && {
  3327. test -z "$ac_c_werror_flag" ||
  3328. test ! -s conftest.err
  3329. } && test -s conftest.$ac_objext; then
  3330. { echo "$as_me:$LINENO: result: yes" >&5
  3331. echo "${ECHO_T}yes" >&6; }
  3332. else
  3333. echo "$as_me: failed program was:" >&5
  3334. sed 's/^/| /' conftest.$ac_ext >&5
  3335. { echo "$as_me:$LINENO: result: no" >&5
  3336. echo "${ECHO_T}no" >&6; }
  3337. CFLAGS="$OLD_CFLAGS"
  3338. fi
  3339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3340. ###############################################################################
  3341. # Checks for libraries and header files.
  3342. MYSQL_VERSION=""
  3343. MYSQL_CFLAGS=""
  3344. MYSQL_LIBS=""
  3345. if test "$want_mysql" = "no" ; then
  3346. { echo "$as_me:$LINENO: ignoring MySQL (optional)" >&5
  3347. echo "$as_me: ignoring MySQL (optional)" >&6;}
  3348. else
  3349. if test -z "$MYSQL_CONFIG_HOME"; then
  3350. # Extract the first word of "mysql_config", so it can be a program name with args.
  3351. set dummy mysql_config; ac_word=$2
  3352. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3353. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3354. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then
  3355. echo $ECHO_N "(cached) $ECHO_C" >&6
  3356. else
  3357. case $MYSQL_CONFIG_HOME in
  3358. [\\/]* | ?:[\\/]*)
  3359. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  3360. ;;
  3361. *)
  3362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3363. for as_dir in $PATH
  3364. do
  3365. IFS=$as_save_IFS
  3366. test -z "$as_dir" && as_dir=.
  3367. for ac_exec_ext in '' $ac_executable_extensions; do
  3368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3369. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  3370. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3371. break 2
  3372. fi
  3373. done
  3374. done
  3375. IFS=$as_save_IFS
  3376. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  3377. ;;
  3378. esac
  3379. fi
  3380. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  3381. if test -n "$MYSQL_CONFIG_HOME"; then
  3382. { echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5
  3383. echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6; }
  3384. else
  3385. { echo "$as_me:$LINENO: result: no" >&5
  3386. echo "${ECHO_T}no" >&6; }
  3387. fi
  3388. fi
  3389. { echo "$as_me:$LINENO: checking MySQL library (optional)" >&5
  3390. echo $ECHO_N "checking MySQL library (optional)... $ECHO_C" >&6; }
  3391. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  3392. HAVE_MYSQL="yes"
  3393. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  3394. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --cflags`"
  3395. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  3396. { echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5
  3397. echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6; }
  3398. if test -n "`$MYSQL_CONFIG_HOME --libs | grep -i '\-m64'`"; then
  3399. { { echo "$as_me:$LINENO: error: $MYSQL_CONFIG_HOME reported that MySQL was compiled in 64bit mode, please specify a 32bit distribution of MySQL with --with-mysql=<path>... stopping" >&5
  3400. echo "$as_me: error: $MYSQL_CONFIG_HOME reported that MySQL was compiled in 64bit mode, please specify a 32bit distribution of MySQL with --with-mysql=<path>... stopping" >&2;}
  3401. { (exit 1); exit 1; }; }
  3402. fi
  3403. else
  3404. { echo "$as_me:$LINENO: result: no" >&5
  3405. echo "${ECHO_T}no" >&6; }
  3406. if test "$require_mysql" = "yes" ; then
  3407. { { echo "$as_me:$LINENO: error: MySQL not found (requested)" >&5
  3408. echo "$as_me: error: MySQL not found (requested)" >&2;}
  3409. { (exit 1); exit 1; }; }
  3410. else
  3411. { echo "$as_me:$LINENO: disabling MySQL (optional)" >&5
  3412. echo "$as_me: disabling MySQL (optional)" >&6;}
  3413. fi
  3414. fi
  3415. fi
  3416. ##TODO PCRE version
  3417. PCRE_LIBS=""
  3418. PCRE_CFLAGS=""
  3419. if test "$want_pcre" = "no" ; then
  3420. { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5
  3421. echo "$as_me: ignoring PCRE (optional)" >&6;}
  3422. else
  3423. if test -z "$PCRE_HOME" ; then
  3424. { echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5
  3425. echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6; }
  3426. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then
  3427. echo $ECHO_N "(cached) $ECHO_C" >&6
  3428. else
  3429. ac_check_lib_save_LIBS=$LIBS
  3430. LIBS="-lpcre $LIBS"
  3431. cat >conftest.$ac_ext <<_ACEOF
  3432. /* confdefs.h. */
  3433. _ACEOF
  3434. cat confdefs.h >>conftest.$ac_ext
  3435. cat >>conftest.$ac_ext <<_ACEOF
  3436. /* end confdefs.h. */
  3437. /* Override any GCC internal prototype to avoid an error.
  3438. Use char because int might match the return type of a GCC
  3439. builtin and then its argument prototype would still apply. */
  3440. #ifdef __cplusplus
  3441. extern "C"
  3442. #endif
  3443. char pcre_study ();
  3444. int
  3445. main ()
  3446. {
  3447. return pcre_study ();
  3448. ;
  3449. return 0;
  3450. }
  3451. _ACEOF
  3452. rm -f conftest.$ac_objext conftest$ac_exeext
  3453. if { (ac_try="$ac_link"
  3454. case "(($ac_try" in
  3455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3456. *) ac_try_echo=$ac_try;;
  3457. esac
  3458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3459. (eval "$ac_link") 2>conftest.er1
  3460. ac_status=$?
  3461. grep -v '^ *+' conftest.er1 >conftest.err
  3462. rm -f conftest.er1
  3463. cat conftest.err >&5
  3464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3465. (exit $ac_status); } && {
  3466. test -z "$ac_c_werror_flag" ||
  3467. test ! -s conftest.err
  3468. } && test -s conftest$ac_exeext &&
  3469. $as_test_x conftest$ac_exeext; then
  3470. ac_cv_lib_pcre_pcre_study=yes
  3471. else
  3472. echo "$as_me: failed program was:" >&5
  3473. sed 's/^/| /' conftest.$ac_ext >&5
  3474. ac_cv_lib_pcre_pcre_study=no
  3475. fi
  3476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3477. conftest$ac_exeext conftest.$ac_ext
  3478. LIBS=$ac_check_lib_save_LIBS
  3479. fi
  3480. { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5
  3481. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6; }
  3482. if test $ac_cv_lib_pcre_pcre_study = yes; then
  3483. HAVE_PCRE="yes"
  3484. fi
  3485. if test "$HAVE_PCRE" = "yes" ; then
  3486. PCRE_LIBS="-lpcre"
  3487. fi
  3488. else
  3489. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  3490. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  3491. { echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
  3492. echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6; }
  3493. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  3494. echo $ECHO_N "(cached) $ECHO_C" >&6
  3495. else
  3496. ac_check_lib_save_LIBS=$LIBS
  3497. LIBS="-lpcre $LIBS"
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. /* Override any GCC internal prototype to avoid an error.
  3505. Use char because int might match the return type of a GCC
  3506. builtin and then its argument prototype would still apply. */
  3507. #ifdef __cplusplus
  3508. extern "C"
  3509. #endif
  3510. char pcre_compile ();
  3511. int
  3512. main ()
  3513. {
  3514. return pcre_compile ();
  3515. ;
  3516. return 0;
  3517. }
  3518. _ACEOF
  3519. rm -f conftest.$ac_objext conftest$ac_exeext
  3520. if { (ac_try="$ac_link"
  3521. case "(($ac_try" in
  3522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523. *) ac_try_echo=$ac_try;;
  3524. esac
  3525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3526. (eval "$ac_link") 2>conftest.er1
  3527. ac_status=$?
  3528. grep -v '^ *+' conftest.er1 >conftest.err
  3529. rm -f conftest.er1
  3530. cat conftest.err >&5
  3531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3532. (exit $ac_status); } && {
  3533. test -z "$ac_c_werror_flag" ||
  3534. test ! -s conftest.err
  3535. } && test -s conftest$ac_exeext &&
  3536. $as_test_x conftest$ac_exeext; then
  3537. ac_cv_lib_pcre_pcre_compile=yes
  3538. else
  3539. echo "$as_me: failed program was:" >&5
  3540. sed 's/^/| /' conftest.$ac_ext >&5
  3541. ac_cv_lib_pcre_pcre_compile=no
  3542. fi
  3543. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3544. conftest$ac_exeext conftest.$ac_ext
  3545. LIBS=$ac_check_lib_save_LIBS
  3546. fi
  3547. { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
  3548. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6; }
  3549. if test $ac_cv_lib_pcre_pcre_compile = yes; then
  3550. HAVE_PCRE="yes"
  3551. fi
  3552. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  3553. LDFLAGS="$PCRE_OLD_LDFLAGS"
  3554. if test "$HAVE_PCRE" = "yes" ; then
  3555. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  3556. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  3557. fi
  3558. fi
  3559. { echo "$as_me:$LINENO: checking PCRE library (optional)" >&5
  3560. echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6; }
  3561. if test "$HAVE_PCRE" = "yes" ; then
  3562. { echo "$as_me:$LINENO: result: yes" >&5
  3563. echo "${ECHO_T}yes" >&6; }
  3564. else
  3565. { echo "$as_me:$LINENO: result: no" >&5
  3566. echo "${ECHO_T}no" >&6; }
  3567. if test "$require_pcre" = "yes" ; then
  3568. { { echo "$as_me:$LINENO: error: PCRE not found (requested)" >&5
  3569. echo "$as_me: error: PCRE not found (requested)" >&2;}
  3570. { (exit 1); exit 1; }; }
  3571. else
  3572. { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5
  3573. echo "$as_me: disabling PCRE (optional)" >&6;}
  3574. fi
  3575. fi
  3576. fi
  3577. if test -n "${ZLIB_HOME}" ; then
  3578. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  3579. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  3580. fi
  3581. { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  3582. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
  3583. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  3584. echo $ECHO_N "(cached) $ECHO_C" >&6
  3585. else
  3586. ac_check_lib_save_LIBS=$LIBS
  3587. LIBS="-lz $LIBS"
  3588. cat >conftest.$ac_ext <<_ACEOF
  3589. /* confdefs.h. */
  3590. _ACEOF
  3591. cat confdefs.h >>conftest.$ac_ext
  3592. cat >>conftest.$ac_ext <<_ACEOF
  3593. /* end confdefs.h. */
  3594. /* Override any GCC internal prototype to avoid an error.
  3595. Use char because int might match the return type of a GCC
  3596. builtin and then its argument prototype would still apply. */
  3597. #ifdef __cplusplus
  3598. extern "C"
  3599. #endif
  3600. char inflateEnd ();
  3601. int
  3602. main ()
  3603. {
  3604. return inflateEnd ();
  3605. ;
  3606. return 0;
  3607. }
  3608. _ACEOF
  3609. rm -f conftest.$ac_objext conftest$ac_exeext
  3610. if { (ac_try="$ac_link"
  3611. case "(($ac_try" in
  3612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3613. *) ac_try_echo=$ac_try;;
  3614. esac
  3615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3616. (eval "$ac_link") 2>conftest.er1
  3617. ac_status=$?
  3618. grep -v '^ *+' conftest.er1 >conftest.err
  3619. rm -f conftest.er1
  3620. cat conftest.err >&5
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); } && {
  3623. test -z "$ac_c_werror_flag" ||
  3624. test ! -s conftest.err
  3625. } && test -s conftest$ac_exeext &&
  3626. $as_test_x conftest$ac_exeext; then
  3627. ac_cv_lib_z_inflateEnd=yes
  3628. else
  3629. echo "$as_me: failed program was:" >&5
  3630. sed 's/^/| /' conftest.$ac_ext >&5
  3631. ac_cv_lib_z_inflateEnd=no
  3632. fi
  3633. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3634. conftest$ac_exeext conftest.$ac_ext
  3635. LIBS=$ac_check_lib_save_LIBS
  3636. fi
  3637. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  3638. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
  3639. if test $ac_cv_lib_z_inflateEnd = yes; then
  3640. cat >>confdefs.h <<_ACEOF
  3641. #define HAVE_LIBZ 1
  3642. _ACEOF
  3643. LIBS="-lz $LIBS"
  3644. else
  3645. { { echo "$as_me:$LINENO: error: zlib library not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3646. echo "$as_me: error: zlib library not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3647. { (exit 1); exit 1; }; }
  3648. fi
  3649. if test "${ac_cv_header_zlib_h+set}" = set; then
  3650. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  3651. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  3652. if test "${ac_cv_header_zlib_h+set}" = set; then
  3653. echo $ECHO_N "(cached) $ECHO_C" >&6
  3654. fi
  3655. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3656. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  3657. else
  3658. # Is the header compilable?
  3659. { echo "$as_me:$LINENO: checking zlib.h usability" >&5
  3660. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
  3661. cat >conftest.$ac_ext <<_ACEOF
  3662. /* confdefs.h. */
  3663. _ACEOF
  3664. cat confdefs.h >>conftest.$ac_ext
  3665. cat >>conftest.$ac_ext <<_ACEOF
  3666. /* end confdefs.h. */
  3667. $ac_includes_default
  3668. #include <zlib.h>
  3669. _ACEOF
  3670. rm -f conftest.$ac_objext
  3671. if { (ac_try="$ac_compile"
  3672. case "(($ac_try" in
  3673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3674. *) ac_try_echo=$ac_try;;
  3675. esac
  3676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3677. (eval "$ac_compile") 2>conftest.er1
  3678. ac_status=$?
  3679. grep -v '^ *+' conftest.er1 >conftest.err
  3680. rm -f conftest.er1
  3681. cat conftest.err >&5
  3682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. (exit $ac_status); } && {
  3684. test -z "$ac_c_werror_flag" ||
  3685. test ! -s conftest.err
  3686. } && test -s conftest.$ac_objext; then
  3687. ac_header_compiler=yes
  3688. else
  3689. echo "$as_me: failed program was:" >&5
  3690. sed 's/^/| /' conftest.$ac_ext >&5
  3691. ac_header_compiler=no
  3692. fi
  3693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3694. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3695. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3696. # Is the header present?
  3697. { echo "$as_me:$LINENO: checking zlib.h presence" >&5
  3698. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
  3699. cat >conftest.$ac_ext <<_ACEOF
  3700. /* confdefs.h. */
  3701. _ACEOF
  3702. cat confdefs.h >>conftest.$ac_ext
  3703. cat >>conftest.$ac_ext <<_ACEOF
  3704. /* end confdefs.h. */
  3705. #include <zlib.h>
  3706. _ACEOF
  3707. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3708. case "(($ac_try" in
  3709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3710. *) ac_try_echo=$ac_try;;
  3711. esac
  3712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3713. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3714. ac_status=$?
  3715. grep -v '^ *+' conftest.er1 >conftest.err
  3716. rm -f conftest.er1
  3717. cat conftest.err >&5
  3718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3719. (exit $ac_status); } >/dev/null && {
  3720. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3721. test ! -s conftest.err
  3722. }; then
  3723. ac_header_preproc=yes
  3724. else
  3725. echo "$as_me: failed program was:" >&5
  3726. sed 's/^/| /' conftest.$ac_ext >&5
  3727. ac_header_preproc=no
  3728. fi
  3729. rm -f conftest.err conftest.$ac_ext
  3730. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3731. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3732. # So? What about this header?
  3733. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3734. yes:no: )
  3735. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3736. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3737. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  3738. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  3739. ac_header_preproc=yes
  3740. ;;
  3741. no:yes:* )
  3742. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  3743. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  3744. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  3745. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  3746. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  3747. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  3748. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  3749. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3750. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  3751. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  3752. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  3753. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  3754. ;;
  3755. esac
  3756. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  3757. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  3758. if test "${ac_cv_header_zlib_h+set}" = set; then
  3759. echo $ECHO_N "(cached) $ECHO_C" >&6
  3760. else
  3761. ac_cv_header_zlib_h=$ac_header_preproc
  3762. fi
  3763. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3764. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  3765. fi
  3766. if test $ac_cv_header_zlib_h = yes; then
  3767. :
  3768. else
  3769. { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3770. echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3771. { (exit 1); exit 1; }; }
  3772. fi
  3773. { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  3774. echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
  3775. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  3776. echo $ECHO_N "(cached) $ECHO_C" >&6
  3777. else
  3778. ac_check_lib_save_LIBS=$LIBS
  3779. LIBS="-lm $LIBS"
  3780. cat >conftest.$ac_ext <<_ACEOF
  3781. /* confdefs.h. */
  3782. _ACEOF
  3783. cat confdefs.h >>conftest.$ac_ext
  3784. cat >>conftest.$ac_ext <<_ACEOF
  3785. /* end confdefs.h. */
  3786. /* Override any GCC internal prototype to avoid an error.
  3787. Use char because int might match the return type of a GCC
  3788. builtin and then its argument prototype would still apply. */
  3789. #ifdef __cplusplus
  3790. extern "C"
  3791. #endif
  3792. char sqrt ();
  3793. int
  3794. main ()
  3795. {
  3796. return sqrt ();
  3797. ;
  3798. return 0;
  3799. }
  3800. _ACEOF
  3801. rm -f conftest.$ac_objext conftest$ac_exeext
  3802. if { (ac_try="$ac_link"
  3803. case "(($ac_try" in
  3804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3805. *) ac_try_echo=$ac_try;;
  3806. esac
  3807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3808. (eval "$ac_link") 2>conftest.er1
  3809. ac_status=$?
  3810. grep -v '^ *+' conftest.er1 >conftest.err
  3811. rm -f conftest.er1
  3812. cat conftest.err >&5
  3813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3814. (exit $ac_status); } && {
  3815. test -z "$ac_c_werror_flag" ||
  3816. test ! -s conftest.err
  3817. } && test -s conftest$ac_exeext &&
  3818. $as_test_x conftest$ac_exeext; then
  3819. ac_cv_lib_m_sqrt=yes
  3820. else
  3821. echo "$as_me: failed program was:" >&5
  3822. sed 's/^/| /' conftest.$ac_ext >&5
  3823. ac_cv_lib_m_sqrt=no
  3824. fi
  3825. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3826. conftest$ac_exeext conftest.$ac_ext
  3827. LIBS=$ac_check_lib_save_LIBS
  3828. fi
  3829. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  3830. echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
  3831. if test $ac_cv_lib_m_sqrt = yes; then
  3832. cat >>confdefs.h <<_ACEOF
  3833. #define HAVE_LIBM 1
  3834. _ACEOF
  3835. LIBS="-lm $LIBS"
  3836. else
  3837. { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5
  3838. echo "$as_me: error: math library not found... stopping" >&2;}
  3839. { (exit 1); exit 1; }; }
  3840. fi
  3841. { echo "$as_me:$LINENO: checking host OS" >&5
  3842. echo $ECHO_N "checking host OS... $ECHO_C" >&6; }
  3843. host_os="`uname`"
  3844. { echo "$as_me:$LINENO: result: $host_os" >&5
  3845. echo "${ECHO_T}$host_os" >&6; }
  3846. fd_setsize=""
  3847. DLLEXT=".so"
  3848. case $host_os in
  3849. Solaris* )
  3850. LIBS="$LIBS -lsocket -lnsl -ldl"
  3851. ;;
  3852. Linux* )
  3853. LIBS="$LIBS -ldl"
  3854. ;;
  3855. FreeBSD*)
  3856. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  3857. ;;
  3858. NetBSD*)
  3859. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  3860. ;;
  3861. CYGWIN*)
  3862. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  3863. fd_setsize="done"
  3864. DLLEXT=".dll"
  3865. ;;
  3866. esac
  3867. { echo "$as_me:$LINENO: checking for MinGW" >&5
  3868. echo $ECHO_N "checking for MinGW... $ECHO_C" >&6; }
  3869. if test -n "`$CC --version | grep -i mingw`" ; then
  3870. { echo "$as_me:$LINENO: result: yes" >&5
  3871. echo "${ECHO_T}yes" >&6; }
  3872. CPPFLAGS="$CPPFLAGS -DMINGW"
  3873. if test -z "$fd_setsize" ; then
  3874. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  3875. fi
  3876. LIBS="$LIBS -lws2_32"
  3877. else
  3878. { echo "$as_me:$LINENO: result: no" >&5
  3879. echo "${ECHO_T}no" >&6; }
  3880. fi
  3881. ###############################################################################
  3882. cat >confcache <<\_ACEOF
  3883. # This file is a shell script that caches the results of configure
  3884. # tests run on this system so they can be shared between configure
  3885. # scripts and configure runs, see configure's option --config-cache.
  3886. # It is not useful on other systems. If it contains results you don't
  3887. # want to keep, you may remove or edit it.
  3888. #
  3889. # config.status only pays attention to the cache file if you give it
  3890. # the --recheck option to rerun configure.
  3891. #
  3892. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3893. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3894. # following values.
  3895. _ACEOF
  3896. # The following way of writing the cache mishandles newlines in values,
  3897. # but we know of no workaround that is simple, portable, and efficient.
  3898. # So, we kill variables containing newlines.
  3899. # Ultrix sh set writes to stderr and can't be redirected directly,
  3900. # and sets the high bit in the cache file unless we assign to the vars.
  3901. (
  3902. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3903. eval ac_val=\$$ac_var
  3904. case $ac_val in #(
  3905. *${as_nl}*)
  3906. case $ac_var in #(
  3907. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3908. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3909. esac
  3910. case $ac_var in #(
  3911. _ | IFS | as_nl) ;; #(
  3912. *) $as_unset $ac_var ;;
  3913. esac ;;
  3914. esac
  3915. done
  3916. (set) 2>&1 |
  3917. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3918. *${as_nl}ac_space=\ *)
  3919. # `set' does not quote correctly, so add quotes (double-quote
  3920. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3921. sed -n \
  3922. "s/'/'\\\\''/g;
  3923. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3924. ;; #(
  3925. *)
  3926. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3927. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3928. ;;
  3929. esac |
  3930. sort
  3931. ) |
  3932. sed '
  3933. /^ac_cv_env_/b end
  3934. t clear
  3935. :clear
  3936. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3937. t end
  3938. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3939. :end' >>confcache
  3940. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3941. if test -w "$cache_file"; then
  3942. test "x$cache_file" != "x/dev/null" &&
  3943. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3944. echo "$as_me: updating cache $cache_file" >&6;}
  3945. cat confcache >$cache_file
  3946. else
  3947. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3948. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3949. fi
  3950. fi
  3951. rm -f confcache
  3952. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3953. # Let make expand exec_prefix.
  3954. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3955. # Transform confdefs.h into DEFS.
  3956. # Protect against shell expansion while executing Makefile rules.
  3957. # Protect against Makefile macro expansion.
  3958. #
  3959. # If the first sed substitution is executed (which looks for macros that
  3960. # take arguments), then branch to the quote section. Otherwise,
  3961. # look for a macro that doesn't take arguments.
  3962. ac_script='
  3963. t clear
  3964. :clear
  3965. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3966. t quote
  3967. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  3968. t quote
  3969. b any
  3970. :quote
  3971. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3972. s/\[/\\&/g
  3973. s/\]/\\&/g
  3974. s/\$/$$/g
  3975. H
  3976. :any
  3977. ${
  3978. g
  3979. s/^\n//
  3980. s/\n/ /g
  3981. p
  3982. }
  3983. '
  3984. DEFS=`sed -n "$ac_script" confdefs.h`
  3985. ac_libobjs=
  3986. ac_ltlibobjs=
  3987. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3988. # 1. Remove the extension, and $U if already installed.
  3989. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3990. ac_i=`echo "$ac_i" | sed "$ac_script"`
  3991. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3992. # will be set to the directory where LIBOBJS objects are built.
  3993. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3994. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  3995. done
  3996. LIBOBJS=$ac_libobjs
  3997. LTLIBOBJS=$ac_ltlibobjs
  3998. : ${CONFIG_STATUS=./config.status}
  3999. ac_clean_files_save=$ac_clean_files
  4000. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4001. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4002. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4003. cat >$CONFIG_STATUS <<_ACEOF
  4004. #! $SHELL
  4005. # Generated by $as_me.
  4006. # Run this file to recreate the current configuration.
  4007. # Compiler output produced by configure, useful for debugging
  4008. # configure, is in config.log if it exists.
  4009. debug=false
  4010. ac_cs_recheck=false
  4011. ac_cs_silent=false
  4012. SHELL=\${CONFIG_SHELL-$SHELL}
  4013. _ACEOF
  4014. cat >>$CONFIG_STATUS <<\_ACEOF
  4015. ## --------------------- ##
  4016. ## M4sh Initialization. ##
  4017. ## --------------------- ##
  4018. # Be more Bourne compatible
  4019. DUALCASE=1; export DUALCASE # for MKS sh
  4020. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4021. emulate sh
  4022. NULLCMD=:
  4023. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4024. # is contrary to our usage. Disable this feature.
  4025. alias -g '${1+"$@"}'='"$@"'
  4026. setopt NO_GLOB_SUBST
  4027. else
  4028. case `(set -o) 2>/dev/null` in
  4029. *posix*) set -o posix ;;
  4030. esac
  4031. fi
  4032. # PATH needs CR
  4033. # Avoid depending upon Character Ranges.
  4034. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4035. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4036. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4037. as_cr_digits='0123456789'
  4038. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4039. # The user is always right.
  4040. if test "${PATH_SEPARATOR+set}" != set; then
  4041. echo "#! /bin/sh" >conf$$.sh
  4042. echo "exit 0" >>conf$$.sh
  4043. chmod +x conf$$.sh
  4044. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4045. PATH_SEPARATOR=';'
  4046. else
  4047. PATH_SEPARATOR=:
  4048. fi
  4049. rm -f conf$$.sh
  4050. fi
  4051. # Support unset when possible.
  4052. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4053. as_unset=unset
  4054. else
  4055. as_unset=false
  4056. fi
  4057. # IFS
  4058. # We need space, tab and new line, in precisely that order. Quoting is
  4059. # there to prevent editors from complaining about space-tab.
  4060. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4061. # splitting by setting IFS to empty value.)
  4062. as_nl='
  4063. '
  4064. IFS=" "" $as_nl"
  4065. # Find who we are. Look in the path if we contain no directory separator.
  4066. case $0 in
  4067. *[\\/]* ) as_myself=$0 ;;
  4068. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4069. for as_dir in $PATH
  4070. do
  4071. IFS=$as_save_IFS
  4072. test -z "$as_dir" && as_dir=.
  4073. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4074. done
  4075. IFS=$as_save_IFS
  4076. ;;
  4077. esac
  4078. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4079. # in which case we are not to be found in the path.
  4080. if test "x$as_myself" = x; then
  4081. as_myself=$0
  4082. fi
  4083. if test ! -f "$as_myself"; then
  4084. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4085. { (exit 1); exit 1; }
  4086. fi
  4087. # Work around bugs in pre-3.0 UWIN ksh.
  4088. for as_var in ENV MAIL MAILPATH
  4089. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4090. done
  4091. PS1='$ '
  4092. PS2='> '
  4093. PS4='+ '
  4094. # NLS nuisances.
  4095. for as_var in \
  4096. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4097. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4098. LC_TELEPHONE LC_TIME
  4099. do
  4100. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4101. eval $as_var=C; export $as_var
  4102. else
  4103. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4104. fi
  4105. done
  4106. # Required to use basename.
  4107. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4108. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4109. as_expr=expr
  4110. else
  4111. as_expr=false
  4112. fi
  4113. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4114. as_basename=basename
  4115. else
  4116. as_basename=false
  4117. fi
  4118. # Name of the executable.
  4119. as_me=`$as_basename -- "$0" ||
  4120. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4121. X"$0" : 'X\(//\)$' \| \
  4122. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4123. echo X/"$0" |
  4124. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4125. s//\1/
  4126. q
  4127. }
  4128. /^X\/\(\/\/\)$/{
  4129. s//\1/
  4130. q
  4131. }
  4132. /^X\/\(\/\).*/{
  4133. s//\1/
  4134. q
  4135. }
  4136. s/.*/./; q'`
  4137. # CDPATH.
  4138. $as_unset CDPATH
  4139. as_lineno_1=$LINENO
  4140. as_lineno_2=$LINENO
  4141. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4142. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  4143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4144. # uniformly replaced by the line number. The first 'sed' inserts a
  4145. # line-number line after each line using $LINENO; the second 'sed'
  4146. # does the real work. The second script uses 'N' to pair each
  4147. # line-number line with the line containing $LINENO, and appends
  4148. # trailing '-' during substitution so that $LINENO is not a special
  4149. # case at line end.
  4150. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4151. # scripts with optimization help from Paolo Bonzini. Blame Lee
  4152. # E. McMahon (1931-1989) for sed's syntax. :-)
  4153. sed -n '
  4154. p
  4155. /[$]LINENO/=
  4156. ' <$as_myself |
  4157. sed '
  4158. s/[$]LINENO.*/&-/
  4159. t lineno
  4160. b
  4161. :lineno
  4162. N
  4163. :loop
  4164. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  4165. t loop
  4166. s/-\n.*//
  4167. ' >$as_me.lineno &&
  4168. chmod +x "$as_me.lineno" ||
  4169. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  4170. { (exit 1); exit 1; }; }
  4171. # Don't try to exec as it changes $[0], causing all sort of problems
  4172. # (the dirname of $[0] is not the place where we might find the
  4173. # original and so on. Autoconf is especially sensitive to this).
  4174. . "./$as_me.lineno"
  4175. # Exit status is that of the last command.
  4176. exit
  4177. }
  4178. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4179. as_dirname=dirname
  4180. else
  4181. as_dirname=false
  4182. fi
  4183. ECHO_C= ECHO_N= ECHO_T=
  4184. case `echo -n x` in
  4185. -n*)
  4186. case `echo 'x\c'` in
  4187. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4188. *) ECHO_C='\c';;
  4189. esac;;
  4190. *)
  4191. ECHO_N='-n';;
  4192. esac
  4193. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4194. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4195. as_expr=expr
  4196. else
  4197. as_expr=false
  4198. fi
  4199. rm -f conf$$ conf$$.exe conf$$.file
  4200. if test -d conf$$.dir; then
  4201. rm -f conf$$.dir/conf$$.file
  4202. else
  4203. rm -f conf$$.dir
  4204. mkdir conf$$.dir
  4205. fi
  4206. echo >conf$$.file
  4207. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4208. as_ln_s='ln -s'
  4209. # ... but there are two gotchas:
  4210. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4211. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4212. # In both cases, we have to default to `cp -p'.
  4213. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4214. as_ln_s='cp -p'
  4215. elif ln conf$$.file conf$$ 2>/dev/null; then
  4216. as_ln_s=ln
  4217. else
  4218. as_ln_s='cp -p'
  4219. fi
  4220. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4221. rmdir conf$$.dir 2>/dev/null
  4222. if mkdir -p . 2>/dev/null; then
  4223. as_mkdir_p=:
  4224. else
  4225. test -d ./-p && rmdir ./-p
  4226. as_mkdir_p=false
  4227. fi
  4228. if test -x / >/dev/null 2>&1; then
  4229. as_test_x='test -x'
  4230. else
  4231. if ls -dL / >/dev/null 2>&1; then
  4232. as_ls_L_option=L
  4233. else
  4234. as_ls_L_option=
  4235. fi
  4236. as_test_x='
  4237. eval sh -c '\''
  4238. if test -d "$1"; then
  4239. test -d "$1/.";
  4240. else
  4241. case $1 in
  4242. -*)set "./$1";;
  4243. esac;
  4244. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  4245. ???[sx]*):;;*)false;;esac;fi
  4246. '\'' sh
  4247. '
  4248. fi
  4249. as_executable_p=$as_test_x
  4250. # Sed expression to map a string onto a valid CPP name.
  4251. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4252. # Sed expression to map a string onto a valid variable name.
  4253. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4254. exec 6>&1
  4255. # Save the log message, to keep $[0] and so on meaningful, and to
  4256. # report actual input values of CONFIG_FILES etc. instead of their
  4257. # values after options handling.
  4258. ac_log="
  4259. This file was extended by $as_me, which was
  4260. generated by GNU Autoconf 2.61. Invocation command line was
  4261. CONFIG_FILES = $CONFIG_FILES
  4262. CONFIG_HEADERS = $CONFIG_HEADERS
  4263. CONFIG_LINKS = $CONFIG_LINKS
  4264. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4265. $ $0 $@
  4266. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4267. "
  4268. _ACEOF
  4269. cat >>$CONFIG_STATUS <<_ACEOF
  4270. # Files that config.status was made for.
  4271. config_files="$ac_config_files"
  4272. _ACEOF
  4273. cat >>$CONFIG_STATUS <<\_ACEOF
  4274. ac_cs_usage="\
  4275. \`$as_me' instantiates files from templates according to the
  4276. current configuration.
  4277. Usage: $0 [OPTIONS] [FILE]...
  4278. -h, --help print this help, then exit
  4279. -V, --version print version number and configuration settings, then exit
  4280. -q, --quiet do not print progress messages
  4281. -d, --debug don't remove temporary files
  4282. --recheck update $as_me by reconfiguring in the same conditions
  4283. --file=FILE[:TEMPLATE]
  4284. instantiate the configuration file FILE
  4285. Configuration files:
  4286. $config_files
  4287. Report bugs to <bug-autoconf@gnu.org>."
  4288. _ACEOF
  4289. cat >>$CONFIG_STATUS <<_ACEOF
  4290. ac_cs_version="\\
  4291. config.status
  4292. configured by $0, generated by GNU Autoconf 2.61,
  4293. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4294. Copyright (C) 2006 Free Software Foundation, Inc.
  4295. This config.status script is free software; the Free Software Foundation
  4296. gives unlimited permission to copy, distribute and modify it."
  4297. ac_pwd='$ac_pwd'
  4298. srcdir='$srcdir'
  4299. _ACEOF
  4300. cat >>$CONFIG_STATUS <<\_ACEOF
  4301. # If no file are specified by the user, then we need to provide default
  4302. # value. By we need to know if files were specified by the user.
  4303. ac_need_defaults=:
  4304. while test $# != 0
  4305. do
  4306. case $1 in
  4307. --*=*)
  4308. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4309. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4310. ac_shift=:
  4311. ;;
  4312. *)
  4313. ac_option=$1
  4314. ac_optarg=$2
  4315. ac_shift=shift
  4316. ;;
  4317. esac
  4318. case $ac_option in
  4319. # Handling of the options.
  4320. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4321. ac_cs_recheck=: ;;
  4322. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4323. echo "$ac_cs_version"; exit ;;
  4324. --debug | --debu | --deb | --de | --d | -d )
  4325. debug=: ;;
  4326. --file | --fil | --fi | --f )
  4327. $ac_shift
  4328. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4329. ac_need_defaults=false;;
  4330. --he | --h | --help | --hel | -h )
  4331. echo "$ac_cs_usage"; exit ;;
  4332. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4333. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4334. ac_cs_silent=: ;;
  4335. # This is an error.
  4336. -*) { echo "$as_me: error: unrecognized option: $1
  4337. Try \`$0 --help' for more information." >&2
  4338. { (exit 1); exit 1; }; } ;;
  4339. *) ac_config_targets="$ac_config_targets $1"
  4340. ac_need_defaults=false ;;
  4341. esac
  4342. shift
  4343. done
  4344. ac_configure_extra_args=
  4345. if $ac_cs_silent; then
  4346. exec 6>/dev/null
  4347. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4348. fi
  4349. _ACEOF
  4350. cat >>$CONFIG_STATUS <<_ACEOF
  4351. if \$ac_cs_recheck; then
  4352. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4353. CONFIG_SHELL=$SHELL
  4354. export CONFIG_SHELL
  4355. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4356. fi
  4357. _ACEOF
  4358. cat >>$CONFIG_STATUS <<\_ACEOF
  4359. exec 5>>config.log
  4360. {
  4361. echo
  4362. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4363. ## Running $as_me. ##
  4364. _ASBOX
  4365. echo "$ac_log"
  4366. } >&5
  4367. _ACEOF
  4368. cat >>$CONFIG_STATUS <<_ACEOF
  4369. _ACEOF
  4370. cat >>$CONFIG_STATUS <<\_ACEOF
  4371. # Handling of arguments.
  4372. for ac_config_target in $ac_config_targets
  4373. do
  4374. case $ac_config_target in
  4375. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4376. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  4377. "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  4378. "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  4379. "src/ladmin/Makefile") CONFIG_FILES="$CONFIG_FILES src/ladmin/Makefile" ;;
  4380. "src/char_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/char_sql/Makefile" ;;
  4381. "src/login_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/login_sql/Makefile" ;;
  4382. "src/txt-converter/Makefile") CONFIG_FILES="$CONFIG_FILES src/txt-converter/Makefile" ;;
  4383. "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  4384. "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
  4385. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  4386. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4387. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4388. { (exit 1); exit 1; }; };;
  4389. esac
  4390. done
  4391. # If the user did not use the arguments to specify the items to instantiate,
  4392. # then the envvar interface is used. Set only those that are not.
  4393. # We use the long form for the default assignment because of an extremely
  4394. # bizarre bug on SunOS 4.1.3.
  4395. if $ac_need_defaults; then
  4396. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4397. fi
  4398. # Have a temporary directory for convenience. Make it in the build tree
  4399. # simply because there is no reason against having it here, and in addition,
  4400. # creating and moving files from /tmp can sometimes cause problems.
  4401. # Hook for its removal unless debugging.
  4402. # Note that there is a small window in which the directory will not be cleaned:
  4403. # after its creation but before its name has been assigned to `$tmp'.
  4404. $debug ||
  4405. {
  4406. tmp=
  4407. trap 'exit_status=$?
  4408. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  4409. ' 0
  4410. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4411. }
  4412. # Create a (secure) tmp directory for tmp files.
  4413. {
  4414. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4415. test -n "$tmp" && test -d "$tmp"
  4416. } ||
  4417. {
  4418. tmp=./conf$$-$RANDOM
  4419. (umask 077 && mkdir "$tmp")
  4420. } ||
  4421. {
  4422. echo "$me: cannot create a temporary directory in ." >&2
  4423. { (exit 1); exit 1; }
  4424. }
  4425. #
  4426. # Set up the sed scripts for CONFIG_FILES section.
  4427. #
  4428. # No need to generate the scripts if there are no CONFIG_FILES.
  4429. # This happens for instance when ./config.status config.h
  4430. if test -n "$CONFIG_FILES"; then
  4431. _ACEOF
  4432. ac_delim='%!_!# '
  4433. for ac_last_try in false false false false false :; do
  4434. cat >conf$$subs.sed <<_ACEOF
  4435. SHELL!$SHELL$ac_delim
  4436. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  4437. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  4438. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  4439. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  4440. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  4441. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  4442. exec_prefix!$exec_prefix$ac_delim
  4443. prefix!$prefix$ac_delim
  4444. program_transform_name!$program_transform_name$ac_delim
  4445. bindir!$bindir$ac_delim
  4446. sbindir!$sbindir$ac_delim
  4447. libexecdir!$libexecdir$ac_delim
  4448. datarootdir!$datarootdir$ac_delim
  4449. datadir!$datadir$ac_delim
  4450. sysconfdir!$sysconfdir$ac_delim
  4451. sharedstatedir!$sharedstatedir$ac_delim
  4452. localstatedir!$localstatedir$ac_delim
  4453. includedir!$includedir$ac_delim
  4454. oldincludedir!$oldincludedir$ac_delim
  4455. docdir!$docdir$ac_delim
  4456. infodir!$infodir$ac_delim
  4457. htmldir!$htmldir$ac_delim
  4458. dvidir!$dvidir$ac_delim
  4459. pdfdir!$pdfdir$ac_delim
  4460. psdir!$psdir$ac_delim
  4461. libdir!$libdir$ac_delim
  4462. localedir!$localedir$ac_delim
  4463. mandir!$mandir$ac_delim
  4464. DEFS!$DEFS$ac_delim
  4465. ECHO_C!$ECHO_C$ac_delim
  4466. ECHO_N!$ECHO_N$ac_delim
  4467. ECHO_T!$ECHO_T$ac_delim
  4468. LIBS!$LIBS$ac_delim
  4469. build_alias!$build_alias$ac_delim
  4470. host_alias!$host_alias$ac_delim
  4471. target_alias!$target_alias$ac_delim
  4472. SET_MAKE!$SET_MAKE$ac_delim
  4473. CC!$CC$ac_delim
  4474. CFLAGS!$CFLAGS$ac_delim
  4475. LDFLAGS!$LDFLAGS$ac_delim
  4476. CPPFLAGS!$CPPFLAGS$ac_delim
  4477. ac_ct_CC!$ac_ct_CC$ac_delim
  4478. EXEEXT!$EXEEXT$ac_delim
  4479. OBJEXT!$OBJEXT$ac_delim
  4480. CPP!$CPP$ac_delim
  4481. GREP!$GREP$ac_delim
  4482. EGREP!$EGREP$ac_delim
  4483. MYSQL_CONFIG_HOME!$MYSQL_CONFIG_HOME$ac_delim
  4484. HAVE_MYSQL!$HAVE_MYSQL$ac_delim
  4485. MYSQL_VERSION!$MYSQL_VERSION$ac_delim
  4486. MYSQL_CFLAGS!$MYSQL_CFLAGS$ac_delim
  4487. MYSQL_LIBS!$MYSQL_LIBS$ac_delim
  4488. HAVE_PCRE!$HAVE_PCRE$ac_delim
  4489. PCRE_LIBS!$PCRE_LIBS$ac_delim
  4490. PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
  4491. DLLEXT!$DLLEXT$ac_delim
  4492. LIBOBJS!$LIBOBJS$ac_delim
  4493. LTLIBOBJS!$LTLIBOBJS$ac_delim
  4494. _ACEOF
  4495. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
  4496. break
  4497. elif $ac_last_try; then
  4498. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4499. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4500. { (exit 1); exit 1; }; }
  4501. else
  4502. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4503. fi
  4504. done
  4505. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  4506. if test -n "$ac_eof"; then
  4507. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  4508. ac_eof=`expr $ac_eof + 1`
  4509. fi
  4510. cat >>$CONFIG_STATUS <<_ACEOF
  4511. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  4512. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  4513. _ACEOF
  4514. sed '
  4515. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  4516. s/^/s,@/; s/!/@,|#_!!_#|/
  4517. :n
  4518. t n
  4519. s/'"$ac_delim"'$/,g/; t
  4520. s/$/\\/; p
  4521. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  4522. ' >>$CONFIG_STATUS <conf$$subs.sed
  4523. rm -f conf$$subs.sed
  4524. cat >>$CONFIG_STATUS <<_ACEOF
  4525. :end
  4526. s/|#_!!_#|//g
  4527. CEOF$ac_eof
  4528. _ACEOF
  4529. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4530. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4531. # trailing colons and then remove the whole line if VPATH becomes empty
  4532. # (actually we leave an empty line to preserve line numbers).
  4533. if test "x$srcdir" = x.; then
  4534. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4535. s/:*\$(srcdir):*/:/
  4536. s/:*\${srcdir}:*/:/
  4537. s/:*@srcdir@:*/:/
  4538. s/^\([^=]*=[ ]*\):*/\1/
  4539. s/:*$//
  4540. s/^[^=]*=[ ]*$//
  4541. }'
  4542. fi
  4543. cat >>$CONFIG_STATUS <<\_ACEOF
  4544. fi # test -n "$CONFIG_FILES"
  4545. for ac_tag in :F $CONFIG_FILES
  4546. do
  4547. case $ac_tag in
  4548. :[FHLC]) ac_mode=$ac_tag; continue;;
  4549. esac
  4550. case $ac_mode$ac_tag in
  4551. :[FHL]*:*);;
  4552. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4553. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4554. { (exit 1); exit 1; }; };;
  4555. :[FH]-) ac_tag=-:-;;
  4556. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4557. esac
  4558. ac_save_IFS=$IFS
  4559. IFS=:
  4560. set x $ac_tag
  4561. IFS=$ac_save_IFS
  4562. shift
  4563. ac_file=$1
  4564. shift
  4565. case $ac_mode in
  4566. :L) ac_source=$1;;
  4567. :[FH])
  4568. ac_file_inputs=
  4569. for ac_f
  4570. do
  4571. case $ac_f in
  4572. -) ac_f="$tmp/stdin";;
  4573. *) # Look for the file first in the build tree, then in the source tree
  4574. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4575. # because $ac_f cannot contain `:'.
  4576. test -f "$ac_f" ||
  4577. case $ac_f in
  4578. [\\/$]*) false;;
  4579. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4580. esac ||
  4581. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4582. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4583. { (exit 1); exit 1; }; };;
  4584. esac
  4585. ac_file_inputs="$ac_file_inputs $ac_f"
  4586. done
  4587. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4588. # use $as_me), people would be surprised to read:
  4589. # /* config.h. Generated by config.status. */
  4590. configure_input="Generated from "`IFS=:
  4591. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  4592. if test x"$ac_file" != x-; then
  4593. configure_input="$ac_file. $configure_input"
  4594. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4595. echo "$as_me: creating $ac_file" >&6;}
  4596. fi
  4597. case $ac_tag in
  4598. *:-:* | *:-) cat >"$tmp/stdin";;
  4599. esac
  4600. ;;
  4601. esac
  4602. ac_dir=`$as_dirname -- "$ac_file" ||
  4603. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4604. X"$ac_file" : 'X\(//\)[^/]' \| \
  4605. X"$ac_file" : 'X\(//\)$' \| \
  4606. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4607. echo X"$ac_file" |
  4608. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4609. s//\1/
  4610. q
  4611. }
  4612. /^X\(\/\/\)[^/].*/{
  4613. s//\1/
  4614. q
  4615. }
  4616. /^X\(\/\/\)$/{
  4617. s//\1/
  4618. q
  4619. }
  4620. /^X\(\/\).*/{
  4621. s//\1/
  4622. q
  4623. }
  4624. s/.*/./; q'`
  4625. { as_dir="$ac_dir"
  4626. case $as_dir in #(
  4627. -*) as_dir=./$as_dir;;
  4628. esac
  4629. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  4630. as_dirs=
  4631. while :; do
  4632. case $as_dir in #(
  4633. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  4634. *) as_qdir=$as_dir;;
  4635. esac
  4636. as_dirs="'$as_qdir' $as_dirs"
  4637. as_dir=`$as_dirname -- "$as_dir" ||
  4638. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4639. X"$as_dir" : 'X\(//\)[^/]' \| \
  4640. X"$as_dir" : 'X\(//\)$' \| \
  4641. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4642. echo X"$as_dir" |
  4643. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4644. s//\1/
  4645. q
  4646. }
  4647. /^X\(\/\/\)[^/].*/{
  4648. s//\1/
  4649. q
  4650. }
  4651. /^X\(\/\/\)$/{
  4652. s//\1/
  4653. q
  4654. }
  4655. /^X\(\/\).*/{
  4656. s//\1/
  4657. q
  4658. }
  4659. s/.*/./; q'`
  4660. test -d "$as_dir" && break
  4661. done
  4662. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4663. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  4664. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  4665. { (exit 1); exit 1; }; }; }
  4666. ac_builddir=.
  4667. case "$ac_dir" in
  4668. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4669. *)
  4670. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4671. # A ".." for each directory in $ac_dir_suffix.
  4672. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  4673. case $ac_top_builddir_sub in
  4674. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4675. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4676. esac ;;
  4677. esac
  4678. ac_abs_top_builddir=$ac_pwd
  4679. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4680. # for backward compatibility:
  4681. ac_top_builddir=$ac_top_build_prefix
  4682. case $srcdir in
  4683. .) # We are building in place.
  4684. ac_srcdir=.
  4685. ac_top_srcdir=$ac_top_builddir_sub
  4686. ac_abs_top_srcdir=$ac_pwd ;;
  4687. [\\/]* | ?:[\\/]* ) # Absolute name.
  4688. ac_srcdir=$srcdir$ac_dir_suffix;
  4689. ac_top_srcdir=$srcdir
  4690. ac_abs_top_srcdir=$srcdir ;;
  4691. *) # Relative name.
  4692. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4693. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4694. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4695. esac
  4696. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4697. case $ac_mode in
  4698. :F)
  4699. #
  4700. # CONFIG_FILE
  4701. #
  4702. _ACEOF
  4703. cat >>$CONFIG_STATUS <<\_ACEOF
  4704. # If the template does not know about datarootdir, expand it.
  4705. # FIXME: This hack should be removed a few years after 2.60.
  4706. ac_datarootdir_hack=; ac_datarootdir_seen=
  4707. case `sed -n '/datarootdir/ {
  4708. p
  4709. q
  4710. }
  4711. /@datadir@/p
  4712. /@docdir@/p
  4713. /@infodir@/p
  4714. /@localedir@/p
  4715. /@mandir@/p
  4716. ' $ac_file_inputs` in
  4717. *datarootdir*) ac_datarootdir_seen=yes;;
  4718. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4719. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4720. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4721. _ACEOF
  4722. cat >>$CONFIG_STATUS <<_ACEOF
  4723. ac_datarootdir_hack='
  4724. s&@datadir@&$datadir&g
  4725. s&@docdir@&$docdir&g
  4726. s&@infodir@&$infodir&g
  4727. s&@localedir@&$localedir&g
  4728. s&@mandir@&$mandir&g
  4729. s&\\\${datarootdir}&$datarootdir&g' ;;
  4730. esac
  4731. _ACEOF
  4732. # Neutralize VPATH when `$srcdir' = `.'.
  4733. # Shell code in configure.ac might set extrasub.
  4734. # FIXME: do we really want to maintain this feature?
  4735. cat >>$CONFIG_STATUS <<_ACEOF
  4736. sed "$ac_vpsub
  4737. $extrasub
  4738. _ACEOF
  4739. cat >>$CONFIG_STATUS <<\_ACEOF
  4740. :t
  4741. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4742. s&@configure_input@&$configure_input&;t t
  4743. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4744. s&@srcdir@&$ac_srcdir&;t t
  4745. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4746. s&@top_srcdir@&$ac_top_srcdir&;t t
  4747. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4748. s&@builddir@&$ac_builddir&;t t
  4749. s&@abs_builddir@&$ac_abs_builddir&;t t
  4750. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4751. $ac_datarootdir_hack
  4752. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  4753. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4754. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  4755. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  4756. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4757. which seems to be undefined. Please make sure it is defined." >&5
  4758. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4759. which seems to be undefined. Please make sure it is defined." >&2;}
  4760. rm -f "$tmp/stdin"
  4761. case $ac_file in
  4762. -) cat "$tmp/out"; rm -f "$tmp/out";;
  4763. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  4764. esac
  4765. ;;
  4766. esac
  4767. done # for ac_tag
  4768. { (exit 0); exit 0; }
  4769. _ACEOF
  4770. chmod +x $CONFIG_STATUS
  4771. ac_clean_files=$ac_clean_files_save
  4772. # configure is writing to config.log, and then calls config.status.
  4773. # config.status does its own redirection, appending to config.log.
  4774. # Unfortunately, on DOS this fails, as config.log is still kept open
  4775. # by configure, so config.status won't be able to write to it; its
  4776. # output is simply discarded. So we exec the FD to /dev/null,
  4777. # effectively closing config.log, so it can be properly (re)opened and
  4778. # appended to by config.status. When coming back to configure, we
  4779. # need to make the FD available again.
  4780. if test "$no_create" != yes; then
  4781. ac_cs_success=:
  4782. ac_config_status_args=
  4783. test "$silent" = yes &&
  4784. ac_config_status_args="$ac_config_status_args --quiet"
  4785. exec 5>/dev/null
  4786. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4787. exec 5>>config.log
  4788. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4789. # would make configure fail if this is the last instruction.
  4790. $ac_cs_success || { (exit 1); exit 1; }
  4791. fi