configure 134 KB

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