configure 148 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473
  1. #! /bin/sh
  2. # From configure.in Revision: 11695.
  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, optionally specify path to
  1092. the mysql_config executable (by default mysql is
  1093. used if found)
  1094. --with-pcre[=ARG] use PCRE library, optionally specify the root
  1095. directory path of pcre installation (by default pcre
  1096. is used if found)
  1097. --with-zlib=DIR root directory path of zlib installation (defaults
  1098. to /usr/local or /usr if not found in /usr/local)
  1099. Some influential environment variables:
  1100. CC C compiler command
  1101. CFLAGS C compiler flags
  1102. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1103. nonstandard directory <lib dir>
  1104. LIBS libraries to pass to the linker, e.g. -l<library>
  1105. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1106. you have headers in a nonstandard directory <include dir>
  1107. CPP C preprocessor
  1108. Use these variables to override the choices made by `configure' or to help
  1109. it to find libraries and programs with nonstandard names/locations.
  1110. _ACEOF
  1111. ac_status=$?
  1112. fi
  1113. if test "$ac_init_help" = "recursive"; then
  1114. # If there are subdirs, report their specific --help.
  1115. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1116. test -d "$ac_dir" || continue
  1117. ac_builddir=.
  1118. case "$ac_dir" in
  1119. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1120. *)
  1121. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1122. # A ".." for each directory in $ac_dir_suffix.
  1123. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1124. case $ac_top_builddir_sub in
  1125. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1126. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1127. esac ;;
  1128. esac
  1129. ac_abs_top_builddir=$ac_pwd
  1130. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1131. # for backward compatibility:
  1132. ac_top_builddir=$ac_top_build_prefix
  1133. case $srcdir in
  1134. .) # We are building in place.
  1135. ac_srcdir=.
  1136. ac_top_srcdir=$ac_top_builddir_sub
  1137. ac_abs_top_srcdir=$ac_pwd ;;
  1138. [\\/]* | ?:[\\/]* ) # Absolute name.
  1139. ac_srcdir=$srcdir$ac_dir_suffix;
  1140. ac_top_srcdir=$srcdir
  1141. ac_abs_top_srcdir=$srcdir ;;
  1142. *) # Relative name.
  1143. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1144. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1145. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1146. esac
  1147. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1148. cd "$ac_dir" || { ac_status=$?; continue; }
  1149. # Check for guested configure.
  1150. if test -f "$ac_srcdir/configure.gnu"; then
  1151. echo &&
  1152. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1153. elif test -f "$ac_srcdir/configure"; then
  1154. echo &&
  1155. $SHELL "$ac_srcdir/configure" --help=recursive
  1156. else
  1157. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1158. fi || ac_status=$?
  1159. cd "$ac_pwd" || { ac_status=$?; break; }
  1160. done
  1161. fi
  1162. test -n "$ac_init_help" && exit $ac_status
  1163. if $ac_init_version; then
  1164. cat <<\_ACEOF
  1165. configure
  1166. generated by GNU Autoconf 2.61
  1167. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1168. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1169. This configure script is free software; the Free Software Foundation
  1170. gives unlimited permission to copy, distribute and modify it.
  1171. _ACEOF
  1172. exit
  1173. fi
  1174. cat >config.log <<_ACEOF
  1175. This file contains any messages produced by compilers while
  1176. running configure, to aid debugging if configure makes a mistake.
  1177. It was created by $as_me, which was
  1178. generated by GNU Autoconf 2.61. Invocation command line was
  1179. $ $0 $@
  1180. _ACEOF
  1181. exec 5>>config.log
  1182. {
  1183. cat <<_ASUNAME
  1184. ## --------- ##
  1185. ## Platform. ##
  1186. ## --------- ##
  1187. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1188. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1189. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1190. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1191. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1192. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1193. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1194. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1195. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1196. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1197. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1198. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1199. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1200. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1201. _ASUNAME
  1202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1203. for as_dir in $PATH
  1204. do
  1205. IFS=$as_save_IFS
  1206. test -z "$as_dir" && as_dir=.
  1207. echo "PATH: $as_dir"
  1208. done
  1209. IFS=$as_save_IFS
  1210. } >&5
  1211. cat >&5 <<_ACEOF
  1212. ## ----------- ##
  1213. ## Core tests. ##
  1214. ## ----------- ##
  1215. _ACEOF
  1216. # Keep a trace of the command line.
  1217. # Strip out --no-create and --no-recursion so they do not pile up.
  1218. # Strip out --silent because we don't want to record it for future runs.
  1219. # Also quote any args containing shell meta-characters.
  1220. # Make two passes to allow for proper duplicate-argument suppression.
  1221. ac_configure_args=
  1222. ac_configure_args0=
  1223. ac_configure_args1=
  1224. ac_must_keep_next=false
  1225. for ac_pass in 1 2
  1226. do
  1227. for ac_arg
  1228. do
  1229. case $ac_arg in
  1230. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1231. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1232. | -silent | --silent | --silen | --sile | --sil)
  1233. continue ;;
  1234. *\'*)
  1235. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1236. esac
  1237. case $ac_pass in
  1238. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1239. 2)
  1240. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1241. if test $ac_must_keep_next = true; then
  1242. ac_must_keep_next=false # Got value, back to normal.
  1243. else
  1244. case $ac_arg in
  1245. *=* | --config-cache | -C | -disable-* | --disable-* \
  1246. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1247. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1248. | -with-* | --with-* | -without-* | --without-* | --x)
  1249. case "$ac_configure_args0 " in
  1250. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1251. esac
  1252. ;;
  1253. -* ) ac_must_keep_next=true ;;
  1254. esac
  1255. fi
  1256. ac_configure_args="$ac_configure_args '$ac_arg'"
  1257. ;;
  1258. esac
  1259. done
  1260. done
  1261. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1262. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1263. # When interrupted or exit'd, cleanup temporary files, and complete
  1264. # config.log. We remove comments because anyway the quotes in there
  1265. # would cause problems or look ugly.
  1266. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1267. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1268. trap 'exit_status=$?
  1269. # Save into config.log some information that might help in debugging.
  1270. {
  1271. echo
  1272. cat <<\_ASBOX
  1273. ## ---------------- ##
  1274. ## Cache variables. ##
  1275. ## ---------------- ##
  1276. _ASBOX
  1277. echo
  1278. # The following way of writing the cache mishandles newlines in values,
  1279. (
  1280. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1281. eval ac_val=\$$ac_var
  1282. case $ac_val in #(
  1283. *${as_nl}*)
  1284. case $ac_var in #(
  1285. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1286. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1287. esac
  1288. case $ac_var in #(
  1289. _ | IFS | as_nl) ;; #(
  1290. *) $as_unset $ac_var ;;
  1291. esac ;;
  1292. esac
  1293. done
  1294. (set) 2>&1 |
  1295. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1296. *${as_nl}ac_space=\ *)
  1297. sed -n \
  1298. "s/'\''/'\''\\\\'\'''\''/g;
  1299. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1300. ;; #(
  1301. *)
  1302. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1303. ;;
  1304. esac |
  1305. sort
  1306. )
  1307. echo
  1308. cat <<\_ASBOX
  1309. ## ----------------- ##
  1310. ## Output variables. ##
  1311. ## ----------------- ##
  1312. _ASBOX
  1313. echo
  1314. for ac_var in $ac_subst_vars
  1315. do
  1316. eval ac_val=\$$ac_var
  1317. case $ac_val in
  1318. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1319. esac
  1320. echo "$ac_var='\''$ac_val'\''"
  1321. done | sort
  1322. echo
  1323. if test -n "$ac_subst_files"; then
  1324. cat <<\_ASBOX
  1325. ## ------------------- ##
  1326. ## File substitutions. ##
  1327. ## ------------------- ##
  1328. _ASBOX
  1329. echo
  1330. for ac_var in $ac_subst_files
  1331. do
  1332. eval ac_val=\$$ac_var
  1333. case $ac_val in
  1334. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1335. esac
  1336. echo "$ac_var='\''$ac_val'\''"
  1337. done | sort
  1338. echo
  1339. fi
  1340. if test -s confdefs.h; then
  1341. cat <<\_ASBOX
  1342. ## ----------- ##
  1343. ## confdefs.h. ##
  1344. ## ----------- ##
  1345. _ASBOX
  1346. echo
  1347. cat confdefs.h
  1348. echo
  1349. fi
  1350. test "$ac_signal" != 0 &&
  1351. echo "$as_me: caught signal $ac_signal"
  1352. echo "$as_me: exit $exit_status"
  1353. } >&5
  1354. rm -f core *.core core.conftest.* &&
  1355. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1356. exit $exit_status
  1357. ' 0
  1358. for ac_signal in 1 2 13 15; do
  1359. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1360. done
  1361. ac_signal=0
  1362. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1363. rm -f -r conftest* confdefs.h
  1364. # Predefined preprocessor variables.
  1365. cat >>confdefs.h <<_ACEOF
  1366. #define PACKAGE_NAME "$PACKAGE_NAME"
  1367. _ACEOF
  1368. cat >>confdefs.h <<_ACEOF
  1369. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1370. _ACEOF
  1371. cat >>confdefs.h <<_ACEOF
  1372. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1373. _ACEOF
  1374. cat >>confdefs.h <<_ACEOF
  1375. #define PACKAGE_STRING "$PACKAGE_STRING"
  1376. _ACEOF
  1377. cat >>confdefs.h <<_ACEOF
  1378. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1379. _ACEOF
  1380. # Let the site file select an alternate cache file if it wants to.
  1381. # Prefer explicitly selected file to automatically selected ones.
  1382. if test -n "$CONFIG_SITE"; then
  1383. set x "$CONFIG_SITE"
  1384. elif test "x$prefix" != xNONE; then
  1385. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1386. else
  1387. set x "$ac_default_prefix/share/config.site" \
  1388. "$ac_default_prefix/etc/config.site"
  1389. fi
  1390. shift
  1391. for ac_site_file
  1392. do
  1393. if test -r "$ac_site_file"; then
  1394. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1395. echo "$as_me: loading site script $ac_site_file" >&6;}
  1396. sed 's/^/| /' "$ac_site_file" >&5
  1397. . "$ac_site_file"
  1398. fi
  1399. done
  1400. if test -r "$cache_file"; then
  1401. # Some versions of bash will fail to source /dev/null (special
  1402. # files actually), so we avoid doing that.
  1403. if test -f "$cache_file"; then
  1404. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1405. echo "$as_me: loading cache $cache_file" >&6;}
  1406. case $cache_file in
  1407. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1408. *) . "./$cache_file";;
  1409. esac
  1410. fi
  1411. else
  1412. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1413. echo "$as_me: creating cache $cache_file" >&6;}
  1414. >$cache_file
  1415. fi
  1416. # Check that the precious variables saved in the cache have kept the same
  1417. # value.
  1418. ac_cache_corrupted=false
  1419. for ac_var in $ac_precious_vars; do
  1420. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1421. eval ac_new_set=\$ac_env_${ac_var}_set
  1422. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1423. eval ac_new_val=\$ac_env_${ac_var}_value
  1424. case $ac_old_set,$ac_new_set in
  1425. set,)
  1426. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1427. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1428. ac_cache_corrupted=: ;;
  1429. ,set)
  1430. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1431. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1432. ac_cache_corrupted=: ;;
  1433. ,);;
  1434. *)
  1435. if test "x$ac_old_val" != "x$ac_new_val"; then
  1436. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1437. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1438. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1439. echo "$as_me: former value: $ac_old_val" >&2;}
  1440. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1441. echo "$as_me: current value: $ac_new_val" >&2;}
  1442. ac_cache_corrupted=:
  1443. fi;;
  1444. esac
  1445. # Pass precious variables to config.status.
  1446. if test "$ac_new_set" = set; then
  1447. case $ac_new_val in
  1448. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1449. *) ac_arg=$ac_var=$ac_new_val ;;
  1450. esac
  1451. case " $ac_configure_args " in
  1452. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1453. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1454. esac
  1455. fi
  1456. done
  1457. if $ac_cache_corrupted; then
  1458. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1459. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1460. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1461. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1462. { (exit 1); exit 1; }; }
  1463. fi
  1464. ac_ext=c
  1465. ac_cpp='$CPP $CPPFLAGS'
  1466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1469. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1470. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile src/ladmin/Makefile"
  1471. ac_config_files="$ac_config_files src/char_sql/Makefile src/login_sql/Makefile src/txt-converter/Makefile"
  1472. ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile"
  1473. #
  1474. # Enable/disable MySql and optionally specify the path (optional library)
  1475. #
  1476. # Check whether --with-mysql was given.
  1477. if test "${with_mysql+set}" = set; then
  1478. withval=$with_mysql;
  1479. if test "$withval" = "no" ; then
  1480. want_mysql="no"
  1481. else
  1482. want_mysql="yes"
  1483. require_mysql="yes"
  1484. if test "$withval" != "yes" ; then
  1485. MYSQL_CONFIG_HOME="$withval"
  1486. fi
  1487. fi
  1488. else
  1489. want_mysql="yes" require_mysql="no"
  1490. fi
  1491. #
  1492. # Enable/disable PCRE and optionally specify the path (optional library)
  1493. #
  1494. # Check whether --with-pcre was given.
  1495. if test "${with_pcre+set}" = set; then
  1496. withval=$with_pcre;
  1497. if test "$withval" = "no" ; then
  1498. want_pcre="no"
  1499. else
  1500. want_pcre="yes"
  1501. require_pcre="yes"
  1502. if test "$withval" != "yes" ; then
  1503. PCRE_HOME="$withval"
  1504. fi
  1505. fi
  1506. else
  1507. want_pcre="yes" require_pcre="no"
  1508. fi
  1509. #
  1510. # Specify the path of the zlib library (required library)
  1511. #
  1512. # Check whether --with-zlib was given.
  1513. if test "${with_zlib+set}" = set; then
  1514. withval=$with_zlib;
  1515. test -n "$withval" && ZLIB_HOME="$withval"
  1516. else
  1517. ZLIB_HOME=/usr/local
  1518. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  1519. fi
  1520. ###############################################################################
  1521. # Checks for programs and types.
  1522. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1523. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1524. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1525. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1526. echo $ECHO_N "(cached) $ECHO_C" >&6
  1527. else
  1528. cat >conftest.make <<\_ACEOF
  1529. SHELL = /bin/sh
  1530. all:
  1531. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1532. _ACEOF
  1533. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1534. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1535. *@@@%%%=?*=@@@%%%*)
  1536. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1537. *)
  1538. eval ac_cv_prog_make_${ac_make}_set=no;;
  1539. esac
  1540. rm -f conftest.make
  1541. fi
  1542. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1543. { echo "$as_me:$LINENO: result: yes" >&5
  1544. echo "${ECHO_T}yes" >&6; }
  1545. SET_MAKE=
  1546. else
  1547. { echo "$as_me:$LINENO: result: no" >&5
  1548. echo "${ECHO_T}no" >&6; }
  1549. SET_MAKE="MAKE=${MAKE-make}"
  1550. fi
  1551. ac_ext=c
  1552. ac_cpp='$CPP $CPPFLAGS'
  1553. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1554. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1555. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1556. if test -n "$ac_tool_prefix"; then
  1557. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1558. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1559. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1560. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1561. if test "${ac_cv_prog_CC+set}" = set; then
  1562. echo $ECHO_N "(cached) $ECHO_C" >&6
  1563. else
  1564. if test -n "$CC"; then
  1565. ac_cv_prog_CC="$CC" # Let the user override the test.
  1566. else
  1567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1568. for as_dir in $PATH
  1569. do
  1570. IFS=$as_save_IFS
  1571. test -z "$as_dir" && as_dir=.
  1572. for ac_exec_ext in '' $ac_executable_extensions; do
  1573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1574. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1575. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1576. break 2
  1577. fi
  1578. done
  1579. done
  1580. IFS=$as_save_IFS
  1581. fi
  1582. fi
  1583. CC=$ac_cv_prog_CC
  1584. if test -n "$CC"; then
  1585. { echo "$as_me:$LINENO: result: $CC" >&5
  1586. echo "${ECHO_T}$CC" >&6; }
  1587. else
  1588. { echo "$as_me:$LINENO: result: no" >&5
  1589. echo "${ECHO_T}no" >&6; }
  1590. fi
  1591. fi
  1592. if test -z "$ac_cv_prog_CC"; then
  1593. ac_ct_CC=$CC
  1594. # Extract the first word of "gcc", so it can be a program name with args.
  1595. set dummy gcc; ac_word=$2
  1596. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1597. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1598. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1599. echo $ECHO_N "(cached) $ECHO_C" >&6
  1600. else
  1601. if test -n "$ac_ct_CC"; then
  1602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1603. else
  1604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1605. for as_dir in $PATH
  1606. do
  1607. IFS=$as_save_IFS
  1608. test -z "$as_dir" && as_dir=.
  1609. for ac_exec_ext in '' $ac_executable_extensions; do
  1610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1611. ac_cv_prog_ac_ct_CC="gcc"
  1612. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1613. break 2
  1614. fi
  1615. done
  1616. done
  1617. IFS=$as_save_IFS
  1618. fi
  1619. fi
  1620. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1621. if test -n "$ac_ct_CC"; then
  1622. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1623. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1624. else
  1625. { echo "$as_me:$LINENO: result: no" >&5
  1626. echo "${ECHO_T}no" >&6; }
  1627. fi
  1628. if test "x$ac_ct_CC" = x; then
  1629. CC=""
  1630. else
  1631. case $cross_compiling:$ac_tool_warned in
  1632. yes:)
  1633. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1634. whose name does not start with the host triplet. If you think this
  1635. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1636. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1637. whose name does not start with the host triplet. If you think this
  1638. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1639. ac_tool_warned=yes ;;
  1640. esac
  1641. CC=$ac_ct_CC
  1642. fi
  1643. else
  1644. CC="$ac_cv_prog_CC"
  1645. fi
  1646. if test -z "$CC"; then
  1647. if test -n "$ac_tool_prefix"; then
  1648. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1649. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1650. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1651. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1652. if test "${ac_cv_prog_CC+set}" = set; then
  1653. echo $ECHO_N "(cached) $ECHO_C" >&6
  1654. else
  1655. if test -n "$CC"; then
  1656. ac_cv_prog_CC="$CC" # Let the user override the test.
  1657. else
  1658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1659. for as_dir in $PATH
  1660. do
  1661. IFS=$as_save_IFS
  1662. test -z "$as_dir" && as_dir=.
  1663. for ac_exec_ext in '' $ac_executable_extensions; do
  1664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1665. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1666. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1667. break 2
  1668. fi
  1669. done
  1670. done
  1671. IFS=$as_save_IFS
  1672. fi
  1673. fi
  1674. CC=$ac_cv_prog_CC
  1675. if test -n "$CC"; then
  1676. { echo "$as_me:$LINENO: result: $CC" >&5
  1677. echo "${ECHO_T}$CC" >&6; }
  1678. else
  1679. { echo "$as_me:$LINENO: result: no" >&5
  1680. echo "${ECHO_T}no" >&6; }
  1681. fi
  1682. fi
  1683. fi
  1684. if test -z "$CC"; then
  1685. # Extract the first word of "cc", so it can be a program name with args.
  1686. set dummy cc; ac_word=$2
  1687. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1688. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1689. if test "${ac_cv_prog_CC+set}" = set; then
  1690. echo $ECHO_N "(cached) $ECHO_C" >&6
  1691. else
  1692. if test -n "$CC"; then
  1693. ac_cv_prog_CC="$CC" # Let the user override the test.
  1694. else
  1695. ac_prog_rejected=no
  1696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1697. for as_dir in $PATH
  1698. do
  1699. IFS=$as_save_IFS
  1700. test -z "$as_dir" && as_dir=.
  1701. for ac_exec_ext in '' $ac_executable_extensions; do
  1702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1703. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1704. ac_prog_rejected=yes
  1705. continue
  1706. fi
  1707. ac_cv_prog_CC="cc"
  1708. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1709. break 2
  1710. fi
  1711. done
  1712. done
  1713. IFS=$as_save_IFS
  1714. if test $ac_prog_rejected = yes; then
  1715. # We found a bogon in the path, so make sure we never use it.
  1716. set dummy $ac_cv_prog_CC
  1717. shift
  1718. if test $# != 0; then
  1719. # We chose a different compiler from the bogus one.
  1720. # However, it has the same basename, so the bogon will be chosen
  1721. # first if we set CC to just the basename; use the full file name.
  1722. shift
  1723. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1724. fi
  1725. fi
  1726. fi
  1727. fi
  1728. CC=$ac_cv_prog_CC
  1729. if test -n "$CC"; then
  1730. { echo "$as_me:$LINENO: result: $CC" >&5
  1731. echo "${ECHO_T}$CC" >&6; }
  1732. else
  1733. { echo "$as_me:$LINENO: result: no" >&5
  1734. echo "${ECHO_T}no" >&6; }
  1735. fi
  1736. fi
  1737. if test -z "$CC"; then
  1738. if test -n "$ac_tool_prefix"; then
  1739. for ac_prog in cl.exe
  1740. do
  1741. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1742. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1743. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1744. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1745. if test "${ac_cv_prog_CC+set}" = set; then
  1746. echo $ECHO_N "(cached) $ECHO_C" >&6
  1747. else
  1748. if test -n "$CC"; then
  1749. ac_cv_prog_CC="$CC" # Let the user override the test.
  1750. else
  1751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1752. for as_dir in $PATH
  1753. do
  1754. IFS=$as_save_IFS
  1755. test -z "$as_dir" && as_dir=.
  1756. for ac_exec_ext in '' $ac_executable_extensions; do
  1757. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1758. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1759. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1760. break 2
  1761. fi
  1762. done
  1763. done
  1764. IFS=$as_save_IFS
  1765. fi
  1766. fi
  1767. CC=$ac_cv_prog_CC
  1768. if test -n "$CC"; then
  1769. { echo "$as_me:$LINENO: result: $CC" >&5
  1770. echo "${ECHO_T}$CC" >&6; }
  1771. else
  1772. { echo "$as_me:$LINENO: result: no" >&5
  1773. echo "${ECHO_T}no" >&6; }
  1774. fi
  1775. test -n "$CC" && break
  1776. done
  1777. fi
  1778. if test -z "$CC"; then
  1779. ac_ct_CC=$CC
  1780. for ac_prog in cl.exe
  1781. do
  1782. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1783. set dummy $ac_prog; ac_word=$2
  1784. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1785. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1786. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1787. echo $ECHO_N "(cached) $ECHO_C" >&6
  1788. else
  1789. if test -n "$ac_ct_CC"; then
  1790. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1791. else
  1792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1793. for as_dir in $PATH
  1794. do
  1795. IFS=$as_save_IFS
  1796. test -z "$as_dir" && as_dir=.
  1797. for ac_exec_ext in '' $ac_executable_extensions; do
  1798. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1799. ac_cv_prog_ac_ct_CC="$ac_prog"
  1800. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1801. break 2
  1802. fi
  1803. done
  1804. done
  1805. IFS=$as_save_IFS
  1806. fi
  1807. fi
  1808. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1809. if test -n "$ac_ct_CC"; then
  1810. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1811. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1812. else
  1813. { echo "$as_me:$LINENO: result: no" >&5
  1814. echo "${ECHO_T}no" >&6; }
  1815. fi
  1816. test -n "$ac_ct_CC" && break
  1817. done
  1818. if test "x$ac_ct_CC" = x; then
  1819. CC=""
  1820. else
  1821. case $cross_compiling:$ac_tool_warned in
  1822. yes:)
  1823. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1824. whose name does not start with the host triplet. If you think this
  1825. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1826. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1827. whose name does not start with the host triplet. If you think this
  1828. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1829. ac_tool_warned=yes ;;
  1830. esac
  1831. CC=$ac_ct_CC
  1832. fi
  1833. fi
  1834. fi
  1835. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1836. See \`config.log' for more details." >&5
  1837. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1838. See \`config.log' for more details." >&2;}
  1839. { (exit 1); exit 1; }; }
  1840. # Provide some information about the compiler.
  1841. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1842. ac_compiler=`set X $ac_compile; echo $2`
  1843. { (ac_try="$ac_compiler --version >&5"
  1844. case "(($ac_try" in
  1845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1846. *) ac_try_echo=$ac_try;;
  1847. esac
  1848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1849. (eval "$ac_compiler --version >&5") 2>&5
  1850. ac_status=$?
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); }
  1853. { (ac_try="$ac_compiler -v >&5"
  1854. case "(($ac_try" in
  1855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1856. *) ac_try_echo=$ac_try;;
  1857. esac
  1858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1859. (eval "$ac_compiler -v >&5") 2>&5
  1860. ac_status=$?
  1861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1862. (exit $ac_status); }
  1863. { (ac_try="$ac_compiler -V >&5"
  1864. case "(($ac_try" in
  1865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1866. *) ac_try_echo=$ac_try;;
  1867. esac
  1868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1869. (eval "$ac_compiler -V >&5") 2>&5
  1870. ac_status=$?
  1871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1872. (exit $ac_status); }
  1873. cat >conftest.$ac_ext <<_ACEOF
  1874. /* confdefs.h. */
  1875. _ACEOF
  1876. cat confdefs.h >>conftest.$ac_ext
  1877. cat >>conftest.$ac_ext <<_ACEOF
  1878. /* end confdefs.h. */
  1879. int
  1880. main ()
  1881. {
  1882. ;
  1883. return 0;
  1884. }
  1885. _ACEOF
  1886. ac_clean_files_save=$ac_clean_files
  1887. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1888. # Try to create an executable without -o first, disregard a.out.
  1889. # It will help us diagnose broken compilers, and finding out an intuition
  1890. # of exeext.
  1891. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1892. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1893. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1894. #
  1895. # List of possible output files, starting from the most likely.
  1896. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1897. # only as a last resort. b.out is created by i960 compilers.
  1898. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1899. #
  1900. # The IRIX 6 linker writes into existing files which may not be
  1901. # executable, retaining their permissions. Remove them first so a
  1902. # subsequent execution test works.
  1903. ac_rmfiles=
  1904. for ac_file in $ac_files
  1905. do
  1906. case $ac_file in
  1907. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1908. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1909. esac
  1910. done
  1911. rm -f $ac_rmfiles
  1912. if { (ac_try="$ac_link_default"
  1913. case "(($ac_try" in
  1914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1915. *) ac_try_echo=$ac_try;;
  1916. esac
  1917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1918. (eval "$ac_link_default") 2>&5
  1919. ac_status=$?
  1920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1921. (exit $ac_status); }; then
  1922. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1923. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1924. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1925. # so that the user can short-circuit this test for compilers unknown to
  1926. # Autoconf.
  1927. for ac_file in $ac_files ''
  1928. do
  1929. test -f "$ac_file" || continue
  1930. case $ac_file in
  1931. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1932. ;;
  1933. [ab].out )
  1934. # We found the default executable, but exeext='' is most
  1935. # certainly right.
  1936. break;;
  1937. *.* )
  1938. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1939. then :; else
  1940. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1941. fi
  1942. # We set ac_cv_exeext here because the later test for it is not
  1943. # safe: cross compilers may not add the suffix if given an `-o'
  1944. # argument, so we may need to know it at that point already.
  1945. # Even if this section looks crufty: it has the advantage of
  1946. # actually working.
  1947. break;;
  1948. * )
  1949. break;;
  1950. esac
  1951. done
  1952. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1953. else
  1954. ac_file=''
  1955. fi
  1956. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1957. echo "${ECHO_T}$ac_file" >&6; }
  1958. if test -z "$ac_file"; then
  1959. echo "$as_me: failed program was:" >&5
  1960. sed 's/^/| /' conftest.$ac_ext >&5
  1961. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1962. See \`config.log' for more details." >&5
  1963. echo "$as_me: error: C compiler cannot create executables
  1964. See \`config.log' for more details." >&2;}
  1965. { (exit 77); exit 77; }; }
  1966. fi
  1967. ac_exeext=$ac_cv_exeext
  1968. # Check that the compiler produces executables we can run. If not, either
  1969. # the compiler is broken, or we cross compile.
  1970. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1971. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1972. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1973. # If not cross compiling, check that we can run a simple program.
  1974. if test "$cross_compiling" != yes; then
  1975. if { ac_try='./$ac_file'
  1976. { (case "(($ac_try" in
  1977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1978. *) ac_try_echo=$ac_try;;
  1979. esac
  1980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1981. (eval "$ac_try") 2>&5
  1982. ac_status=$?
  1983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1984. (exit $ac_status); }; }; then
  1985. cross_compiling=no
  1986. else
  1987. if test "$cross_compiling" = maybe; then
  1988. cross_compiling=yes
  1989. else
  1990. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1991. If you meant to cross compile, use \`--host'.
  1992. See \`config.log' for more details." >&5
  1993. echo "$as_me: error: cannot run C compiled programs.
  1994. If you meant to cross compile, use \`--host'.
  1995. See \`config.log' for more details." >&2;}
  1996. { (exit 1); exit 1; }; }
  1997. fi
  1998. fi
  1999. fi
  2000. { echo "$as_me:$LINENO: result: yes" >&5
  2001. echo "${ECHO_T}yes" >&6; }
  2002. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2003. ac_clean_files=$ac_clean_files_save
  2004. # Check that the compiler produces executables we can run. If not, either
  2005. # the compiler is broken, or we cross compile.
  2006. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2007. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2008. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2009. echo "${ECHO_T}$cross_compiling" >&6; }
  2010. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2011. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2012. if { (ac_try="$ac_link"
  2013. case "(($ac_try" in
  2014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2015. *) ac_try_echo=$ac_try;;
  2016. esac
  2017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2018. (eval "$ac_link") 2>&5
  2019. ac_status=$?
  2020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2021. (exit $ac_status); }; then
  2022. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2023. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2024. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2025. # `rm'.
  2026. for ac_file in conftest.exe conftest conftest.*; do
  2027. test -f "$ac_file" || continue
  2028. case $ac_file in
  2029. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2030. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2031. break;;
  2032. * ) break;;
  2033. esac
  2034. done
  2035. else
  2036. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2037. See \`config.log' for more details." >&5
  2038. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2039. See \`config.log' for more details." >&2;}
  2040. { (exit 1); exit 1; }; }
  2041. fi
  2042. rm -f conftest$ac_cv_exeext
  2043. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2044. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2045. rm -f conftest.$ac_ext
  2046. EXEEXT=$ac_cv_exeext
  2047. ac_exeext=$EXEEXT
  2048. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2049. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2050. if test "${ac_cv_objext+set}" = set; then
  2051. echo $ECHO_N "(cached) $ECHO_C" >&6
  2052. else
  2053. cat >conftest.$ac_ext <<_ACEOF
  2054. /* confdefs.h. */
  2055. _ACEOF
  2056. cat confdefs.h >>conftest.$ac_ext
  2057. cat >>conftest.$ac_ext <<_ACEOF
  2058. /* end confdefs.h. */
  2059. int
  2060. main ()
  2061. {
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. rm -f conftest.o conftest.obj
  2067. if { (ac_try="$ac_compile"
  2068. case "(($ac_try" in
  2069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2070. *) ac_try_echo=$ac_try;;
  2071. esac
  2072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2073. (eval "$ac_compile") 2>&5
  2074. ac_status=$?
  2075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2076. (exit $ac_status); }; then
  2077. for ac_file in conftest.o conftest.obj conftest.*; do
  2078. test -f "$ac_file" || continue;
  2079. case $ac_file in
  2080. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2081. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2082. break;;
  2083. esac
  2084. done
  2085. else
  2086. echo "$as_me: failed program was:" >&5
  2087. sed 's/^/| /' conftest.$ac_ext >&5
  2088. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2089. See \`config.log' for more details." >&5
  2090. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2091. See \`config.log' for more details." >&2;}
  2092. { (exit 1); exit 1; }; }
  2093. fi
  2094. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2095. fi
  2096. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2097. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2098. OBJEXT=$ac_cv_objext
  2099. ac_objext=$OBJEXT
  2100. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2101. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2102. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2103. echo $ECHO_N "(cached) $ECHO_C" >&6
  2104. else
  2105. cat >conftest.$ac_ext <<_ACEOF
  2106. /* confdefs.h. */
  2107. _ACEOF
  2108. cat confdefs.h >>conftest.$ac_ext
  2109. cat >>conftest.$ac_ext <<_ACEOF
  2110. /* end confdefs.h. */
  2111. int
  2112. main ()
  2113. {
  2114. #ifndef __GNUC__
  2115. choke me
  2116. #endif
  2117. ;
  2118. return 0;
  2119. }
  2120. _ACEOF
  2121. rm -f conftest.$ac_objext
  2122. if { (ac_try="$ac_compile"
  2123. case "(($ac_try" in
  2124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2125. *) ac_try_echo=$ac_try;;
  2126. esac
  2127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2128. (eval "$ac_compile") 2>conftest.er1
  2129. ac_status=$?
  2130. grep -v '^ *+' conftest.er1 >conftest.err
  2131. rm -f conftest.er1
  2132. cat conftest.err >&5
  2133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2134. (exit $ac_status); } && {
  2135. test -z "$ac_c_werror_flag" ||
  2136. test ! -s conftest.err
  2137. } && test -s conftest.$ac_objext; then
  2138. ac_compiler_gnu=yes
  2139. else
  2140. echo "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_compiler_gnu=no
  2143. fi
  2144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2146. fi
  2147. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2148. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2149. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2150. ac_test_CFLAGS=${CFLAGS+set}
  2151. ac_save_CFLAGS=$CFLAGS
  2152. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2153. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2154. if test "${ac_cv_prog_cc_g+set}" = set; then
  2155. echo $ECHO_N "(cached) $ECHO_C" >&6
  2156. else
  2157. ac_save_c_werror_flag=$ac_c_werror_flag
  2158. ac_c_werror_flag=yes
  2159. ac_cv_prog_cc_g=no
  2160. CFLAGS="-g"
  2161. cat >conftest.$ac_ext <<_ACEOF
  2162. /* confdefs.h. */
  2163. _ACEOF
  2164. cat confdefs.h >>conftest.$ac_ext
  2165. cat >>conftest.$ac_ext <<_ACEOF
  2166. /* end confdefs.h. */
  2167. int
  2168. main ()
  2169. {
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. rm -f conftest.$ac_objext
  2175. if { (ac_try="$ac_compile"
  2176. case "(($ac_try" in
  2177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2178. *) ac_try_echo=$ac_try;;
  2179. esac
  2180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2181. (eval "$ac_compile") 2>conftest.er1
  2182. ac_status=$?
  2183. grep -v '^ *+' conftest.er1 >conftest.err
  2184. rm -f conftest.er1
  2185. cat conftest.err >&5
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } && {
  2188. test -z "$ac_c_werror_flag" ||
  2189. test ! -s conftest.err
  2190. } && test -s conftest.$ac_objext; then
  2191. ac_cv_prog_cc_g=yes
  2192. else
  2193. echo "$as_me: failed program was:" >&5
  2194. sed 's/^/| /' conftest.$ac_ext >&5
  2195. CFLAGS=""
  2196. cat >conftest.$ac_ext <<_ACEOF
  2197. /* confdefs.h. */
  2198. _ACEOF
  2199. cat confdefs.h >>conftest.$ac_ext
  2200. cat >>conftest.$ac_ext <<_ACEOF
  2201. /* end confdefs.h. */
  2202. int
  2203. main ()
  2204. {
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. rm -f conftest.$ac_objext
  2210. if { (ac_try="$ac_compile"
  2211. case "(($ac_try" in
  2212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2213. *) ac_try_echo=$ac_try;;
  2214. esac
  2215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2216. (eval "$ac_compile") 2>conftest.er1
  2217. ac_status=$?
  2218. grep -v '^ *+' conftest.er1 >conftest.err
  2219. rm -f conftest.er1
  2220. cat conftest.err >&5
  2221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2222. (exit $ac_status); } && {
  2223. test -z "$ac_c_werror_flag" ||
  2224. test ! -s conftest.err
  2225. } && test -s conftest.$ac_objext; then
  2226. :
  2227. else
  2228. echo "$as_me: failed program was:" >&5
  2229. sed 's/^/| /' conftest.$ac_ext >&5
  2230. ac_c_werror_flag=$ac_save_c_werror_flag
  2231. CFLAGS="-g"
  2232. cat >conftest.$ac_ext <<_ACEOF
  2233. /* confdefs.h. */
  2234. _ACEOF
  2235. cat confdefs.h >>conftest.$ac_ext
  2236. cat >>conftest.$ac_ext <<_ACEOF
  2237. /* end confdefs.h. */
  2238. int
  2239. main ()
  2240. {
  2241. ;
  2242. return 0;
  2243. }
  2244. _ACEOF
  2245. rm -f conftest.$ac_objext
  2246. if { (ac_try="$ac_compile"
  2247. case "(($ac_try" in
  2248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2249. *) ac_try_echo=$ac_try;;
  2250. esac
  2251. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2252. (eval "$ac_compile") 2>conftest.er1
  2253. ac_status=$?
  2254. grep -v '^ *+' conftest.er1 >conftest.err
  2255. rm -f conftest.er1
  2256. cat conftest.err >&5
  2257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2258. (exit $ac_status); } && {
  2259. test -z "$ac_c_werror_flag" ||
  2260. test ! -s conftest.err
  2261. } && test -s conftest.$ac_objext; then
  2262. ac_cv_prog_cc_g=yes
  2263. else
  2264. echo "$as_me: failed program was:" >&5
  2265. sed 's/^/| /' conftest.$ac_ext >&5
  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. fi
  2271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2272. ac_c_werror_flag=$ac_save_c_werror_flag
  2273. fi
  2274. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2275. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2276. if test "$ac_test_CFLAGS" = set; then
  2277. CFLAGS=$ac_save_CFLAGS
  2278. elif test $ac_cv_prog_cc_g = yes; then
  2279. if test "$GCC" = yes; then
  2280. CFLAGS="-g -O2"
  2281. else
  2282. CFLAGS="-g"
  2283. fi
  2284. else
  2285. if test "$GCC" = yes; then
  2286. CFLAGS="-O2"
  2287. else
  2288. CFLAGS=
  2289. fi
  2290. fi
  2291. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2292. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2293. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2294. echo $ECHO_N "(cached) $ECHO_C" >&6
  2295. else
  2296. ac_cv_prog_cc_c89=no
  2297. ac_save_CC=$CC
  2298. cat >conftest.$ac_ext <<_ACEOF
  2299. /* confdefs.h. */
  2300. _ACEOF
  2301. cat confdefs.h >>conftest.$ac_ext
  2302. cat >>conftest.$ac_ext <<_ACEOF
  2303. /* end confdefs.h. */
  2304. #include <stdarg.h>
  2305. #include <stdio.h>
  2306. #include <sys/types.h>
  2307. #include <sys/stat.h>
  2308. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2309. struct buf { int x; };
  2310. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2311. static char *e (p, i)
  2312. char **p;
  2313. int i;
  2314. {
  2315. return p[i];
  2316. }
  2317. static char *f (char * (*g) (char **, int), char **p, ...)
  2318. {
  2319. char *s;
  2320. va_list v;
  2321. va_start (v,p);
  2322. s = g (p, va_arg (v,int));
  2323. va_end (v);
  2324. return s;
  2325. }
  2326. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2327. function prototypes and stuff, but not '\xHH' hex character constants.
  2328. These don't provoke an error unfortunately, instead are silently treated
  2329. as 'x'. The following induces an error, until -std is added to get
  2330. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2331. array size at least. It's necessary to write '\x00'==0 to get something
  2332. that's true only with -std. */
  2333. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2334. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2335. inside strings and character constants. */
  2336. #define FOO(x) 'x'
  2337. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2338. int test (int i, double x);
  2339. struct s1 {int (*f) (int a);};
  2340. struct s2 {int (*f) (double a);};
  2341. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2342. int argc;
  2343. char **argv;
  2344. int
  2345. main ()
  2346. {
  2347. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2348. ;
  2349. return 0;
  2350. }
  2351. _ACEOF
  2352. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2353. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2354. do
  2355. CC="$ac_save_CC $ac_arg"
  2356. rm -f conftest.$ac_objext
  2357. if { (ac_try="$ac_compile"
  2358. case "(($ac_try" in
  2359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2360. *) ac_try_echo=$ac_try;;
  2361. esac
  2362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2363. (eval "$ac_compile") 2>conftest.er1
  2364. ac_status=$?
  2365. grep -v '^ *+' conftest.er1 >conftest.err
  2366. rm -f conftest.er1
  2367. cat conftest.err >&5
  2368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2369. (exit $ac_status); } && {
  2370. test -z "$ac_c_werror_flag" ||
  2371. test ! -s conftest.err
  2372. } && test -s conftest.$ac_objext; then
  2373. ac_cv_prog_cc_c89=$ac_arg
  2374. else
  2375. echo "$as_me: failed program was:" >&5
  2376. sed 's/^/| /' conftest.$ac_ext >&5
  2377. fi
  2378. rm -f core conftest.err conftest.$ac_objext
  2379. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2380. done
  2381. rm -f conftest.$ac_ext
  2382. CC=$ac_save_CC
  2383. fi
  2384. # AC_CACHE_VAL
  2385. case "x$ac_cv_prog_cc_c89" in
  2386. x)
  2387. { echo "$as_me:$LINENO: result: none needed" >&5
  2388. echo "${ECHO_T}none needed" >&6; } ;;
  2389. xno)
  2390. { echo "$as_me:$LINENO: result: unsupported" >&5
  2391. echo "${ECHO_T}unsupported" >&6; } ;;
  2392. *)
  2393. CC="$CC $ac_cv_prog_cc_c89"
  2394. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2395. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2396. esac
  2397. ac_ext=c
  2398. ac_cpp='$CPP $CPPFLAGS'
  2399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2402. ac_ext=c
  2403. ac_cpp='$CPP $CPPFLAGS'
  2404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2407. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2408. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2409. # On Suns, sometimes $CPP names a directory.
  2410. if test -n "$CPP" && test -d "$CPP"; then
  2411. CPP=
  2412. fi
  2413. if test -z "$CPP"; then
  2414. if test "${ac_cv_prog_CPP+set}" = set; then
  2415. echo $ECHO_N "(cached) $ECHO_C" >&6
  2416. else
  2417. # Double quotes because CPP needs to be expanded
  2418. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2419. do
  2420. ac_preproc_ok=false
  2421. for ac_c_preproc_warn_flag in '' yes
  2422. do
  2423. # Use a header file that comes with gcc, so configuring glibc
  2424. # with a fresh cross-compiler works.
  2425. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2426. # <limits.h> exists even on freestanding compilers.
  2427. # On the NeXT, cc -E runs the code through the compiler's parser,
  2428. # not just through cpp. "Syntax error" is here to catch this case.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #ifdef __STDC__
  2436. # include <limits.h>
  2437. #else
  2438. # include <assert.h>
  2439. #endif
  2440. Syntax error
  2441. _ACEOF
  2442. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2443. case "(($ac_try" in
  2444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2445. *) ac_try_echo=$ac_try;;
  2446. esac
  2447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2449. ac_status=$?
  2450. grep -v '^ *+' conftest.er1 >conftest.err
  2451. rm -f conftest.er1
  2452. cat conftest.err >&5
  2453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2454. (exit $ac_status); } >/dev/null && {
  2455. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2456. test ! -s conftest.err
  2457. }; then
  2458. :
  2459. else
  2460. echo "$as_me: failed program was:" >&5
  2461. sed 's/^/| /' conftest.$ac_ext >&5
  2462. # Broken: fails on valid input.
  2463. continue
  2464. fi
  2465. rm -f conftest.err conftest.$ac_ext
  2466. # OK, works on sane cases. Now check whether nonexistent headers
  2467. # can be detected and how.
  2468. cat >conftest.$ac_ext <<_ACEOF
  2469. /* confdefs.h. */
  2470. _ACEOF
  2471. cat confdefs.h >>conftest.$ac_ext
  2472. cat >>conftest.$ac_ext <<_ACEOF
  2473. /* end confdefs.h. */
  2474. #include <ac_nonexistent.h>
  2475. _ACEOF
  2476. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2477. case "(($ac_try" in
  2478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2479. *) ac_try_echo=$ac_try;;
  2480. esac
  2481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2482. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2483. ac_status=$?
  2484. grep -v '^ *+' conftest.er1 >conftest.err
  2485. rm -f conftest.er1
  2486. cat conftest.err >&5
  2487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2488. (exit $ac_status); } >/dev/null && {
  2489. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2490. test ! -s conftest.err
  2491. }; then
  2492. # Broken: success on invalid input.
  2493. continue
  2494. else
  2495. echo "$as_me: failed program was:" >&5
  2496. sed 's/^/| /' conftest.$ac_ext >&5
  2497. # Passes both tests.
  2498. ac_preproc_ok=:
  2499. break
  2500. fi
  2501. rm -f conftest.err conftest.$ac_ext
  2502. done
  2503. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2504. rm -f conftest.err conftest.$ac_ext
  2505. if $ac_preproc_ok; then
  2506. break
  2507. fi
  2508. done
  2509. ac_cv_prog_CPP=$CPP
  2510. fi
  2511. CPP=$ac_cv_prog_CPP
  2512. else
  2513. ac_cv_prog_CPP=$CPP
  2514. fi
  2515. { echo "$as_me:$LINENO: result: $CPP" >&5
  2516. echo "${ECHO_T}$CPP" >&6; }
  2517. ac_preproc_ok=false
  2518. for ac_c_preproc_warn_flag in '' yes
  2519. do
  2520. # Use a header file that comes with gcc, so configuring glibc
  2521. # with a fresh cross-compiler works.
  2522. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2523. # <limits.h> exists even on freestanding compilers.
  2524. # On the NeXT, cc -E runs the code through the compiler's parser,
  2525. # not just through cpp. "Syntax error" is here to catch this case.
  2526. cat >conftest.$ac_ext <<_ACEOF
  2527. /* confdefs.h. */
  2528. _ACEOF
  2529. cat confdefs.h >>conftest.$ac_ext
  2530. cat >>conftest.$ac_ext <<_ACEOF
  2531. /* end confdefs.h. */
  2532. #ifdef __STDC__
  2533. # include <limits.h>
  2534. #else
  2535. # include <assert.h>
  2536. #endif
  2537. Syntax error
  2538. _ACEOF
  2539. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2540. case "(($ac_try" in
  2541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2542. *) ac_try_echo=$ac_try;;
  2543. esac
  2544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2545. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2546. ac_status=$?
  2547. grep -v '^ *+' conftest.er1 >conftest.err
  2548. rm -f conftest.er1
  2549. cat conftest.err >&5
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); } >/dev/null && {
  2552. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2553. test ! -s conftest.err
  2554. }; then
  2555. :
  2556. else
  2557. echo "$as_me: failed program was:" >&5
  2558. sed 's/^/| /' conftest.$ac_ext >&5
  2559. # Broken: fails on valid input.
  2560. continue
  2561. fi
  2562. rm -f conftest.err conftest.$ac_ext
  2563. # OK, works on sane cases. Now check whether nonexistent headers
  2564. # can be detected and how.
  2565. cat >conftest.$ac_ext <<_ACEOF
  2566. /* confdefs.h. */
  2567. _ACEOF
  2568. cat confdefs.h >>conftest.$ac_ext
  2569. cat >>conftest.$ac_ext <<_ACEOF
  2570. /* end confdefs.h. */
  2571. #include <ac_nonexistent.h>
  2572. _ACEOF
  2573. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2574. case "(($ac_try" in
  2575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2576. *) ac_try_echo=$ac_try;;
  2577. esac
  2578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2579. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2580. ac_status=$?
  2581. grep -v '^ *+' conftest.er1 >conftest.err
  2582. rm -f conftest.er1
  2583. cat conftest.err >&5
  2584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2585. (exit $ac_status); } >/dev/null && {
  2586. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2587. test ! -s conftest.err
  2588. }; then
  2589. # Broken: success on invalid input.
  2590. continue
  2591. else
  2592. echo "$as_me: failed program was:" >&5
  2593. sed 's/^/| /' conftest.$ac_ext >&5
  2594. # Passes both tests.
  2595. ac_preproc_ok=:
  2596. break
  2597. fi
  2598. rm -f conftest.err conftest.$ac_ext
  2599. done
  2600. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2601. rm -f conftest.err conftest.$ac_ext
  2602. if $ac_preproc_ok; then
  2603. :
  2604. else
  2605. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2606. See \`config.log' for more details." >&5
  2607. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2608. See \`config.log' for more details." >&2;}
  2609. { (exit 1); exit 1; }; }
  2610. fi
  2611. ac_ext=c
  2612. ac_cpp='$CPP $CPPFLAGS'
  2613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2616. ac_ext=c
  2617. ac_cpp='$CPP $CPPFLAGS'
  2618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2621. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  2622. CPPFLAGS="$CPPFLAGS -I../common"
  2623. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2624. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2625. if test "${ac_cv_path_GREP+set}" = set; then
  2626. echo $ECHO_N "(cached) $ECHO_C" >&6
  2627. else
  2628. # Extract the first word of "grep ggrep" to use in msg output
  2629. if test -z "$GREP"; then
  2630. set dummy grep ggrep; ac_prog_name=$2
  2631. if test "${ac_cv_path_GREP+set}" = set; then
  2632. echo $ECHO_N "(cached) $ECHO_C" >&6
  2633. else
  2634. ac_path_GREP_found=false
  2635. # Loop through the user's path and test for each of PROGNAME-LIST
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_prog in grep ggrep; do
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2644. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2645. # Check for GNU ac_path_GREP and select it if it is found.
  2646. # Check for GNU $ac_path_GREP
  2647. case `"$ac_path_GREP" --version 2>&1` in
  2648. *GNU*)
  2649. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2650. *)
  2651. ac_count=0
  2652. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2653. while :
  2654. do
  2655. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2656. mv "conftest.tmp" "conftest.in"
  2657. cp "conftest.in" "conftest.nl"
  2658. echo 'GREP' >> "conftest.nl"
  2659. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2660. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2661. ac_count=`expr $ac_count + 1`
  2662. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2663. # Best one so far, save it but keep looking for a better one
  2664. ac_cv_path_GREP="$ac_path_GREP"
  2665. ac_path_GREP_max=$ac_count
  2666. fi
  2667. # 10*(2^10) chars as input seems more than enough
  2668. test $ac_count -gt 10 && break
  2669. done
  2670. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2671. esac
  2672. $ac_path_GREP_found && break 3
  2673. done
  2674. done
  2675. done
  2676. IFS=$as_save_IFS
  2677. fi
  2678. GREP="$ac_cv_path_GREP"
  2679. if test -z "$GREP"; then
  2680. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2681. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2682. { (exit 1); exit 1; }; }
  2683. fi
  2684. else
  2685. ac_cv_path_GREP=$GREP
  2686. fi
  2687. fi
  2688. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2689. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2690. GREP="$ac_cv_path_GREP"
  2691. { echo "$as_me:$LINENO: checking for egrep" >&5
  2692. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2693. if test "${ac_cv_path_EGREP+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2697. then ac_cv_path_EGREP="$GREP -E"
  2698. else
  2699. # Extract the first word of "egrep" to use in msg output
  2700. if test -z "$EGREP"; then
  2701. set dummy egrep; ac_prog_name=$2
  2702. if test "${ac_cv_path_EGREP+set}" = set; then
  2703. echo $ECHO_N "(cached) $ECHO_C" >&6
  2704. else
  2705. ac_path_EGREP_found=false
  2706. # Loop through the user's path and test for each of PROGNAME-LIST
  2707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2708. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2709. do
  2710. IFS=$as_save_IFS
  2711. test -z "$as_dir" && as_dir=.
  2712. for ac_prog in egrep; do
  2713. for ac_exec_ext in '' $ac_executable_extensions; do
  2714. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2715. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2716. # Check for GNU ac_path_EGREP and select it if it is found.
  2717. # Check for GNU $ac_path_EGREP
  2718. case `"$ac_path_EGREP" --version 2>&1` in
  2719. *GNU*)
  2720. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2721. *)
  2722. ac_count=0
  2723. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2724. while :
  2725. do
  2726. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2727. mv "conftest.tmp" "conftest.in"
  2728. cp "conftest.in" "conftest.nl"
  2729. echo 'EGREP' >> "conftest.nl"
  2730. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2731. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2732. ac_count=`expr $ac_count + 1`
  2733. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2734. # Best one so far, save it but keep looking for a better one
  2735. ac_cv_path_EGREP="$ac_path_EGREP"
  2736. ac_path_EGREP_max=$ac_count
  2737. fi
  2738. # 10*(2^10) chars as input seems more than enough
  2739. test $ac_count -gt 10 && break
  2740. done
  2741. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2742. esac
  2743. $ac_path_EGREP_found && break 3
  2744. done
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. EGREP="$ac_cv_path_EGREP"
  2750. if test -z "$EGREP"; then
  2751. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2752. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2753. { (exit 1); exit 1; }; }
  2754. fi
  2755. else
  2756. ac_cv_path_EGREP=$EGREP
  2757. fi
  2758. fi
  2759. fi
  2760. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2761. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2762. EGREP="$ac_cv_path_EGREP"
  2763. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2764. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2765. if test "${ac_cv_header_stdc+set}" = set; then
  2766. echo $ECHO_N "(cached) $ECHO_C" >&6
  2767. else
  2768. cat >conftest.$ac_ext <<_ACEOF
  2769. /* confdefs.h. */
  2770. _ACEOF
  2771. cat confdefs.h >>conftest.$ac_ext
  2772. cat >>conftest.$ac_ext <<_ACEOF
  2773. /* end confdefs.h. */
  2774. #include <stdlib.h>
  2775. #include <stdarg.h>
  2776. #include <string.h>
  2777. #include <float.h>
  2778. int
  2779. main ()
  2780. {
  2781. ;
  2782. return 0;
  2783. }
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (ac_try="$ac_compile"
  2787. case "(($ac_try" in
  2788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2789. *) ac_try_echo=$ac_try;;
  2790. esac
  2791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2792. (eval "$ac_compile") 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } && {
  2799. test -z "$ac_c_werror_flag" ||
  2800. test ! -s conftest.err
  2801. } && test -s conftest.$ac_objext; then
  2802. ac_cv_header_stdc=yes
  2803. else
  2804. echo "$as_me: failed program was:" >&5
  2805. sed 's/^/| /' conftest.$ac_ext >&5
  2806. ac_cv_header_stdc=no
  2807. fi
  2808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2809. if test $ac_cv_header_stdc = yes; then
  2810. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2811. cat >conftest.$ac_ext <<_ACEOF
  2812. /* confdefs.h. */
  2813. _ACEOF
  2814. cat confdefs.h >>conftest.$ac_ext
  2815. cat >>conftest.$ac_ext <<_ACEOF
  2816. /* end confdefs.h. */
  2817. #include <string.h>
  2818. _ACEOF
  2819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2820. $EGREP "memchr" >/dev/null 2>&1; then
  2821. :
  2822. else
  2823. ac_cv_header_stdc=no
  2824. fi
  2825. rm -f conftest*
  2826. fi
  2827. if test $ac_cv_header_stdc = yes; then
  2828. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. #include <stdlib.h>
  2836. _ACEOF
  2837. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2838. $EGREP "free" >/dev/null 2>&1; then
  2839. :
  2840. else
  2841. ac_cv_header_stdc=no
  2842. fi
  2843. rm -f conftest*
  2844. fi
  2845. if test $ac_cv_header_stdc = yes; then
  2846. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2847. if test "$cross_compiling" = yes; then
  2848. :
  2849. else
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. #include <ctype.h>
  2857. #include <stdlib.h>
  2858. #if ((' ' & 0x0FF) == 0x020)
  2859. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2860. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2861. #else
  2862. # define ISLOWER(c) \
  2863. (('a' <= (c) && (c) <= 'i') \
  2864. || ('j' <= (c) && (c) <= 'r') \
  2865. || ('s' <= (c) && (c) <= 'z'))
  2866. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2867. #endif
  2868. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2869. int
  2870. main ()
  2871. {
  2872. int i;
  2873. for (i = 0; i < 256; i++)
  2874. if (XOR (islower (i), ISLOWER (i))
  2875. || toupper (i) != TOUPPER (i))
  2876. return 2;
  2877. return 0;
  2878. }
  2879. _ACEOF
  2880. rm -f conftest$ac_exeext
  2881. if { (ac_try="$ac_link"
  2882. case "(($ac_try" in
  2883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2884. *) ac_try_echo=$ac_try;;
  2885. esac
  2886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2887. (eval "$ac_link") 2>&5
  2888. ac_status=$?
  2889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2890. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2891. { (case "(($ac_try" in
  2892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2893. *) ac_try_echo=$ac_try;;
  2894. esac
  2895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2896. (eval "$ac_try") 2>&5
  2897. ac_status=$?
  2898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. (exit $ac_status); }; }; then
  2900. :
  2901. else
  2902. echo "$as_me: program exited with status $ac_status" >&5
  2903. echo "$as_me: failed program was:" >&5
  2904. sed 's/^/| /' conftest.$ac_ext >&5
  2905. ( exit $ac_status )
  2906. ac_cv_header_stdc=no
  2907. fi
  2908. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2909. fi
  2910. fi
  2911. fi
  2912. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2913. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2914. if test $ac_cv_header_stdc = yes; then
  2915. cat >>confdefs.h <<\_ACEOF
  2916. #define STDC_HEADERS 1
  2917. _ACEOF
  2918. fi
  2919. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2920. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2921. inttypes.h stdint.h unistd.h
  2922. do
  2923. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2924. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2925. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2926. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2927. echo $ECHO_N "(cached) $ECHO_C" >&6
  2928. else
  2929. cat >conftest.$ac_ext <<_ACEOF
  2930. /* confdefs.h. */
  2931. _ACEOF
  2932. cat confdefs.h >>conftest.$ac_ext
  2933. cat >>conftest.$ac_ext <<_ACEOF
  2934. /* end confdefs.h. */
  2935. $ac_includes_default
  2936. #include <$ac_header>
  2937. _ACEOF
  2938. rm -f conftest.$ac_objext
  2939. if { (ac_try="$ac_compile"
  2940. case "(($ac_try" in
  2941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2942. *) ac_try_echo=$ac_try;;
  2943. esac
  2944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2945. (eval "$ac_compile") 2>conftest.er1
  2946. ac_status=$?
  2947. grep -v '^ *+' conftest.er1 >conftest.err
  2948. rm -f conftest.er1
  2949. cat conftest.err >&5
  2950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2951. (exit $ac_status); } && {
  2952. test -z "$ac_c_werror_flag" ||
  2953. test ! -s conftest.err
  2954. } && test -s conftest.$ac_objext; then
  2955. eval "$as_ac_Header=yes"
  2956. else
  2957. echo "$as_me: failed program was:" >&5
  2958. sed 's/^/| /' conftest.$ac_ext >&5
  2959. eval "$as_ac_Header=no"
  2960. fi
  2961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2962. fi
  2963. ac_res=`eval echo '${'$as_ac_Header'}'`
  2964. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2965. echo "${ECHO_T}$ac_res" >&6; }
  2966. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2967. cat >>confdefs.h <<_ACEOF
  2968. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2969. _ACEOF
  2970. fi
  2971. done
  2972. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  2973. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  2974. if test "${ac_cv_c_bigendian+set}" = set; then
  2975. echo $ECHO_N "(cached) $ECHO_C" >&6
  2976. else
  2977. # See if sys/param.h defines the BYTE_ORDER macro.
  2978. cat >conftest.$ac_ext <<_ACEOF
  2979. /* confdefs.h. */
  2980. _ACEOF
  2981. cat confdefs.h >>conftest.$ac_ext
  2982. cat >>conftest.$ac_ext <<_ACEOF
  2983. /* end confdefs.h. */
  2984. #include <sys/types.h>
  2985. #include <sys/param.h>
  2986. int
  2987. main ()
  2988. {
  2989. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  2990. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  2991. bogus endian macros
  2992. #endif
  2993. ;
  2994. return 0;
  2995. }
  2996. _ACEOF
  2997. rm -f conftest.$ac_objext
  2998. if { (ac_try="$ac_compile"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3004. (eval "$ac_compile") 2>conftest.er1
  3005. ac_status=$?
  3006. grep -v '^ *+' conftest.er1 >conftest.err
  3007. rm -f conftest.er1
  3008. cat conftest.err >&5
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); } && {
  3011. test -z "$ac_c_werror_flag" ||
  3012. test ! -s conftest.err
  3013. } && test -s conftest.$ac_objext; then
  3014. # It does; now see whether it defined to BIG_ENDIAN or not.
  3015. cat >conftest.$ac_ext <<_ACEOF
  3016. /* confdefs.h. */
  3017. _ACEOF
  3018. cat confdefs.h >>conftest.$ac_ext
  3019. cat >>conftest.$ac_ext <<_ACEOF
  3020. /* end confdefs.h. */
  3021. #include <sys/types.h>
  3022. #include <sys/param.h>
  3023. int
  3024. main ()
  3025. {
  3026. #if BYTE_ORDER != BIG_ENDIAN
  3027. not big endian
  3028. #endif
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. rm -f conftest.$ac_objext
  3034. if { (ac_try="$ac_compile"
  3035. case "(($ac_try" in
  3036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. *) ac_try_echo=$ac_try;;
  3038. esac
  3039. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3040. (eval "$ac_compile") 2>conftest.er1
  3041. ac_status=$?
  3042. grep -v '^ *+' conftest.er1 >conftest.err
  3043. rm -f conftest.er1
  3044. cat conftest.err >&5
  3045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3046. (exit $ac_status); } && {
  3047. test -z "$ac_c_werror_flag" ||
  3048. test ! -s conftest.err
  3049. } && test -s conftest.$ac_objext; then
  3050. ac_cv_c_bigendian=yes
  3051. else
  3052. echo "$as_me: failed program was:" >&5
  3053. sed 's/^/| /' conftest.$ac_ext >&5
  3054. ac_cv_c_bigendian=no
  3055. fi
  3056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3057. else
  3058. echo "$as_me: failed program was:" >&5
  3059. sed 's/^/| /' conftest.$ac_ext >&5
  3060. # It does not; compile a test program.
  3061. if test "$cross_compiling" = yes; then
  3062. # try to guess the endianness by grepping values into an object file
  3063. ac_cv_c_bigendian=unknown
  3064. cat >conftest.$ac_ext <<_ACEOF
  3065. /* confdefs.h. */
  3066. _ACEOF
  3067. cat confdefs.h >>conftest.$ac_ext
  3068. cat >>conftest.$ac_ext <<_ACEOF
  3069. /* end confdefs.h. */
  3070. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3071. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3072. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  3073. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3074. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3075. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  3076. int
  3077. main ()
  3078. {
  3079. _ascii (); _ebcdic ();
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. rm -f conftest.$ac_objext
  3085. if { (ac_try="$ac_compile"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3091. (eval "$ac_compile") 2>conftest.er1
  3092. ac_status=$?
  3093. grep -v '^ *+' conftest.er1 >conftest.err
  3094. rm -f conftest.er1
  3095. cat conftest.err >&5
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); } && {
  3098. test -z "$ac_c_werror_flag" ||
  3099. test ! -s conftest.err
  3100. } && test -s conftest.$ac_objext; then
  3101. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  3102. ac_cv_c_bigendian=yes
  3103. fi
  3104. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3105. if test "$ac_cv_c_bigendian" = unknown; then
  3106. ac_cv_c_bigendian=no
  3107. else
  3108. # finding both strings is unlikely to happen, but who knows?
  3109. ac_cv_c_bigendian=unknown
  3110. fi
  3111. fi
  3112. else
  3113. echo "$as_me: failed program was:" >&5
  3114. sed 's/^/| /' conftest.$ac_ext >&5
  3115. fi
  3116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3117. else
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. /* confdefs.h. */
  3120. _ACEOF
  3121. cat confdefs.h >>conftest.$ac_ext
  3122. cat >>conftest.$ac_ext <<_ACEOF
  3123. /* end confdefs.h. */
  3124. $ac_includes_default
  3125. int
  3126. main ()
  3127. {
  3128. /* Are we little or big endian? From Harbison&Steele. */
  3129. union
  3130. {
  3131. long int l;
  3132. char c[sizeof (long int)];
  3133. } u;
  3134. u.l = 1;
  3135. return u.c[sizeof (long int) - 1] == 1;
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. rm -f conftest$ac_exeext
  3141. if { (ac_try="$ac_link"
  3142. case "(($ac_try" in
  3143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3144. *) ac_try_echo=$ac_try;;
  3145. esac
  3146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3147. (eval "$ac_link") 2>&5
  3148. ac_status=$?
  3149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3150. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3151. { (case "(($ac_try" in
  3152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3153. *) ac_try_echo=$ac_try;;
  3154. esac
  3155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3156. (eval "$ac_try") 2>&5
  3157. ac_status=$?
  3158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3159. (exit $ac_status); }; }; then
  3160. ac_cv_c_bigendian=no
  3161. else
  3162. echo "$as_me: program exited with status $ac_status" >&5
  3163. echo "$as_me: failed program was:" >&5
  3164. sed 's/^/| /' conftest.$ac_ext >&5
  3165. ( exit $ac_status )
  3166. ac_cv_c_bigendian=yes
  3167. fi
  3168. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3169. fi
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. fi
  3173. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  3174. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  3175. case $ac_cv_c_bigendian in
  3176. yes)
  3177. { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5
  3178. echo "$as_me: error: bigendian is not supported... stopping" >&2;}
  3179. { (exit 1); exit 1; }; } ;;
  3180. no)
  3181. ;;
  3182. *)
  3183. { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5
  3184. echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  3185. ;;
  3186. esac
  3187. { echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5
  3188. echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6; }
  3189. pointers_fit_in_ints="no"
  3190. cat >conftest.$ac_ext <<_ACEOF
  3191. /* confdefs.h. */
  3192. _ACEOF
  3193. cat confdefs.h >>conftest.$ac_ext
  3194. cat >>conftest.$ac_ext <<_ACEOF
  3195. /* end confdefs.h. */
  3196. int hw[(sizeof(int) == sizeof(void *))];
  3197. int
  3198. main ()
  3199. {
  3200. ;
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. rm -f conftest.$ac_objext
  3205. if { (ac_try="$ac_compile"
  3206. case "(($ac_try" in
  3207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3208. *) ac_try_echo=$ac_try;;
  3209. esac
  3210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3211. (eval "$ac_compile") 2>conftest.er1
  3212. ac_status=$?
  3213. grep -v '^ *+' conftest.er1 >conftest.err
  3214. rm -f conftest.er1
  3215. cat conftest.err >&5
  3216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3217. (exit $ac_status); } && {
  3218. test -z "$ac_c_werror_flag" ||
  3219. test ! -s conftest.err
  3220. } && test -s conftest.$ac_objext; then
  3221. pointers_fit_in_ints="yes"
  3222. else
  3223. echo "$as_me: failed program was:" >&5
  3224. sed 's/^/| /' conftest.$ac_ext >&5
  3225. fi
  3226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3227. if test "$pointers_fit_in_ints" = "no" ; then
  3228. CFLAGS="$CFLAGS -m32"
  3229. cat >conftest.$ac_ext <<_ACEOF
  3230. /* confdefs.h. */
  3231. _ACEOF
  3232. cat confdefs.h >>conftest.$ac_ext
  3233. cat >>conftest.$ac_ext <<_ACEOF
  3234. /* end confdefs.h. */
  3235. int hw[(sizeof(int) == sizeof(void *))];
  3236. int
  3237. main ()
  3238. {
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. rm -f conftest.$ac_objext
  3244. if { (ac_try="$ac_compile"
  3245. case "(($ac_try" in
  3246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3247. *) ac_try_echo=$ac_try;;
  3248. esac
  3249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3250. (eval "$ac_compile") 2>conftest.er1
  3251. ac_status=$?
  3252. grep -v '^ *+' conftest.er1 >conftest.err
  3253. rm -f conftest.er1
  3254. cat conftest.err >&5
  3255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3256. (exit $ac_status); } && {
  3257. test -z "$ac_c_werror_flag" ||
  3258. test ! -s conftest.err
  3259. } && test -s conftest.$ac_objext; then
  3260. pointers_fit_in_ints="yes (with -m32)"
  3261. else
  3262. echo "$as_me: failed program was:" >&5
  3263. sed 's/^/| /' conftest.$ac_ext >&5
  3264. fi
  3265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3266. fi
  3267. { echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5
  3268. echo "${ECHO_T}$pointers_fit_in_ints" >&6; }
  3269. if test "$pointers_fit_in_ints" = "no" ; then
  3270. { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5
  3271. echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;}
  3272. { (exit 1); exit 1; }; }
  3273. fi
  3274. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  3275. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6; }
  3276. OLD_CFLAGS="$CFLAGS"
  3277. CFLAGS="$CFLAGS -Wno-unused-parameter"
  3278. cat >conftest.$ac_ext <<_ACEOF
  3279. int foo;
  3280. _ACEOF
  3281. rm -f conftest.$ac_objext
  3282. if { (ac_try="$ac_compile"
  3283. case "(($ac_try" in
  3284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3285. *) ac_try_echo=$ac_try;;
  3286. esac
  3287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3288. (eval "$ac_compile") 2>conftest.er1
  3289. ac_status=$?
  3290. grep -v '^ *+' conftest.er1 >conftest.err
  3291. rm -f conftest.er1
  3292. cat conftest.err >&5
  3293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3294. (exit $ac_status); } && {
  3295. test -z "$ac_c_werror_flag" ||
  3296. test ! -s conftest.err
  3297. } && test -s conftest.$ac_objext; then
  3298. { echo "$as_me:$LINENO: result: yes" >&5
  3299. echo "${ECHO_T}yes" >&6; }
  3300. else
  3301. echo "$as_me: failed program was:" >&5
  3302. sed 's/^/| /' conftest.$ac_ext >&5
  3303. { echo "$as_me:$LINENO: result: no" >&5
  3304. echo "${ECHO_T}no" >&6; }
  3305. CFLAGS="$OLD_CFLAGS"
  3306. fi
  3307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3308. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5
  3309. echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6; }
  3310. OLD_CFLAGS="$CFLAGS"
  3311. CFLAGS="$CFLAGS -Wno-pointer-sign"
  3312. cat >conftest.$ac_ext <<_ACEOF
  3313. int foo;
  3314. _ACEOF
  3315. rm -f conftest.$ac_objext
  3316. if { (ac_try="$ac_compile"
  3317. case "(($ac_try" in
  3318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3319. *) ac_try_echo=$ac_try;;
  3320. esac
  3321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3322. (eval "$ac_compile") 2>conftest.er1
  3323. ac_status=$?
  3324. grep -v '^ *+' conftest.er1 >conftest.err
  3325. rm -f conftest.er1
  3326. cat conftest.err >&5
  3327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); } && {
  3329. test -z "$ac_c_werror_flag" ||
  3330. test ! -s conftest.err
  3331. } && test -s conftest.$ac_objext; then
  3332. { echo "$as_me:$LINENO: result: yes" >&5
  3333. echo "${ECHO_T}yes" >&6; }
  3334. else
  3335. echo "$as_me: failed program was:" >&5
  3336. sed 's/^/| /' conftest.$ac_ext >&5
  3337. { echo "$as_me:$LINENO: result: no" >&5
  3338. echo "${ECHO_T}no" >&6; }
  3339. CFLAGS="$OLD_CFLAGS"
  3340. fi
  3341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. { echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5
  3343. echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6; }
  3344. OLD_CFLAGS="$CFLAGS"
  3345. CFLAGS="$CFLAGS -Wno-switch"
  3346. cat >conftest.$ac_ext <<_ACEOF
  3347. int foo;
  3348. _ACEOF
  3349. rm -f conftest.$ac_objext
  3350. if { (ac_try="$ac_compile"
  3351. case "(($ac_try" in
  3352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3353. *) ac_try_echo=$ac_try;;
  3354. esac
  3355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3356. (eval "$ac_compile") 2>conftest.er1
  3357. ac_status=$?
  3358. grep -v '^ *+' conftest.er1 >conftest.err
  3359. rm -f conftest.er1
  3360. cat conftest.err >&5
  3361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3362. (exit $ac_status); } && {
  3363. test -z "$ac_c_werror_flag" ||
  3364. test ! -s conftest.err
  3365. } && test -s conftest.$ac_objext; then
  3366. { echo "$as_me:$LINENO: result: yes" >&5
  3367. echo "${ECHO_T}yes" >&6; }
  3368. else
  3369. echo "$as_me: failed program was:" >&5
  3370. sed 's/^/| /' conftest.$ac_ext >&5
  3371. { echo "$as_me:$LINENO: result: no" >&5
  3372. echo "${ECHO_T}no" >&6; }
  3373. CFLAGS="$OLD_CFLAGS"
  3374. fi
  3375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3376. ###############################################################################
  3377. # Checks for libraries and header files.
  3378. MYSQL_VERSION=""
  3379. MYSQL_CFLAGS=""
  3380. MYSQL_LIBS=""
  3381. if test "$want_mysql" = "no" ; then
  3382. { echo "$as_me:$LINENO: ignoring MySQL (optional)" >&5
  3383. echo "$as_me: ignoring MySQL (optional)" >&6;}
  3384. else
  3385. if test -z "$MYSQL_CONFIG_HOME"; then
  3386. # Extract the first word of "mysql_config", so it can be a program name with args.
  3387. set dummy mysql_config; ac_word=$2
  3388. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3389. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3390. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then
  3391. echo $ECHO_N "(cached) $ECHO_C" >&6
  3392. else
  3393. case $MYSQL_CONFIG_HOME in
  3394. [\\/]* | ?:[\\/]*)
  3395. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  3396. ;;
  3397. *)
  3398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3399. for as_dir in $PATH
  3400. do
  3401. IFS=$as_save_IFS
  3402. test -z "$as_dir" && as_dir=.
  3403. for ac_exec_ext in '' $ac_executable_extensions; do
  3404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3405. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  3406. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3407. break 2
  3408. fi
  3409. done
  3410. done
  3411. IFS=$as_save_IFS
  3412. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  3413. ;;
  3414. esac
  3415. fi
  3416. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  3417. if test -n "$MYSQL_CONFIG_HOME"; then
  3418. { echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5
  3419. echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6; }
  3420. else
  3421. { echo "$as_me:$LINENO: result: no" >&5
  3422. echo "${ECHO_T}no" >&6; }
  3423. fi
  3424. fi
  3425. { echo "$as_me:$LINENO: checking MySQL library (optional)" >&5
  3426. echo $ECHO_N "checking MySQL library (optional)... $ECHO_C" >&6; }
  3427. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  3428. HAVE_MYSQL="yes"
  3429. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  3430. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --cflags`"
  3431. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  3432. { echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5
  3433. echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6; }
  3434. if test -n "`$MYSQL_CONFIG_HOME --libs | grep -i '\-m64'`"; then
  3435. { { 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
  3436. 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;}
  3437. { (exit 1); exit 1; }; }
  3438. fi
  3439. else
  3440. { echo "$as_me:$LINENO: result: no" >&5
  3441. echo "${ECHO_T}no" >&6; }
  3442. if test "$require_mysql" = "yes" ; then
  3443. { { echo "$as_me:$LINENO: error: MySQL not found (requested)" >&5
  3444. echo "$as_me: error: MySQL not found (requested)" >&2;}
  3445. { (exit 1); exit 1; }; }
  3446. else
  3447. { echo "$as_me:$LINENO: disabling MySQL (optional)" >&5
  3448. echo "$as_me: disabling MySQL (optional)" >&6;}
  3449. fi
  3450. fi
  3451. fi
  3452. ##TODO PCRE version
  3453. PCRE_LIBS=""
  3454. PCRE_CFLAGS=""
  3455. if test "$want_pcre" = "no" ; then
  3456. { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5
  3457. echo "$as_me: ignoring PCRE (optional)" >&6;}
  3458. else
  3459. if test -z "$PCRE_HOME" ; then
  3460. { echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5
  3461. echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6; }
  3462. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then
  3463. echo $ECHO_N "(cached) $ECHO_C" >&6
  3464. else
  3465. ac_check_lib_save_LIBS=$LIBS
  3466. LIBS="-lpcre $LIBS"
  3467. cat >conftest.$ac_ext <<_ACEOF
  3468. /* confdefs.h. */
  3469. _ACEOF
  3470. cat confdefs.h >>conftest.$ac_ext
  3471. cat >>conftest.$ac_ext <<_ACEOF
  3472. /* end confdefs.h. */
  3473. /* Override any GCC internal prototype to avoid an error.
  3474. Use char because int might match the return type of a GCC
  3475. builtin and then its argument prototype would still apply. */
  3476. #ifdef __cplusplus
  3477. extern "C"
  3478. #endif
  3479. char pcre_study ();
  3480. int
  3481. main ()
  3482. {
  3483. return pcre_study ();
  3484. ;
  3485. return 0;
  3486. }
  3487. _ACEOF
  3488. rm -f conftest.$ac_objext conftest$ac_exeext
  3489. if { (ac_try="$ac_link"
  3490. case "(($ac_try" in
  3491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3492. *) ac_try_echo=$ac_try;;
  3493. esac
  3494. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3495. (eval "$ac_link") 2>conftest.er1
  3496. ac_status=$?
  3497. grep -v '^ *+' conftest.er1 >conftest.err
  3498. rm -f conftest.er1
  3499. cat conftest.err >&5
  3500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3501. (exit $ac_status); } && {
  3502. test -z "$ac_c_werror_flag" ||
  3503. test ! -s conftest.err
  3504. } && test -s conftest$ac_exeext &&
  3505. $as_test_x conftest$ac_exeext; then
  3506. ac_cv_lib_pcre_pcre_study=yes
  3507. else
  3508. echo "$as_me: failed program was:" >&5
  3509. sed 's/^/| /' conftest.$ac_ext >&5
  3510. ac_cv_lib_pcre_pcre_study=no
  3511. fi
  3512. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3513. conftest$ac_exeext conftest.$ac_ext
  3514. LIBS=$ac_check_lib_save_LIBS
  3515. fi
  3516. { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5
  3517. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6; }
  3518. if test $ac_cv_lib_pcre_pcre_study = yes; then
  3519. HAVE_PCRE="yes"
  3520. fi
  3521. if test "$HAVE_PCRE" = "yes" ; then
  3522. PCRE_LIBS="-lpcre"
  3523. fi
  3524. else
  3525. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  3526. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  3527. { echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
  3528. echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6; }
  3529. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  3530. echo $ECHO_N "(cached) $ECHO_C" >&6
  3531. else
  3532. ac_check_lib_save_LIBS=$LIBS
  3533. LIBS="-lpcre $LIBS"
  3534. cat >conftest.$ac_ext <<_ACEOF
  3535. /* confdefs.h. */
  3536. _ACEOF
  3537. cat confdefs.h >>conftest.$ac_ext
  3538. cat >>conftest.$ac_ext <<_ACEOF
  3539. /* end confdefs.h. */
  3540. /* Override any GCC internal prototype to avoid an error.
  3541. Use char because int might match the return type of a GCC
  3542. builtin and then its argument prototype would still apply. */
  3543. #ifdef __cplusplus
  3544. extern "C"
  3545. #endif
  3546. char pcre_compile ();
  3547. int
  3548. main ()
  3549. {
  3550. return pcre_compile ();
  3551. ;
  3552. return 0;
  3553. }
  3554. _ACEOF
  3555. rm -f conftest.$ac_objext conftest$ac_exeext
  3556. if { (ac_try="$ac_link"
  3557. case "(($ac_try" in
  3558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3559. *) ac_try_echo=$ac_try;;
  3560. esac
  3561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3562. (eval "$ac_link") 2>conftest.er1
  3563. ac_status=$?
  3564. grep -v '^ *+' conftest.er1 >conftest.err
  3565. rm -f conftest.er1
  3566. cat conftest.err >&5
  3567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3568. (exit $ac_status); } && {
  3569. test -z "$ac_c_werror_flag" ||
  3570. test ! -s conftest.err
  3571. } && test -s conftest$ac_exeext &&
  3572. $as_test_x conftest$ac_exeext; then
  3573. ac_cv_lib_pcre_pcre_compile=yes
  3574. else
  3575. echo "$as_me: failed program was:" >&5
  3576. sed 's/^/| /' conftest.$ac_ext >&5
  3577. ac_cv_lib_pcre_pcre_compile=no
  3578. fi
  3579. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3580. conftest$ac_exeext conftest.$ac_ext
  3581. LIBS=$ac_check_lib_save_LIBS
  3582. fi
  3583. { echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
  3584. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6; }
  3585. if test $ac_cv_lib_pcre_pcre_compile = yes; then
  3586. HAVE_PCRE="yes"
  3587. fi
  3588. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  3589. LDFLAGS="$PCRE_OLD_LDFLAGS"
  3590. if test "$HAVE_PCRE" = "yes" ; then
  3591. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  3592. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  3593. fi
  3594. fi
  3595. { echo "$as_me:$LINENO: checking PCRE library (optional)" >&5
  3596. echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6; }
  3597. if test "$HAVE_PCRE" = "yes" ; then
  3598. { echo "$as_me:$LINENO: result: yes" >&5
  3599. echo "${ECHO_T}yes" >&6; }
  3600. else
  3601. { echo "$as_me:$LINENO: result: no" >&5
  3602. echo "${ECHO_T}no" >&6; }
  3603. if test "$require_pcre" = "yes" ; then
  3604. { { echo "$as_me:$LINENO: error: PCRE not found (requested)" >&5
  3605. echo "$as_me: error: PCRE not found (requested)" >&2;}
  3606. { (exit 1); exit 1; }; }
  3607. else
  3608. { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5
  3609. echo "$as_me: disabling PCRE (optional)" >&6;}
  3610. fi
  3611. fi
  3612. fi
  3613. if test -n "${ZLIB_HOME}" ; then
  3614. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  3615. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  3616. fi
  3617. { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  3618. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
  3619. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  3620. echo $ECHO_N "(cached) $ECHO_C" >&6
  3621. else
  3622. ac_check_lib_save_LIBS=$LIBS
  3623. LIBS="-lz $LIBS"
  3624. cat >conftest.$ac_ext <<_ACEOF
  3625. /* confdefs.h. */
  3626. _ACEOF
  3627. cat confdefs.h >>conftest.$ac_ext
  3628. cat >>conftest.$ac_ext <<_ACEOF
  3629. /* end confdefs.h. */
  3630. /* Override any GCC internal prototype to avoid an error.
  3631. Use char because int might match the return type of a GCC
  3632. builtin and then its argument prototype would still apply. */
  3633. #ifdef __cplusplus
  3634. extern "C"
  3635. #endif
  3636. char inflateEnd ();
  3637. int
  3638. main ()
  3639. {
  3640. return inflateEnd ();
  3641. ;
  3642. return 0;
  3643. }
  3644. _ACEOF
  3645. rm -f conftest.$ac_objext conftest$ac_exeext
  3646. if { (ac_try="$ac_link"
  3647. case "(($ac_try" in
  3648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3649. *) ac_try_echo=$ac_try;;
  3650. esac
  3651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3652. (eval "$ac_link") 2>conftest.er1
  3653. ac_status=$?
  3654. grep -v '^ *+' conftest.er1 >conftest.err
  3655. rm -f conftest.er1
  3656. cat conftest.err >&5
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); } && {
  3659. test -z "$ac_c_werror_flag" ||
  3660. test ! -s conftest.err
  3661. } && test -s conftest$ac_exeext &&
  3662. $as_test_x conftest$ac_exeext; then
  3663. ac_cv_lib_z_inflateEnd=yes
  3664. else
  3665. echo "$as_me: failed program was:" >&5
  3666. sed 's/^/| /' conftest.$ac_ext >&5
  3667. ac_cv_lib_z_inflateEnd=no
  3668. fi
  3669. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3670. conftest$ac_exeext conftest.$ac_ext
  3671. LIBS=$ac_check_lib_save_LIBS
  3672. fi
  3673. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  3674. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
  3675. if test $ac_cv_lib_z_inflateEnd = yes; then
  3676. cat >>confdefs.h <<_ACEOF
  3677. #define HAVE_LIBZ 1
  3678. _ACEOF
  3679. LIBS="-lz $LIBS"
  3680. else
  3681. { { echo "$as_me:$LINENO: error: zlib library not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3682. echo "$as_me: error: zlib library not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3683. { (exit 1); exit 1; }; }
  3684. fi
  3685. if test "${ac_cv_header_zlib_h+set}" = set; then
  3686. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  3687. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  3688. if test "${ac_cv_header_zlib_h+set}" = set; then
  3689. echo $ECHO_N "(cached) $ECHO_C" >&6
  3690. fi
  3691. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3692. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  3693. else
  3694. # Is the header compilable?
  3695. { echo "$as_me:$LINENO: checking zlib.h usability" >&5
  3696. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
  3697. cat >conftest.$ac_ext <<_ACEOF
  3698. /* confdefs.h. */
  3699. _ACEOF
  3700. cat confdefs.h >>conftest.$ac_ext
  3701. cat >>conftest.$ac_ext <<_ACEOF
  3702. /* end confdefs.h. */
  3703. $ac_includes_default
  3704. #include <zlib.h>
  3705. _ACEOF
  3706. rm -f conftest.$ac_objext
  3707. if { (ac_try="$ac_compile"
  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_compile") 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); } && {
  3720. test -z "$ac_c_werror_flag" ||
  3721. test ! -s conftest.err
  3722. } && test -s conftest.$ac_objext; then
  3723. ac_header_compiler=yes
  3724. else
  3725. echo "$as_me: failed program was:" >&5
  3726. sed 's/^/| /' conftest.$ac_ext >&5
  3727. ac_header_compiler=no
  3728. fi
  3729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3730. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3731. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3732. # Is the header present?
  3733. { echo "$as_me:$LINENO: checking zlib.h presence" >&5
  3734. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
  3735. cat >conftest.$ac_ext <<_ACEOF
  3736. /* confdefs.h. */
  3737. _ACEOF
  3738. cat confdefs.h >>conftest.$ac_ext
  3739. cat >>conftest.$ac_ext <<_ACEOF
  3740. /* end confdefs.h. */
  3741. #include <zlib.h>
  3742. _ACEOF
  3743. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3744. case "(($ac_try" in
  3745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3746. *) ac_try_echo=$ac_try;;
  3747. esac
  3748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3749. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3750. ac_status=$?
  3751. grep -v '^ *+' conftest.er1 >conftest.err
  3752. rm -f conftest.er1
  3753. cat conftest.err >&5
  3754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3755. (exit $ac_status); } >/dev/null && {
  3756. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3757. test ! -s conftest.err
  3758. }; then
  3759. ac_header_preproc=yes
  3760. else
  3761. echo "$as_me: failed program was:" >&5
  3762. sed 's/^/| /' conftest.$ac_ext >&5
  3763. ac_header_preproc=no
  3764. fi
  3765. rm -f conftest.err conftest.$ac_ext
  3766. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3767. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3768. # So? What about this header?
  3769. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3770. yes:no: )
  3771. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3772. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3773. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  3774. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  3775. ac_header_preproc=yes
  3776. ;;
  3777. no:yes:* )
  3778. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  3779. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  3780. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  3781. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  3782. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  3783. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  3784. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  3785. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3786. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  3787. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  3788. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  3789. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  3790. ;;
  3791. esac
  3792. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  3793. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  3794. if test "${ac_cv_header_zlib_h+set}" = set; then
  3795. echo $ECHO_N "(cached) $ECHO_C" >&6
  3796. else
  3797. ac_cv_header_zlib_h=$ac_header_preproc
  3798. fi
  3799. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  3800. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  3801. fi
  3802. if test $ac_cv_header_zlib_h = yes; then
  3803. :
  3804. else
  3805. { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  3806. echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  3807. { (exit 1); exit 1; }; }
  3808. fi
  3809. { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
  3810. echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
  3811. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  3812. echo $ECHO_N "(cached) $ECHO_C" >&6
  3813. else
  3814. ac_check_lib_save_LIBS=$LIBS
  3815. LIBS="-lm $LIBS"
  3816. cat >conftest.$ac_ext <<_ACEOF
  3817. /* confdefs.h. */
  3818. _ACEOF
  3819. cat confdefs.h >>conftest.$ac_ext
  3820. cat >>conftest.$ac_ext <<_ACEOF
  3821. /* end confdefs.h. */
  3822. /* Override any GCC internal prototype to avoid an error.
  3823. Use char because int might match the return type of a GCC
  3824. builtin and then its argument prototype would still apply. */
  3825. #ifdef __cplusplus
  3826. extern "C"
  3827. #endif
  3828. char sqrt ();
  3829. int
  3830. main ()
  3831. {
  3832. return sqrt ();
  3833. ;
  3834. return 0;
  3835. }
  3836. _ACEOF
  3837. rm -f conftest.$ac_objext conftest$ac_exeext
  3838. if { (ac_try="$ac_link"
  3839. case "(($ac_try" in
  3840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3841. *) ac_try_echo=$ac_try;;
  3842. esac
  3843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3844. (eval "$ac_link") 2>conftest.er1
  3845. ac_status=$?
  3846. grep -v '^ *+' conftest.er1 >conftest.err
  3847. rm -f conftest.er1
  3848. cat conftest.err >&5
  3849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850. (exit $ac_status); } && {
  3851. test -z "$ac_c_werror_flag" ||
  3852. test ! -s conftest.err
  3853. } && test -s conftest$ac_exeext &&
  3854. $as_test_x conftest$ac_exeext; then
  3855. ac_cv_lib_m_sqrt=yes
  3856. else
  3857. echo "$as_me: failed program was:" >&5
  3858. sed 's/^/| /' conftest.$ac_ext >&5
  3859. ac_cv_lib_m_sqrt=no
  3860. fi
  3861. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3862. conftest$ac_exeext conftest.$ac_ext
  3863. LIBS=$ac_check_lib_save_LIBS
  3864. fi
  3865. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
  3866. echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
  3867. if test $ac_cv_lib_m_sqrt = yes; then
  3868. cat >>confdefs.h <<_ACEOF
  3869. #define HAVE_LIBM 1
  3870. _ACEOF
  3871. LIBS="-lm $LIBS"
  3872. else
  3873. { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5
  3874. echo "$as_me: error: math library not found... stopping" >&2;}
  3875. { (exit 1); exit 1; }; }
  3876. fi
  3877. { echo "$as_me:$LINENO: checking host OS" >&5
  3878. echo $ECHO_N "checking host OS... $ECHO_C" >&6; }
  3879. host_os="`uname`"
  3880. { echo "$as_me:$LINENO: result: $host_os" >&5
  3881. echo "${ECHO_T}$host_os" >&6; }
  3882. fd_setsize=""
  3883. DLLEXT=".so"
  3884. case $host_os in
  3885. Solaris* )
  3886. LIBS="$LIBS -lsocket -lnsl -ldl"
  3887. ;;
  3888. Linux* )
  3889. LIBS="$LIBS -ldl"
  3890. ;;
  3891. FreeBSD*)
  3892. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  3893. ;;
  3894. NetBSD*)
  3895. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  3896. ;;
  3897. CYGWIN*)
  3898. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  3899. fd_setsize="done"
  3900. DLLEXT=".dll"
  3901. ;;
  3902. esac
  3903. { echo "$as_me:$LINENO: checking for MinGW" >&5
  3904. echo $ECHO_N "checking for MinGW... $ECHO_C" >&6; }
  3905. if test -n "`$CC --version | grep -i mingw`" ; then
  3906. { echo "$as_me:$LINENO: result: yes" >&5
  3907. echo "${ECHO_T}yes" >&6; }
  3908. CPPFLAGS="$CPPFLAGS -DMINGW"
  3909. if test -z "$fd_setsize" ; then
  3910. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  3911. fi
  3912. LIBS="$LIBS -lws2_32"
  3913. else
  3914. { echo "$as_me:$LINENO: result: no" >&5
  3915. echo "${ECHO_T}no" >&6; }
  3916. fi
  3917. ###############################################################################
  3918. cat >confcache <<\_ACEOF
  3919. # This file is a shell script that caches the results of configure
  3920. # tests run on this system so they can be shared between configure
  3921. # scripts and configure runs, see configure's option --config-cache.
  3922. # It is not useful on other systems. If it contains results you don't
  3923. # want to keep, you may remove or edit it.
  3924. #
  3925. # config.status only pays attention to the cache file if you give it
  3926. # the --recheck option to rerun configure.
  3927. #
  3928. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3929. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3930. # following values.
  3931. _ACEOF
  3932. # The following way of writing the cache mishandles newlines in values,
  3933. # but we know of no workaround that is simple, portable, and efficient.
  3934. # So, we kill variables containing newlines.
  3935. # Ultrix sh set writes to stderr and can't be redirected directly,
  3936. # and sets the high bit in the cache file unless we assign to the vars.
  3937. (
  3938. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3939. eval ac_val=\$$ac_var
  3940. case $ac_val in #(
  3941. *${as_nl}*)
  3942. case $ac_var in #(
  3943. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3944. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3945. esac
  3946. case $ac_var in #(
  3947. _ | IFS | as_nl) ;; #(
  3948. *) $as_unset $ac_var ;;
  3949. esac ;;
  3950. esac
  3951. done
  3952. (set) 2>&1 |
  3953. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3954. *${as_nl}ac_space=\ *)
  3955. # `set' does not quote correctly, so add quotes (double-quote
  3956. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3957. sed -n \
  3958. "s/'/'\\\\''/g;
  3959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3960. ;; #(
  3961. *)
  3962. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3963. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3964. ;;
  3965. esac |
  3966. sort
  3967. ) |
  3968. sed '
  3969. /^ac_cv_env_/b end
  3970. t clear
  3971. :clear
  3972. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3973. t end
  3974. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3975. :end' >>confcache
  3976. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3977. if test -w "$cache_file"; then
  3978. test "x$cache_file" != "x/dev/null" &&
  3979. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3980. echo "$as_me: updating cache $cache_file" >&6;}
  3981. cat confcache >$cache_file
  3982. else
  3983. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3984. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3985. fi
  3986. fi
  3987. rm -f confcache
  3988. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3989. # Let make expand exec_prefix.
  3990. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3991. # Transform confdefs.h into DEFS.
  3992. # Protect against shell expansion while executing Makefile rules.
  3993. # Protect against Makefile macro expansion.
  3994. #
  3995. # If the first sed substitution is executed (which looks for macros that
  3996. # take arguments), then branch to the quote section. Otherwise,
  3997. # look for a macro that doesn't take arguments.
  3998. ac_script='
  3999. t clear
  4000. :clear
  4001. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  4002. t quote
  4003. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  4004. t quote
  4005. b any
  4006. :quote
  4007. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  4008. s/\[/\\&/g
  4009. s/\]/\\&/g
  4010. s/\$/$$/g
  4011. H
  4012. :any
  4013. ${
  4014. g
  4015. s/^\n//
  4016. s/\n/ /g
  4017. p
  4018. }
  4019. '
  4020. DEFS=`sed -n "$ac_script" confdefs.h`
  4021. ac_libobjs=
  4022. ac_ltlibobjs=
  4023. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4024. # 1. Remove the extension, and $U if already installed.
  4025. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4026. ac_i=`echo "$ac_i" | sed "$ac_script"`
  4027. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4028. # will be set to the directory where LIBOBJS objects are built.
  4029. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4030. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  4031. done
  4032. LIBOBJS=$ac_libobjs
  4033. LTLIBOBJS=$ac_ltlibobjs
  4034. : ${CONFIG_STATUS=./config.status}
  4035. ac_clean_files_save=$ac_clean_files
  4036. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4037. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4038. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4039. cat >$CONFIG_STATUS <<_ACEOF
  4040. #! $SHELL
  4041. # Generated by $as_me.
  4042. # Run this file to recreate the current configuration.
  4043. # Compiler output produced by configure, useful for debugging
  4044. # configure, is in config.log if it exists.
  4045. debug=false
  4046. ac_cs_recheck=false
  4047. ac_cs_silent=false
  4048. SHELL=\${CONFIG_SHELL-$SHELL}
  4049. _ACEOF
  4050. cat >>$CONFIG_STATUS <<\_ACEOF
  4051. ## --------------------- ##
  4052. ## M4sh Initialization. ##
  4053. ## --------------------- ##
  4054. # Be more Bourne compatible
  4055. DUALCASE=1; export DUALCASE # for MKS sh
  4056. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4057. emulate sh
  4058. NULLCMD=:
  4059. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4060. # is contrary to our usage. Disable this feature.
  4061. alias -g '${1+"$@"}'='"$@"'
  4062. setopt NO_GLOB_SUBST
  4063. else
  4064. case `(set -o) 2>/dev/null` in
  4065. *posix*) set -o posix ;;
  4066. esac
  4067. fi
  4068. # PATH needs CR
  4069. # Avoid depending upon Character Ranges.
  4070. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4071. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4072. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4073. as_cr_digits='0123456789'
  4074. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4075. # The user is always right.
  4076. if test "${PATH_SEPARATOR+set}" != set; then
  4077. echo "#! /bin/sh" >conf$$.sh
  4078. echo "exit 0" >>conf$$.sh
  4079. chmod +x conf$$.sh
  4080. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4081. PATH_SEPARATOR=';'
  4082. else
  4083. PATH_SEPARATOR=:
  4084. fi
  4085. rm -f conf$$.sh
  4086. fi
  4087. # Support unset when possible.
  4088. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4089. as_unset=unset
  4090. else
  4091. as_unset=false
  4092. fi
  4093. # IFS
  4094. # We need space, tab and new line, in precisely that order. Quoting is
  4095. # there to prevent editors from complaining about space-tab.
  4096. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4097. # splitting by setting IFS to empty value.)
  4098. as_nl='
  4099. '
  4100. IFS=" "" $as_nl"
  4101. # Find who we are. Look in the path if we contain no directory separator.
  4102. case $0 in
  4103. *[\\/]* ) as_myself=$0 ;;
  4104. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4105. for as_dir in $PATH
  4106. do
  4107. IFS=$as_save_IFS
  4108. test -z "$as_dir" && as_dir=.
  4109. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4110. done
  4111. IFS=$as_save_IFS
  4112. ;;
  4113. esac
  4114. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4115. # in which case we are not to be found in the path.
  4116. if test "x$as_myself" = x; then
  4117. as_myself=$0
  4118. fi
  4119. if test ! -f "$as_myself"; then
  4120. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4121. { (exit 1); exit 1; }
  4122. fi
  4123. # Work around bugs in pre-3.0 UWIN ksh.
  4124. for as_var in ENV MAIL MAILPATH
  4125. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4126. done
  4127. PS1='$ '
  4128. PS2='> '
  4129. PS4='+ '
  4130. # NLS nuisances.
  4131. for as_var in \
  4132. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4133. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4134. LC_TELEPHONE LC_TIME
  4135. do
  4136. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4137. eval $as_var=C; export $as_var
  4138. else
  4139. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4140. fi
  4141. done
  4142. # Required to use basename.
  4143. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4144. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4145. as_expr=expr
  4146. else
  4147. as_expr=false
  4148. fi
  4149. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4150. as_basename=basename
  4151. else
  4152. as_basename=false
  4153. fi
  4154. # Name of the executable.
  4155. as_me=`$as_basename -- "$0" ||
  4156. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4157. X"$0" : 'X\(//\)$' \| \
  4158. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4159. echo X/"$0" |
  4160. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4161. s//\1/
  4162. q
  4163. }
  4164. /^X\/\(\/\/\)$/{
  4165. s//\1/
  4166. q
  4167. }
  4168. /^X\/\(\/\).*/{
  4169. s//\1/
  4170. q
  4171. }
  4172. s/.*/./; q'`
  4173. # CDPATH.
  4174. $as_unset CDPATH
  4175. as_lineno_1=$LINENO
  4176. as_lineno_2=$LINENO
  4177. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4178. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  4179. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4180. # uniformly replaced by the line number. The first 'sed' inserts a
  4181. # line-number line after each line using $LINENO; the second 'sed'
  4182. # does the real work. The second script uses 'N' to pair each
  4183. # line-number line with the line containing $LINENO, and appends
  4184. # trailing '-' during substitution so that $LINENO is not a special
  4185. # case at line end.
  4186. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4187. # scripts with optimization help from Paolo Bonzini. Blame Lee
  4188. # E. McMahon (1931-1989) for sed's syntax. :-)
  4189. sed -n '
  4190. p
  4191. /[$]LINENO/=
  4192. ' <$as_myself |
  4193. sed '
  4194. s/[$]LINENO.*/&-/
  4195. t lineno
  4196. b
  4197. :lineno
  4198. N
  4199. :loop
  4200. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  4201. t loop
  4202. s/-\n.*//
  4203. ' >$as_me.lineno &&
  4204. chmod +x "$as_me.lineno" ||
  4205. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  4206. { (exit 1); exit 1; }; }
  4207. # Don't try to exec as it changes $[0], causing all sort of problems
  4208. # (the dirname of $[0] is not the place where we might find the
  4209. # original and so on. Autoconf is especially sensitive to this).
  4210. . "./$as_me.lineno"
  4211. # Exit status is that of the last command.
  4212. exit
  4213. }
  4214. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4215. as_dirname=dirname
  4216. else
  4217. as_dirname=false
  4218. fi
  4219. ECHO_C= ECHO_N= ECHO_T=
  4220. case `echo -n x` in
  4221. -n*)
  4222. case `echo 'x\c'` in
  4223. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4224. *) ECHO_C='\c';;
  4225. esac;;
  4226. *)
  4227. ECHO_N='-n';;
  4228. esac
  4229. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4230. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4231. as_expr=expr
  4232. else
  4233. as_expr=false
  4234. fi
  4235. rm -f conf$$ conf$$.exe conf$$.file
  4236. if test -d conf$$.dir; then
  4237. rm -f conf$$.dir/conf$$.file
  4238. else
  4239. rm -f conf$$.dir
  4240. mkdir conf$$.dir
  4241. fi
  4242. echo >conf$$.file
  4243. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4244. as_ln_s='ln -s'
  4245. # ... but there are two gotchas:
  4246. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4247. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4248. # In both cases, we have to default to `cp -p'.
  4249. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4250. as_ln_s='cp -p'
  4251. elif ln conf$$.file conf$$ 2>/dev/null; then
  4252. as_ln_s=ln
  4253. else
  4254. as_ln_s='cp -p'
  4255. fi
  4256. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4257. rmdir conf$$.dir 2>/dev/null
  4258. if mkdir -p . 2>/dev/null; then
  4259. as_mkdir_p=:
  4260. else
  4261. test -d ./-p && rmdir ./-p
  4262. as_mkdir_p=false
  4263. fi
  4264. if test -x / >/dev/null 2>&1; then
  4265. as_test_x='test -x'
  4266. else
  4267. if ls -dL / >/dev/null 2>&1; then
  4268. as_ls_L_option=L
  4269. else
  4270. as_ls_L_option=
  4271. fi
  4272. as_test_x='
  4273. eval sh -c '\''
  4274. if test -d "$1"; then
  4275. test -d "$1/.";
  4276. else
  4277. case $1 in
  4278. -*)set "./$1";;
  4279. esac;
  4280. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  4281. ???[sx]*):;;*)false;;esac;fi
  4282. '\'' sh
  4283. '
  4284. fi
  4285. as_executable_p=$as_test_x
  4286. # Sed expression to map a string onto a valid CPP name.
  4287. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4288. # Sed expression to map a string onto a valid variable name.
  4289. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4290. exec 6>&1
  4291. # Save the log message, to keep $[0] and so on meaningful, and to
  4292. # report actual input values of CONFIG_FILES etc. instead of their
  4293. # values after options handling.
  4294. ac_log="
  4295. This file was extended by $as_me, which was
  4296. generated by GNU Autoconf 2.61. Invocation command line was
  4297. CONFIG_FILES = $CONFIG_FILES
  4298. CONFIG_HEADERS = $CONFIG_HEADERS
  4299. CONFIG_LINKS = $CONFIG_LINKS
  4300. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4301. $ $0 $@
  4302. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4303. "
  4304. _ACEOF
  4305. cat >>$CONFIG_STATUS <<_ACEOF
  4306. # Files that config.status was made for.
  4307. config_files="$ac_config_files"
  4308. _ACEOF
  4309. cat >>$CONFIG_STATUS <<\_ACEOF
  4310. ac_cs_usage="\
  4311. \`$as_me' instantiates files from templates according to the
  4312. current configuration.
  4313. Usage: $0 [OPTIONS] [FILE]...
  4314. -h, --help print this help, then exit
  4315. -V, --version print version number and configuration settings, then exit
  4316. -q, --quiet do not print progress messages
  4317. -d, --debug don't remove temporary files
  4318. --recheck update $as_me by reconfiguring in the same conditions
  4319. --file=FILE[:TEMPLATE]
  4320. instantiate the configuration file FILE
  4321. Configuration files:
  4322. $config_files
  4323. Report bugs to <bug-autoconf@gnu.org>."
  4324. _ACEOF
  4325. cat >>$CONFIG_STATUS <<_ACEOF
  4326. ac_cs_version="\\
  4327. config.status
  4328. configured by $0, generated by GNU Autoconf 2.61,
  4329. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4330. Copyright (C) 2006 Free Software Foundation, Inc.
  4331. This config.status script is free software; the Free Software Foundation
  4332. gives unlimited permission to copy, distribute and modify it."
  4333. ac_pwd='$ac_pwd'
  4334. srcdir='$srcdir'
  4335. _ACEOF
  4336. cat >>$CONFIG_STATUS <<\_ACEOF
  4337. # If no file are specified by the user, then we need to provide default
  4338. # value. By we need to know if files were specified by the user.
  4339. ac_need_defaults=:
  4340. while test $# != 0
  4341. do
  4342. case $1 in
  4343. --*=*)
  4344. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4345. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4346. ac_shift=:
  4347. ;;
  4348. *)
  4349. ac_option=$1
  4350. ac_optarg=$2
  4351. ac_shift=shift
  4352. ;;
  4353. esac
  4354. case $ac_option in
  4355. # Handling of the options.
  4356. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4357. ac_cs_recheck=: ;;
  4358. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4359. echo "$ac_cs_version"; exit ;;
  4360. --debug | --debu | --deb | --de | --d | -d )
  4361. debug=: ;;
  4362. --file | --fil | --fi | --f )
  4363. $ac_shift
  4364. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4365. ac_need_defaults=false;;
  4366. --he | --h | --help | --hel | -h )
  4367. echo "$ac_cs_usage"; exit ;;
  4368. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4369. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4370. ac_cs_silent=: ;;
  4371. # This is an error.
  4372. -*) { echo "$as_me: error: unrecognized option: $1
  4373. Try \`$0 --help' for more information." >&2
  4374. { (exit 1); exit 1; }; } ;;
  4375. *) ac_config_targets="$ac_config_targets $1"
  4376. ac_need_defaults=false ;;
  4377. esac
  4378. shift
  4379. done
  4380. ac_configure_extra_args=
  4381. if $ac_cs_silent; then
  4382. exec 6>/dev/null
  4383. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4384. fi
  4385. _ACEOF
  4386. cat >>$CONFIG_STATUS <<_ACEOF
  4387. if \$ac_cs_recheck; then
  4388. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4389. CONFIG_SHELL=$SHELL
  4390. export CONFIG_SHELL
  4391. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4392. fi
  4393. _ACEOF
  4394. cat >>$CONFIG_STATUS <<\_ACEOF
  4395. exec 5>>config.log
  4396. {
  4397. echo
  4398. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4399. ## Running $as_me. ##
  4400. _ASBOX
  4401. echo "$ac_log"
  4402. } >&5
  4403. _ACEOF
  4404. cat >>$CONFIG_STATUS <<_ACEOF
  4405. _ACEOF
  4406. cat >>$CONFIG_STATUS <<\_ACEOF
  4407. # Handling of arguments.
  4408. for ac_config_target in $ac_config_targets
  4409. do
  4410. case $ac_config_target in
  4411. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4412. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  4413. "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  4414. "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  4415. "src/ladmin/Makefile") CONFIG_FILES="$CONFIG_FILES src/ladmin/Makefile" ;;
  4416. "src/char_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/char_sql/Makefile" ;;
  4417. "src/login_sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/login_sql/Makefile" ;;
  4418. "src/txt-converter/Makefile") CONFIG_FILES="$CONFIG_FILES src/txt-converter/Makefile" ;;
  4419. "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  4420. "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
  4421. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  4422. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4423. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4424. { (exit 1); exit 1; }; };;
  4425. esac
  4426. done
  4427. # If the user did not use the arguments to specify the items to instantiate,
  4428. # then the envvar interface is used. Set only those that are not.
  4429. # We use the long form for the default assignment because of an extremely
  4430. # bizarre bug on SunOS 4.1.3.
  4431. if $ac_need_defaults; then
  4432. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4433. fi
  4434. # Have a temporary directory for convenience. Make it in the build tree
  4435. # simply because there is no reason against having it here, and in addition,
  4436. # creating and moving files from /tmp can sometimes cause problems.
  4437. # Hook for its removal unless debugging.
  4438. # Note that there is a small window in which the directory will not be cleaned:
  4439. # after its creation but before its name has been assigned to `$tmp'.
  4440. $debug ||
  4441. {
  4442. tmp=
  4443. trap 'exit_status=$?
  4444. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  4445. ' 0
  4446. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4447. }
  4448. # Create a (secure) tmp directory for tmp files.
  4449. {
  4450. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4451. test -n "$tmp" && test -d "$tmp"
  4452. } ||
  4453. {
  4454. tmp=./conf$$-$RANDOM
  4455. (umask 077 && mkdir "$tmp")
  4456. } ||
  4457. {
  4458. echo "$me: cannot create a temporary directory in ." >&2
  4459. { (exit 1); exit 1; }
  4460. }
  4461. #
  4462. # Set up the sed scripts for CONFIG_FILES section.
  4463. #
  4464. # No need to generate the scripts if there are no CONFIG_FILES.
  4465. # This happens for instance when ./config.status config.h
  4466. if test -n "$CONFIG_FILES"; then
  4467. _ACEOF
  4468. ac_delim='%!_!# '
  4469. for ac_last_try in false false false false false :; do
  4470. cat >conf$$subs.sed <<_ACEOF
  4471. SHELL!$SHELL$ac_delim
  4472. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  4473. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  4474. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  4475. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  4476. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  4477. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  4478. exec_prefix!$exec_prefix$ac_delim
  4479. prefix!$prefix$ac_delim
  4480. program_transform_name!$program_transform_name$ac_delim
  4481. bindir!$bindir$ac_delim
  4482. sbindir!$sbindir$ac_delim
  4483. libexecdir!$libexecdir$ac_delim
  4484. datarootdir!$datarootdir$ac_delim
  4485. datadir!$datadir$ac_delim
  4486. sysconfdir!$sysconfdir$ac_delim
  4487. sharedstatedir!$sharedstatedir$ac_delim
  4488. localstatedir!$localstatedir$ac_delim
  4489. includedir!$includedir$ac_delim
  4490. oldincludedir!$oldincludedir$ac_delim
  4491. docdir!$docdir$ac_delim
  4492. infodir!$infodir$ac_delim
  4493. htmldir!$htmldir$ac_delim
  4494. dvidir!$dvidir$ac_delim
  4495. pdfdir!$pdfdir$ac_delim
  4496. psdir!$psdir$ac_delim
  4497. libdir!$libdir$ac_delim
  4498. localedir!$localedir$ac_delim
  4499. mandir!$mandir$ac_delim
  4500. DEFS!$DEFS$ac_delim
  4501. ECHO_C!$ECHO_C$ac_delim
  4502. ECHO_N!$ECHO_N$ac_delim
  4503. ECHO_T!$ECHO_T$ac_delim
  4504. LIBS!$LIBS$ac_delim
  4505. build_alias!$build_alias$ac_delim
  4506. host_alias!$host_alias$ac_delim
  4507. target_alias!$target_alias$ac_delim
  4508. SET_MAKE!$SET_MAKE$ac_delim
  4509. CC!$CC$ac_delim
  4510. CFLAGS!$CFLAGS$ac_delim
  4511. LDFLAGS!$LDFLAGS$ac_delim
  4512. CPPFLAGS!$CPPFLAGS$ac_delim
  4513. ac_ct_CC!$ac_ct_CC$ac_delim
  4514. EXEEXT!$EXEEXT$ac_delim
  4515. OBJEXT!$OBJEXT$ac_delim
  4516. CPP!$CPP$ac_delim
  4517. GREP!$GREP$ac_delim
  4518. EGREP!$EGREP$ac_delim
  4519. MYSQL_CONFIG_HOME!$MYSQL_CONFIG_HOME$ac_delim
  4520. HAVE_MYSQL!$HAVE_MYSQL$ac_delim
  4521. MYSQL_VERSION!$MYSQL_VERSION$ac_delim
  4522. MYSQL_CFLAGS!$MYSQL_CFLAGS$ac_delim
  4523. MYSQL_LIBS!$MYSQL_LIBS$ac_delim
  4524. HAVE_PCRE!$HAVE_PCRE$ac_delim
  4525. PCRE_LIBS!$PCRE_LIBS$ac_delim
  4526. PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
  4527. DLLEXT!$DLLEXT$ac_delim
  4528. LIBOBJS!$LIBOBJS$ac_delim
  4529. LTLIBOBJS!$LTLIBOBJS$ac_delim
  4530. _ACEOF
  4531. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
  4532. break
  4533. elif $ac_last_try; then
  4534. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4535. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4536. { (exit 1); exit 1; }; }
  4537. else
  4538. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4539. fi
  4540. done
  4541. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  4542. if test -n "$ac_eof"; then
  4543. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  4544. ac_eof=`expr $ac_eof + 1`
  4545. fi
  4546. cat >>$CONFIG_STATUS <<_ACEOF
  4547. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  4548. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  4549. _ACEOF
  4550. sed '
  4551. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  4552. s/^/s,@/; s/!/@,|#_!!_#|/
  4553. :n
  4554. t n
  4555. s/'"$ac_delim"'$/,g/; t
  4556. s/$/\\/; p
  4557. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  4558. ' >>$CONFIG_STATUS <conf$$subs.sed
  4559. rm -f conf$$subs.sed
  4560. cat >>$CONFIG_STATUS <<_ACEOF
  4561. :end
  4562. s/|#_!!_#|//g
  4563. CEOF$ac_eof
  4564. _ACEOF
  4565. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4566. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4567. # trailing colons and then remove the whole line if VPATH becomes empty
  4568. # (actually we leave an empty line to preserve line numbers).
  4569. if test "x$srcdir" = x.; then
  4570. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4571. s/:*\$(srcdir):*/:/
  4572. s/:*\${srcdir}:*/:/
  4573. s/:*@srcdir@:*/:/
  4574. s/^\([^=]*=[ ]*\):*/\1/
  4575. s/:*$//
  4576. s/^[^=]*=[ ]*$//
  4577. }'
  4578. fi
  4579. cat >>$CONFIG_STATUS <<\_ACEOF
  4580. fi # test -n "$CONFIG_FILES"
  4581. for ac_tag in :F $CONFIG_FILES
  4582. do
  4583. case $ac_tag in
  4584. :[FHLC]) ac_mode=$ac_tag; continue;;
  4585. esac
  4586. case $ac_mode$ac_tag in
  4587. :[FHL]*:*);;
  4588. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4589. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4590. { (exit 1); exit 1; }; };;
  4591. :[FH]-) ac_tag=-:-;;
  4592. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4593. esac
  4594. ac_save_IFS=$IFS
  4595. IFS=:
  4596. set x $ac_tag
  4597. IFS=$ac_save_IFS
  4598. shift
  4599. ac_file=$1
  4600. shift
  4601. case $ac_mode in
  4602. :L) ac_source=$1;;
  4603. :[FH])
  4604. ac_file_inputs=
  4605. for ac_f
  4606. do
  4607. case $ac_f in
  4608. -) ac_f="$tmp/stdin";;
  4609. *) # Look for the file first in the build tree, then in the source tree
  4610. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4611. # because $ac_f cannot contain `:'.
  4612. test -f "$ac_f" ||
  4613. case $ac_f in
  4614. [\\/$]*) false;;
  4615. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4616. esac ||
  4617. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4618. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4619. { (exit 1); exit 1; }; };;
  4620. esac
  4621. ac_file_inputs="$ac_file_inputs $ac_f"
  4622. done
  4623. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4624. # use $as_me), people would be surprised to read:
  4625. # /* config.h. Generated by config.status. */
  4626. configure_input="Generated from "`IFS=:
  4627. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  4628. if test x"$ac_file" != x-; then
  4629. configure_input="$ac_file. $configure_input"
  4630. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4631. echo "$as_me: creating $ac_file" >&6;}
  4632. fi
  4633. case $ac_tag in
  4634. *:-:* | *:-) cat >"$tmp/stdin";;
  4635. esac
  4636. ;;
  4637. esac
  4638. ac_dir=`$as_dirname -- "$ac_file" ||
  4639. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4640. X"$ac_file" : 'X\(//\)[^/]' \| \
  4641. X"$ac_file" : 'X\(//\)$' \| \
  4642. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4643. echo X"$ac_file" |
  4644. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4645. s//\1/
  4646. q
  4647. }
  4648. /^X\(\/\/\)[^/].*/{
  4649. s//\1/
  4650. q
  4651. }
  4652. /^X\(\/\/\)$/{
  4653. s//\1/
  4654. q
  4655. }
  4656. /^X\(\/\).*/{
  4657. s//\1/
  4658. q
  4659. }
  4660. s/.*/./; q'`
  4661. { as_dir="$ac_dir"
  4662. case $as_dir in #(
  4663. -*) as_dir=./$as_dir;;
  4664. esac
  4665. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  4666. as_dirs=
  4667. while :; do
  4668. case $as_dir in #(
  4669. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  4670. *) as_qdir=$as_dir;;
  4671. esac
  4672. as_dirs="'$as_qdir' $as_dirs"
  4673. as_dir=`$as_dirname -- "$as_dir" ||
  4674. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4675. X"$as_dir" : 'X\(//\)[^/]' \| \
  4676. X"$as_dir" : 'X\(//\)$' \| \
  4677. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4678. echo X"$as_dir" |
  4679. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4680. s//\1/
  4681. q
  4682. }
  4683. /^X\(\/\/\)[^/].*/{
  4684. s//\1/
  4685. q
  4686. }
  4687. /^X\(\/\/\)$/{
  4688. s//\1/
  4689. q
  4690. }
  4691. /^X\(\/\).*/{
  4692. s//\1/
  4693. q
  4694. }
  4695. s/.*/./; q'`
  4696. test -d "$as_dir" && break
  4697. done
  4698. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4699. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  4700. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  4701. { (exit 1); exit 1; }; }; }
  4702. ac_builddir=.
  4703. case "$ac_dir" in
  4704. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4705. *)
  4706. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4707. # A ".." for each directory in $ac_dir_suffix.
  4708. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  4709. case $ac_top_builddir_sub in
  4710. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4711. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4712. esac ;;
  4713. esac
  4714. ac_abs_top_builddir=$ac_pwd
  4715. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4716. # for backward compatibility:
  4717. ac_top_builddir=$ac_top_build_prefix
  4718. case $srcdir in
  4719. .) # We are building in place.
  4720. ac_srcdir=.
  4721. ac_top_srcdir=$ac_top_builddir_sub
  4722. ac_abs_top_srcdir=$ac_pwd ;;
  4723. [\\/]* | ?:[\\/]* ) # Absolute name.
  4724. ac_srcdir=$srcdir$ac_dir_suffix;
  4725. ac_top_srcdir=$srcdir
  4726. ac_abs_top_srcdir=$srcdir ;;
  4727. *) # Relative name.
  4728. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4729. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4730. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4731. esac
  4732. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4733. case $ac_mode in
  4734. :F)
  4735. #
  4736. # CONFIG_FILE
  4737. #
  4738. _ACEOF
  4739. cat >>$CONFIG_STATUS <<\_ACEOF
  4740. # If the template does not know about datarootdir, expand it.
  4741. # FIXME: This hack should be removed a few years after 2.60.
  4742. ac_datarootdir_hack=; ac_datarootdir_seen=
  4743. case `sed -n '/datarootdir/ {
  4744. p
  4745. q
  4746. }
  4747. /@datadir@/p
  4748. /@docdir@/p
  4749. /@infodir@/p
  4750. /@localedir@/p
  4751. /@mandir@/p
  4752. ' $ac_file_inputs` in
  4753. *datarootdir*) ac_datarootdir_seen=yes;;
  4754. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4755. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4756. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4757. _ACEOF
  4758. cat >>$CONFIG_STATUS <<_ACEOF
  4759. ac_datarootdir_hack='
  4760. s&@datadir@&$datadir&g
  4761. s&@docdir@&$docdir&g
  4762. s&@infodir@&$infodir&g
  4763. s&@localedir@&$localedir&g
  4764. s&@mandir@&$mandir&g
  4765. s&\\\${datarootdir}&$datarootdir&g' ;;
  4766. esac
  4767. _ACEOF
  4768. # Neutralize VPATH when `$srcdir' = `.'.
  4769. # Shell code in configure.ac might set extrasub.
  4770. # FIXME: do we really want to maintain this feature?
  4771. cat >>$CONFIG_STATUS <<_ACEOF
  4772. sed "$ac_vpsub
  4773. $extrasub
  4774. _ACEOF
  4775. cat >>$CONFIG_STATUS <<\_ACEOF
  4776. :t
  4777. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4778. s&@configure_input@&$configure_input&;t t
  4779. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4780. s&@srcdir@&$ac_srcdir&;t t
  4781. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4782. s&@top_srcdir@&$ac_top_srcdir&;t t
  4783. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4784. s&@builddir@&$ac_builddir&;t t
  4785. s&@abs_builddir@&$ac_abs_builddir&;t t
  4786. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4787. $ac_datarootdir_hack
  4788. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  4789. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4790. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  4791. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  4792. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4793. which seems to be undefined. Please make sure it is defined." >&5
  4794. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4795. which seems to be undefined. Please make sure it is defined." >&2;}
  4796. rm -f "$tmp/stdin"
  4797. case $ac_file in
  4798. -) cat "$tmp/out"; rm -f "$tmp/out";;
  4799. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  4800. esac
  4801. ;;
  4802. esac
  4803. done # for ac_tag
  4804. { (exit 0); exit 0; }
  4805. _ACEOF
  4806. chmod +x $CONFIG_STATUS
  4807. ac_clean_files=$ac_clean_files_save
  4808. # configure is writing to config.log, and then calls config.status.
  4809. # config.status does its own redirection, appending to config.log.
  4810. # Unfortunately, on DOS this fails, as config.log is still kept open
  4811. # by configure, so config.status won't be able to write to it; its
  4812. # output is simply discarded. So we exec the FD to /dev/null,
  4813. # effectively closing config.log, so it can be properly (re)opened and
  4814. # appended to by config.status. When coming back to configure, we
  4815. # need to make the FD available again.
  4816. if test "$no_create" != yes; then
  4817. ac_cs_success=:
  4818. ac_config_status_args=
  4819. test "$silent" = yes &&
  4820. ac_config_status_args="$ac_config_status_args --quiet"
  4821. exec 5>/dev/null
  4822. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4823. exec 5>>config.log
  4824. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4825. # would make configure fail if this is the last instruction.
  4826. $ac_cs_success || { (exit 1); exit 1; }
  4827. fi