configure 149 KB

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