configure 158 KB

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