output.0 151 KB

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