configure 147 KB

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