configure.eperl 138 KB

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