You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 126KB

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