configure 137 KB

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