output.1 151 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372
  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. ac_config_headers="$ac_config_headers config.h"
  1982. # Checks for programs.
  1983. ac_ext=cpp
  1984. ac_cpp='$CXXCPP $CPPFLAGS'
  1985. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1986. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1987. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1988. if test -z "$CXX"; then
  1989. if test -n "$CCC"; then
  1990. CXX=$CCC
  1991. else
  1992. if test -n "$ac_tool_prefix"; then
  1993. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  1994. do
  1995. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1996. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1998. $as_echo_n "checking for $ac_word... " >&6; }
  1999. if ${ac_cv_prog_CXX+:} false; then :
  2000. $as_echo_n "(cached) " >&6
  2001. else
  2002. if test -n "$CXX"; then
  2003. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2004. else
  2005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2006. for as_dir in $PATH
  2007. do
  2008. IFS=$as_save_IFS
  2009. test -z "$as_dir" && as_dir=.
  2010. for ac_exec_ext in '' $ac_executable_extensions; do
  2011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2012. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2014. break 2
  2015. fi
  2016. done
  2017. done
  2018. IFS=$as_save_IFS
  2019. fi
  2020. fi
  2021. CXX=$ac_cv_prog_CXX
  2022. if test -n "$CXX"; then
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2024. $as_echo "$CXX" >&6; }
  2025. else
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2027. $as_echo "no" >&6; }
  2028. fi
  2029. test -n "$CXX" && break
  2030. done
  2031. fi
  2032. if test -z "$CXX"; then
  2033. ac_ct_CXX=$CXX
  2034. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2035. do
  2036. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2037. set dummy $ac_prog; ac_word=$2
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2039. $as_echo_n "checking for $ac_word... " >&6; }
  2040. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2041. $as_echo_n "(cached) " >&6
  2042. else
  2043. if test -n "$ac_ct_CXX"; then
  2044. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2045. else
  2046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2047. for as_dir in $PATH
  2048. do
  2049. IFS=$as_save_IFS
  2050. test -z "$as_dir" && as_dir=.
  2051. for ac_exec_ext in '' $ac_executable_extensions; do
  2052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2053. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2055. break 2
  2056. fi
  2057. done
  2058. done
  2059. IFS=$as_save_IFS
  2060. fi
  2061. fi
  2062. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2063. if test -n "$ac_ct_CXX"; then
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2065. $as_echo "$ac_ct_CXX" >&6; }
  2066. else
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2068. $as_echo "no" >&6; }
  2069. fi
  2070. test -n "$ac_ct_CXX" && break
  2071. done
  2072. if test "x$ac_ct_CXX" = x; then
  2073. CXX="g++"
  2074. else
  2075. case $cross_compiling:$ac_tool_warned in
  2076. yes:)
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2078. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2079. ac_tool_warned=yes ;;
  2080. esac
  2081. CXX=$ac_ct_CXX
  2082. fi
  2083. fi
  2084. fi
  2085. fi
  2086. # Provide some information about the compiler.
  2087. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2088. set X $ac_compile
  2089. ac_compiler=$2
  2090. for ac_option in --version -v -V -qversion; do
  2091. { { ac_try="$ac_compiler $ac_option >&5"
  2092. case "(($ac_try" in
  2093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2094. *) ac_try_echo=$ac_try;;
  2095. esac
  2096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2097. $as_echo "$ac_try_echo"; } >&5
  2098. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2099. ac_status=$?
  2100. if test -s conftest.err; then
  2101. sed '10a\
  2102. ... rest of stderr output deleted ...
  2103. 10q' conftest.err >conftest.er1
  2104. cat conftest.er1 >&5
  2105. fi
  2106. rm -f conftest.er1 conftest.err
  2107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2108. test $ac_status = 0; }
  2109. done
  2110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2111. /* end confdefs.h. */
  2112. int
  2113. main ()
  2114. {
  2115. ;
  2116. return 0;
  2117. }
  2118. _ACEOF
  2119. ac_clean_files_save=$ac_clean_files
  2120. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2121. # Try to create an executable without -o first, disregard a.out.
  2122. # It will help us diagnose broken compilers, and finding out an intuition
  2123. # of exeext.
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2125. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2126. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2127. # The possible output files:
  2128. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2129. ac_rmfiles=
  2130. for ac_file in $ac_files
  2131. do
  2132. case $ac_file in
  2133. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2134. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2135. esac
  2136. done
  2137. rm -f $ac_rmfiles
  2138. if { { ac_try="$ac_link_default"
  2139. case "(($ac_try" in
  2140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2141. *) ac_try_echo=$ac_try;;
  2142. esac
  2143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2144. $as_echo "$ac_try_echo"; } >&5
  2145. (eval "$ac_link_default") 2>&5
  2146. ac_status=$?
  2147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2148. test $ac_status = 0; }; then :
  2149. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2150. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2151. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2152. # so that the user can short-circuit this test for compilers unknown to
  2153. # Autoconf.
  2154. for ac_file in $ac_files ''
  2155. do
  2156. test -f "$ac_file" || continue
  2157. case $ac_file in
  2158. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2159. ;;
  2160. [ab].out )
  2161. # We found the default executable, but exeext='' is most
  2162. # certainly right.
  2163. break;;
  2164. *.* )
  2165. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2166. then :; else
  2167. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2168. fi
  2169. # We set ac_cv_exeext here because the later test for it is not
  2170. # safe: cross compilers may not add the suffix if given an `-o'
  2171. # argument, so we may need to know it at that point already.
  2172. # Even if this section looks crufty: it has the advantage of
  2173. # actually working.
  2174. break;;
  2175. * )
  2176. break;;
  2177. esac
  2178. done
  2179. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2180. else
  2181. ac_file=''
  2182. fi
  2183. if test -z "$ac_file"; then :
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2185. $as_echo "no" >&6; }
  2186. $as_echo "$as_me: failed program was:" >&5
  2187. sed 's/^/| /' conftest.$ac_ext >&5
  2188. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2189. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2190. as_fn_error 77 "C++ compiler cannot create executables
  2191. See \`config.log' for more details" "$LINENO" 5; }
  2192. else
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2194. $as_echo "yes" >&6; }
  2195. fi
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2197. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2199. $as_echo "$ac_file" >&6; }
  2200. ac_exeext=$ac_cv_exeext
  2201. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2202. ac_clean_files=$ac_clean_files_save
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2204. $as_echo_n "checking for suffix of executables... " >&6; }
  2205. if { { ac_try="$ac_link"
  2206. case "(($ac_try" in
  2207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2208. *) ac_try_echo=$ac_try;;
  2209. esac
  2210. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2211. $as_echo "$ac_try_echo"; } >&5
  2212. (eval "$ac_link") 2>&5
  2213. ac_status=$?
  2214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2215. test $ac_status = 0; }; then :
  2216. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2217. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2218. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2219. # `rm'.
  2220. for ac_file in conftest.exe conftest conftest.*; do
  2221. test -f "$ac_file" || continue
  2222. case $ac_file in
  2223. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2224. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2225. break;;
  2226. * ) break;;
  2227. esac
  2228. done
  2229. else
  2230. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2232. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2233. See \`config.log' for more details" "$LINENO" 5; }
  2234. fi
  2235. rm -f conftest conftest$ac_cv_exeext
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2237. $as_echo "$ac_cv_exeext" >&6; }
  2238. rm -f conftest.$ac_ext
  2239. EXEEXT=$ac_cv_exeext
  2240. ac_exeext=$EXEEXT
  2241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2242. /* end confdefs.h. */
  2243. @%:@include <stdio.h>
  2244. int
  2245. main ()
  2246. {
  2247. FILE *f = fopen ("conftest.out", "w");
  2248. return ferror (f) || fclose (f) != 0;
  2249. ;
  2250. return 0;
  2251. }
  2252. _ACEOF
  2253. ac_clean_files="$ac_clean_files conftest.out"
  2254. # Check that the compiler produces executables we can run. If not, either
  2255. # the compiler is broken, or we cross compile.
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2257. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2258. if test "$cross_compiling" != yes; then
  2259. { { ac_try="$ac_link"
  2260. case "(($ac_try" in
  2261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2262. *) ac_try_echo=$ac_try;;
  2263. esac
  2264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2265. $as_echo "$ac_try_echo"; } >&5
  2266. (eval "$ac_link") 2>&5
  2267. ac_status=$?
  2268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2269. test $ac_status = 0; }
  2270. if { ac_try='./conftest$ac_cv_exeext'
  2271. { { case "(($ac_try" in
  2272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2273. *) ac_try_echo=$ac_try;;
  2274. esac
  2275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2276. $as_echo "$ac_try_echo"; } >&5
  2277. (eval "$ac_try") 2>&5
  2278. ac_status=$?
  2279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2280. test $ac_status = 0; }; }; then
  2281. cross_compiling=no
  2282. else
  2283. if test "$cross_compiling" = maybe; then
  2284. cross_compiling=yes
  2285. else
  2286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2288. as_fn_error $? "cannot run C++ compiled programs.
  2289. If you meant to cross compile, use \`--host'.
  2290. See \`config.log' for more details" "$LINENO" 5; }
  2291. fi
  2292. fi
  2293. fi
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2295. $as_echo "$cross_compiling" >&6; }
  2296. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2297. ac_clean_files=$ac_clean_files_save
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2299. $as_echo_n "checking for suffix of object files... " >&6; }
  2300. if ${ac_cv_objext+:} false; then :
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2304. /* end confdefs.h. */
  2305. int
  2306. main ()
  2307. {
  2308. ;
  2309. return 0;
  2310. }
  2311. _ACEOF
  2312. rm -f conftest.o conftest.obj
  2313. if { { ac_try="$ac_compile"
  2314. case "(($ac_try" in
  2315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2316. *) ac_try_echo=$ac_try;;
  2317. esac
  2318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2319. $as_echo "$ac_try_echo"; } >&5
  2320. (eval "$ac_compile") 2>&5
  2321. ac_status=$?
  2322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2323. test $ac_status = 0; }; then :
  2324. for ac_file in conftest.o conftest.obj conftest.*; do
  2325. test -f "$ac_file" || continue;
  2326. case $ac_file in
  2327. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2328. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2329. break;;
  2330. esac
  2331. done
  2332. else
  2333. $as_echo "$as_me: failed program was:" >&5
  2334. sed 's/^/| /' conftest.$ac_ext >&5
  2335. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2336. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2337. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2338. See \`config.log' for more details" "$LINENO" 5; }
  2339. fi
  2340. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2341. fi
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2343. $as_echo "$ac_cv_objext" >&6; }
  2344. OBJEXT=$ac_cv_objext
  2345. ac_objext=$OBJEXT
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2347. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2348. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2349. $as_echo_n "(cached) " >&6
  2350. else
  2351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2352. /* end confdefs.h. */
  2353. int
  2354. main ()
  2355. {
  2356. #ifndef __GNUC__
  2357. choke me
  2358. #endif
  2359. ;
  2360. return 0;
  2361. }
  2362. _ACEOF
  2363. if ac_fn_cxx_try_compile "$LINENO"; then :
  2364. ac_compiler_gnu=yes
  2365. else
  2366. ac_compiler_gnu=no
  2367. fi
  2368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2369. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2370. fi
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2372. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2373. if test $ac_compiler_gnu = yes; then
  2374. GXX=yes
  2375. else
  2376. GXX=
  2377. fi
  2378. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2379. ac_save_CXXFLAGS=$CXXFLAGS
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2381. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2382. if ${ac_cv_prog_cxx_g+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2386. ac_cxx_werror_flag=yes
  2387. ac_cv_prog_cxx_g=no
  2388. CXXFLAGS="-g"
  2389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2390. /* end confdefs.h. */
  2391. int
  2392. main ()
  2393. {
  2394. ;
  2395. return 0;
  2396. }
  2397. _ACEOF
  2398. if ac_fn_cxx_try_compile "$LINENO"; then :
  2399. ac_cv_prog_cxx_g=yes
  2400. else
  2401. CXXFLAGS=""
  2402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2403. /* end confdefs.h. */
  2404. int
  2405. main ()
  2406. {
  2407. ;
  2408. return 0;
  2409. }
  2410. _ACEOF
  2411. if ac_fn_cxx_try_compile "$LINENO"; then :
  2412. else
  2413. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2414. CXXFLAGS="-g"
  2415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2416. /* end confdefs.h. */
  2417. int
  2418. main ()
  2419. {
  2420. ;
  2421. return 0;
  2422. }
  2423. _ACEOF
  2424. if ac_fn_cxx_try_compile "$LINENO"; then :
  2425. ac_cv_prog_cxx_g=yes
  2426. fi
  2427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2428. fi
  2429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2430. fi
  2431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2432. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2433. fi
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2435. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2436. if test "$ac_test_CXXFLAGS" = set; then
  2437. CXXFLAGS=$ac_save_CXXFLAGS
  2438. elif test $ac_cv_prog_cxx_g = yes; then
  2439. if test "$GXX" = yes; then
  2440. CXXFLAGS="-g -O2"
  2441. else
  2442. CXXFLAGS="-g"
  2443. fi
  2444. else
  2445. if test "$GXX" = yes; then
  2446. CXXFLAGS="-O2"
  2447. else
  2448. CXXFLAGS=
  2449. fi
  2450. fi
  2451. ac_ext=c
  2452. ac_cpp='$CPP $CPPFLAGS'
  2453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2456. ac_ext=c
  2457. ac_cpp='$CPP $CPPFLAGS'
  2458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2461. if test -n "$ac_tool_prefix"; then
  2462. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2463. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2465. $as_echo_n "checking for $ac_word... " >&6; }
  2466. if ${ac_cv_prog_CC+:} false; then :
  2467. $as_echo_n "(cached) " >&6
  2468. else
  2469. if test -n "$CC"; then
  2470. ac_cv_prog_CC="$CC" # Let the user override the test.
  2471. else
  2472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2473. for as_dir in $PATH
  2474. do
  2475. IFS=$as_save_IFS
  2476. test -z "$as_dir" && as_dir=.
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2479. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2481. break 2
  2482. fi
  2483. done
  2484. done
  2485. IFS=$as_save_IFS
  2486. fi
  2487. fi
  2488. CC=$ac_cv_prog_CC
  2489. if test -n "$CC"; then
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2491. $as_echo "$CC" >&6; }
  2492. else
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2494. $as_echo "no" >&6; }
  2495. fi
  2496. fi
  2497. if test -z "$ac_cv_prog_CC"; then
  2498. ac_ct_CC=$CC
  2499. # Extract the first word of "gcc", so it can be a program name with args.
  2500. set dummy gcc; ac_word=$2
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2502. $as_echo_n "checking for $ac_word... " >&6; }
  2503. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. if test -n "$ac_ct_CC"; then
  2507. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2508. else
  2509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2510. for as_dir in $PATH
  2511. do
  2512. IFS=$as_save_IFS
  2513. test -z "$as_dir" && as_dir=.
  2514. for ac_exec_ext in '' $ac_executable_extensions; do
  2515. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2516. ac_cv_prog_ac_ct_CC="gcc"
  2517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2518. break 2
  2519. fi
  2520. done
  2521. done
  2522. IFS=$as_save_IFS
  2523. fi
  2524. fi
  2525. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2526. if test -n "$ac_ct_CC"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2528. $as_echo "$ac_ct_CC" >&6; }
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2531. $as_echo "no" >&6; }
  2532. fi
  2533. if test "x$ac_ct_CC" = x; then
  2534. CC=""
  2535. else
  2536. case $cross_compiling:$ac_tool_warned in
  2537. yes:)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2540. ac_tool_warned=yes ;;
  2541. esac
  2542. CC=$ac_ct_CC
  2543. fi
  2544. else
  2545. CC="$ac_cv_prog_CC"
  2546. fi
  2547. if test -z "$CC"; then
  2548. if test -n "$ac_tool_prefix"; then
  2549. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2550. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2552. $as_echo_n "checking for $ac_word... " >&6; }
  2553. if ${ac_cv_prog_CC+:} false; then :
  2554. $as_echo_n "(cached) " >&6
  2555. else
  2556. if test -n "$CC"; then
  2557. ac_cv_prog_CC="$CC" # Let the user override the test.
  2558. else
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2566. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. IFS=$as_save_IFS
  2573. fi
  2574. fi
  2575. CC=$ac_cv_prog_CC
  2576. if test -n "$CC"; then
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2578. $as_echo "$CC" >&6; }
  2579. else
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2581. $as_echo "no" >&6; }
  2582. fi
  2583. fi
  2584. fi
  2585. if test -z "$CC"; then
  2586. # Extract the first word of "cc", so it can be a program name with args.
  2587. set dummy cc; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_CC+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$CC"; then
  2594. ac_cv_prog_CC="$CC" # Let the user override the test.
  2595. else
  2596. ac_prog_rejected=no
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2605. ac_prog_rejected=yes
  2606. continue
  2607. fi
  2608. ac_cv_prog_CC="cc"
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. if test $ac_prog_rejected = yes; then
  2616. # We found a bogon in the path, so make sure we never use it.
  2617. set dummy $ac_cv_prog_CC
  2618. shift
  2619. if test $@%:@ != 0; then
  2620. # We chose a different compiler from the bogus one.
  2621. # However, it has the same basename, so the bogon will be chosen
  2622. # first if we set CC to just the basename; use the full file name.
  2623. shift
  2624. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2625. fi
  2626. fi
  2627. fi
  2628. fi
  2629. CC=$ac_cv_prog_CC
  2630. if test -n "$CC"; then
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2632. $as_echo "$CC" >&6; }
  2633. else
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2635. $as_echo "no" >&6; }
  2636. fi
  2637. fi
  2638. if test -z "$CC"; then
  2639. if test -n "$ac_tool_prefix"; then
  2640. for ac_prog in cl.exe
  2641. do
  2642. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2643. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if ${ac_cv_prog_CC+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$CC"; then
  2650. ac_cv_prog_CC="$CC" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2659. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. CC=$ac_cv_prog_CC
  2669. if test -n "$CC"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2671. $as_echo "$CC" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. test -n "$CC" && break
  2677. done
  2678. fi
  2679. if test -z "$CC"; then
  2680. ac_ct_CC=$CC
  2681. for ac_prog in cl.exe
  2682. do
  2683. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2684. set dummy $ac_prog; ac_word=$2
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2686. $as_echo_n "checking for $ac_word... " >&6; }
  2687. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. if test -n "$ac_ct_CC"; then
  2691. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2692. else
  2693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2694. for as_dir in $PATH
  2695. do
  2696. IFS=$as_save_IFS
  2697. test -z "$as_dir" && as_dir=.
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2700. ac_cv_prog_ac_ct_CC="$ac_prog"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. fi
  2708. fi
  2709. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2710. if test -n "$ac_ct_CC"; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2712. $as_echo "$ac_ct_CC" >&6; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2715. $as_echo "no" >&6; }
  2716. fi
  2717. test -n "$ac_ct_CC" && break
  2718. done
  2719. if test "x$ac_ct_CC" = x; then
  2720. CC=""
  2721. else
  2722. case $cross_compiling:$ac_tool_warned in
  2723. yes:)
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2726. ac_tool_warned=yes ;;
  2727. esac
  2728. CC=$ac_ct_CC
  2729. fi
  2730. fi
  2731. fi
  2732. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2733. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2734. as_fn_error $? "no acceptable C compiler found in \$PATH
  2735. See \`config.log' for more details" "$LINENO" 5; }
  2736. # Provide some information about the compiler.
  2737. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2738. set X $ac_compile
  2739. ac_compiler=$2
  2740. for ac_option in --version -v -V -qversion; do
  2741. { { ac_try="$ac_compiler $ac_option >&5"
  2742. case "(($ac_try" in
  2743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2744. *) ac_try_echo=$ac_try;;
  2745. esac
  2746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2747. $as_echo "$ac_try_echo"; } >&5
  2748. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2749. ac_status=$?
  2750. if test -s conftest.err; then
  2751. sed '10a\
  2752. ... rest of stderr output deleted ...
  2753. 10q' conftest.err >conftest.er1
  2754. cat conftest.er1 >&5
  2755. fi
  2756. rm -f conftest.er1 conftest.err
  2757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2758. test $ac_status = 0; }
  2759. done
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2761. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2762. if ${ac_cv_c_compiler_gnu+:} false; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. #ifndef __GNUC__
  2771. choke me
  2772. #endif
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. if ac_fn_c_try_compile "$LINENO"; then :
  2778. ac_compiler_gnu=yes
  2779. else
  2780. ac_compiler_gnu=no
  2781. fi
  2782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2783. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2784. fi
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2786. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2787. if test $ac_compiler_gnu = yes; then
  2788. GCC=yes
  2789. else
  2790. GCC=
  2791. fi
  2792. ac_test_CFLAGS=${CFLAGS+set}
  2793. ac_save_CFLAGS=$CFLAGS
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2795. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2796. if ${ac_cv_prog_cc_g+:} false; then :
  2797. $as_echo_n "(cached) " >&6
  2798. else
  2799. ac_save_c_werror_flag=$ac_c_werror_flag
  2800. ac_c_werror_flag=yes
  2801. ac_cv_prog_cc_g=no
  2802. CFLAGS="-g"
  2803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2804. /* end confdefs.h. */
  2805. int
  2806. main ()
  2807. {
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. if ac_fn_c_try_compile "$LINENO"; then :
  2813. ac_cv_prog_cc_g=yes
  2814. else
  2815. CFLAGS=""
  2816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2817. /* end confdefs.h. */
  2818. int
  2819. main ()
  2820. {
  2821. ;
  2822. return 0;
  2823. }
  2824. _ACEOF
  2825. if ac_fn_c_try_compile "$LINENO"; then :
  2826. else
  2827. ac_c_werror_flag=$ac_save_c_werror_flag
  2828. CFLAGS="-g"
  2829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2830. /* end confdefs.h. */
  2831. int
  2832. main ()
  2833. {
  2834. ;
  2835. return 0;
  2836. }
  2837. _ACEOF
  2838. if ac_fn_c_try_compile "$LINENO"; then :
  2839. ac_cv_prog_cc_g=yes
  2840. fi
  2841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2842. fi
  2843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2844. fi
  2845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2846. ac_c_werror_flag=$ac_save_c_werror_flag
  2847. fi
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2849. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2850. if test "$ac_test_CFLAGS" = set; then
  2851. CFLAGS=$ac_save_CFLAGS
  2852. elif test $ac_cv_prog_cc_g = yes; then
  2853. if test "$GCC" = yes; then
  2854. CFLAGS="-g -O2"
  2855. else
  2856. CFLAGS="-g"
  2857. fi
  2858. else
  2859. if test "$GCC" = yes; then
  2860. CFLAGS="-O2"
  2861. else
  2862. CFLAGS=
  2863. fi
  2864. fi
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2866. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2867. if ${ac_cv_prog_cc_c89+:} false; then :
  2868. $as_echo_n "(cached) " >&6
  2869. else
  2870. ac_cv_prog_cc_c89=no
  2871. ac_save_CC=$CC
  2872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2873. /* end confdefs.h. */
  2874. #include <stdarg.h>
  2875. #include <stdio.h>
  2876. struct stat;
  2877. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2878. struct buf { int x; };
  2879. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2880. static char *e (p, i)
  2881. char **p;
  2882. int i;
  2883. {
  2884. return p[i];
  2885. }
  2886. static char *f (char * (*g) (char **, int), char **p, ...)
  2887. {
  2888. char *s;
  2889. va_list v;
  2890. va_start (v,p);
  2891. s = g (p, va_arg (v,int));
  2892. va_end (v);
  2893. return s;
  2894. }
  2895. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2896. function prototypes and stuff, but not '\xHH' hex character constants.
  2897. These don't provoke an error unfortunately, instead are silently treated
  2898. as 'x'. The following induces an error, until -std is added to get
  2899. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2900. array size at least. It's necessary to write '\x00'==0 to get something
  2901. that's true only with -std. */
  2902. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2903. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2904. inside strings and character constants. */
  2905. #define FOO(x) 'x'
  2906. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2907. int test (int i, double x);
  2908. struct s1 {int (*f) (int a);};
  2909. struct s2 {int (*f) (double a);};
  2910. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2911. int argc;
  2912. char **argv;
  2913. int
  2914. main ()
  2915. {
  2916. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2922. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2923. do
  2924. CC="$ac_save_CC $ac_arg"
  2925. if ac_fn_c_try_compile "$LINENO"; then :
  2926. ac_cv_prog_cc_c89=$ac_arg
  2927. fi
  2928. rm -f core conftest.err conftest.$ac_objext
  2929. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2930. done
  2931. rm -f conftest.$ac_ext
  2932. CC=$ac_save_CC
  2933. fi
  2934. # AC_CACHE_VAL
  2935. case "x$ac_cv_prog_cc_c89" in
  2936. x)
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2938. $as_echo "none needed" >&6; } ;;
  2939. xno)
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2941. $as_echo "unsupported" >&6; } ;;
  2942. *)
  2943. CC="$CC $ac_cv_prog_cc_c89"
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2945. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2946. esac
  2947. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2948. fi
  2949. ac_ext=c
  2950. ac_cpp='$CPP $CPPFLAGS'
  2951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2954. # Checks for libraries.
  2955. # Checks for header files.
  2956. ac_ext=c
  2957. ac_cpp='$CPP $CPPFLAGS'
  2958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2962. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2963. # On Suns, sometimes $CPP names a directory.
  2964. if test -n "$CPP" && test -d "$CPP"; then
  2965. CPP=
  2966. fi
  2967. if test -z "$CPP"; then
  2968. if ${ac_cv_prog_CPP+:} false; then :
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. # Double quotes because CPP needs to be expanded
  2972. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2973. do
  2974. ac_preproc_ok=false
  2975. for ac_c_preproc_warn_flag in '' yes
  2976. do
  2977. # Use a header file that comes with gcc, so configuring glibc
  2978. # with a fresh cross-compiler works.
  2979. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2980. # <limits.h> exists even on freestanding compilers.
  2981. # On the NeXT, cc -E runs the code through the compiler's parser,
  2982. # not just through cpp. "Syntax error" is here to catch this case.
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. @%:@ifdef __STDC__
  2986. @%:@ include <limits.h>
  2987. @%:@else
  2988. @%:@ include <assert.h>
  2989. @%:@endif
  2990. Syntax error
  2991. _ACEOF
  2992. if ac_fn_c_try_cpp "$LINENO"; then :
  2993. else
  2994. # Broken: fails on valid input.
  2995. continue
  2996. fi
  2997. rm -f conftest.err conftest.i conftest.$ac_ext
  2998. # OK, works on sane cases. Now check whether nonexistent headers
  2999. # can be detected and how.
  3000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3001. /* end confdefs.h. */
  3002. @%:@include <ac_nonexistent.h>
  3003. _ACEOF
  3004. if ac_fn_c_try_cpp "$LINENO"; then :
  3005. # Broken: success on invalid input.
  3006. continue
  3007. else
  3008. # Passes both tests.
  3009. ac_preproc_ok=:
  3010. break
  3011. fi
  3012. rm -f conftest.err conftest.i conftest.$ac_ext
  3013. done
  3014. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3015. rm -f conftest.i conftest.err conftest.$ac_ext
  3016. if $ac_preproc_ok; then :
  3017. break
  3018. fi
  3019. done
  3020. ac_cv_prog_CPP=$CPP
  3021. fi
  3022. CPP=$ac_cv_prog_CPP
  3023. else
  3024. ac_cv_prog_CPP=$CPP
  3025. fi
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3027. $as_echo "$CPP" >&6; }
  3028. ac_preproc_ok=false
  3029. for ac_c_preproc_warn_flag in '' yes
  3030. do
  3031. # Use a header file that comes with gcc, so configuring glibc
  3032. # with a fresh cross-compiler works.
  3033. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3034. # <limits.h> exists even on freestanding compilers.
  3035. # On the NeXT, cc -E runs the code through the compiler's parser,
  3036. # not just through cpp. "Syntax error" is here to catch this case.
  3037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3038. /* end confdefs.h. */
  3039. @%:@ifdef __STDC__
  3040. @%:@ include <limits.h>
  3041. @%:@else
  3042. @%:@ include <assert.h>
  3043. @%:@endif
  3044. Syntax error
  3045. _ACEOF
  3046. if ac_fn_c_try_cpp "$LINENO"; then :
  3047. else
  3048. # Broken: fails on valid input.
  3049. continue
  3050. fi
  3051. rm -f conftest.err conftest.i conftest.$ac_ext
  3052. # OK, works on sane cases. Now check whether nonexistent headers
  3053. # can be detected and how.
  3054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3055. /* end confdefs.h. */
  3056. @%:@include <ac_nonexistent.h>
  3057. _ACEOF
  3058. if ac_fn_c_try_cpp "$LINENO"; then :
  3059. # Broken: success on invalid input.
  3060. continue
  3061. else
  3062. # Passes both tests.
  3063. ac_preproc_ok=:
  3064. break
  3065. fi
  3066. rm -f conftest.err conftest.i conftest.$ac_ext
  3067. done
  3068. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3069. rm -f conftest.i conftest.err conftest.$ac_ext
  3070. if $ac_preproc_ok; then :
  3071. else
  3072. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3073. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3074. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3075. See \`config.log' for more details" "$LINENO" 5; }
  3076. fi
  3077. ac_ext=c
  3078. ac_cpp='$CPP $CPPFLAGS'
  3079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3083. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3084. if ${ac_cv_path_GREP+:} false; then :
  3085. $as_echo_n "(cached) " >&6
  3086. else
  3087. if test -z "$GREP"; then
  3088. ac_path_GREP_found=false
  3089. # Loop through the user's path and test for each of PROGNAME-LIST
  3090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3091. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3092. do
  3093. IFS=$as_save_IFS
  3094. test -z "$as_dir" && as_dir=.
  3095. for ac_prog in grep ggrep; do
  3096. for ac_exec_ext in '' $ac_executable_extensions; do
  3097. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3098. as_fn_executable_p "$ac_path_GREP" || continue
  3099. # Check for GNU ac_path_GREP and select it if it is found.
  3100. # Check for GNU $ac_path_GREP
  3101. case `"$ac_path_GREP" --version 2>&1` in
  3102. *GNU*)
  3103. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3104. *)
  3105. ac_count=0
  3106. $as_echo_n 0123456789 >"conftest.in"
  3107. while :
  3108. do
  3109. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3110. mv "conftest.tmp" "conftest.in"
  3111. cp "conftest.in" "conftest.nl"
  3112. $as_echo 'GREP' >> "conftest.nl"
  3113. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3114. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3115. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3116. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3117. # Best one so far, save it but keep looking for a better one
  3118. ac_cv_path_GREP="$ac_path_GREP"
  3119. ac_path_GREP_max=$ac_count
  3120. fi
  3121. # 10*(2^10) chars as input seems more than enough
  3122. test $ac_count -gt 10 && break
  3123. done
  3124. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3125. esac
  3126. $ac_path_GREP_found && break 3
  3127. done
  3128. done
  3129. done
  3130. IFS=$as_save_IFS
  3131. if test -z "$ac_cv_path_GREP"; then
  3132. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3133. fi
  3134. else
  3135. ac_cv_path_GREP=$GREP
  3136. fi
  3137. fi
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3139. $as_echo "$ac_cv_path_GREP" >&6; }
  3140. GREP="$ac_cv_path_GREP"
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3142. $as_echo_n "checking for egrep... " >&6; }
  3143. if ${ac_cv_path_EGREP+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3147. then ac_cv_path_EGREP="$GREP -E"
  3148. else
  3149. if test -z "$EGREP"; then
  3150. ac_path_EGREP_found=false
  3151. # Loop through the user's path and test for each of PROGNAME-LIST
  3152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3153. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3154. do
  3155. IFS=$as_save_IFS
  3156. test -z "$as_dir" && as_dir=.
  3157. for ac_prog in egrep; do
  3158. for ac_exec_ext in '' $ac_executable_extensions; do
  3159. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3160. as_fn_executable_p "$ac_path_EGREP" || continue
  3161. # Check for GNU ac_path_EGREP and select it if it is found.
  3162. # Check for GNU $ac_path_EGREP
  3163. case `"$ac_path_EGREP" --version 2>&1` in
  3164. *GNU*)
  3165. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3166. *)
  3167. ac_count=0
  3168. $as_echo_n 0123456789 >"conftest.in"
  3169. while :
  3170. do
  3171. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3172. mv "conftest.tmp" "conftest.in"
  3173. cp "conftest.in" "conftest.nl"
  3174. $as_echo 'EGREP' >> "conftest.nl"
  3175. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3176. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3177. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3178. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3179. # Best one so far, save it but keep looking for a better one
  3180. ac_cv_path_EGREP="$ac_path_EGREP"
  3181. ac_path_EGREP_max=$ac_count
  3182. fi
  3183. # 10*(2^10) chars as input seems more than enough
  3184. test $ac_count -gt 10 && break
  3185. done
  3186. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3187. esac
  3188. $ac_path_EGREP_found && break 3
  3189. done
  3190. done
  3191. done
  3192. IFS=$as_save_IFS
  3193. if test -z "$ac_cv_path_EGREP"; then
  3194. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3195. fi
  3196. else
  3197. ac_cv_path_EGREP=$EGREP
  3198. fi
  3199. fi
  3200. fi
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3202. $as_echo "$ac_cv_path_EGREP" >&6; }
  3203. EGREP="$ac_cv_path_EGREP"
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3205. $as_echo_n "checking for ANSI C header files... " >&6; }
  3206. if ${ac_cv_header_stdc+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. #include <stdlib.h>
  3212. #include <stdarg.h>
  3213. #include <string.h>
  3214. #include <float.h>
  3215. int
  3216. main ()
  3217. {
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. if ac_fn_c_try_compile "$LINENO"; then :
  3223. ac_cv_header_stdc=yes
  3224. else
  3225. ac_cv_header_stdc=no
  3226. fi
  3227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3228. if test $ac_cv_header_stdc = yes; then
  3229. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3231. /* end confdefs.h. */
  3232. #include <string.h>
  3233. _ACEOF
  3234. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3235. $EGREP "memchr" >/dev/null 2>&1; then :
  3236. else
  3237. ac_cv_header_stdc=no
  3238. fi
  3239. rm -f conftest*
  3240. fi
  3241. if test $ac_cv_header_stdc = yes; then
  3242. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245. #include <stdlib.h>
  3246. _ACEOF
  3247. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3248. $EGREP "free" >/dev/null 2>&1; then :
  3249. else
  3250. ac_cv_header_stdc=no
  3251. fi
  3252. rm -f conftest*
  3253. fi
  3254. if test $ac_cv_header_stdc = yes; then
  3255. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3256. if test "$cross_compiling" = yes; then :
  3257. :
  3258. else
  3259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3260. /* end confdefs.h. */
  3261. #include <ctype.h>
  3262. #include <stdlib.h>
  3263. #if ((' ' & 0x0FF) == 0x020)
  3264. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3265. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3266. #else
  3267. # define ISLOWER(c) \
  3268. (('a' <= (c) && (c) <= 'i') \
  3269. || ('j' <= (c) && (c) <= 'r') \
  3270. || ('s' <= (c) && (c) <= 'z'))
  3271. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3272. #endif
  3273. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3274. int
  3275. main ()
  3276. {
  3277. int i;
  3278. for (i = 0; i < 256; i++)
  3279. if (XOR (islower (i), ISLOWER (i))
  3280. || toupper (i) != TOUPPER (i))
  3281. return 2;
  3282. return 0;
  3283. }
  3284. _ACEOF
  3285. if ac_fn_c_try_run "$LINENO"; then :
  3286. else
  3287. ac_cv_header_stdc=no
  3288. fi
  3289. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3290. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3291. fi
  3292. fi
  3293. fi
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3295. $as_echo "$ac_cv_header_stdc" >&6; }
  3296. if test $ac_cv_header_stdc = yes; then
  3297. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  3298. fi
  3299. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3300. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3301. inttypes.h stdint.h unistd.h
  3302. do :
  3303. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3304. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3305. "
  3306. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3307. cat >>confdefs.h <<_ACEOF
  3308. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3309. _ACEOF
  3310. fi
  3311. done
  3312. for ac_header in fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h
  3313. do :
  3314. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3315. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  3316. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3317. cat >>confdefs.h <<_ACEOF
  3318. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3319. _ACEOF
  3320. fi
  3321. done
  3322. # Checks for typedefs, structures, and compiler characteristics.
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  3324. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  3325. if ${ac_cv_header_stdbool_h+:} false; then :
  3326. $as_echo_n "(cached) " >&6
  3327. else
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. #include <stdbool.h>
  3331. #ifndef bool
  3332. "error: bool is not defined"
  3333. #endif
  3334. #ifndef false
  3335. "error: false is not defined"
  3336. #endif
  3337. #if false
  3338. "error: false is not 0"
  3339. #endif
  3340. #ifndef true
  3341. "error: true is not defined"
  3342. #endif
  3343. #if true != 1
  3344. "error: true is not 1"
  3345. #endif
  3346. #ifndef __bool_true_false_are_defined
  3347. "error: __bool_true_false_are_defined is not defined"
  3348. #endif
  3349. struct s { _Bool s: 1; _Bool t; } s;
  3350. char a[true == 1 ? 1 : -1];
  3351. char b[false == 0 ? 1 : -1];
  3352. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  3353. char d[(bool) 0.5 == true ? 1 : -1];
  3354. /* See body of main program for 'e'. */
  3355. char f[(_Bool) 0.0 == false ? 1 : -1];
  3356. char g[true];
  3357. char h[sizeof (_Bool)];
  3358. char i[sizeof s.t];
  3359. enum { j = false, k = true, l = false * true, m = true * 256 };
  3360. /* The following fails for
  3361. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  3362. _Bool n[m];
  3363. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  3364. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  3365. /* Catch a bug in an HP-UX C compiler. See
  3366. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  3367. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  3368. */
  3369. _Bool q = true;
  3370. _Bool *pq = &q;
  3371. int
  3372. main ()
  3373. {
  3374. bool e = &s;
  3375. *pq |= q;
  3376. *pq |= ! q;
  3377. /* Refer to every declared value, to avoid compiler optimizations. */
  3378. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  3379. + !m + !n + !o + !p + !q + !pq);
  3380. ;
  3381. return 0;
  3382. }
  3383. _ACEOF
  3384. if ac_fn_c_try_compile "$LINENO"; then :
  3385. ac_cv_header_stdbool_h=yes
  3386. else
  3387. ac_cv_header_stdbool_h=no
  3388. fi
  3389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  3392. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  3393. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  3394. if test "x$ac_cv_type__Bool" = xyes; then :
  3395. cat >>confdefs.h <<_ACEOF
  3396. @%:@define HAVE__BOOL 1
  3397. _ACEOF
  3398. fi
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3400. $as_echo_n "checking for inline... " >&6; }
  3401. if ${ac_cv_c_inline+:} false; then :
  3402. $as_echo_n "(cached) " >&6
  3403. else
  3404. ac_cv_c_inline=no
  3405. for ac_kw in inline __inline__ __inline; do
  3406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3407. /* end confdefs.h. */
  3408. #ifndef __cplusplus
  3409. typedef int foo_t;
  3410. static $ac_kw foo_t static_foo () {return 0; }
  3411. $ac_kw foo_t foo () {return 0; }
  3412. #endif
  3413. _ACEOF
  3414. if ac_fn_c_try_compile "$LINENO"; then :
  3415. ac_cv_c_inline=$ac_kw
  3416. fi
  3417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3418. test "$ac_cv_c_inline" != no && break
  3419. done
  3420. fi
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3422. $as_echo "$ac_cv_c_inline" >&6; }
  3423. case $ac_cv_c_inline in
  3424. inline | yes) ;;
  3425. *)
  3426. case $ac_cv_c_inline in
  3427. no) ac_val=;;
  3428. *) ac_val=$ac_cv_c_inline;;
  3429. esac
  3430. cat >>confdefs.h <<_ACEOF
  3431. #ifndef __cplusplus
  3432. #define inline $ac_val
  3433. #endif
  3434. _ACEOF
  3435. ;;
  3436. esac
  3437. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3438. if test "x$ac_cv_type_size_t" = xyes; then :
  3439. else
  3440. cat >>confdefs.h <<_ACEOF
  3441. @%:@define size_t unsigned int
  3442. _ACEOF
  3443. fi
  3444. # Checks for library functions.
  3445. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3446. # for constant arguments. Useless!
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  3448. $as_echo_n "checking for working alloca.h... " >&6; }
  3449. if ${ac_cv_working_alloca_h+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. @%:@include <alloca.h>
  3455. int
  3456. main ()
  3457. {
  3458. char *p = (char *) alloca (2 * sizeof (int));
  3459. if (p) return 0;
  3460. ;
  3461. return 0;
  3462. }
  3463. _ACEOF
  3464. if ac_fn_c_try_link "$LINENO"; then :
  3465. ac_cv_working_alloca_h=yes
  3466. else
  3467. ac_cv_working_alloca_h=no
  3468. fi
  3469. rm -f core conftest.err conftest.$ac_objext \
  3470. conftest$ac_exeext conftest.$ac_ext
  3471. fi
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  3473. $as_echo "$ac_cv_working_alloca_h" >&6; }
  3474. if test $ac_cv_working_alloca_h = yes; then
  3475. $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
  3476. fi
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  3478. $as_echo_n "checking for alloca... " >&6; }
  3479. if ${ac_cv_func_alloca_works+:} false; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3483. /* end confdefs.h. */
  3484. #ifdef __GNUC__
  3485. # define alloca __builtin_alloca
  3486. #else
  3487. # ifdef _MSC_VER
  3488. # include <malloc.h>
  3489. # define alloca _alloca
  3490. # else
  3491. # ifdef HAVE_ALLOCA_H
  3492. # include <alloca.h>
  3493. # else
  3494. # ifdef _AIX
  3495. #pragma alloca
  3496. # else
  3497. # ifndef alloca /* predefined by HP cc +Olibcalls */
  3498. void *alloca (size_t);
  3499. # endif
  3500. # endif
  3501. # endif
  3502. # endif
  3503. #endif
  3504. int
  3505. main ()
  3506. {
  3507. char *p = (char *) alloca (1);
  3508. if (p) return 0;
  3509. ;
  3510. return 0;
  3511. }
  3512. _ACEOF
  3513. if ac_fn_c_try_link "$LINENO"; then :
  3514. ac_cv_func_alloca_works=yes
  3515. else
  3516. ac_cv_func_alloca_works=no
  3517. fi
  3518. rm -f core conftest.err conftest.$ac_objext \
  3519. conftest$ac_exeext conftest.$ac_ext
  3520. fi
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  3522. $as_echo "$ac_cv_func_alloca_works" >&6; }
  3523. if test $ac_cv_func_alloca_works = yes; then
  3524. $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
  3525. else
  3526. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3527. # that cause trouble. Some versions do not even contain alloca or
  3528. # contain a buggy version. If you still want to use their alloca,
  3529. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3530. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  3531. $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  3533. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  3534. if ${ac_cv_os_cray+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3538. /* end confdefs.h. */
  3539. #if defined CRAY && ! defined CRAY2
  3540. webecray
  3541. #else
  3542. wenotbecray
  3543. #endif
  3544. _ACEOF
  3545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3546. $EGREP "webecray" >/dev/null 2>&1; then :
  3547. ac_cv_os_cray=yes
  3548. else
  3549. ac_cv_os_cray=no
  3550. fi
  3551. rm -f conftest*
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  3554. $as_echo "$ac_cv_os_cray" >&6; }
  3555. if test $ac_cv_os_cray = yes; then
  3556. for ac_func in _getb67 GETB67 getb67; do
  3557. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3558. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3559. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3560. cat >>confdefs.h <<_ACEOF
  3561. @%:@define CRAY_STACKSEG_END $ac_func
  3562. _ACEOF
  3563. break
  3564. fi
  3565. done
  3566. fi
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  3568. $as_echo_n "checking stack direction for C alloca... " >&6; }
  3569. if ${ac_cv_c_stack_direction+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. if test "$cross_compiling" = yes; then :
  3573. ac_cv_c_stack_direction=0
  3574. else
  3575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3576. /* end confdefs.h. */
  3577. $ac_includes_default
  3578. int
  3579. find_stack_direction (int *addr, int depth)
  3580. {
  3581. int dir, dummy = 0;
  3582. if (! addr)
  3583. addr = &dummy;
  3584. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  3585. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  3586. return dir + dummy;
  3587. }
  3588. int
  3589. main (int argc, char **argv)
  3590. {
  3591. return find_stack_direction (0, argc + !argv + 20) < 0;
  3592. }
  3593. _ACEOF
  3594. if ac_fn_c_try_run "$LINENO"; then :
  3595. ac_cv_c_stack_direction=1
  3596. else
  3597. ac_cv_c_stack_direction=-1
  3598. fi
  3599. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3600. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3601. fi
  3602. fi
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  3604. $as_echo "$ac_cv_c_stack_direction" >&6; }
  3605. cat >>confdefs.h <<_ACEOF
  3606. @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
  3607. _ACEOF
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  3610. $as_echo_n "checking for error_at_line... " >&6; }
  3611. if ${ac_cv_lib_error_at_line+:} false; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3615. /* end confdefs.h. */
  3616. #include <error.h>
  3617. int
  3618. main ()
  3619. {
  3620. error_at_line (0, 0, "", 0, "an error occurred");
  3621. ;
  3622. return 0;
  3623. }
  3624. _ACEOF
  3625. if ac_fn_c_try_link "$LINENO"; then :
  3626. ac_cv_lib_error_at_line=yes
  3627. else
  3628. ac_cv_lib_error_at_line=no
  3629. fi
  3630. rm -f core conftest.err conftest.$ac_objext \
  3631. conftest$ac_exeext conftest.$ac_ext
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  3634. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  3635. if test $ac_cv_lib_error_at_line = no; then
  3636. case " $LIB@&t@OBJS " in
  3637. *" error.$ac_objext "* ) ;;
  3638. *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
  3639. ;;
  3640. esac
  3641. fi
  3642. for ac_header in stdlib.h
  3643. do :
  3644. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  3645. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  3646. cat >>confdefs.h <<_ACEOF
  3647. @%:@define HAVE_STDLIB_H 1
  3648. _ACEOF
  3649. fi
  3650. done
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  3652. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  3653. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test "$cross_compiling" = yes; then :
  3657. ac_cv_func_malloc_0_nonnull=no
  3658. else
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  3662. # include <stdlib.h>
  3663. #else
  3664. char *malloc ();
  3665. #endif
  3666. int
  3667. main ()
  3668. {
  3669. return ! malloc (0);
  3670. ;
  3671. return 0;
  3672. }
  3673. _ACEOF
  3674. if ac_fn_c_try_run "$LINENO"; then :
  3675. ac_cv_func_malloc_0_nonnull=yes
  3676. else
  3677. ac_cv_func_malloc_0_nonnull=no
  3678. fi
  3679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3681. fi
  3682. fi
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  3684. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  3685. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  3686. $as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
  3687. else
  3688. $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
  3689. case " $LIB@&t@OBJS " in
  3690. *" malloc.$ac_objext "* ) ;;
  3691. *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
  3692. ;;
  3693. esac
  3694. $as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
  3695. fi
  3696. for ac_func in getcwd gettimeofday localtime_r memset
  3697. do :
  3698. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3699. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3700. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  3701. cat >>confdefs.h <<_ACEOF
  3702. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3703. _ACEOF
  3704. fi
  3705. done
  3706. ac_config_files="$ac_config_files Makefile src/Makefile"
  3707. cat >confcache <<\_ACEOF
  3708. # This file is a shell script that caches the results of configure
  3709. # tests run on this system so they can be shared between configure
  3710. # scripts and configure runs, see configure's option --config-cache.
  3711. # It is not useful on other systems. If it contains results you don't
  3712. # want to keep, you may remove or edit it.
  3713. #
  3714. # config.status only pays attention to the cache file if you give it
  3715. # the --recheck option to rerun configure.
  3716. #
  3717. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3718. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3719. # following values.
  3720. _ACEOF
  3721. # The following way of writing the cache mishandles newlines in values,
  3722. # but we know of no workaround that is simple, portable, and efficient.
  3723. # So, we kill variables containing newlines.
  3724. # Ultrix sh set writes to stderr and can't be redirected directly,
  3725. # and sets the high bit in the cache file unless we assign to the vars.
  3726. (
  3727. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3728. eval ac_val=\$$ac_var
  3729. case $ac_val in #(
  3730. *${as_nl}*)
  3731. case $ac_var in #(
  3732. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3733. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3734. esac
  3735. case $ac_var in #(
  3736. _ | IFS | as_nl) ;; #(
  3737. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3738. *) { eval $ac_var=; unset $ac_var;} ;;
  3739. esac ;;
  3740. esac
  3741. done
  3742. (set) 2>&1 |
  3743. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3744. *${as_nl}ac_space=\ *)
  3745. # `set' does not quote correctly, so add quotes: double-quote
  3746. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3747. sed -n \
  3748. "s/'/'\\\\''/g;
  3749. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3750. ;; #(
  3751. *)
  3752. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3753. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3754. ;;
  3755. esac |
  3756. sort
  3757. ) |
  3758. sed '
  3759. /^ac_cv_env_/b end
  3760. t clear
  3761. :clear
  3762. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3763. t end
  3764. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3765. :end' >>confcache
  3766. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3767. if test -w "$cache_file"; then
  3768. if test "x$cache_file" != "x/dev/null"; then
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3770. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3771. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3772. cat confcache >"$cache_file"
  3773. else
  3774. case $cache_file in #(
  3775. */* | ?:*)
  3776. mv -f confcache "$cache_file"$$ &&
  3777. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3778. *)
  3779. mv -f confcache "$cache_file" ;;
  3780. esac
  3781. fi
  3782. fi
  3783. else
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3785. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3786. fi
  3787. fi
  3788. rm -f confcache
  3789. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3790. # Let make expand exec_prefix.
  3791. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3792. DEFS=-DHAVE_CONFIG_H
  3793. ac_libobjs=
  3794. ac_ltlibobjs=
  3795. U=
  3796. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  3797. # 1. Remove the extension, and $U if already installed.
  3798. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3799. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3800. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3801. # will be set to the directory where LIBOBJS objects are built.
  3802. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3803. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3804. done
  3805. LIB@&t@OBJS=$ac_libobjs
  3806. LTLIBOBJS=$ac_ltlibobjs
  3807. : "${CONFIG_STATUS=./config.status}"
  3808. ac_write_fail=0
  3809. ac_clean_files_save=$ac_clean_files
  3810. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3812. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3813. as_write_fail=0
  3814. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3815. #! $SHELL
  3816. # Generated by $as_me.
  3817. # Run this file to recreate the current configuration.
  3818. # Compiler output produced by configure, useful for debugging
  3819. # configure, is in config.log if it exists.
  3820. debug=false
  3821. ac_cs_recheck=false
  3822. ac_cs_silent=false
  3823. SHELL=\${CONFIG_SHELL-$SHELL}
  3824. export SHELL
  3825. _ASEOF
  3826. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3827. ## -------------------- ##
  3828. ## M4sh Initialization. ##
  3829. ## -------------------- ##
  3830. # Be more Bourne compatible
  3831. DUALCASE=1; export DUALCASE # for MKS sh
  3832. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  3833. emulate sh
  3834. NULLCMD=:
  3835. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3836. # is contrary to our usage. Disable this feature.
  3837. alias -g '${1+"$@"}'='"$@"'
  3838. setopt NO_GLOB_SUBST
  3839. else
  3840. case `(set -o) 2>/dev/null` in @%:@(
  3841. *posix*) :
  3842. set -o posix ;; @%:@(
  3843. *) :
  3844. ;;
  3845. esac
  3846. fi
  3847. as_nl='
  3848. '
  3849. export as_nl
  3850. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  3851. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3852. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3853. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3854. # Prefer a ksh shell builtin over an external printf program on Solaris,
  3855. # but without wasting forks for bash or zsh.
  3856. if test -z "$BASH_VERSION$ZSH_VERSION" \
  3857. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  3858. as_echo='print -r --'
  3859. as_echo_n='print -rn --'
  3860. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3861. as_echo='printf %s\n'
  3862. as_echo_n='printf %s'
  3863. else
  3864. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3865. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3866. as_echo_n='/usr/ucb/echo -n'
  3867. else
  3868. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3869. as_echo_n_body='eval
  3870. arg=$1;
  3871. case $arg in @%:@(
  3872. *"$as_nl"*)
  3873. expr "X$arg" : "X\\(.*\\)$as_nl";
  3874. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3875. esac;
  3876. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3877. '
  3878. export as_echo_n_body
  3879. as_echo_n='sh -c $as_echo_n_body as_echo'
  3880. fi
  3881. export as_echo_body
  3882. as_echo='sh -c $as_echo_body as_echo'
  3883. fi
  3884. # The user is always right.
  3885. if test "${PATH_SEPARATOR+set}" != set; then
  3886. PATH_SEPARATOR=:
  3887. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3888. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3889. PATH_SEPARATOR=';'
  3890. }
  3891. fi
  3892. # IFS
  3893. # We need space, tab and new line, in precisely that order. Quoting is
  3894. # there to prevent editors from complaining about space-tab.
  3895. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3896. # splitting by setting IFS to empty value.)
  3897. IFS=" "" $as_nl"
  3898. # Find who we are. Look in the path if we contain no directory separator.
  3899. as_myself=
  3900. case $0 in @%:@((
  3901. *[\\/]* ) as_myself=$0 ;;
  3902. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3903. for as_dir in $PATH
  3904. do
  3905. IFS=$as_save_IFS
  3906. test -z "$as_dir" && as_dir=.
  3907. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3908. done
  3909. IFS=$as_save_IFS
  3910. ;;
  3911. esac
  3912. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3913. # in which case we are not to be found in the path.
  3914. if test "x$as_myself" = x; then
  3915. as_myself=$0
  3916. fi
  3917. if test ! -f "$as_myself"; then
  3918. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3919. exit 1
  3920. fi
  3921. # Unset variables that we do not need and which cause bugs (e.g. in
  3922. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  3923. # suppresses any "Segmentation fault" message there. '((' could
  3924. # trigger a bug in pdksh 5.2.14.
  3925. for as_var in BASH_ENV ENV MAIL MAILPATH
  3926. do eval test x\${$as_var+set} = xset \
  3927. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  3928. done
  3929. PS1='$ '
  3930. PS2='> '
  3931. PS4='+ '
  3932. # NLS nuisances.
  3933. LC_ALL=C
  3934. export LC_ALL
  3935. LANGUAGE=C
  3936. export LANGUAGE
  3937. # CDPATH.
  3938. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3939. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  3940. @%:@ ----------------------------------------
  3941. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  3942. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  3943. @%:@ script with STATUS, using 1 if that was 0.
  3944. as_fn_error ()
  3945. {
  3946. as_status=$1; test $as_status -eq 0 && as_status=1
  3947. if test "$4"; then
  3948. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3949. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  3950. fi
  3951. $as_echo "$as_me: error: $2" >&2
  3952. as_fn_exit $as_status
  3953. } @%:@ as_fn_error
  3954. @%:@ as_fn_set_status STATUS
  3955. @%:@ -----------------------
  3956. @%:@ Set @S|@? to STATUS, without forking.
  3957. as_fn_set_status ()
  3958. {
  3959. return $1
  3960. } @%:@ as_fn_set_status
  3961. @%:@ as_fn_exit STATUS
  3962. @%:@ -----------------
  3963. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  3964. as_fn_exit ()
  3965. {
  3966. set +e
  3967. as_fn_set_status $1
  3968. exit $1
  3969. } @%:@ as_fn_exit
  3970. @%:@ as_fn_unset VAR
  3971. @%:@ ---------------
  3972. @%:@ Portably unset VAR.
  3973. as_fn_unset ()
  3974. {
  3975. { eval $1=; unset $1;}
  3976. }
  3977. as_unset=as_fn_unset
  3978. @%:@ as_fn_append VAR VALUE
  3979. @%:@ ----------------------
  3980. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  3981. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  3982. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  3983. @%:@ implementations.
  3984. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  3985. eval 'as_fn_append ()
  3986. {
  3987. eval $1+=\$2
  3988. }'
  3989. else
  3990. as_fn_append ()
  3991. {
  3992. eval $1=\$$1\$2
  3993. }
  3994. fi # as_fn_append
  3995. @%:@ as_fn_arith ARG...
  3996. @%:@ ------------------
  3997. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  3998. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  3999. @%:@ must be portable across @S|@(()) and expr.
  4000. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4001. eval 'as_fn_arith ()
  4002. {
  4003. as_val=$(( $* ))
  4004. }'
  4005. else
  4006. as_fn_arith ()
  4007. {
  4008. as_val=`expr "$@" || test $? -eq 1`
  4009. }
  4010. fi # as_fn_arith
  4011. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4012. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4013. as_expr=expr
  4014. else
  4015. as_expr=false
  4016. fi
  4017. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4018. as_basename=basename
  4019. else
  4020. as_basename=false
  4021. fi
  4022. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4023. as_dirname=dirname
  4024. else
  4025. as_dirname=false
  4026. fi
  4027. as_me=`$as_basename -- "$0" ||
  4028. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4029. X"$0" : 'X\(//\)$' \| \
  4030. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4031. $as_echo X/"$0" |
  4032. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4033. s//\1/
  4034. q
  4035. }
  4036. /^X\/\(\/\/\)$/{
  4037. s//\1/
  4038. q
  4039. }
  4040. /^X\/\(\/\).*/{
  4041. s//\1/
  4042. q
  4043. }
  4044. s/.*/./; q'`
  4045. # Avoid depending upon Character Ranges.
  4046. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4047. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4048. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4049. as_cr_digits='0123456789'
  4050. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4051. ECHO_C= ECHO_N= ECHO_T=
  4052. case `echo -n x` in @%:@(((((
  4053. -n*)
  4054. case `echo 'xy\c'` in
  4055. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4056. xy) ECHO_C='\c';;
  4057. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4058. ECHO_T=' ';;
  4059. esac;;
  4060. *)
  4061. ECHO_N='-n';;
  4062. esac
  4063. rm -f conf$$ conf$$.exe conf$$.file
  4064. if test -d conf$$.dir; then
  4065. rm -f conf$$.dir/conf$$.file
  4066. else
  4067. rm -f conf$$.dir
  4068. mkdir conf$$.dir 2>/dev/null
  4069. fi
  4070. if (echo >conf$$.file) 2>/dev/null; then
  4071. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4072. as_ln_s='ln -s'
  4073. # ... but there are two gotchas:
  4074. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4075. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4076. # In both cases, we have to default to `cp -pR'.
  4077. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4078. as_ln_s='cp -pR'
  4079. elif ln conf$$.file conf$$ 2>/dev/null; then
  4080. as_ln_s=ln
  4081. else
  4082. as_ln_s='cp -pR'
  4083. fi
  4084. else
  4085. as_ln_s='cp -pR'
  4086. fi
  4087. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4088. rmdir conf$$.dir 2>/dev/null
  4089. @%:@ as_fn_mkdir_p
  4090. @%:@ -------------
  4091. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  4092. as_fn_mkdir_p ()
  4093. {
  4094. case $as_dir in #(
  4095. -*) as_dir=./$as_dir;;
  4096. esac
  4097. test -d "$as_dir" || eval $as_mkdir_p || {
  4098. as_dirs=
  4099. while :; do
  4100. case $as_dir in #(
  4101. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4102. *) as_qdir=$as_dir;;
  4103. esac
  4104. as_dirs="'$as_qdir' $as_dirs"
  4105. as_dir=`$as_dirname -- "$as_dir" ||
  4106. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4107. X"$as_dir" : 'X\(//\)[^/]' \| \
  4108. X"$as_dir" : 'X\(//\)$' \| \
  4109. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4110. $as_echo X"$as_dir" |
  4111. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4112. s//\1/
  4113. q
  4114. }
  4115. /^X\(\/\/\)[^/].*/{
  4116. s//\1/
  4117. q
  4118. }
  4119. /^X\(\/\/\)$/{
  4120. s//\1/
  4121. q
  4122. }
  4123. /^X\(\/\).*/{
  4124. s//\1/
  4125. q
  4126. }
  4127. s/.*/./; q'`
  4128. test -d "$as_dir" && break
  4129. done
  4130. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4131. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4132. } @%:@ as_fn_mkdir_p
  4133. if mkdir -p . 2>/dev/null; then
  4134. as_mkdir_p='mkdir -p "$as_dir"'
  4135. else
  4136. test -d ./-p && rmdir ./-p
  4137. as_mkdir_p=false
  4138. fi
  4139. @%:@ as_fn_executable_p FILE
  4140. @%:@ -----------------------
  4141. @%:@ Test if FILE is an executable regular file.
  4142. as_fn_executable_p ()
  4143. {
  4144. test -f "$1" && test -x "$1"
  4145. } @%:@ as_fn_executable_p
  4146. as_test_x='test -x'
  4147. as_executable_p=as_fn_executable_p
  4148. # Sed expression to map a string onto a valid CPP name.
  4149. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4150. # Sed expression to map a string onto a valid variable name.
  4151. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4152. exec 6>&1
  4153. ## ----------------------------------- ##
  4154. ## Main body of $CONFIG_STATUS script. ##
  4155. ## ----------------------------------- ##
  4156. _ASEOF
  4157. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4159. # Save the log message, to keep $0 and so on meaningful, and to
  4160. # report actual input values of CONFIG_FILES etc. instead of their
  4161. # values after options handling.
  4162. ac_log="
  4163. This file was extended by zlog $as_me 1.0, which was
  4164. generated by GNU Autoconf 2.69. Invocation command line was
  4165. CONFIG_FILES = $CONFIG_FILES
  4166. CONFIG_HEADERS = $CONFIG_HEADERS
  4167. CONFIG_LINKS = $CONFIG_LINKS
  4168. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4169. $ $0 $@
  4170. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4171. "
  4172. _ACEOF
  4173. case $ac_config_files in *"
  4174. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4175. esac
  4176. case $ac_config_headers in *"
  4177. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  4178. esac
  4179. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4180. # Files that config.status was made for.
  4181. config_files="$ac_config_files"
  4182. config_headers="$ac_config_headers"
  4183. _ACEOF
  4184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4185. ac_cs_usage="\
  4186. \`$as_me' instantiates files and other configuration actions
  4187. from templates according to the current configuration. Unless the files
  4188. and actions are specified as TAGs, all are instantiated by default.
  4189. Usage: $0 [OPTION]... [TAG]...
  4190. -h, --help print this help, then exit
  4191. -V, --version print version number and configuration settings, then exit
  4192. --config print configuration, then exit
  4193. -q, --quiet, --silent
  4194. do not print progress messages
  4195. -d, --debug don't remove temporary files
  4196. --recheck update $as_me by reconfiguring in the same conditions
  4197. --file=FILE[:TEMPLATE]
  4198. instantiate the configuration file FILE
  4199. --header=FILE[:TEMPLATE]
  4200. instantiate the configuration header FILE
  4201. Configuration files:
  4202. $config_files
  4203. Configuration headers:
  4204. $config_headers
  4205. Report bugs to <BUG-REPORT-ADDRESS>."
  4206. _ACEOF
  4207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4208. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4209. ac_cs_version="\\
  4210. zlog config.status 1.0
  4211. configured by $0, generated by GNU Autoconf 2.69,
  4212. with options \\"\$ac_cs_config\\"
  4213. Copyright (C) 2012 Free Software Foundation, Inc.
  4214. This config.status script is free software; the Free Software Foundation
  4215. gives unlimited permission to copy, distribute and modify it."
  4216. ac_pwd='$ac_pwd'
  4217. srcdir='$srcdir'
  4218. test -n "\$AWK" || AWK=awk
  4219. _ACEOF
  4220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4221. # The default lists apply if the user does not specify any file.
  4222. ac_need_defaults=:
  4223. while test $# != 0
  4224. do
  4225. case $1 in
  4226. --*=?*)
  4227. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4228. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4229. ac_shift=:
  4230. ;;
  4231. --*=)
  4232. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4233. ac_optarg=
  4234. ac_shift=:
  4235. ;;
  4236. *)
  4237. ac_option=$1
  4238. ac_optarg=$2
  4239. ac_shift=shift
  4240. ;;
  4241. esac
  4242. case $ac_option in
  4243. # Handling of the options.
  4244. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4245. ac_cs_recheck=: ;;
  4246. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4247. $as_echo "$ac_cs_version"; exit ;;
  4248. --config | --confi | --conf | --con | --co | --c )
  4249. $as_echo "$ac_cs_config"; exit ;;
  4250. --debug | --debu | --deb | --de | --d | -d )
  4251. debug=: ;;
  4252. --file | --fil | --fi | --f )
  4253. $ac_shift
  4254. case $ac_optarg in
  4255. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4256. '') as_fn_error $? "missing file argument" ;;
  4257. esac
  4258. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4259. ac_need_defaults=false;;
  4260. --header | --heade | --head | --hea )
  4261. $ac_shift
  4262. case $ac_optarg in
  4263. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4264. esac
  4265. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  4266. ac_need_defaults=false;;
  4267. --he | --h)
  4268. # Conflict between --help and --header
  4269. as_fn_error $? "ambiguous option: \`$1'
  4270. Try \`$0 --help' for more information.";;
  4271. --help | --hel | -h )
  4272. $as_echo "$ac_cs_usage"; exit ;;
  4273. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4274. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4275. ac_cs_silent=: ;;
  4276. # This is an error.
  4277. -*) as_fn_error $? "unrecognized option: \`$1'
  4278. Try \`$0 --help' for more information." ;;
  4279. *) as_fn_append ac_config_targets " $1"
  4280. ac_need_defaults=false ;;
  4281. esac
  4282. shift
  4283. done
  4284. ac_configure_extra_args=
  4285. if $ac_cs_silent; then
  4286. exec 6>/dev/null
  4287. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4288. fi
  4289. _ACEOF
  4290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4291. if \$ac_cs_recheck; then
  4292. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4293. shift
  4294. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4295. CONFIG_SHELL='$SHELL'
  4296. export CONFIG_SHELL
  4297. exec "\$@"
  4298. fi
  4299. _ACEOF
  4300. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4301. exec 5>>config.log
  4302. {
  4303. echo
  4304. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  4305. @%:@@%:@ Running $as_me. @%:@@%:@
  4306. _ASBOX
  4307. $as_echo "$ac_log"
  4308. } >&5
  4309. _ACEOF
  4310. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4311. _ACEOF
  4312. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4313. # Handling of arguments.
  4314. for ac_config_target in $ac_config_targets
  4315. do
  4316. case $ac_config_target in
  4317. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4318. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4319. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  4320. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4321. esac
  4322. done
  4323. # If the user did not use the arguments to specify the items to instantiate,
  4324. # then the envvar interface is used. Set only those that are not.
  4325. # We use the long form for the default assignment because of an extremely
  4326. # bizarre bug on SunOS 4.1.3.
  4327. if $ac_need_defaults; then
  4328. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4329. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4330. fi
  4331. # Have a temporary directory for convenience. Make it in the build tree
  4332. # simply because there is no reason against having it here, and in addition,
  4333. # creating and moving files from /tmp can sometimes cause problems.
  4334. # Hook for its removal unless debugging.
  4335. # Note that there is a small window in which the directory will not be cleaned:
  4336. # after its creation but before its name has been assigned to `$tmp'.
  4337. $debug ||
  4338. {
  4339. tmp= ac_tmp=
  4340. trap 'exit_status=$?
  4341. : "${ac_tmp:=$tmp}"
  4342. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4343. ' 0
  4344. trap 'as_fn_exit 1' 1 2 13 15
  4345. }
  4346. # Create a (secure) tmp directory for tmp files.
  4347. {
  4348. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4349. test -d "$tmp"
  4350. } ||
  4351. {
  4352. tmp=./conf$$-$RANDOM
  4353. (umask 077 && mkdir "$tmp")
  4354. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4355. ac_tmp=$tmp
  4356. # Set up the scripts for CONFIG_FILES section.
  4357. # No need to generate them if there are no CONFIG_FILES.
  4358. # This happens for instance with `./config.status config.h'.
  4359. if test -n "$CONFIG_FILES"; then
  4360. ac_cr=`echo X | tr X '\015'`
  4361. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4362. # But we know of no other shell where ac_cr would be empty at this
  4363. # point, so we can use a bashism as a fallback.
  4364. if test "x$ac_cr" = x; then
  4365. eval ac_cr=\$\'\\r\'
  4366. fi
  4367. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4368. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4369. ac_cs_awk_cr='\\r'
  4370. else
  4371. ac_cs_awk_cr=$ac_cr
  4372. fi
  4373. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4374. _ACEOF
  4375. {
  4376. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4377. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4378. echo "_ACEOF"
  4379. } >conf$$subs.sh ||
  4380. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4381. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4382. ac_delim='%!_!# '
  4383. for ac_last_try in false false false false false :; do
  4384. . ./conf$$subs.sh ||
  4385. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4386. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4387. if test $ac_delim_n = $ac_delim_num; then
  4388. break
  4389. elif $ac_last_try; then
  4390. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4391. else
  4392. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4393. fi
  4394. done
  4395. rm -f conf$$subs.sh
  4396. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4397. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4398. _ACEOF
  4399. sed -n '
  4400. h
  4401. s/^/S["/; s/!.*/"]=/
  4402. p
  4403. g
  4404. s/^[^!]*!//
  4405. :repl
  4406. t repl
  4407. s/'"$ac_delim"'$//
  4408. t delim
  4409. :nl
  4410. h
  4411. s/\(.\{148\}\)..*/\1/
  4412. t more1
  4413. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4414. p
  4415. n
  4416. b repl
  4417. :more1
  4418. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4419. p
  4420. g
  4421. s/.\{148\}//
  4422. t nl
  4423. :delim
  4424. h
  4425. s/\(.\{148\}\)..*/\1/
  4426. t more2
  4427. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4428. p
  4429. b
  4430. :more2
  4431. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4432. p
  4433. g
  4434. s/.\{148\}//
  4435. t delim
  4436. ' <conf$$subs.awk | sed '
  4437. /^[^""]/{
  4438. N
  4439. s/\n//
  4440. }
  4441. ' >>$CONFIG_STATUS || ac_write_fail=1
  4442. rm -f conf$$subs.awk
  4443. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4444. _ACAWK
  4445. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4446. for (key in S) S_is_set[key] = 1
  4447. FS = ""
  4448. }
  4449. {
  4450. line = $ 0
  4451. nfields = split(line, field, "@")
  4452. substed = 0
  4453. len = length(field[1])
  4454. for (i = 2; i < nfields; i++) {
  4455. key = field[i]
  4456. keylen = length(key)
  4457. if (S_is_set[key]) {
  4458. value = S[key]
  4459. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4460. len += length(value) + length(field[++i])
  4461. substed = 1
  4462. } else
  4463. len += 1 + keylen
  4464. }
  4465. print line
  4466. }
  4467. _ACAWK
  4468. _ACEOF
  4469. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4470. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4471. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4472. else
  4473. cat
  4474. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4475. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4476. _ACEOF
  4477. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4478. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4479. # trailing colons and then remove the whole line if VPATH becomes empty
  4480. # (actually we leave an empty line to preserve line numbers).
  4481. if test "x$srcdir" = x.; then
  4482. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4483. h
  4484. s///
  4485. s/^/:/
  4486. s/[ ]*$/:/
  4487. s/:\$(srcdir):/:/g
  4488. s/:\${srcdir}:/:/g
  4489. s/:@srcdir@:/:/g
  4490. s/^:*//
  4491. s/:*$//
  4492. x
  4493. s/\(=[ ]*\).*/\1/
  4494. G
  4495. s/\n//
  4496. s/^[^=]*=[ ]*$//
  4497. }'
  4498. fi
  4499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4500. fi # test -n "$CONFIG_FILES"
  4501. # Set up the scripts for CONFIG_HEADERS section.
  4502. # No need to generate them if there are no CONFIG_HEADERS.
  4503. # This happens for instance with `./config.status Makefile'.
  4504. if test -n "$CONFIG_HEADERS"; then
  4505. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  4506. BEGIN {
  4507. _ACEOF
  4508. # Transform confdefs.h into an awk script `defines.awk', embedded as
  4509. # here-document in config.status, that substitutes the proper values into
  4510. # config.h.in to produce config.h.
  4511. # Create a delimiter string that does not exist in confdefs.h, to ease
  4512. # handling of long lines.
  4513. ac_delim='%!_!# '
  4514. for ac_last_try in false false :; do
  4515. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  4516. if test -z "$ac_tt"; then
  4517. break
  4518. elif $ac_last_try; then
  4519. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  4520. else
  4521. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4522. fi
  4523. done
  4524. # For the awk script, D is an array of macro values keyed by name,
  4525. # likewise P contains macro parameters if any. Preserve backslash
  4526. # newline sequences.
  4527. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  4528. sed -n '
  4529. s/.\{148\}/&'"$ac_delim"'/g
  4530. t rset
  4531. :rset
  4532. s/^[ ]*#[ ]*define[ ][ ]*/ /
  4533. t def
  4534. d
  4535. :def
  4536. s/\\$//
  4537. t bsnl
  4538. s/["\\]/\\&/g
  4539. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4540. D["\1"]=" \3"/p
  4541. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  4542. d
  4543. :bsnl
  4544. s/["\\]/\\&/g
  4545. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4546. D["\1"]=" \3\\\\\\n"\\/p
  4547. t cont
  4548. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  4549. t cont
  4550. d
  4551. :cont
  4552. n
  4553. s/.\{148\}/&'"$ac_delim"'/g
  4554. t clear
  4555. :clear
  4556. s/\\$//
  4557. t bsnlc
  4558. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  4559. d
  4560. :bsnlc
  4561. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  4562. b cont
  4563. ' <confdefs.h | sed '
  4564. s/'"$ac_delim"'/"\\\
  4565. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  4566. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4567. for (key in D) D_is_set[key] = 1
  4568. FS = ""
  4569. }
  4570. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  4571. line = \$ 0
  4572. split(line, arg, " ")
  4573. if (arg[1] == "#") {
  4574. defundef = arg[2]
  4575. mac1 = arg[3]
  4576. } else {
  4577. defundef = substr(arg[1], 2)
  4578. mac1 = arg[2]
  4579. }
  4580. split(mac1, mac2, "(") #)
  4581. macro = mac2[1]
  4582. prefix = substr(line, 1, index(line, defundef) - 1)
  4583. if (D_is_set[macro]) {
  4584. # Preserve the white space surrounding the "#".
  4585. print prefix "define", macro P[macro] D[macro]
  4586. next
  4587. } else {
  4588. # Replace #undef with comments. This is necessary, for example,
  4589. # in the case of _POSIX_SOURCE, which is predefined and required
  4590. # on some systems where configure will not decide to define it.
  4591. if (defundef == "undef") {
  4592. print "/*", prefix defundef, macro, "*/"
  4593. next
  4594. }
  4595. }
  4596. }
  4597. { print }
  4598. _ACAWK
  4599. _ACEOF
  4600. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4601. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  4602. fi # test -n "$CONFIG_HEADERS"
  4603. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  4604. shift
  4605. for ac_tag
  4606. do
  4607. case $ac_tag in
  4608. :[FHLC]) ac_mode=$ac_tag; continue;;
  4609. esac
  4610. case $ac_mode$ac_tag in
  4611. :[FHL]*:*);;
  4612. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4613. :[FH]-) ac_tag=-:-;;
  4614. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4615. esac
  4616. ac_save_IFS=$IFS
  4617. IFS=:
  4618. set x $ac_tag
  4619. IFS=$ac_save_IFS
  4620. shift
  4621. ac_file=$1
  4622. shift
  4623. case $ac_mode in
  4624. :L) ac_source=$1;;
  4625. :[FH])
  4626. ac_file_inputs=
  4627. for ac_f
  4628. do
  4629. case $ac_f in
  4630. -) ac_f="$ac_tmp/stdin";;
  4631. *) # Look for the file first in the build tree, then in the source tree
  4632. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4633. # because $ac_f cannot contain `:'.
  4634. test -f "$ac_f" ||
  4635. case $ac_f in
  4636. [\\/$]*) false;;
  4637. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4638. esac ||
  4639. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4640. esac
  4641. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4642. as_fn_append ac_file_inputs " '$ac_f'"
  4643. done
  4644. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4645. # use $as_me), people would be surprised to read:
  4646. # /* config.h. Generated by config.status. */
  4647. configure_input='Generated from '`
  4648. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4649. `' by configure.'
  4650. if test x"$ac_file" != x-; then
  4651. configure_input="$ac_file. $configure_input"
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4653. $as_echo "$as_me: creating $ac_file" >&6;}
  4654. fi
  4655. # Neutralize special characters interpreted by sed in replacement strings.
  4656. case $configure_input in #(
  4657. *\&* | *\|* | *\\* )
  4658. ac_sed_conf_input=`$as_echo "$configure_input" |
  4659. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4660. *) ac_sed_conf_input=$configure_input;;
  4661. esac
  4662. case $ac_tag in
  4663. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4664. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4665. esac
  4666. ;;
  4667. esac
  4668. ac_dir=`$as_dirname -- "$ac_file" ||
  4669. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4670. X"$ac_file" : 'X\(//\)[^/]' \| \
  4671. X"$ac_file" : 'X\(//\)$' \| \
  4672. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4673. $as_echo X"$ac_file" |
  4674. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4675. s//\1/
  4676. q
  4677. }
  4678. /^X\(\/\/\)[^/].*/{
  4679. s//\1/
  4680. q
  4681. }
  4682. /^X\(\/\/\)$/{
  4683. s//\1/
  4684. q
  4685. }
  4686. /^X\(\/\).*/{
  4687. s//\1/
  4688. q
  4689. }
  4690. s/.*/./; q'`
  4691. as_dir="$ac_dir"; as_fn_mkdir_p
  4692. ac_builddir=.
  4693. case "$ac_dir" in
  4694. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4695. *)
  4696. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  4697. # A ".." for each directory in $ac_dir_suffix.
  4698. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4699. case $ac_top_builddir_sub in
  4700. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4701. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4702. esac ;;
  4703. esac
  4704. ac_abs_top_builddir=$ac_pwd
  4705. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4706. # for backward compatibility:
  4707. ac_top_builddir=$ac_top_build_prefix
  4708. case $srcdir in
  4709. .) # We are building in place.
  4710. ac_srcdir=.
  4711. ac_top_srcdir=$ac_top_builddir_sub
  4712. ac_abs_top_srcdir=$ac_pwd ;;
  4713. [\\/]* | ?:[\\/]* ) # Absolute name.
  4714. ac_srcdir=$srcdir$ac_dir_suffix;
  4715. ac_top_srcdir=$srcdir
  4716. ac_abs_top_srcdir=$srcdir ;;
  4717. *) # Relative name.
  4718. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4719. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4720. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4721. esac
  4722. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4723. case $ac_mode in
  4724. :F)
  4725. #
  4726. # CONFIG_FILE
  4727. #
  4728. _ACEOF
  4729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4730. # If the template does not know about datarootdir, expand it.
  4731. # FIXME: This hack should be removed a few years after 2.60.
  4732. ac_datarootdir_hack=; ac_datarootdir_seen=
  4733. ac_sed_dataroot='
  4734. /datarootdir/ {
  4735. p
  4736. q
  4737. }
  4738. /@datadir@/p
  4739. /@docdir@/p
  4740. /@infodir@/p
  4741. /@localedir@/p
  4742. /@mandir@/p'
  4743. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4744. *datarootdir*) ac_datarootdir_seen=yes;;
  4745. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4747. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4748. _ACEOF
  4749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4750. ac_datarootdir_hack='
  4751. s&@datadir@&$datadir&g
  4752. s&@docdir@&$docdir&g
  4753. s&@infodir@&$infodir&g
  4754. s&@localedir@&$localedir&g
  4755. s&@mandir@&$mandir&g
  4756. s&\\\${datarootdir}&$datarootdir&g' ;;
  4757. esac
  4758. _ACEOF
  4759. # Neutralize VPATH when `$srcdir' = `.'.
  4760. # Shell code in configure.ac might set extrasub.
  4761. # FIXME: do we really want to maintain this feature?
  4762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4763. ac_sed_extra="$ac_vpsub
  4764. $extrasub
  4765. _ACEOF
  4766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4767. :t
  4768. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4769. s|@configure_input@|$ac_sed_conf_input|;t t
  4770. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4771. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4772. s&@srcdir@&$ac_srcdir&;t t
  4773. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4774. s&@top_srcdir@&$ac_top_srcdir&;t t
  4775. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4776. s&@builddir@&$ac_builddir&;t t
  4777. s&@abs_builddir@&$ac_abs_builddir&;t t
  4778. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4779. $ac_datarootdir_hack
  4780. "
  4781. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4782. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4783. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4784. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4785. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4786. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4788. which seems to be undefined. Please make sure it is defined" >&5
  4789. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4790. which seems to be undefined. Please make sure it is defined" >&2;}
  4791. rm -f "$ac_tmp/stdin"
  4792. case $ac_file in
  4793. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4794. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4795. esac \
  4796. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4797. ;;
  4798. :H)
  4799. #
  4800. # CONFIG_HEADER
  4801. #
  4802. if test x"$ac_file" != x-; then
  4803. {
  4804. $as_echo "/* $configure_input */" \
  4805. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  4806. } >"$ac_tmp/config.h" \
  4807. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4808. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  4810. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  4811. else
  4812. rm -f "$ac_file"
  4813. mv "$ac_tmp/config.h" "$ac_file" \
  4814. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4815. fi
  4816. else
  4817. $as_echo "/* $configure_input */" \
  4818. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  4819. || as_fn_error $? "could not create -" "$LINENO" 5
  4820. fi
  4821. ;;
  4822. esac
  4823. done # for ac_tag
  4824. as_fn_exit 0
  4825. _ACEOF
  4826. ac_clean_files=$ac_clean_files_save
  4827. test $ac_write_fail = 0 ||
  4828. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  4829. # configure is writing to config.log, and then calls config.status.
  4830. # config.status does its own redirection, appending to config.log.
  4831. # Unfortunately, on DOS this fails, as config.log is still kept open
  4832. # by configure, so config.status won't be able to write to it; its
  4833. # output is simply discarded. So we exec the FD to /dev/null,
  4834. # effectively closing config.log, so it can be properly (re)opened and
  4835. # appended to by config.status. When coming back to configure, we
  4836. # need to make the FD available again.
  4837. if test "$no_create" != yes; then
  4838. ac_cs_success=:
  4839. ac_config_status_args=
  4840. test "$silent" = yes &&
  4841. ac_config_status_args="$ac_config_status_args --quiet"
  4842. exec 5>/dev/null
  4843. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4844. exec 5>>config.log
  4845. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4846. # would make configure fail if this is the last instruction.
  4847. $ac_cs_success || as_fn_exit 1
  4848. fi
  4849. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4851. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4852. fi