configure 120 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --with-auxdir=DIR path to autoconf auxiliary files"
  14. ac_help="$ac_help
  15. --enable-maintainer-mode enable make rules and dependencies not useful
  16. (and sometimes confusing) to the casual installer"
  17. ac_help="$ac_help
  18. --enable-shared[=PKGS] build shared libraries [default=yes]"
  19. ac_help="$ac_help
  20. --enable-static[=PKGS] build static libraries [default=yes]"
  21. ac_help="$ac_help
  22. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  23. ac_help="$ac_help
  24. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  25. ac_help="$ac_help
  26. --disable-libtool-lock avoid locking (might break parallel builds)"
  27. ac_help="$ac_help
  28. --with-pic try to use only PIC/non-PIC objects [default=use both]"
  29. ac_help="$ac_help
  30. --enable-java-gc=TYPE choose garbage collector [boehm]"
  31. ac_help="$ac_help
  32. --enable-ltdl-install install libltdl"
  33. # Initialize some variables set by options.
  34. # The variables have the same names as the options, with
  35. # dashes changed to underlines.
  36. build=NONE
  37. cache_file=./config.cache
  38. exec_prefix=NONE
  39. host=NONE
  40. no_create=
  41. nonopt=NONE
  42. no_recursion=
  43. prefix=NONE
  44. program_prefix=NONE
  45. program_suffix=NONE
  46. program_transform_name=s,x,x,
  47. silent=
  48. site=
  49. sitefile=
  50. srcdir=
  51. target=NONE
  52. verbose=
  53. x_includes=NONE
  54. x_libraries=NONE
  55. bindir='${exec_prefix}/bin'
  56. sbindir='${exec_prefix}/sbin'
  57. libexecdir='${exec_prefix}/libexec'
  58. datadir='${prefix}/share'
  59. sysconfdir='${prefix}/etc'
  60. sharedstatedir='${prefix}/com'
  61. localstatedir='${prefix}/var'
  62. libdir='${exec_prefix}/lib'
  63. includedir='${prefix}/include'
  64. oldincludedir='/usr/include'
  65. infodir='${prefix}/info'
  66. mandir='${prefix}/man'
  67. # Initialize some other variables.
  68. subdirs=
  69. MFLAGS= MAKEFLAGS=
  70. SHELL=${CONFIG_SHELL-/bin/sh}
  71. # Maximum number of lines to put in a shell here document.
  72. ac_max_here_lines=12
  73. ac_prev=
  74. for ac_option
  75. do
  76. # If the previous option needs an argument, assign it.
  77. if test -n "$ac_prev"; then
  78. eval "$ac_prev=\$ac_option"
  79. ac_prev=
  80. continue
  81. fi
  82. case "$ac_option" in
  83. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  84. *) ac_optarg= ;;
  85. esac
  86. # Accept the important Cygnus configure options, so we can diagnose typos.
  87. case "$ac_option" in
  88. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  89. ac_prev=bindir ;;
  90. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  91. bindir="$ac_optarg" ;;
  92. -build | --build | --buil | --bui | --bu)
  93. ac_prev=build ;;
  94. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  95. build="$ac_optarg" ;;
  96. -cache-file | --cache-file | --cache-fil | --cache-fi \
  97. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  98. ac_prev=cache_file ;;
  99. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  100. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  101. cache_file="$ac_optarg" ;;
  102. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  103. ac_prev=datadir ;;
  104. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  105. | --da=*)
  106. datadir="$ac_optarg" ;;
  107. -disable-* | --disable-*)
  108. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  109. # Reject names that are not valid shell variable names.
  110. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  111. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112. fi
  113. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114. eval "enable_${ac_feature}=no" ;;
  115. -enable-* | --enable-*)
  116. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  117. # Reject names that are not valid shell variable names.
  118. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  119. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  120. fi
  121. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  122. case "$ac_option" in
  123. *=*) ;;
  124. *) ac_optarg=yes ;;
  125. esac
  126. eval "enable_${ac_feature}='$ac_optarg'" ;;
  127. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  128. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  129. | --exec | --exe | --ex)
  130. ac_prev=exec_prefix ;;
  131. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  132. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  133. | --exec=* | --exe=* | --ex=*)
  134. exec_prefix="$ac_optarg" ;;
  135. -gas | --gas | --ga | --g)
  136. # Obsolete; use --with-gas.
  137. with_gas=yes ;;
  138. -help | --help | --hel | --he)
  139. # Omit some internal or obsolete options to make the list less imposing.
  140. # This message is too long to be a string in the A/UX 3.1 sh.
  141. cat << EOF
  142. Usage: configure [options] [host]
  143. Options: [defaults in brackets after descriptions]
  144. Configuration:
  145. --cache-file=FILE cache test results in FILE
  146. --help print this message
  147. --no-create do not create output files
  148. --quiet, --silent do not print \`checking...' messages
  149. --site-file=FILE use FILE as the site file
  150. --version print the version of autoconf that created configure
  151. Directory and file names:
  152. --prefix=PREFIX install architecture-independent files in PREFIX
  153. [$ac_default_prefix]
  154. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  155. [same as prefix]
  156. --bindir=DIR user executables in DIR [EPREFIX/bin]
  157. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  158. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  159. --datadir=DIR read-only architecture-independent data in DIR
  160. [PREFIX/share]
  161. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  162. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  163. [PREFIX/com]
  164. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  165. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  166. --includedir=DIR C header files in DIR [PREFIX/include]
  167. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  168. --infodir=DIR info documentation in DIR [PREFIX/info]
  169. --mandir=DIR man documentation in DIR [PREFIX/man]
  170. --srcdir=DIR find the sources in DIR [configure dir or ..]
  171. --program-prefix=PREFIX prepend PREFIX to installed program names
  172. --program-suffix=SUFFIX append SUFFIX to installed program names
  173. --program-transform-name=PROGRAM
  174. run sed PROGRAM on installed program names
  175. EOF
  176. cat << EOF
  177. Host type:
  178. --build=BUILD configure for building on BUILD [BUILD=HOST]
  179. --host=HOST configure for HOST [guessed]
  180. --target=TARGET configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  183. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  184. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  185. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  186. --x-includes=DIR X include files are in DIR
  187. --x-libraries=DIR X library files are in DIR
  188. EOF
  189. if test -n "$ac_help"; then
  190. echo "--enable and --with options recognized:$ac_help"
  191. fi
  192. exit 0 ;;
  193. -host | --host | --hos | --ho)
  194. ac_prev=host ;;
  195. -host=* | --host=* | --hos=* | --ho=*)
  196. host="$ac_optarg" ;;
  197. -includedir | --includedir | --includedi | --included | --include \
  198. | --includ | --inclu | --incl | --inc)
  199. ac_prev=includedir ;;
  200. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  201. | --includ=* | --inclu=* | --incl=* | --inc=*)
  202. includedir="$ac_optarg" ;;
  203. -infodir | --infodir | --infodi | --infod | --info | --inf)
  204. ac_prev=infodir ;;
  205. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  206. infodir="$ac_optarg" ;;
  207. -libdir | --libdir | --libdi | --libd)
  208. ac_prev=libdir ;;
  209. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  210. libdir="$ac_optarg" ;;
  211. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  212. | --libexe | --libex | --libe)
  213. ac_prev=libexecdir ;;
  214. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  215. | --libexe=* | --libex=* | --libe=*)
  216. libexecdir="$ac_optarg" ;;
  217. -localstatedir | --localstatedir | --localstatedi | --localstated \
  218. | --localstate | --localstat | --localsta | --localst \
  219. | --locals | --local | --loca | --loc | --lo)
  220. ac_prev=localstatedir ;;
  221. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  222. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  223. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  224. localstatedir="$ac_optarg" ;;
  225. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  226. ac_prev=mandir ;;
  227. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  228. mandir="$ac_optarg" ;;
  229. -nfp | --nfp | --nf)
  230. # Obsolete; use --without-fp.
  231. with_fp=no ;;
  232. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  233. | --no-cr | --no-c)
  234. no_create=yes ;;
  235. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  236. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  237. no_recursion=yes ;;
  238. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  239. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  240. | --oldin | --oldi | --old | --ol | --o)
  241. ac_prev=oldincludedir ;;
  242. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  243. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  244. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  245. oldincludedir="$ac_optarg" ;;
  246. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  247. ac_prev=prefix ;;
  248. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  249. prefix="$ac_optarg" ;;
  250. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  251. | --program-pre | --program-pr | --program-p)
  252. ac_prev=program_prefix ;;
  253. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  254. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  255. program_prefix="$ac_optarg" ;;
  256. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  257. | --program-suf | --program-su | --program-s)
  258. ac_prev=program_suffix ;;
  259. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  260. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  261. program_suffix="$ac_optarg" ;;
  262. -program-transform-name | --program-transform-name \
  263. | --program-transform-nam | --program-transform-na \
  264. | --program-transform-n | --program-transform- \
  265. | --program-transform | --program-transfor \
  266. | --program-transfo | --program-transf \
  267. | --program-trans | --program-tran \
  268. | --progr-tra | --program-tr | --program-t)
  269. ac_prev=program_transform_name ;;
  270. -program-transform-name=* | --program-transform-name=* \
  271. | --program-transform-nam=* | --program-transform-na=* \
  272. | --program-transform-n=* | --program-transform-=* \
  273. | --program-transform=* | --program-transfor=* \
  274. | --program-transfo=* | --program-transf=* \
  275. | --program-trans=* | --program-tran=* \
  276. | --progr-tra=* | --program-tr=* | --program-t=*)
  277. program_transform_name="$ac_optarg" ;;
  278. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  279. | -silent | --silent | --silen | --sile | --sil)
  280. silent=yes ;;
  281. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  282. ac_prev=sbindir ;;
  283. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  284. | --sbi=* | --sb=*)
  285. sbindir="$ac_optarg" ;;
  286. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  287. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  288. | --sharedst | --shareds | --shared | --share | --shar \
  289. | --sha | --sh)
  290. ac_prev=sharedstatedir ;;
  291. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  292. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  293. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  294. | --sha=* | --sh=*)
  295. sharedstatedir="$ac_optarg" ;;
  296. -site | --site | --sit)
  297. ac_prev=site ;;
  298. -site=* | --site=* | --sit=*)
  299. site="$ac_optarg" ;;
  300. -site-file | --site-file | --site-fil | --site-fi | --site-f)
  301. ac_prev=sitefile ;;
  302. -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
  303. sitefile="$ac_optarg" ;;
  304. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  305. ac_prev=srcdir ;;
  306. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  307. srcdir="$ac_optarg" ;;
  308. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  309. | --syscon | --sysco | --sysc | --sys | --sy)
  310. ac_prev=sysconfdir ;;
  311. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  312. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  313. sysconfdir="$ac_optarg" ;;
  314. -target | --target | --targe | --targ | --tar | --ta | --t)
  315. ac_prev=target ;;
  316. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  317. target="$ac_optarg" ;;
  318. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  319. verbose=yes ;;
  320. -version | --version | --versio | --versi | --vers)
  321. echo "configure generated by autoconf version 2.13"
  322. exit 0 ;;
  323. -with-* | --with-*)
  324. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  325. # Reject names that are not valid shell variable names.
  326. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  327. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  328. fi
  329. ac_package=`echo $ac_package| sed 's/-/_/g'`
  330. case "$ac_option" in
  331. *=*) ;;
  332. *) ac_optarg=yes ;;
  333. esac
  334. eval "with_${ac_package}='$ac_optarg'" ;;
  335. -without-* | --without-*)
  336. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  337. # Reject names that are not valid shell variable names.
  338. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  339. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  340. fi
  341. ac_package=`echo $ac_package| sed 's/-/_/g'`
  342. eval "with_${ac_package}=no" ;;
  343. --x)
  344. # Obsolete; use --with-x.
  345. with_x=yes ;;
  346. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  347. | --x-incl | --x-inc | --x-in | --x-i)
  348. ac_prev=x_includes ;;
  349. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  350. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  351. x_includes="$ac_optarg" ;;
  352. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  353. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  354. ac_prev=x_libraries ;;
  355. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  356. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  357. x_libraries="$ac_optarg" ;;
  358. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  359. ;;
  360. *)
  361. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  362. echo "configure: warning: $ac_option: invalid host type" 1>&2
  363. fi
  364. if test "x$nonopt" != xNONE; then
  365. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  366. fi
  367. nonopt="$ac_option"
  368. ;;
  369. esac
  370. done
  371. if test -n "$ac_prev"; then
  372. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  373. fi
  374. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  375. # File descriptor usage:
  376. # 0 standard input
  377. # 1 file creation
  378. # 2 errors and warnings
  379. # 3 some systems may open it to /dev/tty
  380. # 4 used on the Kubota Titan
  381. # 6 checking for... messages and results
  382. # 5 compiler messages saved in config.log
  383. if test "$silent" = yes; then
  384. exec 6>/dev/null
  385. else
  386. exec 6>&1
  387. fi
  388. exec 5>./config.log
  389. echo "\
  390. This file contains any messages produced by compilers while
  391. running configure, to aid debugging if configure makes a mistake.
  392. " 1>&5
  393. # Strip out --no-create and --no-recursion so they do not pile up.
  394. # Also quote any args containing shell metacharacters.
  395. ac_configure_args=
  396. for ac_arg
  397. do
  398. case "$ac_arg" in
  399. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  400. | --no-cr | --no-c) ;;
  401. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  402. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  403. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  404. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  405. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  406. esac
  407. done
  408. # NLS nuisances.
  409. # Only set these to C if already set. These must not be set unconditionally
  410. # because not all systems understand e.g. LANG=C (notably SCO).
  411. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  412. # Non-C LC_CTYPE values break the ctype check.
  413. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  414. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  415. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  416. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  417. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  418. rm -rf conftest* confdefs.h
  419. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  420. echo > confdefs.h
  421. # A filename unique to this package, relative to the directory that
  422. # configure is in, which we can look for to find out if srcdir is correct.
  423. ac_unique_file=ltdl.c
  424. # Find the source files, if location was not specified.
  425. if test -z "$srcdir"; then
  426. ac_srcdir_defaulted=yes
  427. # Try the directory containing this script, then its parent.
  428. ac_prog=$0
  429. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  430. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  431. srcdir=$ac_confdir
  432. if test ! -r $srcdir/$ac_unique_file; then
  433. srcdir=..
  434. fi
  435. else
  436. ac_srcdir_defaulted=no
  437. fi
  438. if test ! -r $srcdir/$ac_unique_file; then
  439. if test "$ac_srcdir_defaulted" = yes; then
  440. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  441. else
  442. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  443. fi
  444. fi
  445. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  446. # Prefer explicitly selected file to automatically selected ones.
  447. if test -z "$sitefile"; then
  448. if test -z "$CONFIG_SITE"; then
  449. if test "x$prefix" != xNONE; then
  450. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  451. else
  452. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  453. fi
  454. fi
  455. else
  456. CONFIG_SITE="$sitefile"
  457. fi
  458. for ac_site_file in $CONFIG_SITE; do
  459. if test -r "$ac_site_file"; then
  460. echo "loading site script $ac_site_file"
  461. . "$ac_site_file"
  462. fi
  463. done
  464. if test -r "$cache_file"; then
  465. echo "loading cache $cache_file"
  466. . $cache_file
  467. else
  468. echo "creating cache $cache_file"
  469. > $cache_file
  470. fi
  471. ac_ext=c
  472. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  473. ac_cpp='$CPP $CPPFLAGS'
  474. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  475. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  476. cross_compiling=$ac_cv_prog_cc_cross
  477. ac_exeext=
  478. ac_objext=o
  479. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  480. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  481. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  482. ac_n= ac_c='
  483. ' ac_t=' '
  484. else
  485. ac_n=-n ac_c= ac_t=
  486. fi
  487. else
  488. ac_n= ac_c='\c' ac_t=
  489. fi
  490. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  491. echo "configure:557: checking for Cygwin environment" >&5
  492. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  493. echo $ac_n "(cached) $ac_c" 1>&6
  494. else
  495. cat > conftest.$ac_ext <<EOF
  496. #line 562 "configure"
  497. #include "confdefs.h"
  498. int main() {
  499. #ifndef __CYGWIN__
  500. #define __CYGWIN__ __CYGWIN32__
  501. #endif
  502. return __CYGWIN__;
  503. ; return 0; }
  504. EOF
  505. if { (eval echo configure:573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  506. rm -rf conftest*
  507. ac_cv_cygwin=yes
  508. else
  509. echo "configure: failed program was:" >&5
  510. cat conftest.$ac_ext >&5
  511. rm -rf conftest*
  512. ac_cv_cygwin=no
  513. fi
  514. rm -f conftest*
  515. rm -f conftest*
  516. fi
  517. echo "$ac_t""$ac_cv_cygwin" 1>&6
  518. CYGWIN=
  519. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  520. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  521. echo "configure:590: checking for mingw32 environment" >&5
  522. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  523. echo $ac_n "(cached) $ac_c" 1>&6
  524. else
  525. cat > conftest.$ac_ext <<EOF
  526. #line 595 "configure"
  527. #include "confdefs.h"
  528. int main() {
  529. return __MINGW32__;
  530. ; return 0; }
  531. EOF
  532. if { (eval echo configure:602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  533. rm -rf conftest*
  534. ac_cv_mingw32=yes
  535. else
  536. echo "configure: failed program was:" >&5
  537. cat conftest.$ac_ext >&5
  538. rm -rf conftest*
  539. ac_cv_mingw32=no
  540. fi
  541. rm -f conftest*
  542. rm -f conftest*
  543. fi
  544. echo "$ac_t""$ac_cv_mingw32" 1>&6
  545. MINGW32=
  546. test "$ac_cv_mingw32" = yes && MINGW32=yes
  547. # Check whether --with-auxdir or --without-auxdir was given.
  548. if test "${with_auxdir+set}" = set; then
  549. withval="$with_auxdir"
  550. ac_aux_dir=
  551. for ac_dir in $with_auxdir $srcdir/$with_auxdir; do
  552. if test -f $ac_dir/install-sh; then
  553. ac_aux_dir=$ac_dir
  554. ac_install_sh="$ac_aux_dir/install-sh -c"
  555. break
  556. elif test -f $ac_dir/install.sh; then
  557. ac_aux_dir=$ac_dir
  558. ac_install_sh="$ac_aux_dir/install.sh -c"
  559. break
  560. fi
  561. done
  562. if test -z "$ac_aux_dir"; then
  563. { echo "configure: error: can not find install-sh or install.sh in $with_auxdir $srcdir/$with_auxdir" 1>&2; exit 1; }
  564. fi
  565. ac_config_guess=$ac_aux_dir/config.guess
  566. ac_config_sub=$ac_aux_dir/config.sub
  567. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  568. else
  569. ac_aux_dir=
  570. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  571. if test -f $ac_dir/install-sh; then
  572. ac_aux_dir=$ac_dir
  573. ac_install_sh="$ac_aux_dir/install-sh -c"
  574. break
  575. elif test -f $ac_dir/install.sh; then
  576. ac_aux_dir=$ac_dir
  577. ac_install_sh="$ac_aux_dir/install.sh -c"
  578. break
  579. fi
  580. done
  581. if test -z "$ac_aux_dir"; then
  582. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  583. fi
  584. ac_config_guess=$ac_aux_dir/config.guess
  585. ac_config_sub=$ac_aux_dir/config.sub
  586. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  587. fi
  588. # This is another blatant hack to work around automake bugs.
  589. mkinstalldirs="$ac_aux_dir/mkinstalldirs"
  590. if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
  591. if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
  592. # if libltdl is libtoolized, it is assumed to be stand-alone and
  593. # installed unless the command line overrides it (tested above)
  594. enable_ltdl_install=yes
  595. else
  596. echo "configure: warning: *** The top-level configure must select either" 1>&2
  597. echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
  598. { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
  599. fi
  600. fi
  601. # Find a good install program. We prefer a C program (faster),
  602. # so one script is as good as another. But avoid the broken or
  603. # incompatible versions:
  604. # SysV /etc/install, /usr/sbin/install
  605. # SunOS /usr/etc/install
  606. # IRIX /sbin/install
  607. # AIX /bin/install
  608. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  609. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  610. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  611. # ./install, which can be erroneously created by make from ./install.sh.
  612. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  613. echo "configure:694: checking for a BSD compatible install" >&5
  614. if test -z "$INSTALL"; then
  615. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  616. echo $ac_n "(cached) $ac_c" 1>&6
  617. else
  618. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  619. for ac_dir in $PATH; do
  620. # Account for people who put trailing slashes in PATH elements.
  621. case "$ac_dir/" in
  622. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  623. *)
  624. # OSF1 and SCO ODT 3.0 have their own names for install.
  625. # Don't use installbsd from OSF since it installs stuff as root
  626. # by default.
  627. for ac_prog in ginstall scoinst install; do
  628. if test -f $ac_dir/$ac_prog; then
  629. if test $ac_prog = install &&
  630. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  631. # AIX install. It has an incompatible calling convention.
  632. :
  633. else
  634. ac_cv_path_install="$ac_dir/$ac_prog -c"
  635. break 2
  636. fi
  637. fi
  638. done
  639. ;;
  640. esac
  641. done
  642. IFS="$ac_save_IFS"
  643. fi
  644. if test "${ac_cv_path_install+set}" = set; then
  645. INSTALL="$ac_cv_path_install"
  646. else
  647. # As a last resort, use the slow shell script. We don't cache a
  648. # path for INSTALL within a source directory, because that will
  649. # break other packages using the cache if that directory is
  650. # removed, or if the path is relative.
  651. INSTALL="$ac_install_sh"
  652. fi
  653. fi
  654. echo "$ac_t""$INSTALL" 1>&6
  655. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  656. # It thinks the first close brace ends the variable substitution.
  657. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  658. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  659. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  660. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  661. echo "configure:747: checking whether build environment is sane" >&5
  662. # Just in case
  663. sleep 1
  664. echo timestamp > conftestfile
  665. # Do `set' in a subshell so we don't clobber the current shell's
  666. # arguments. Must try -L first in case configure is actually a
  667. # symlink; some systems play weird games with the mod time of symlinks
  668. # (eg FreeBSD returns the mod time of the symlink's containing
  669. # directory).
  670. if (
  671. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  672. if test "$*" = "X"; then
  673. # -L didn't work.
  674. set X `ls -t $srcdir/configure conftestfile`
  675. fi
  676. if test "$*" != "X $srcdir/configure conftestfile" \
  677. && test "$*" != "X conftestfile $srcdir/configure"; then
  678. # If neither matched, then we have a broken ls. This can happen
  679. # if, for instance, CONFIG_SHELL is bash and it inherits a
  680. # broken ls alias from the environment. This has actually
  681. # happened. Such a system could not be considered "sane".
  682. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  683. alias in your environment" 1>&2; exit 1; }
  684. fi
  685. test "$2" = conftestfile
  686. )
  687. then
  688. # Ok.
  689. :
  690. else
  691. { echo "configure: error: newly created file is older than distributed files!
  692. Check your system clock" 1>&2; exit 1; }
  693. fi
  694. rm -f conftest*
  695. echo "$ac_t""yes" 1>&6
  696. if test "$program_transform_name" = s,x,x,; then
  697. program_transform_name=
  698. else
  699. # Double any \ or $. echo might interpret backslashes.
  700. cat <<\EOF_SED > conftestsed
  701. s,\\,\\\\,g; s,\$,$$,g
  702. EOF_SED
  703. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  704. rm -f conftestsed
  705. fi
  706. test "$program_prefix" != NONE &&
  707. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  708. # Use a double $ so make ignores it.
  709. test "$program_suffix" != NONE &&
  710. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  711. # sed with no file args requires a program.
  712. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  713. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  714. echo "configure:804: checking whether ${MAKE-make} sets \${MAKE}" >&5
  715. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  716. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  717. echo $ac_n "(cached) $ac_c" 1>&6
  718. else
  719. cat > conftestmake <<\EOF
  720. all:
  721. @echo 'ac_maketemp="${MAKE}"'
  722. EOF
  723. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  724. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  725. if test -n "$ac_maketemp"; then
  726. eval ac_cv_prog_make_${ac_make}_set=yes
  727. else
  728. eval ac_cv_prog_make_${ac_make}_set=no
  729. fi
  730. rm -f conftestmake
  731. fi
  732. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  733. echo "$ac_t""yes" 1>&6
  734. SET_MAKE=
  735. else
  736. echo "$ac_t""no" 1>&6
  737. SET_MAKE="MAKE=${MAKE-make}"
  738. fi
  739. PACKAGE=libltdl
  740. VERSION=1.1
  741. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  742. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  743. fi
  744. missing_dir=`cd $ac_aux_dir && pwd`
  745. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  746. echo "configure:843: checking for working aclocal" >&5
  747. # Run test in a subshell; some versions of sh will print an error if
  748. # an executable is not found, even if stderr is redirected.
  749. # Redirect stdin to placate older versions of autoconf. Sigh.
  750. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  751. ACLOCAL=aclocal
  752. echo "$ac_t""found" 1>&6
  753. else
  754. ACLOCAL="$missing_dir/missing aclocal"
  755. echo "$ac_t""missing" 1>&6
  756. fi
  757. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  758. echo "configure:856: checking for working autoconf" >&5
  759. # Run test in a subshell; some versions of sh will print an error if
  760. # an executable is not found, even if stderr is redirected.
  761. # Redirect stdin to placate older versions of autoconf. Sigh.
  762. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  763. AUTOCONF=autoconf
  764. echo "$ac_t""found" 1>&6
  765. else
  766. AUTOCONF="$missing_dir/missing autoconf"
  767. echo "$ac_t""missing" 1>&6
  768. fi
  769. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  770. echo "configure:869: checking for working automake" >&5
  771. # Run test in a subshell; some versions of sh will print an error if
  772. # an executable is not found, even if stderr is redirected.
  773. # Redirect stdin to placate older versions of autoconf. Sigh.
  774. if (automake --version) < /dev/null > /dev/null 2>&1; then
  775. AUTOMAKE=automake
  776. echo "$ac_t""found" 1>&6
  777. else
  778. AUTOMAKE="$missing_dir/missing automake"
  779. echo "$ac_t""missing" 1>&6
  780. fi
  781. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  782. echo "configure:882: checking for working autoheader" >&5
  783. # Run test in a subshell; some versions of sh will print an error if
  784. # an executable is not found, even if stderr is redirected.
  785. # Redirect stdin to placate older versions of autoconf. Sigh.
  786. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  787. AUTOHEADER=autoheader
  788. echo "$ac_t""found" 1>&6
  789. else
  790. AUTOHEADER="$missing_dir/missing autoheader"
  791. echo "$ac_t""missing" 1>&6
  792. fi
  793. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  794. echo "configure:895: checking for working makeinfo" >&5
  795. # Run test in a subshell; some versions of sh will print an error if
  796. # an executable is not found, even if stderr is redirected.
  797. # Redirect stdin to placate older versions of autoconf. Sigh.
  798. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  799. MAKEINFO=makeinfo
  800. echo "$ac_t""found" 1>&6
  801. else
  802. MAKEINFO="$missing_dir/missing makeinfo"
  803. echo "$ac_t""missing" 1>&6
  804. fi
  805. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  806. echo "configure:912: checking whether to enable maintainer-specific portions of Makefiles" >&5
  807. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  808. if test "${enable_maintainer_mode+set}" = set; then
  809. enableval="$enable_maintainer_mode"
  810. USE_MAINTAINER_MODE=$enableval
  811. else
  812. USE_MAINTAINER_MODE=no
  813. fi
  814. echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  815. if test $USE_MAINTAINER_MODE = yes; then
  816. MAINTAINER_MODE_TRUE=
  817. MAINTAINER_MODE_FALSE='#'
  818. else
  819. MAINTAINER_MODE_TRUE='#'
  820. MAINTAINER_MODE_FALSE=
  821. fi
  822. MAINT=$MAINTAINER_MODE_TRUE
  823. # Extract the first word of "gcc", so it can be a program name with args.
  824. set dummy gcc; ac_word=$2
  825. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  826. echo "configure:938: checking for $ac_word" >&5
  827. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  828. echo $ac_n "(cached) $ac_c" 1>&6
  829. else
  830. if test -n "$CC"; then
  831. ac_cv_prog_CC="$CC" # Let the user override the test.
  832. else
  833. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  834. ac_dummy="$PATH"
  835. for ac_dir in $ac_dummy; do
  836. test -z "$ac_dir" && ac_dir=.
  837. if test -f $ac_dir/$ac_word; then
  838. ac_cv_prog_CC="gcc"
  839. break
  840. fi
  841. done
  842. IFS="$ac_save_ifs"
  843. fi
  844. fi
  845. CC="$ac_cv_prog_CC"
  846. if test -n "$CC"; then
  847. echo "$ac_t""$CC" 1>&6
  848. else
  849. echo "$ac_t""no" 1>&6
  850. fi
  851. if test -z "$CC"; then
  852. # Extract the first word of "cc", so it can be a program name with args.
  853. set dummy cc; ac_word=$2
  854. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  855. echo "configure:968: checking for $ac_word" >&5
  856. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  857. echo $ac_n "(cached) $ac_c" 1>&6
  858. else
  859. if test -n "$CC"; then
  860. ac_cv_prog_CC="$CC" # Let the user override the test.
  861. else
  862. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  863. ac_prog_rejected=no
  864. ac_dummy="$PATH"
  865. for ac_dir in $ac_dummy; do
  866. test -z "$ac_dir" && ac_dir=.
  867. if test -f $ac_dir/$ac_word; then
  868. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  869. ac_prog_rejected=yes
  870. continue
  871. fi
  872. ac_cv_prog_CC="cc"
  873. break
  874. fi
  875. done
  876. IFS="$ac_save_ifs"
  877. if test $ac_prog_rejected = yes; then
  878. # We found a bogon in the path, so make sure we never use it.
  879. set dummy $ac_cv_prog_CC
  880. shift
  881. if test $# -gt 0; then
  882. # We chose a different compiler from the bogus one.
  883. # However, it has the same basename, so the bogon will be chosen
  884. # first if we set CC to just the basename; use the full file name.
  885. shift
  886. set dummy "$ac_dir/$ac_word" "$@"
  887. shift
  888. ac_cv_prog_CC="$@"
  889. fi
  890. fi
  891. fi
  892. fi
  893. CC="$ac_cv_prog_CC"
  894. if test -n "$CC"; then
  895. echo "$ac_t""$CC" 1>&6
  896. else
  897. echo "$ac_t""no" 1>&6
  898. fi
  899. if test -z "$CC"; then
  900. case "`uname -s`" in
  901. *win32* | *WIN32*)
  902. # Extract the first word of "cl", so it can be a program name with args.
  903. set dummy cl; ac_word=$2
  904. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  905. echo "configure:1019: checking for $ac_word" >&5
  906. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  907. echo $ac_n "(cached) $ac_c" 1>&6
  908. else
  909. if test -n "$CC"; then
  910. ac_cv_prog_CC="$CC" # Let the user override the test.
  911. else
  912. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  913. ac_dummy="$PATH"
  914. for ac_dir in $ac_dummy; do
  915. test -z "$ac_dir" && ac_dir=.
  916. if test -f $ac_dir/$ac_word; then
  917. ac_cv_prog_CC="cl"
  918. break
  919. fi
  920. done
  921. IFS="$ac_save_ifs"
  922. fi
  923. fi
  924. CC="$ac_cv_prog_CC"
  925. if test -n "$CC"; then
  926. echo "$ac_t""$CC" 1>&6
  927. else
  928. echo "$ac_t""no" 1>&6
  929. fi
  930. ;;
  931. esac
  932. fi
  933. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  934. fi
  935. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  936. echo "configure:1051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  937. ac_ext=c
  938. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  939. ac_cpp='$CPP $CPPFLAGS'
  940. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  941. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  942. cross_compiling=$ac_cv_prog_cc_cross
  943. cat > conftest.$ac_ext << EOF
  944. #line 1062 "configure"
  945. #include "confdefs.h"
  946. main(){return(0);}
  947. EOF
  948. if { (eval echo configure:1067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  949. ac_cv_prog_cc_works=yes
  950. # If we can't run a trivial program, we are probably using a cross compiler.
  951. if (./conftest; exit) 2>/dev/null; then
  952. ac_cv_prog_cc_cross=no
  953. else
  954. ac_cv_prog_cc_cross=yes
  955. fi
  956. else
  957. echo "configure: failed program was:" >&5
  958. cat conftest.$ac_ext >&5
  959. ac_cv_prog_cc_works=no
  960. fi
  961. rm -fr conftest*
  962. ac_ext=c
  963. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  964. ac_cpp='$CPP $CPPFLAGS'
  965. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  966. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  967. cross_compiling=$ac_cv_prog_cc_cross
  968. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  969. if test $ac_cv_prog_cc_works = no; then
  970. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  971. fi
  972. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  973. echo "configure:1093: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  974. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  975. cross_compiling=$ac_cv_prog_cc_cross
  976. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  977. echo "configure:1098: checking whether we are using GNU C" >&5
  978. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  979. echo $ac_n "(cached) $ac_c" 1>&6
  980. else
  981. cat > conftest.c <<EOF
  982. #ifdef __GNUC__
  983. yes;
  984. #endif
  985. EOF
  986. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  987. ac_cv_prog_gcc=yes
  988. else
  989. ac_cv_prog_gcc=no
  990. fi
  991. fi
  992. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  993. if test $ac_cv_prog_gcc = yes; then
  994. GCC=yes
  995. else
  996. GCC=
  997. fi
  998. ac_test_CFLAGS="${CFLAGS+set}"
  999. ac_save_CFLAGS="$CFLAGS"
  1000. CFLAGS=
  1001. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1002. echo "configure:1126: checking whether ${CC-cc} accepts -g" >&5
  1003. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1004. echo $ac_n "(cached) $ac_c" 1>&6
  1005. else
  1006. echo 'void f(){}' > conftest.c
  1007. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1008. ac_cv_prog_cc_g=yes
  1009. else
  1010. ac_cv_prog_cc_g=no
  1011. fi
  1012. rm -f conftest*
  1013. fi
  1014. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1015. if test "$ac_test_CFLAGS" = set; then
  1016. CFLAGS="$ac_save_CFLAGS"
  1017. elif test $ac_cv_prog_cc_g = yes; then
  1018. if test "$GCC" = yes; then
  1019. CFLAGS="-g -O2"
  1020. else
  1021. CFLAGS="-g"
  1022. fi
  1023. else
  1024. if test "$GCC" = yes; then
  1025. CFLAGS="-O2"
  1026. else
  1027. CFLAGS=
  1028. fi
  1029. fi
  1030. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1031. echo "configure:1158: checking for working const" >&5
  1032. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1033. echo $ac_n "(cached) $ac_c" 1>&6
  1034. else
  1035. cat > conftest.$ac_ext <<EOF
  1036. #line 1163 "configure"
  1037. #include "confdefs.h"
  1038. int main() {
  1039. /* Ultrix mips cc rejects this. */
  1040. typedef int charset[2]; const charset x;
  1041. /* SunOS 4.1.1 cc rejects this. */
  1042. char const *const *ccp;
  1043. char **p;
  1044. /* NEC SVR4.0.2 mips cc rejects this. */
  1045. struct point {int x, y;};
  1046. static struct point const zero = {0,0};
  1047. /* AIX XL C 1.02.0.0 rejects this.
  1048. It does not let you subtract one const X* pointer from another in an arm
  1049. of an if-expression whose if-part is not a constant expression */
  1050. const char *g = "string";
  1051. ccp = &g + (g ? g-g : 0);
  1052. /* HPUX 7.0 cc rejects these. */
  1053. ++ccp;
  1054. p = (char**) ccp;
  1055. ccp = (char const *const *) p;
  1056. { /* SCO 3.2v4 cc rejects this. */
  1057. char *t;
  1058. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1059. *t++ = 0;
  1060. }
  1061. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1062. int x[] = {25, 17};
  1063. const int *foo = &x[0];
  1064. ++foo;
  1065. }
  1066. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1067. typedef const int *iptr;
  1068. iptr p = 0;
  1069. ++p;
  1070. }
  1071. { /* AIX XL C 1.02.0.0 rejects this saying
  1072. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1073. struct s { int j; const int *ap[3]; };
  1074. struct s *b; b->j = 5;
  1075. }
  1076. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1077. const int foo = 10;
  1078. }
  1079. ; return 0; }
  1080. EOF
  1081. if { (eval echo configure:1212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1082. rm -rf conftest*
  1083. ac_cv_c_const=yes
  1084. else
  1085. echo "configure: failed program was:" >&5
  1086. cat conftest.$ac_ext >&5
  1087. rm -rf conftest*
  1088. ac_cv_c_const=no
  1089. fi
  1090. rm -f conftest*
  1091. fi
  1092. echo "$ac_t""$ac_cv_c_const" 1>&6
  1093. if test $ac_cv_c_const = no; then
  1094. cat >> confdefs.h <<\EOF
  1095. #define const
  1096. EOF
  1097. fi
  1098. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1099. echo "configure:1233: checking for inline" >&5
  1100. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1101. echo $ac_n "(cached) $ac_c" 1>&6
  1102. else
  1103. ac_cv_c_inline=no
  1104. for ac_kw in inline __inline__ __inline; do
  1105. cat > conftest.$ac_ext <<EOF
  1106. #line 1240 "configure"
  1107. #include "confdefs.h"
  1108. int main() {
  1109. } $ac_kw foo() {
  1110. ; return 0; }
  1111. EOF
  1112. if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1113. rm -rf conftest*
  1114. ac_cv_c_inline=$ac_kw; break
  1115. else
  1116. echo "configure: failed program was:" >&5
  1117. cat conftest.$ac_ext >&5
  1118. fi
  1119. rm -f conftest*
  1120. done
  1121. fi
  1122. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1123. case "$ac_cv_c_inline" in
  1124. inline | yes) ;;
  1125. no) cat >> confdefs.h <<\EOF
  1126. #define inline
  1127. EOF
  1128. ;;
  1129. *) cat >> confdefs.h <<EOF
  1130. #define inline $ac_cv_c_inline
  1131. EOF
  1132. ;;
  1133. esac
  1134. # Check whether --enable-shared or --disable-shared was given.
  1135. if test "${enable_shared+set}" = set; then
  1136. enableval="$enable_shared"
  1137. p=${PACKAGE-default}
  1138. case "$enableval" in
  1139. yes) enable_shared=yes ;;
  1140. no) enable_shared=no ;;
  1141. *)
  1142. enable_shared=no
  1143. # Look at the argument we got. We use all the common list separators.
  1144. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1145. for pkg in $enableval; do
  1146. if test "X$pkg" = "X$p"; then
  1147. enable_shared=yes
  1148. fi
  1149. done
  1150. IFS="$ac_save_ifs"
  1151. ;;
  1152. esac
  1153. else
  1154. enable_shared=yes
  1155. fi
  1156. # Check whether --enable-static or --disable-static was given.
  1157. if test "${enable_static+set}" = set; then
  1158. enableval="$enable_static"
  1159. p=${PACKAGE-default}
  1160. case "$enableval" in
  1161. yes) enable_static=yes ;;
  1162. no) enable_static=no ;;
  1163. *)
  1164. enable_static=no
  1165. # Look at the argument we got. We use all the common list separators.
  1166. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1167. for pkg in $enableval; do
  1168. if test "X$pkg" = "X$p"; then
  1169. enable_static=yes
  1170. fi
  1171. done
  1172. IFS="$ac_save_ifs"
  1173. ;;
  1174. esac
  1175. else
  1176. enable_static=yes
  1177. fi
  1178. # Check whether --enable-fast-install or --disable-fast-install was given.
  1179. if test "${enable_fast_install+set}" = set; then
  1180. enableval="$enable_fast_install"
  1181. p=${PACKAGE-default}
  1182. case "$enableval" in
  1183. yes) enable_fast_install=yes ;;
  1184. no) enable_fast_install=no ;;
  1185. *)
  1186. enable_fast_install=no
  1187. # Look at the argument we got. We use all the common list separators.
  1188. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1189. for pkg in $enableval; do
  1190. if test "X$pkg" = "X$p"; then
  1191. enable_fast_install=yes
  1192. fi
  1193. done
  1194. IFS="$ac_save_ifs"
  1195. ;;
  1196. esac
  1197. else
  1198. enable_fast_install=yes
  1199. fi
  1200. # Make sure we can run config.sub.
  1201. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1202. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1203. fi
  1204. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1205. echo "configure:1350: checking host system type" >&5
  1206. host_alias=$host
  1207. case "$host_alias" in
  1208. NONE)
  1209. case $nonopt in
  1210. NONE)
  1211. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1212. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1213. fi ;;
  1214. *) host_alias=$nonopt ;;
  1215. esac ;;
  1216. esac
  1217. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1218. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1219. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1220. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1221. echo "$ac_t""$host" 1>&6
  1222. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1223. echo "configure:1371: checking build system type" >&5
  1224. build_alias=$build
  1225. case "$build_alias" in
  1226. NONE)
  1227. case $nonopt in
  1228. NONE) build_alias=$host_alias ;;
  1229. *) build_alias=$nonopt ;;
  1230. esac ;;
  1231. esac
  1232. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1233. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1234. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1235. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1236. echo "$ac_t""$build" 1>&6
  1237. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1238. if test "${with_gnu_ld+set}" = set; then
  1239. withval="$with_gnu_ld"
  1240. test "$withval" = no || with_gnu_ld=yes
  1241. else
  1242. with_gnu_ld=no
  1243. fi
  1244. ac_prog=ld
  1245. if test "$ac_cv_prog_gcc" = yes; then
  1246. # Check if gcc -print-prog-name=ld gives a path.
  1247. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1248. echo "configure:1400: checking for ld used by GCC" >&5
  1249. case $host in
  1250. *-*-mingw*)
  1251. # gcc leaves a trailing carriage return which upsets mingw
  1252. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1253. *)
  1254. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1255. esac
  1256. case "$ac_prog" in
  1257. # Accept absolute paths.
  1258. [\\/]* | [A-Za-z]:[\\/]*)
  1259. re_direlt='/[^/][^/]*/\.\./'
  1260. # Canonicalize the path of ld
  1261. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1262. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1263. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1264. done
  1265. test -z "$LD" && LD="$ac_prog"
  1266. ;;
  1267. "")
  1268. # If it fails, then pretend we aren't using GCC.
  1269. ac_prog=ld
  1270. ;;
  1271. *)
  1272. # If it is relative, then search for the first ld in PATH.
  1273. with_gnu_ld=unknown
  1274. ;;
  1275. esac
  1276. elif test "$with_gnu_ld" = yes; then
  1277. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1278. echo "configure:1430: checking for GNU ld" >&5
  1279. else
  1280. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1281. echo "configure:1433: checking for non-GNU ld" >&5
  1282. fi
  1283. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1284. echo $ac_n "(cached) $ac_c" 1>&6
  1285. else
  1286. if test -z "$LD"; then
  1287. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1288. for ac_dir in $PATH; do
  1289. test -z "$ac_dir" && ac_dir=.
  1290. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1291. ac_cv_path_LD="$ac_dir/$ac_prog"
  1292. # Check to see if the program is GNU ld. I'd rather use --version,
  1293. # but apparently some GNU ld's only accept -v.
  1294. # Break only if it was the GNU/non-GNU ld that we prefer.
  1295. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1296. test "$with_gnu_ld" != no && break
  1297. else
  1298. test "$with_gnu_ld" != yes && break
  1299. fi
  1300. fi
  1301. done
  1302. IFS="$ac_save_ifs"
  1303. else
  1304. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1305. fi
  1306. fi
  1307. LD="$ac_cv_path_LD"
  1308. if test -n "$LD"; then
  1309. echo "$ac_t""$LD" 1>&6
  1310. else
  1311. echo "$ac_t""no" 1>&6
  1312. fi
  1313. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1314. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1315. echo "configure:1468: checking if the linker ($LD) is GNU ld" >&5
  1316. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1317. echo $ac_n "(cached) $ac_c" 1>&6
  1318. else
  1319. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1320. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1321. ac_cv_prog_gnu_ld=yes
  1322. else
  1323. ac_cv_prog_gnu_ld=no
  1324. fi
  1325. fi
  1326. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1327. with_gnu_ld=$ac_cv_prog_gnu_ld
  1328. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  1329. echo "configure:1485: checking for $LD option to reload object files" >&5
  1330. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  1331. echo $ac_n "(cached) $ac_c" 1>&6
  1332. else
  1333. lt_cv_ld_reload_flag='-r'
  1334. fi
  1335. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  1336. reload_flag=$lt_cv_ld_reload_flag
  1337. test -n "$reload_flag" && reload_flag=" $reload_flag"
  1338. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1339. echo "configure:1497: checking for BSD-compatible nm" >&5
  1340. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1341. echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343. if test -n "$NM"; then
  1344. # Let the user override the test.
  1345. ac_cv_path_NM="$NM"
  1346. else
  1347. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1348. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1349. test -z "$ac_dir" && ac_dir=.
  1350. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1351. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  1352. # Check to see if the nm accepts a BSD-compat flag.
  1353. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1354. # nm: unknown option "B" ignored
  1355. # Tru64's nm complains that /dev/null is an invalid object file
  1356. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  1357. ac_cv_path_NM="$tmp_nm -B"
  1358. break
  1359. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1360. ac_cv_path_NM="$tmp_nm -p"
  1361. break
  1362. else
  1363. ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
  1364. continue # so that we can try to find one that supports BSD flags
  1365. fi
  1366. fi
  1367. done
  1368. IFS="$ac_save_ifs"
  1369. test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1370. fi
  1371. fi
  1372. NM="$ac_cv_path_NM"
  1373. echo "$ac_t""$NM" 1>&6
  1374. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1375. echo "configure:1535: checking whether ln -s works" >&5
  1376. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1377. echo $ac_n "(cached) $ac_c" 1>&6
  1378. else
  1379. rm -f conftestdata
  1380. if ln -s X conftestdata 2>/dev/null
  1381. then
  1382. rm -f conftestdata
  1383. ac_cv_prog_LN_S="ln -s"
  1384. else
  1385. ac_cv_prog_LN_S=ln
  1386. fi
  1387. fi
  1388. LN_S="$ac_cv_prog_LN_S"
  1389. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1390. echo "$ac_t""yes" 1>&6
  1391. else
  1392. echo "$ac_t""no" 1>&6
  1393. fi
  1394. echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  1395. echo "configure:1556: checking how to recognise dependant libraries" >&5
  1396. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  1397. echo $ac_n "(cached) $ac_c" 1>&6
  1398. else
  1399. lt_cv_file_magic_cmd='${MAGIC}'
  1400. lt_cv_file_magic_test_file=
  1401. lt_cv_deplibs_check_method='unknown'
  1402. # Need to set the preceding variable on all platforms that support
  1403. # interlibrary dependencies.
  1404. # 'none' -- dependencies not supported.
  1405. # `unknown' -- same as none, but documents that we really don't know.
  1406. # 'pass_all' -- all dependencies passed with no checks.
  1407. # 'test_compile' -- check by making test program.
  1408. # 'file_magic [regex]' -- check by looking for files in library path
  1409. # which responds to the $file_magic_cmd with a given egrep regex.
  1410. # If you have `file' or equivalent on your system and you're not sure
  1411. # whether `pass_all' will *always* work, you probably want this one.
  1412. case "$host_os" in
  1413. aix4*)
  1414. lt_cv_deplibs_check_method=pass_all
  1415. ;;
  1416. beos*)
  1417. lt_cv_deplibs_check_method=pass_all
  1418. ;;
  1419. bsdi4*)
  1420. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  1421. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1422. lt_cv_file_magic_test_file=/shlib/libc.so
  1423. ;;
  1424. cygwin* | mingw*)
  1425. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1426. lt_cv_file_magic_cmd='${OBJDUMP} -f'
  1427. ;;
  1428. freebsd* )
  1429. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1430. case "$host_cpu" in
  1431. i*86 )
  1432. # Not sure whether the presence of OpenBSD here was a mistake.
  1433. # Let's accept both of them until this is cleared up.
  1434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  1435. lt_cv_file_magic_cmd=/usr/bin/file
  1436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1437. ;;
  1438. esac
  1439. else
  1440. lt_cv_deplibs_check_method=pass_all
  1441. fi
  1442. ;;
  1443. gnu*)
  1444. lt_cv_deplibs_check_method=pass_all
  1445. ;;
  1446. hpux10.20*)
  1447. # TODO: Does this work for hpux-11 too?
  1448. lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
  1449. lt_cv_file_magic_cmd=/usr/bin/file
  1450. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1451. ;;
  1452. irix5* | irix6*)
  1453. case "$host_os" in
  1454. irix5*)
  1455. # this will be overridden with pass_all, but let us keep it just in case
  1456. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1457. ;;
  1458. *)
  1459. case "$LD" in
  1460. *-32|*"-32 ") libmagic=32-bit;;
  1461. *-n32|*"-n32 ") libmagic=N32;;
  1462. *-64|*"-64 ") libmagic=64-bit;;
  1463. *) libmagic=never-match;;
  1464. esac
  1465. # this will be overridden with pass_all, but let us keep it just in case
  1466. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  1467. ;;
  1468. esac
  1469. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1470. lt_cv_deplibs_check_method=pass_all
  1471. ;;
  1472. # This must be Linux ELF.
  1473. linux-gnu*)
  1474. case "$host_cpu" in
  1475. alpha* | i*86 | powerpc* | sparc* | ia64* )
  1476. lt_cv_deplibs_check_method=pass_all ;;
  1477. *)
  1478. # glibc up to 2.1.1 does not perform some relocations on ARM
  1479. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  1480. esac
  1481. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1482. ;;
  1483. netbsd*)
  1484. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
  1485. else
  1486. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  1487. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1488. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1489. fi
  1490. ;;
  1491. osf3* | osf4* | osf5*)
  1492. # this will be overridden with pass_all, but let us keep it just in case
  1493. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1494. lt_cv_file_magic_test_file=/shlib/libc.so
  1495. lt_cv_deplibs_check_method=pass_all
  1496. ;;
  1497. sco3.2v5*)
  1498. lt_cv_deplibs_check_method=pass_all
  1499. ;;
  1500. solaris*)
  1501. lt_cv_deplibs_check_method=pass_all
  1502. lt_cv_file_magic_test_file=/lib/libc.so
  1503. ;;
  1504. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1505. case "$host_vendor" in
  1506. ncr)
  1507. lt_cv_deplibs_check_method=pass_all
  1508. ;;
  1509. motorola)
  1510. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  1511. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1512. ;;
  1513. esac
  1514. ;;
  1515. esac
  1516. fi
  1517. echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  1518. file_magic_cmd=$lt_cv_file_magic_cmd
  1519. deplibs_check_method=$lt_cv_deplibs_check_method
  1520. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  1521. echo "configure:1699: checking for object suffix" >&5
  1522. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  1523. echo $ac_n "(cached) $ac_c" 1>&6
  1524. else
  1525. rm -f conftest*
  1526. echo 'int i = 1;' > conftest.$ac_ext
  1527. if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1528. for ac_file in conftest.*; do
  1529. case $ac_file in
  1530. *.c) ;;
  1531. *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  1532. esac
  1533. done
  1534. else
  1535. { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  1536. fi
  1537. rm -f conftest*
  1538. fi
  1539. echo "$ac_t""$ac_cv_objext" 1>&6
  1540. OBJEXT=$ac_cv_objext
  1541. ac_objext=$ac_cv_objext
  1542. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1543. echo "configure:1725: checking for executable suffix" >&5
  1544. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1545. echo $ac_n "(cached) $ac_c" 1>&6
  1546. else
  1547. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1548. ac_cv_exeext=.exe
  1549. else
  1550. rm -f conftest*
  1551. echo 'int main () { return 0; }' > conftest.$ac_ext
  1552. ac_cv_exeext=
  1553. if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1554. for file in conftest.*; do
  1555. case $file in
  1556. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  1557. *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1558. esac
  1559. done
  1560. else
  1561. { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1562. fi
  1563. rm -f conftest*
  1564. test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1565. fi
  1566. fi
  1567. EXEEXT=""
  1568. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1569. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1570. ac_exeext=$EXEEXT
  1571. if test $host != $build; then
  1572. ac_tool_prefix=${host_alias}-
  1573. else
  1574. ac_tool_prefix=
  1575. fi
  1576. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  1577. # Only perform the check for file, if the check method requires it
  1578. case "$deplibs_check_method" in
  1579. file_magic*)
  1580. if test "$file_magic_cmd" = '${MAGIC}'; then
  1581. echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  1582. echo "configure:1768: checking for ${ac_tool_prefix}file" >&5
  1583. if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
  1584. echo $ac_n "(cached) $ac_c" 1>&6
  1585. else
  1586. case "$MAGIC" in
  1587. /*)
  1588. lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
  1589. ;;
  1590. ?:/*)
  1591. ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
  1592. ;;
  1593. *)
  1594. ac_save_MAGIC="$MAGIC"
  1595. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1596. ac_dummy="/usr/bin:$PATH"
  1597. for ac_dir in $ac_dummy; do
  1598. test -z "$ac_dir" && ac_dir=.
  1599. if test -f $ac_dir/${ac_tool_prefix}file; then
  1600. lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
  1601. if test -n "$file_magic_test_file"; then
  1602. case "$deplibs_check_method" in
  1603. "file_magic "*)
  1604. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1605. MAGIC="$lt_cv_path_MAGIC"
  1606. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1607. egrep "$file_magic_regex" > /dev/null; then
  1608. :
  1609. else
  1610. cat <<EOF 1>&2
  1611. *** Warning: the command libtool uses to detect shared libraries,
  1612. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1613. *** The result is that libtool may fail to recognize shared libraries
  1614. *** as such. This will affect the creation of libtool libraries that
  1615. *** depend on shared libraries, but programs linked with such libtool
  1616. *** libraries will work regardless of this problem. Nevertheless, you
  1617. *** may want to report the problem to your system manager and/or to
  1618. *** bug-libtool@gnu.org
  1619. EOF
  1620. fi ;;
  1621. esac
  1622. fi
  1623. break
  1624. fi
  1625. done
  1626. IFS="$ac_save_ifs"
  1627. MAGIC="$ac_save_MAGIC"
  1628. ;;
  1629. esac
  1630. fi
  1631. MAGIC="$lt_cv_path_MAGIC"
  1632. if test -n "$MAGIC"; then
  1633. echo "$ac_t""$MAGIC" 1>&6
  1634. else
  1635. echo "$ac_t""no" 1>&6
  1636. fi
  1637. if test -z "$lt_cv_path_MAGIC"; then
  1638. if test -n "$ac_tool_prefix"; then
  1639. echo $ac_n "checking for file""... $ac_c" 1>&6
  1640. echo "configure:1830: checking for file" >&5
  1641. if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
  1642. echo $ac_n "(cached) $ac_c" 1>&6
  1643. else
  1644. case "$MAGIC" in
  1645. /*)
  1646. lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
  1647. ;;
  1648. ?:/*)
  1649. ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
  1650. ;;
  1651. *)
  1652. ac_save_MAGIC="$MAGIC"
  1653. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1654. ac_dummy="/usr/bin:$PATH"
  1655. for ac_dir in $ac_dummy; do
  1656. test -z "$ac_dir" && ac_dir=.
  1657. if test -f $ac_dir/file; then
  1658. lt_cv_path_MAGIC="$ac_dir/file"
  1659. if test -n "$file_magic_test_file"; then
  1660. case "$deplibs_check_method" in
  1661. "file_magic "*)
  1662. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1663. MAGIC="$lt_cv_path_MAGIC"
  1664. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1665. egrep "$file_magic_regex" > /dev/null; then
  1666. :
  1667. else
  1668. cat <<EOF 1>&2
  1669. *** Warning: the command libtool uses to detect shared libraries,
  1670. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1671. *** The result is that libtool may fail to recognize shared libraries
  1672. *** as such. This will affect the creation of libtool libraries that
  1673. *** depend on shared libraries, but programs linked with such libtool
  1674. *** libraries will work regardless of this problem. Nevertheless, you
  1675. *** may want to report the problem to your system manager and/or to
  1676. *** bug-libtool@gnu.org
  1677. EOF
  1678. fi ;;
  1679. esac
  1680. fi
  1681. break
  1682. fi
  1683. done
  1684. IFS="$ac_save_ifs"
  1685. MAGIC="$ac_save_MAGIC"
  1686. ;;
  1687. esac
  1688. fi
  1689. MAGIC="$lt_cv_path_MAGIC"
  1690. if test -n "$MAGIC"; then
  1691. echo "$ac_t""$MAGIC" 1>&6
  1692. else
  1693. echo "$ac_t""no" 1>&6
  1694. fi
  1695. else
  1696. MAGIC=:
  1697. fi
  1698. fi
  1699. fi
  1700. ;;
  1701. esac
  1702. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1703. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1704. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1705. echo "configure:1901: checking for $ac_word" >&5
  1706. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1707. echo $ac_n "(cached) $ac_c" 1>&6
  1708. else
  1709. if test -n "$RANLIB"; then
  1710. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1711. else
  1712. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1713. ac_dummy="$PATH"
  1714. for ac_dir in $ac_dummy; do
  1715. test -z "$ac_dir" && ac_dir=.
  1716. if test -f $ac_dir/$ac_word; then
  1717. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1718. break
  1719. fi
  1720. done
  1721. IFS="$ac_save_ifs"
  1722. fi
  1723. fi
  1724. RANLIB="$ac_cv_prog_RANLIB"
  1725. if test -n "$RANLIB"; then
  1726. echo "$ac_t""$RANLIB" 1>&6
  1727. else
  1728. echo "$ac_t""no" 1>&6
  1729. fi
  1730. if test -z "$ac_cv_prog_RANLIB"; then
  1731. if test -n "$ac_tool_prefix"; then
  1732. # Extract the first word of "ranlib", so it can be a program name with args.
  1733. set dummy ranlib; ac_word=$2
  1734. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1735. echo "configure:1933: checking for $ac_word" >&5
  1736. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1737. echo $ac_n "(cached) $ac_c" 1>&6
  1738. else
  1739. if test -n "$RANLIB"; then
  1740. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1741. else
  1742. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1743. ac_dummy="$PATH"
  1744. for ac_dir in $ac_dummy; do
  1745. test -z "$ac_dir" && ac_dir=.
  1746. if test -f $ac_dir/$ac_word; then
  1747. ac_cv_prog_RANLIB="ranlib"
  1748. break
  1749. fi
  1750. done
  1751. IFS="$ac_save_ifs"
  1752. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1753. fi
  1754. fi
  1755. RANLIB="$ac_cv_prog_RANLIB"
  1756. if test -n "$RANLIB"; then
  1757. echo "$ac_t""$RANLIB" 1>&6
  1758. else
  1759. echo "$ac_t""no" 1>&6
  1760. fi
  1761. else
  1762. RANLIB=":"
  1763. fi
  1764. fi
  1765. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1766. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1767. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1768. echo "configure:1968: checking for $ac_word" >&5
  1769. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1770. echo $ac_n "(cached) $ac_c" 1>&6
  1771. else
  1772. if test -n "$STRIP"; then
  1773. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1774. else
  1775. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1776. ac_dummy="$PATH"
  1777. for ac_dir in $ac_dummy; do
  1778. test -z "$ac_dir" && ac_dir=.
  1779. if test -f $ac_dir/$ac_word; then
  1780. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1781. break
  1782. fi
  1783. done
  1784. IFS="$ac_save_ifs"
  1785. fi
  1786. fi
  1787. STRIP="$ac_cv_prog_STRIP"
  1788. if test -n "$STRIP"; then
  1789. echo "$ac_t""$STRIP" 1>&6
  1790. else
  1791. echo "$ac_t""no" 1>&6
  1792. fi
  1793. if test -z "$ac_cv_prog_STRIP"; then
  1794. if test -n "$ac_tool_prefix"; then
  1795. # Extract the first word of "strip", so it can be a program name with args.
  1796. set dummy strip; ac_word=$2
  1797. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1798. echo "configure:2000: checking for $ac_word" >&5
  1799. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1800. echo $ac_n "(cached) $ac_c" 1>&6
  1801. else
  1802. if test -n "$STRIP"; then
  1803. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1804. else
  1805. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1806. ac_dummy="$PATH"
  1807. for ac_dir in $ac_dummy; do
  1808. test -z "$ac_dir" && ac_dir=.
  1809. if test -f $ac_dir/$ac_word; then
  1810. ac_cv_prog_STRIP="strip"
  1811. break
  1812. fi
  1813. done
  1814. IFS="$ac_save_ifs"
  1815. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  1816. fi
  1817. fi
  1818. STRIP="$ac_cv_prog_STRIP"
  1819. if test -n "$STRIP"; then
  1820. echo "$ac_t""$STRIP" 1>&6
  1821. else
  1822. echo "$ac_t""no" 1>&6
  1823. fi
  1824. else
  1825. STRIP=":"
  1826. fi
  1827. fi
  1828. # Check for any special flags to pass to ltconfig.
  1829. libtool_flags="--cache-file=$cache_file"
  1830. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1831. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1832. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  1833. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1834. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1835. libtool_flags="$libtool_flags --enable-win32-dll"
  1836. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  1837. if test "${enable_libtool_lock+set}" = set; then
  1838. enableval="$enable_libtool_lock"
  1839. :
  1840. fi
  1841. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  1842. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  1843. # Check whether --with-pic or --without-pic was given.
  1844. if test "${with_pic+set}" = set; then
  1845. withval="$with_pic"
  1846. pic_mode="$withval"
  1847. else
  1848. pic_mode=default
  1849. fi
  1850. test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  1851. test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  1852. # Some flags need to be propagated to the compiler or linker for good
  1853. # libtool support.
  1854. case "$host" in
  1855. *-*-irix6*)
  1856. # Find out which ABI we are using.
  1857. echo '#line 2067 "configure"' > conftest.$ac_ext
  1858. if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1859. case "`/usr/bin/file conftest.o`" in
  1860. *32-bit*)
  1861. LD="${LD-ld} -32"
  1862. ;;
  1863. *N32*)
  1864. LD="${LD-ld} -n32"
  1865. ;;
  1866. *64-bit*)
  1867. LD="${LD-ld} -64"
  1868. ;;
  1869. esac
  1870. fi
  1871. rm -rf conftest*
  1872. ;;
  1873. *-*-sco3.2v5*)
  1874. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1875. SAVE_CFLAGS="$CFLAGS"
  1876. CFLAGS="$CFLAGS -belf"
  1877. echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  1878. echo "configure:2089: checking whether the C compiler needs -belf" >&5
  1879. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  1880. echo $ac_n "(cached) $ac_c" 1>&6
  1881. else
  1882. ac_ext=c
  1883. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1884. ac_cpp='$CPP $CPPFLAGS'
  1885. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1886. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1887. cross_compiling=$ac_cv_prog_cc_cross
  1888. cat > conftest.$ac_ext <<EOF
  1889. #line 2102 "configure"
  1890. #include "confdefs.h"
  1891. int main() {
  1892. ; return 0; }
  1893. EOF
  1894. if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1895. rm -rf conftest*
  1896. lt_cv_cc_needs_belf=yes
  1897. else
  1898. echo "configure: failed program was:" >&5
  1899. cat conftest.$ac_ext >&5
  1900. rm -rf conftest*
  1901. lt_cv_cc_needs_belf=no
  1902. fi
  1903. rm -f conftest*
  1904. ac_ext=c
  1905. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1906. ac_cpp='$CPP $CPPFLAGS'
  1907. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1908. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1909. cross_compiling=$ac_cv_prog_cc_cross
  1910. fi
  1911. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  1912. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1913. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1914. CFLAGS="$SAVE_CFLAGS"
  1915. fi
  1916. ;;
  1917. *-*-cygwin* | *-*-mingw*)
  1918. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  1919. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  1920. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1921. echo "configure:2139: checking for $ac_word" >&5
  1922. if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1923. echo $ac_n "(cached) $ac_c" 1>&6
  1924. else
  1925. if test -n "$DLLTOOL"; then
  1926. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1927. else
  1928. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1929. ac_dummy="$PATH"
  1930. for ac_dir in $ac_dummy; do
  1931. test -z "$ac_dir" && ac_dir=.
  1932. if test -f $ac_dir/$ac_word; then
  1933. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  1934. break
  1935. fi
  1936. done
  1937. IFS="$ac_save_ifs"
  1938. fi
  1939. fi
  1940. DLLTOOL="$ac_cv_prog_DLLTOOL"
  1941. if test -n "$DLLTOOL"; then
  1942. echo "$ac_t""$DLLTOOL" 1>&6
  1943. else
  1944. echo "$ac_t""no" 1>&6
  1945. fi
  1946. if test -z "$ac_cv_prog_DLLTOOL"; then
  1947. if test -n "$ac_tool_prefix"; then
  1948. # Extract the first word of "dlltool", so it can be a program name with args.
  1949. set dummy dlltool; ac_word=$2
  1950. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1951. echo "configure:2171: checking for $ac_word" >&5
  1952. if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
  1953. echo $ac_n "(cached) $ac_c" 1>&6
  1954. else
  1955. if test -n "$DLLTOOL"; then
  1956. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  1957. else
  1958. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1959. ac_dummy="$PATH"
  1960. for ac_dir in $ac_dummy; do
  1961. test -z "$ac_dir" && ac_dir=.
  1962. if test -f $ac_dir/$ac_word; then
  1963. ac_cv_prog_DLLTOOL="dlltool"
  1964. break
  1965. fi
  1966. done
  1967. IFS="$ac_save_ifs"
  1968. test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
  1969. fi
  1970. fi
  1971. DLLTOOL="$ac_cv_prog_DLLTOOL"
  1972. if test -n "$DLLTOOL"; then
  1973. echo "$ac_t""$DLLTOOL" 1>&6
  1974. else
  1975. echo "$ac_t""no" 1>&6
  1976. fi
  1977. else
  1978. DLLTOOL="false"
  1979. fi
  1980. fi
  1981. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  1982. set dummy ${ac_tool_prefix}as; ac_word=$2
  1983. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1984. echo "configure:2206: checking for $ac_word" >&5
  1985. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1986. echo $ac_n "(cached) $ac_c" 1>&6
  1987. else
  1988. if test -n "$AS"; then
  1989. ac_cv_prog_AS="$AS" # Let the user override the test.
  1990. else
  1991. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1992. ac_dummy="$PATH"
  1993. for ac_dir in $ac_dummy; do
  1994. test -z "$ac_dir" && ac_dir=.
  1995. if test -f $ac_dir/$ac_word; then
  1996. ac_cv_prog_AS="${ac_tool_prefix}as"
  1997. break
  1998. fi
  1999. done
  2000. IFS="$ac_save_ifs"
  2001. fi
  2002. fi
  2003. AS="$ac_cv_prog_AS"
  2004. if test -n "$AS"; then
  2005. echo "$ac_t""$AS" 1>&6
  2006. else
  2007. echo "$ac_t""no" 1>&6
  2008. fi
  2009. if test -z "$ac_cv_prog_AS"; then
  2010. if test -n "$ac_tool_prefix"; then
  2011. # Extract the first word of "as", so it can be a program name with args.
  2012. set dummy as; ac_word=$2
  2013. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2014. echo "configure:2238: checking for $ac_word" >&5
  2015. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  2016. echo $ac_n "(cached) $ac_c" 1>&6
  2017. else
  2018. if test -n "$AS"; then
  2019. ac_cv_prog_AS="$AS" # Let the user override the test.
  2020. else
  2021. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2022. ac_dummy="$PATH"
  2023. for ac_dir in $ac_dummy; do
  2024. test -z "$ac_dir" && ac_dir=.
  2025. if test -f $ac_dir/$ac_word; then
  2026. ac_cv_prog_AS="as"
  2027. break
  2028. fi
  2029. done
  2030. IFS="$ac_save_ifs"
  2031. test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
  2032. fi
  2033. fi
  2034. AS="$ac_cv_prog_AS"
  2035. if test -n "$AS"; then
  2036. echo "$ac_t""$AS" 1>&6
  2037. else
  2038. echo "$ac_t""no" 1>&6
  2039. fi
  2040. else
  2041. AS="false"
  2042. fi
  2043. fi
  2044. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  2045. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  2046. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2047. echo "configure:2273: checking for $ac_word" >&5
  2048. if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  2049. echo $ac_n "(cached) $ac_c" 1>&6
  2050. else
  2051. if test -n "$OBJDUMP"; then
  2052. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  2053. else
  2054. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2055. ac_dummy="$PATH"
  2056. for ac_dir in $ac_dummy; do
  2057. test -z "$ac_dir" && ac_dir=.
  2058. if test -f $ac_dir/$ac_word; then
  2059. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  2060. break
  2061. fi
  2062. done
  2063. IFS="$ac_save_ifs"
  2064. fi
  2065. fi
  2066. OBJDUMP="$ac_cv_prog_OBJDUMP"
  2067. if test -n "$OBJDUMP"; then
  2068. echo "$ac_t""$OBJDUMP" 1>&6
  2069. else
  2070. echo "$ac_t""no" 1>&6
  2071. fi
  2072. if test -z "$ac_cv_prog_OBJDUMP"; then
  2073. if test -n "$ac_tool_prefix"; then
  2074. # Extract the first word of "objdump", so it can be a program name with args.
  2075. set dummy objdump; ac_word=$2
  2076. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2077. echo "configure:2305: checking for $ac_word" >&5
  2078. if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
  2079. echo $ac_n "(cached) $ac_c" 1>&6
  2080. else
  2081. if test -n "$OBJDUMP"; then
  2082. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  2083. else
  2084. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2085. ac_dummy="$PATH"
  2086. for ac_dir in $ac_dummy; do
  2087. test -z "$ac_dir" && ac_dir=.
  2088. if test -f $ac_dir/$ac_word; then
  2089. ac_cv_prog_OBJDUMP="objdump"
  2090. break
  2091. fi
  2092. done
  2093. IFS="$ac_save_ifs"
  2094. test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
  2095. fi
  2096. fi
  2097. OBJDUMP="$ac_cv_prog_OBJDUMP"
  2098. if test -n "$OBJDUMP"; then
  2099. echo "$ac_t""$OBJDUMP" 1>&6
  2100. else
  2101. echo "$ac_t""no" 1>&6
  2102. fi
  2103. else
  2104. OBJDUMP="false"
  2105. fi
  2106. fi
  2107. # recent cygwin and mingw systems supply a stub DllMain which the user
  2108. # can override, but on older systems we have to supply one
  2109. echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
  2110. echo "configure:2341: checking if libtool should supply DllMain function" >&5
  2111. if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
  2112. echo $ac_n "(cached) $ac_c" 1>&6
  2113. else
  2114. cat > conftest.$ac_ext <<EOF
  2115. #line 2346 "configure"
  2116. #include "confdefs.h"
  2117. int main() {
  2118. extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  2119. DllMain (0, 0, 0);
  2120. ; return 0; }
  2121. EOF
  2122. if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2123. rm -rf conftest*
  2124. lt_cv_need_dllmain=no
  2125. else
  2126. echo "configure: failed program was:" >&5
  2127. cat conftest.$ac_ext >&5
  2128. rm -rf conftest*
  2129. lt_cv_need_dllmain=yes
  2130. fi
  2131. rm -f conftest*
  2132. fi
  2133. echo "$ac_t""$lt_cv_need_dllmain" 1>&6
  2134. case "$host/$CC" in
  2135. *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  2136. # old mingw systems require "-dll" to link a DLL, while more recent ones
  2137. # require "-mdll"
  2138. SAVE_CFLAGS="$CFLAGS"
  2139. CFLAGS="$CFLAGS -mdll"
  2140. echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
  2141. echo "configure:2375: checking how to link DLLs" >&5
  2142. if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
  2143. echo $ac_n "(cached) $ac_c" 1>&6
  2144. else
  2145. cat > conftest.$ac_ext <<EOF
  2146. #line 2380 "configure"
  2147. #include "confdefs.h"
  2148. int main() {
  2149. ; return 0; }
  2150. EOF
  2151. if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2152. rm -rf conftest*
  2153. lt_cv_cc_dll_switch=-mdll
  2154. else
  2155. echo "configure: failed program was:" >&5
  2156. cat conftest.$ac_ext >&5
  2157. rm -rf conftest*
  2158. lt_cv_cc_dll_switch=-dll
  2159. fi
  2160. rm -f conftest*
  2161. fi
  2162. echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
  2163. CFLAGS="$SAVE_CFLAGS" ;;
  2164. *-*-cygwin*)
  2165. # cygwin systems need to pass --dll to the linker, and not link
  2166. # crt.o which will require a WinMain@16 definition.
  2167. lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  2168. esac
  2169. ;;
  2170. esac
  2171. # Save cache, so that ltconfig can load it
  2172. cat > confcache <<\EOF
  2173. # This file is a shell script that caches the results of configure
  2174. # tests run on this system so they can be shared between configure
  2175. # scripts and configure runs. It is not useful on other systems.
  2176. # If it contains results you don't want to keep, you may remove or edit it.
  2177. #
  2178. # By default, configure uses ./config.cache as the cache file,
  2179. # creating it if it does not exist already. You can give configure
  2180. # the --cache-file=FILE option to use a different cache file; that is
  2181. # what configure does when it calls configure scripts in
  2182. # subdirectories, so they share the cache.
  2183. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2184. # config.status only pays attention to the cache file if you give it the
  2185. # --recheck option to rerun configure.
  2186. #
  2187. EOF
  2188. # The following way of writing the cache mishandles newlines in values,
  2189. # but we know of no workaround that is simple, portable, and efficient.
  2190. # So, don't put newlines in cache variables' values.
  2191. # Ultrix sh set writes to stderr and can't be redirected directly,
  2192. # and sets the high bit in the cache file unless we assign to the vars.
  2193. (set) 2>&1 |
  2194. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2195. *ac_space=\ *)
  2196. # `set' does not quote correctly, so add quotes (double-quote substitution
  2197. # turns \\\\ into \\, and sed turns \\ into \).
  2198. sed -n \
  2199. -e "s/'/'\\\\''/g" \
  2200. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2201. ;;
  2202. *)
  2203. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2204. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2205. ;;
  2206. esac >> confcache
  2207. if cmp -s $cache_file confcache; then
  2208. :
  2209. else
  2210. if test -w $cache_file; then
  2211. echo "updating cache $cache_file"
  2212. cat confcache > $cache_file
  2213. else
  2214. echo "not updating unwritable cache $cache_file"
  2215. fi
  2216. fi
  2217. rm -f confcache
  2218. # Actually configure libtool. ac_aux_dir is where install-sh is found.
  2219. AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  2220. MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  2221. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  2222. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  2223. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  2224. deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
  2225. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  2226. $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  2227. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  2228. # Reload cache, that may have been modified by ltconfig
  2229. if test -r "$cache_file"; then
  2230. echo "loading cache $cache_file"
  2231. . $cache_file
  2232. else
  2233. echo "creating cache $cache_file"
  2234. > $cache_file
  2235. fi
  2236. # This can be used to rebuild libtool when needed
  2237. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
  2238. # Always use our own libtool.
  2239. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  2240. # Redirect the config.log output again, so that the ltconfig log is not
  2241. # clobbered by the next message.
  2242. exec 5>>./config.log
  2243. echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
  2244. echo "configure:2499: checking for garbage collector to use" >&5
  2245. # Check whether --enable-java-gc or --disable-java-gc was given.
  2246. if test "${enable_java_gc+set}" = set; then
  2247. enableval="$enable_java_gc"
  2248. GC=$enableval
  2249. else
  2250. GC=boehm
  2251. fi
  2252. GCINCS=
  2253. if test "$GC" = "boehm"; then
  2254. GCINCS='-I$(top_srcdir)/../../boehm-gc/include'
  2255. GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
  2256. cat >> confdefs.h <<\EOF
  2257. #define HAVE_BOEHM_GC 1
  2258. EOF
  2259. fi
  2260. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2261. echo "configure:2522: checking how to run the C preprocessor" >&5
  2262. # On Suns, sometimes $CPP names a directory.
  2263. if test -n "$CPP" && test -d "$CPP"; then
  2264. CPP=
  2265. fi
  2266. if test -z "$CPP"; then
  2267. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2268. echo $ac_n "(cached) $ac_c" 1>&6
  2269. else
  2270. # This must be in double quotes, not single quotes, because CPP may get
  2271. # substituted into the Makefile and "${CC-cc}" will confuse make.
  2272. CPP="${CC-cc} -E"
  2273. # On the NeXT, cc -E runs the code through the compiler's parser,
  2274. # not just through cpp.
  2275. cat > conftest.$ac_ext <<EOF
  2276. #line 2537 "configure"
  2277. #include "confdefs.h"
  2278. #include <assert.h>
  2279. Syntax Error
  2280. EOF
  2281. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2282. { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2283. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2284. if test -z "$ac_err"; then
  2285. :
  2286. else
  2287. echo "$ac_err" >&5
  2288. echo "configure: failed program was:" >&5
  2289. cat conftest.$ac_ext >&5
  2290. rm -rf conftest*
  2291. CPP="${CC-cc} -E -traditional-cpp"
  2292. cat > conftest.$ac_ext <<EOF
  2293. #line 2554 "configure"
  2294. #include "confdefs.h"
  2295. #include <assert.h>
  2296. Syntax Error
  2297. EOF
  2298. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2299. { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2300. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2301. if test -z "$ac_err"; then
  2302. :
  2303. else
  2304. echo "$ac_err" >&5
  2305. echo "configure: failed program was:" >&5
  2306. cat conftest.$ac_ext >&5
  2307. rm -rf conftest*
  2308. CPP="${CC-cc} -nologo -E"
  2309. cat > conftest.$ac_ext <<EOF
  2310. #line 2571 "configure"
  2311. #include "confdefs.h"
  2312. #include <assert.h>
  2313. Syntax Error
  2314. EOF
  2315. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2316. { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2317. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2318. if test -z "$ac_err"; then
  2319. :
  2320. else
  2321. echo "$ac_err" >&5
  2322. echo "configure: failed program was:" >&5
  2323. cat conftest.$ac_ext >&5
  2324. rm -rf conftest*
  2325. CPP=/lib/cpp
  2326. fi
  2327. rm -f conftest*
  2328. fi
  2329. rm -f conftest*
  2330. fi
  2331. rm -f conftest*
  2332. ac_cv_prog_CPP="$CPP"
  2333. fi
  2334. CPP="$ac_cv_prog_CPP"
  2335. else
  2336. ac_cv_prog_CPP="$CPP"
  2337. fi
  2338. echo "$ac_t""$CPP" 1>&6
  2339. # Read the libtool configuration
  2340. rm -f conftest
  2341. ./libtool --config > conftest
  2342. . ./conftest
  2343. rm -f conftest
  2344. # Check for command to grab the raw symbol name followed by C symbol from nm.
  2345. echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  2346. echo "configure:2609: checking command to parse $NM output" >&5
  2347. if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  2348. echo $ac_n "(cached) $ac_c" 1>&6
  2349. else
  2350. # These are sane defaults that work on at least a few old systems.
  2351. # {They come from Ultrix. What could be older than Ultrix?!! ;)}
  2352. # Character class describing NM global symbol codes.
  2353. ac_symcode='[BCDEGRST]'
  2354. # Regexp to match symbols that can be accessed directly from C.
  2355. ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  2356. # Transform the above into a raw symbol and a C symbol.
  2357. ac_symxfrm='\1 \2\3 \3'
  2358. # Transform an extracted symbol line into a proper C declaration
  2359. ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  2360. # Define system-specific variables.
  2361. case "$host_os" in
  2362. aix*)
  2363. ac_symcode='[BCDT]'
  2364. ;;
  2365. cygwin* | mingw*)
  2366. ac_symcode='[ABCDGISTW]'
  2367. ;;
  2368. hpux*)
  2369. ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
  2370. ;;
  2371. irix*)
  2372. ac_symcode='[BCDEGRST]'
  2373. ;;
  2374. solaris*)
  2375. ac_symcode='[BDT]'
  2376. ;;
  2377. esac
  2378. # If we're using GNU nm, then use its standard symbol codes.
  2379. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  2380. ac_symcode='[ABCDGISTW]'
  2381. fi
  2382. # Try without a prefix undercore, then with it.
  2383. for ac_symprfx in "" "_"; do
  2384. ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
  2385. # Check to see that the pipe works correctly.
  2386. ac_pipe_works=no
  2387. rm -f conftest.$ac_ext
  2388. cat > conftest.$ac_ext <<EOF
  2389. #ifdef __cplusplus
  2390. extern "C" {
  2391. #endif
  2392. char nm_test_var;
  2393. void nm_test_func(){}
  2394. #ifdef __cplusplus
  2395. }
  2396. #endif
  2397. int main(){nm_test_var='a';nm_test_func;return 0;}
  2398. EOF
  2399. if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2400. # Now try to grab the symbols.
  2401. ac_nlist=conftest.nm
  2402. if { (eval echo configure:2676: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
  2403. # Try sorting and uniquifying the output.
  2404. if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
  2405. mv -f "$ac_nlist"T "$ac_nlist"
  2406. else
  2407. rm -f "$ac_nlist"T
  2408. fi
  2409. # Make sure that we snagged all the symbols we need.
  2410. if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
  2411. if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
  2412. cat <<EOF > conftest.c
  2413. #ifdef __cplusplus
  2414. extern "C" {
  2415. #endif
  2416. EOF
  2417. # Now generate the symbol file.
  2418. eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
  2419. cat <<EOF >> conftest.c
  2420. #if defined (__STDC__) && __STDC__
  2421. # define lt_ptr_t void *
  2422. #else
  2423. # define lt_ptr_t char *
  2424. # define const
  2425. #endif
  2426. /* The mapping between symbol names and symbols. */
  2427. const struct {
  2428. const char *name;
  2429. lt_ptr_t address;
  2430. }
  2431. lt_preloaded_symbols[] =
  2432. {
  2433. EOF
  2434. sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
  2435. cat <<\EOF >> conftest.c
  2436. {0, (lt_ptr_t) 0}
  2437. };
  2438. #ifdef __cplusplus
  2439. }
  2440. #endif
  2441. EOF
  2442. # Now try linking the two files.
  2443. mv conftest.$ac_objext conftstm.$ac_objext
  2444. ac_save_LIBS="$LIBS"
  2445. ac_save_CFLAGS="$CFLAGS"
  2446. LIBS="conftstm.$ac_objext"
  2447. CFLAGS="$CFLAGS$no_builtin_flag"
  2448. if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2449. ac_pipe_works=yes
  2450. else
  2451. echo "configure: failed program was:" >&5
  2452. cat conftest.c >&5
  2453. fi
  2454. LIBS="$ac_save_LIBS"
  2455. CFLAGS="$ac_save_CFLAGS"
  2456. else
  2457. echo "cannot find nm_test_func in $ac_nlist" >&5
  2458. fi
  2459. else
  2460. echo "cannot find nm_test_var in $ac_nlist" >&5
  2461. fi
  2462. else
  2463. echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
  2464. fi
  2465. else
  2466. echo "$progname: failed program was:" >&5
  2467. cat conftest.c >&5
  2468. fi
  2469. rm -rf conftest* conftst*
  2470. # Do not use the global_symbol_pipe unless it works.
  2471. if test "$ac_pipe_works" = yes; then
  2472. if test x"$ac_symprfx" = x"_"; then
  2473. ac_cv_sys_symbol_underscore=yes
  2474. else
  2475. ac_cv_sys_symbol_underscore=no
  2476. fi
  2477. break
  2478. else
  2479. ac_cv_sys_global_symbol_pipe=
  2480. fi
  2481. done
  2482. fi
  2483. ac_result=yes
  2484. if test -z "$ac_cv_sys_global_symbol_pipe"; then
  2485. ac_result=no
  2486. fi
  2487. echo "$ac_t""$ac_result" 1>&6
  2488. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2489. echo "configure:2774: checking for ANSI C header files" >&5
  2490. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2491. echo $ac_n "(cached) $ac_c" 1>&6
  2492. else
  2493. cat > conftest.$ac_ext <<EOF
  2494. #line 2779 "configure"
  2495. #include "confdefs.h"
  2496. #include <stdlib.h>
  2497. #include <stdarg.h>
  2498. #include <string.h>
  2499. #include <float.h>
  2500. EOF
  2501. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2502. { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2503. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2504. if test -z "$ac_err"; then
  2505. rm -rf conftest*
  2506. ac_cv_header_stdc=yes
  2507. else
  2508. echo "$ac_err" >&5
  2509. echo "configure: failed program was:" >&5
  2510. cat conftest.$ac_ext >&5
  2511. rm -rf conftest*
  2512. ac_cv_header_stdc=no
  2513. fi
  2514. rm -f conftest*
  2515. if test $ac_cv_header_stdc = yes; then
  2516. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2517. cat > conftest.$ac_ext <<EOF
  2518. #line 2804 "configure"
  2519. #include "confdefs.h"
  2520. #include <string.h>
  2521. EOF
  2522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2523. egrep "memchr" >/dev/null 2>&1; then
  2524. :
  2525. else
  2526. rm -rf conftest*
  2527. ac_cv_header_stdc=no
  2528. fi
  2529. rm -f conftest*
  2530. fi
  2531. if test $ac_cv_header_stdc = yes; then
  2532. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2533. cat > conftest.$ac_ext <<EOF
  2534. #line 2822 "configure"
  2535. #include "confdefs.h"
  2536. #include <stdlib.h>
  2537. EOF
  2538. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2539. egrep "free" >/dev/null 2>&1; then
  2540. :
  2541. else
  2542. rm -rf conftest*
  2543. ac_cv_header_stdc=no
  2544. fi
  2545. rm -f conftest*
  2546. fi
  2547. if test $ac_cv_header_stdc = yes; then
  2548. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2549. if test "$cross_compiling" = yes; then
  2550. :
  2551. else
  2552. cat > conftest.$ac_ext <<EOF
  2553. #line 2843 "configure"
  2554. #include "confdefs.h"
  2555. #include <ctype.h>
  2556. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2557. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2558. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2559. int main () { int i; for (i = 0; i < 256; i++)
  2560. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2561. exit (0); }
  2562. EOF
  2563. if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2564. then
  2565. :
  2566. else
  2567. echo "configure: failed program was:" >&5
  2568. cat conftest.$ac_ext >&5
  2569. rm -fr conftest*
  2570. ac_cv_header_stdc=no
  2571. fi
  2572. rm -fr conftest*
  2573. fi
  2574. fi
  2575. fi
  2576. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2577. if test $ac_cv_header_stdc = yes; then
  2578. cat >> confdefs.h <<\EOF
  2579. #define STDC_HEADERS 1
  2580. EOF
  2581. fi
  2582. # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
  2583. if test "${enable_ltdl_install+set}" = set; then
  2584. enableval="$enable_ltdl_install"
  2585. :
  2586. fi
  2587. if test x"${enable_ltdl_install-no}" != xno; then
  2588. INSTALL_LTDL_TRUE=
  2589. INSTALL_LTDL_FALSE='#'
  2590. else
  2591. INSTALL_LTDL_TRUE='#'
  2592. INSTALL_LTDL_FALSE=
  2593. fi
  2594. if test x"${enable_ltdl_convenience-no}" != xno; then
  2595. CONVENIENCE_LTDL_TRUE=
  2596. CONVENIENCE_LTDL_FALSE='#'
  2597. else
  2598. CONVENIENCE_LTDL_TRUE='#'
  2599. CONVENIENCE_LTDL_FALSE=
  2600. fi
  2601. echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
  2602. echo "configure:2904: checking which extension is used for shared libraries" >&5
  2603. if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
  2604. echo $ac_n "(cached) $ac_c" 1>&6
  2605. else
  2606. (
  2607. last=
  2608. for spec in $library_names_spec; do
  2609. last="$spec"
  2610. done
  2611. echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
  2612. )
  2613. libltdl_cv_shlibext=`cat conftest`
  2614. rm -f conftest
  2615. fi
  2616. echo "$ac_t""$libltdl_cv_shlibext" 1>&6
  2617. if test -n "$libltdl_cv_shlibext"; then
  2618. cat >> confdefs.h <<EOF
  2619. #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
  2620. EOF
  2621. fi
  2622. echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
  2623. echo "configure:2931: checking which variable specifies run-time library path" >&5
  2624. if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
  2625. echo $ac_n "(cached) $ac_c" 1>&6
  2626. else
  2627. libltdl_cv_shlibpath_var="$shlibpath_var"
  2628. fi
  2629. echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
  2630. if test -n "$libltdl_cv_shlibpath_var"; then
  2631. cat >> confdefs.h <<EOF
  2632. #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
  2633. EOF
  2634. fi
  2635. echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
  2636. echo "configure:2947: checking for the default library search path" >&5
  2637. if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
  2638. echo $ac_n "(cached) $ac_c" 1>&6
  2639. else
  2640. libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
  2641. fi
  2642. echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
  2643. if test -n "$libltdl_cv_sys_search_path"; then
  2644. case "$host" in
  2645. *-*-mingw*) pathsep=";" ;;
  2646. *) pathsep=":" ;;
  2647. esac
  2648. sys_search_path=
  2649. for dir in $libltdl_cv_sys_search_path; do
  2650. if test -z "$sys_search_path"; then
  2651. sys_search_path="$dir"
  2652. else
  2653. sys_search_path="$sys_search_path$pathsep$dir"
  2654. fi
  2655. done
  2656. cat >> confdefs.h <<EOF
  2657. #define LTDL_SYSSEARCHPATH "$sys_search_path"
  2658. EOF
  2659. fi
  2660. echo $ac_n "checking for objdir""... $ac_c" 1>&6
  2661. echo "configure:2975: checking for objdir" >&5
  2662. if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
  2663. echo $ac_n "(cached) $ac_c" 1>&6
  2664. else
  2665. libltdl_cv_objdir="$objdir"
  2666. if test -n "$objdir"; then
  2667. :
  2668. else
  2669. rm -f .libs 2>/dev/null
  2670. mkdir .libs 2>/dev/null
  2671. if test -d .libs; then
  2672. libltdl_cv_objdir=.libs
  2673. else
  2674. # MS-DOS does not allow filenames that begin with a dot.
  2675. libltdl_cv_objdir=_libs
  2676. fi
  2677. rmdir .libs 2>/dev/null
  2678. fi
  2679. fi
  2680. echo "$ac_t""$libltdl_cv_objdir" 1>&6
  2681. cat >> confdefs.h <<EOF
  2682. #define LTDL_OBJDIR "$libltdl_cv_objdir/"
  2683. EOF
  2684. echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
  2685. echo "configure:3002: checking whether libtool supports -dlopen/-dlpreopen" >&5
  2686. if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
  2687. echo $ac_n "(cached) $ac_c" 1>&6
  2688. else
  2689. if test -n "$global_symbol_pipe"; then
  2690. libltdl_cv_preloaded_symbols=yes
  2691. else
  2692. libltdl_cv_preloaded_symbols=no
  2693. fi
  2694. fi
  2695. echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
  2696. if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
  2697. cat >> confdefs.h <<\EOF
  2698. #define HAVE_PRELOADED_SYMBOLS 1
  2699. EOF
  2700. fi
  2701. LIBADD_DL=
  2702. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  2703. echo "configure:3024: checking for dlopen in -ldl" >&5
  2704. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  2705. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2706. echo $ac_n "(cached) $ac_c" 1>&6
  2707. else
  2708. ac_save_LIBS="$LIBS"
  2709. LIBS="-ldl $LIBS"
  2710. cat > conftest.$ac_ext <<EOF
  2711. #line 3032 "configure"
  2712. #include "confdefs.h"
  2713. /* Override any gcc2 internal prototype to avoid an error. */
  2714. /* We use char because int might match the return type of a gcc2
  2715. builtin and then its argument prototype would still apply. */
  2716. char dlopen();
  2717. int main() {
  2718. dlopen()
  2719. ; return 0; }
  2720. EOF
  2721. if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2722. rm -rf conftest*
  2723. eval "ac_cv_lib_$ac_lib_var=yes"
  2724. else
  2725. echo "configure: failed program was:" >&5
  2726. cat conftest.$ac_ext >&5
  2727. rm -rf conftest*
  2728. eval "ac_cv_lib_$ac_lib_var=no"
  2729. fi
  2730. rm -f conftest*
  2731. LIBS="$ac_save_LIBS"
  2732. fi
  2733. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2734. echo "$ac_t""yes" 1>&6
  2735. cat >> confdefs.h <<\EOF
  2736. #define HAVE_LIBDL 1
  2737. EOF
  2738. LIBADD_DL="-ldl"
  2739. else
  2740. echo "$ac_t""no" 1>&6
  2741. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  2742. echo "configure:3065: checking for dlopen" >&5
  2743. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  2744. echo $ac_n "(cached) $ac_c" 1>&6
  2745. else
  2746. cat > conftest.$ac_ext <<EOF
  2747. #line 3070 "configure"
  2748. #include "confdefs.h"
  2749. /* System header to define __stub macros and hopefully few prototypes,
  2750. which can conflict with char dlopen(); below. */
  2751. #include <assert.h>
  2752. /* Override any gcc2 internal prototype to avoid an error. */
  2753. /* We use char because int might match the return type of a gcc2
  2754. builtin and then its argument prototype would still apply. */
  2755. char dlopen();
  2756. int main() {
  2757. /* The GNU C library defines this for functions which it implements
  2758. to always fail with ENOSYS. Some functions are actually named
  2759. something starting with __ and the normal name is an alias. */
  2760. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  2761. choke me
  2762. #else
  2763. dlopen();
  2764. #endif
  2765. ; return 0; }
  2766. EOF
  2767. if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2768. rm -rf conftest*
  2769. eval "ac_cv_func_dlopen=yes"
  2770. else
  2771. echo "configure: failed program was:" >&5
  2772. cat conftest.$ac_ext >&5
  2773. rm -rf conftest*
  2774. eval "ac_cv_func_dlopen=no"
  2775. fi
  2776. rm -f conftest*
  2777. fi
  2778. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  2779. echo "$ac_t""yes" 1>&6
  2780. cat >> confdefs.h <<\EOF
  2781. #define HAVE_LIBDL 1
  2782. EOF
  2783. else
  2784. echo "$ac_t""no" 1>&6
  2785. echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  2786. echo "configure:3114: checking for dlopen in -lsvld" >&5
  2787. ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  2788. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2789. echo $ac_n "(cached) $ac_c" 1>&6
  2790. else
  2791. ac_save_LIBS="$LIBS"
  2792. LIBS="-lsvld $LIBS"
  2793. cat > conftest.$ac_ext <<EOF
  2794. #line 3122 "configure"
  2795. #include "confdefs.h"
  2796. /* Override any gcc2 internal prototype to avoid an error. */
  2797. /* We use char because int might match the return type of a gcc2
  2798. builtin and then its argument prototype would still apply. */
  2799. char dlopen();
  2800. int main() {
  2801. dlopen()
  2802. ; return 0; }
  2803. EOF
  2804. if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2805. rm -rf conftest*
  2806. eval "ac_cv_lib_$ac_lib_var=yes"
  2807. else
  2808. echo "configure: failed program was:" >&5
  2809. cat conftest.$ac_ext >&5
  2810. rm -rf conftest*
  2811. eval "ac_cv_lib_$ac_lib_var=no"
  2812. fi
  2813. rm -f conftest*
  2814. LIBS="$ac_save_LIBS"
  2815. fi
  2816. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2817. echo "$ac_t""yes" 1>&6
  2818. cat >> confdefs.h <<\EOF
  2819. #define HAVE_LIBDL 1
  2820. EOF
  2821. LIBADD_DL="-lsvld"
  2822. else
  2823. echo "$ac_t""no" 1>&6
  2824. fi
  2825. fi
  2826. fi
  2827. echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  2828. echo "configure:3162: checking for shl_load" >&5
  2829. if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  2830. echo $ac_n "(cached) $ac_c" 1>&6
  2831. else
  2832. cat > conftest.$ac_ext <<EOF
  2833. #line 3167 "configure"
  2834. #include "confdefs.h"
  2835. /* System header to define __stub macros and hopefully few prototypes,
  2836. which can conflict with char shl_load(); below. */
  2837. #include <assert.h>
  2838. /* Override any gcc2 internal prototype to avoid an error. */
  2839. /* We use char because int might match the return type of a gcc2
  2840. builtin and then its argument prototype would still apply. */
  2841. char shl_load();
  2842. int main() {
  2843. /* The GNU C library defines this for functions which it implements
  2844. to always fail with ENOSYS. Some functions are actually named
  2845. something starting with __ and the normal name is an alias. */
  2846. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  2847. choke me
  2848. #else
  2849. shl_load();
  2850. #endif
  2851. ; return 0; }
  2852. EOF
  2853. if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2854. rm -rf conftest*
  2855. eval "ac_cv_func_shl_load=yes"
  2856. else
  2857. echo "configure: failed program was:" >&5
  2858. cat conftest.$ac_ext >&5
  2859. rm -rf conftest*
  2860. eval "ac_cv_func_shl_load=no"
  2861. fi
  2862. rm -f conftest*
  2863. fi
  2864. if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  2865. echo "$ac_t""yes" 1>&6
  2866. cat >> confdefs.h <<\EOF
  2867. #define HAVE_SHL_LOAD 1
  2868. EOF
  2869. else
  2870. echo "$ac_t""no" 1>&6
  2871. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  2872. echo "configure:3211: checking for shl_load in -ldld" >&5
  2873. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  2874. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2875. echo $ac_n "(cached) $ac_c" 1>&6
  2876. else
  2877. ac_save_LIBS="$LIBS"
  2878. LIBS="-ldld $LIBS"
  2879. cat > conftest.$ac_ext <<EOF
  2880. #line 3219 "configure"
  2881. #include "confdefs.h"
  2882. /* Override any gcc2 internal prototype to avoid an error. */
  2883. /* We use char because int might match the return type of a gcc2
  2884. builtin and then its argument prototype would still apply. */
  2885. char shl_load();
  2886. int main() {
  2887. shl_load()
  2888. ; return 0; }
  2889. EOF
  2890. if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2891. rm -rf conftest*
  2892. eval "ac_cv_lib_$ac_lib_var=yes"
  2893. else
  2894. echo "configure: failed program was:" >&5
  2895. cat conftest.$ac_ext >&5
  2896. rm -rf conftest*
  2897. eval "ac_cv_lib_$ac_lib_var=no"
  2898. fi
  2899. rm -f conftest*
  2900. LIBS="$ac_save_LIBS"
  2901. fi
  2902. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2903. echo "$ac_t""yes" 1>&6
  2904. cat >> confdefs.h <<\EOF
  2905. #define HAVE_SHL_LOAD 1
  2906. EOF
  2907. LIBADD_DL="$LIBADD_DL -ldld"
  2908. else
  2909. echo "$ac_t""no" 1>&6
  2910. fi
  2911. fi
  2912. echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  2913. echo "configure:3258: checking for dld_link in -ldld" >&5
  2914. ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  2915. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2916. echo $ac_n "(cached) $ac_c" 1>&6
  2917. else
  2918. ac_save_LIBS="$LIBS"
  2919. LIBS="-ldld $LIBS"
  2920. cat > conftest.$ac_ext <<EOF
  2921. #line 3266 "configure"
  2922. #include "confdefs.h"
  2923. /* Override any gcc2 internal prototype to avoid an error. */
  2924. /* We use char because int might match the return type of a gcc2
  2925. builtin and then its argument prototype would still apply. */
  2926. char dld_link();
  2927. int main() {
  2928. dld_link()
  2929. ; return 0; }
  2930. EOF
  2931. if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2932. rm -rf conftest*
  2933. eval "ac_cv_lib_$ac_lib_var=yes"
  2934. else
  2935. echo "configure: failed program was:" >&5
  2936. cat conftest.$ac_ext >&5
  2937. rm -rf conftest*
  2938. eval "ac_cv_lib_$ac_lib_var=no"
  2939. fi
  2940. rm -f conftest*
  2941. LIBS="$ac_save_LIBS"
  2942. fi
  2943. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2944. echo "$ac_t""yes" 1>&6
  2945. cat >> confdefs.h <<\EOF
  2946. #define HAVE_DLD 1
  2947. EOF
  2948. test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
  2949. else
  2950. echo "$ac_t""no" 1>&6
  2951. fi
  2952. if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
  2953. LIBS_SAVE="$LIBS"
  2954. LIBS="$LIBS $LIBADD_DL"
  2955. for ac_func in dlerror
  2956. do
  2957. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2958. echo "configure:3308: checking for $ac_func" >&5
  2959. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2960. echo $ac_n "(cached) $ac_c" 1>&6
  2961. else
  2962. cat > conftest.$ac_ext <<EOF
  2963. #line 3313 "configure"
  2964. #include "confdefs.h"
  2965. /* System header to define __stub macros and hopefully few prototypes,
  2966. which can conflict with char $ac_func(); below. */
  2967. #include <assert.h>
  2968. /* Override any gcc2 internal prototype to avoid an error. */
  2969. /* We use char because int might match the return type of a gcc2
  2970. builtin and then its argument prototype would still apply. */
  2971. char $ac_func();
  2972. int main() {
  2973. /* The GNU C library defines this for functions which it implements
  2974. to always fail with ENOSYS. Some functions are actually named
  2975. something starting with __ and the normal name is an alias. */
  2976. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2977. choke me
  2978. #else
  2979. $ac_func();
  2980. #endif
  2981. ; return 0; }
  2982. EOF
  2983. if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2984. rm -rf conftest*
  2985. eval "ac_cv_func_$ac_func=yes"
  2986. else
  2987. echo "configure: failed program was:" >&5
  2988. cat conftest.$ac_ext >&5
  2989. rm -rf conftest*
  2990. eval "ac_cv_func_$ac_func=no"
  2991. fi
  2992. rm -f conftest*
  2993. fi
  2994. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2995. echo "$ac_t""yes" 1>&6
  2996. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2997. cat >> confdefs.h <<EOF
  2998. #define $ac_tr_func 1
  2999. EOF
  3000. else
  3001. echo "$ac_t""no" 1>&6
  3002. fi
  3003. done
  3004. LIBS="$LIBS_SAVE"
  3005. fi
  3006. echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
  3007. echo "configure:3364: checking for _ prefix in compiled symbols" >&5
  3008. if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
  3009. echo $ac_n "(cached) $ac_c" 1>&6
  3010. else
  3011. ac_cv_sys_symbol_underscore=no
  3012. cat > conftest.$ac_ext <<EOF
  3013. void nm_test_func(){}
  3014. int main(){nm_test_func;return 0;}
  3015. EOF
  3016. if { (eval echo configure:3373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3017. # Now try to grab the symbols.
  3018. ac_nlist=conftest.nm
  3019. if { (eval echo configure:3376: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
  3020. # See whether the symbols have a leading underscore.
  3021. if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  3022. ac_cv_sys_symbol_underscore=yes
  3023. else
  3024. if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  3025. :
  3026. else
  3027. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  3028. fi
  3029. fi
  3030. else
  3031. echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
  3032. fi
  3033. else
  3034. echo "configure: failed program was:" >&5
  3035. cat conftest.c >&5
  3036. fi
  3037. rm -rf conftest*
  3038. fi
  3039. echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
  3040. if test x"$ac_cv_sys_symbol_underscore" = xyes; then
  3041. if test x"$ac_cv_func_dlopen" = xyes ||
  3042. test x"$ac_cv_lib_dl_dlopen" = xyes ; then
  3043. echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
  3044. echo "configure:3403: checking whether we have to add an underscore for dlsym" >&5
  3045. if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
  3046. echo $ac_n "(cached) $ac_c" 1>&6
  3047. else
  3048. if test "$cross_compiling" = yes; then
  3049. libltdl_cv_need_uscore=cross
  3050. else
  3051. cat > conftest.$ac_ext <<EOF
  3052. #line 3412 "configure"
  3053. #include "confdefs.h"
  3054. #if HAVE_DLFCN_H
  3055. #include <dlfcn.h>
  3056. #endif
  3057. #include <stdio.h>
  3058. #ifdef RTLD_GLOBAL
  3059. # define LTDL_GLOBAL RTLD_GLOBAL
  3060. #else
  3061. # ifdef DL_GLOBAL
  3062. # define LTDL_GLOBAL DL_GLOBAL
  3063. # else
  3064. # define LTDL_GLOBAL 0
  3065. # endif
  3066. #endif
  3067. /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
  3068. find out it does not work in some platform. */
  3069. #ifndef LTDL_LAZY_OR_NOW
  3070. # ifdef RTLD_LAZY
  3071. # define LTDL_LAZY_OR_NOW RTLD_LAZY
  3072. # else
  3073. # ifdef DL_LAZY
  3074. # define LTDL_LAZY_OR_NOW DL_LAZY
  3075. # else
  3076. # ifdef RTLD_NOW
  3077. # define LTDL_LAZY_OR_NOW RTLD_NOW
  3078. # else
  3079. # ifdef DL_NOW
  3080. # define LTDL_LAZY_OR_NOW DL_NOW
  3081. # else
  3082. # define LTDL_LAZY_OR_NOW 0
  3083. # endif
  3084. # endif
  3085. # endif
  3086. # endif
  3087. #endif
  3088. fnord() { int i=42;}
  3089. main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
  3090. if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
  3091. if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
  3092. EOF
  3093. if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3094. then
  3095. libltdl_cv_need_uscore=no
  3096. else
  3097. echo "configure: failed program was:" >&5
  3098. cat conftest.$ac_ext >&5
  3099. rm -fr conftest*
  3100. libltdl_cv_need_uscore=yes
  3101. fi
  3102. rm -fr conftest*
  3103. fi
  3104. fi
  3105. echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
  3106. fi
  3107. fi
  3108. if test x"$libltdl_cv_need_uscore" = xyes; then
  3109. cat >> confdefs.h <<\EOF
  3110. #define NEED_USCORE 1
  3111. EOF
  3112. fi
  3113. for ac_hdr in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
  3114. do
  3115. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3116. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3117. echo "configure:3491: checking for $ac_hdr" >&5
  3118. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3119. echo $ac_n "(cached) $ac_c" 1>&6
  3120. else
  3121. cat > conftest.$ac_ext <<EOF
  3122. #line 3496 "configure"
  3123. #include "confdefs.h"
  3124. #include <$ac_hdr>
  3125. EOF
  3126. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3127. { (eval echo configure:3501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3128. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3129. if test -z "$ac_err"; then
  3130. rm -rf conftest*
  3131. eval "ac_cv_header_$ac_safe=yes"
  3132. else
  3133. echo "$ac_err" >&5
  3134. echo "configure: failed program was:" >&5
  3135. cat conftest.$ac_ext >&5
  3136. rm -rf conftest*
  3137. eval "ac_cv_header_$ac_safe=no"
  3138. fi
  3139. rm -f conftest*
  3140. fi
  3141. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3142. echo "$ac_t""yes" 1>&6
  3143. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3144. cat >> confdefs.h <<EOF
  3145. #define $ac_tr_hdr 1
  3146. EOF
  3147. else
  3148. echo "$ac_t""no" 1>&6
  3149. fi
  3150. done
  3151. for ac_hdr in string.h strings.h
  3152. do
  3153. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3154. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3155. echo "configure:3531: checking for $ac_hdr" >&5
  3156. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3157. echo $ac_n "(cached) $ac_c" 1>&6
  3158. else
  3159. cat > conftest.$ac_ext <<EOF
  3160. #line 3536 "configure"
  3161. #include "confdefs.h"
  3162. #include <$ac_hdr>
  3163. EOF
  3164. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3165. { (eval echo configure:3541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3166. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3167. if test -z "$ac_err"; then
  3168. rm -rf conftest*
  3169. eval "ac_cv_header_$ac_safe=yes"
  3170. else
  3171. echo "$ac_err" >&5
  3172. echo "configure: failed program was:" >&5
  3173. cat conftest.$ac_ext >&5
  3174. rm -rf conftest*
  3175. eval "ac_cv_header_$ac_safe=no"
  3176. fi
  3177. rm -f conftest*
  3178. fi
  3179. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3180. echo "$ac_t""yes" 1>&6
  3181. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3182. cat >> confdefs.h <<EOF
  3183. #define $ac_tr_hdr 1
  3184. EOF
  3185. break
  3186. else
  3187. echo "$ac_t""no" 1>&6
  3188. fi
  3189. done
  3190. for ac_func in strchr index
  3191. do
  3192. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3193. echo "configure:3570: checking for $ac_func" >&5
  3194. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3195. echo $ac_n "(cached) $ac_c" 1>&6
  3196. else
  3197. cat > conftest.$ac_ext <<EOF
  3198. #line 3575 "configure"
  3199. #include "confdefs.h"
  3200. /* System header to define __stub macros and hopefully few prototypes,
  3201. which can conflict with char $ac_func(); below. */
  3202. #include <assert.h>
  3203. /* Override any gcc2 internal prototype to avoid an error. */
  3204. /* We use char because int might match the return type of a gcc2
  3205. builtin and then its argument prototype would still apply. */
  3206. char $ac_func();
  3207. int main() {
  3208. /* The GNU C library defines this for functions which it implements
  3209. to always fail with ENOSYS. Some functions are actually named
  3210. something starting with __ and the normal name is an alias. */
  3211. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3212. choke me
  3213. #else
  3214. $ac_func();
  3215. #endif
  3216. ; return 0; }
  3217. EOF
  3218. if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3219. rm -rf conftest*
  3220. eval "ac_cv_func_$ac_func=yes"
  3221. else
  3222. echo "configure: failed program was:" >&5
  3223. cat conftest.$ac_ext >&5
  3224. rm -rf conftest*
  3225. eval "ac_cv_func_$ac_func=no"
  3226. fi
  3227. rm -f conftest*
  3228. fi
  3229. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3230. echo "$ac_t""yes" 1>&6
  3231. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3232. cat >> confdefs.h <<EOF
  3233. #define $ac_tr_func 1
  3234. EOF
  3235. break
  3236. else
  3237. echo "$ac_t""no" 1>&6
  3238. fi
  3239. done
  3240. for ac_func in strrchr rindex
  3241. do
  3242. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3243. echo "configure:3625: checking for $ac_func" >&5
  3244. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3245. echo $ac_n "(cached) $ac_c" 1>&6
  3246. else
  3247. cat > conftest.$ac_ext <<EOF
  3248. #line 3630 "configure"
  3249. #include "confdefs.h"
  3250. /* System header to define __stub macros and hopefully few prototypes,
  3251. which can conflict with char $ac_func(); below. */
  3252. #include <assert.h>
  3253. /* Override any gcc2 internal prototype to avoid an error. */
  3254. /* We use char because int might match the return type of a gcc2
  3255. builtin and then its argument prototype would still apply. */
  3256. char $ac_func();
  3257. int main() {
  3258. /* The GNU C library defines this for functions which it implements
  3259. to always fail with ENOSYS. Some functions are actually named
  3260. something starting with __ and the normal name is an alias. */
  3261. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3262. choke me
  3263. #else
  3264. $ac_func();
  3265. #endif
  3266. ; return 0; }
  3267. EOF
  3268. if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3269. rm -rf conftest*
  3270. eval "ac_cv_func_$ac_func=yes"
  3271. else
  3272. echo "configure: failed program was:" >&5
  3273. cat conftest.$ac_ext >&5
  3274. rm -rf conftest*
  3275. eval "ac_cv_func_$ac_func=no"
  3276. fi
  3277. rm -f conftest*
  3278. fi
  3279. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3280. echo "$ac_t""yes" 1>&6
  3281. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3282. cat >> confdefs.h <<EOF
  3283. #define $ac_tr_func 1
  3284. EOF
  3285. break
  3286. else
  3287. echo "$ac_t""no" 1>&6
  3288. fi
  3289. done
  3290. for ac_func in strcmp
  3291. do
  3292. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3293. echo "configure:3680: checking for $ac_func" >&5
  3294. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3295. echo $ac_n "(cached) $ac_c" 1>&6
  3296. else
  3297. cat > conftest.$ac_ext <<EOF
  3298. #line 3685 "configure"
  3299. #include "confdefs.h"
  3300. /* System header to define __stub macros and hopefully few prototypes,
  3301. which can conflict with char $ac_func(); below. */
  3302. #include <assert.h>
  3303. /* Override any gcc2 internal prototype to avoid an error. */
  3304. /* We use char because int might match the return type of a gcc2
  3305. builtin and then its argument prototype would still apply. */
  3306. char $ac_func();
  3307. int main() {
  3308. /* The GNU C library defines this for functions which it implements
  3309. to always fail with ENOSYS. Some functions are actually named
  3310. something starting with __ and the normal name is an alias. */
  3311. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3312. choke me
  3313. #else
  3314. $ac_func();
  3315. #endif
  3316. ; return 0; }
  3317. EOF
  3318. if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3319. rm -rf conftest*
  3320. eval "ac_cv_func_$ac_func=yes"
  3321. else
  3322. echo "configure: failed program was:" >&5
  3323. cat conftest.$ac_ext >&5
  3324. rm -rf conftest*
  3325. eval "ac_cv_func_$ac_func=no"
  3326. fi
  3327. rm -f conftest*
  3328. fi
  3329. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3330. echo "$ac_t""yes" 1>&6
  3331. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3332. cat >> confdefs.h <<EOF
  3333. #define $ac_tr_func 1
  3334. EOF
  3335. else
  3336. echo "$ac_t""no" 1>&6
  3337. fi
  3338. done
  3339. trap '' 1 2 15
  3340. cat > confcache <<\EOF
  3341. # This file is a shell script that caches the results of configure
  3342. # tests run on this system so they can be shared between configure
  3343. # scripts and configure runs. It is not useful on other systems.
  3344. # If it contains results you don't want to keep, you may remove or edit it.
  3345. #
  3346. # By default, configure uses ./config.cache as the cache file,
  3347. # creating it if it does not exist already. You can give configure
  3348. # the --cache-file=FILE option to use a different cache file; that is
  3349. # what configure does when it calls configure scripts in
  3350. # subdirectories, so they share the cache.
  3351. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3352. # config.status only pays attention to the cache file if you give it the
  3353. # --recheck option to rerun configure.
  3354. #
  3355. EOF
  3356. # The following way of writing the cache mishandles newlines in values,
  3357. # but we know of no workaround that is simple, portable, and efficient.
  3358. # So, don't put newlines in cache variables' values.
  3359. # Ultrix sh set writes to stderr and can't be redirected directly,
  3360. # and sets the high bit in the cache file unless we assign to the vars.
  3361. (set) 2>&1 |
  3362. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3363. *ac_space=\ *)
  3364. # `set' does not quote correctly, so add quotes (double-quote substitution
  3365. # turns \\\\ into \\, and sed turns \\ into \).
  3366. sed -n \
  3367. -e "s/'/'\\\\''/g" \
  3368. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3369. ;;
  3370. *)
  3371. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3372. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3373. ;;
  3374. esac >> confcache
  3375. if cmp -s $cache_file confcache; then
  3376. :
  3377. else
  3378. if test -w $cache_file; then
  3379. echo "updating cache $cache_file"
  3380. cat confcache > $cache_file
  3381. else
  3382. echo "not updating unwritable cache $cache_file"
  3383. fi
  3384. fi
  3385. rm -f confcache
  3386. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3387. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3388. # Let make expand exec_prefix.
  3389. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3390. # Any assignment to VPATH causes Sun make to only execute
  3391. # the first set of double-colon rules, so remove it if not needed.
  3392. # If there is a colon in the path, we need to keep it.
  3393. if test "x$srcdir" = x.; then
  3394. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  3395. fi
  3396. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3397. DEFS=-DHAVE_CONFIG_H
  3398. # Without the "./", some shells look in PATH for config.status.
  3399. : ${CONFIG_STATUS=./config.status}
  3400. echo creating $CONFIG_STATUS
  3401. rm -f $CONFIG_STATUS
  3402. cat > $CONFIG_STATUS <<EOF
  3403. #! /bin/sh
  3404. # Generated automatically by configure.
  3405. # Run this file to recreate the current configuration.
  3406. # This directory was configured as follows,
  3407. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3408. #
  3409. # $0 $ac_configure_args
  3410. #
  3411. # Compiler output produced by configure, useful for debugging
  3412. # configure, is in ./config.log if it exists.
  3413. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3414. for ac_option
  3415. do
  3416. case "\$ac_option" in
  3417. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3418. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3419. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3420. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3421. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3422. exit 0 ;;
  3423. -help | --help | --hel | --he | --h)
  3424. echo "\$ac_cs_usage"; exit 0 ;;
  3425. *) echo "\$ac_cs_usage"; exit 1 ;;
  3426. esac
  3427. done
  3428. ac_given_srcdir=$srcdir
  3429. ac_given_INSTALL="$INSTALL"
  3430. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3431. EOF
  3432. cat >> $CONFIG_STATUS <<EOF
  3433. # Protect against being on the right side of a sed subst in config.status.
  3434. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3435. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3436. $ac_vpsub
  3437. $extrasub
  3438. s%@SHELL@%$SHELL%g
  3439. s%@CFLAGS@%$CFLAGS%g
  3440. s%@CPPFLAGS@%$CPPFLAGS%g
  3441. s%@CXXFLAGS@%$CXXFLAGS%g
  3442. s%@FFLAGS@%$FFLAGS%g
  3443. s%@DEFS@%$DEFS%g
  3444. s%@LDFLAGS@%$LDFLAGS%g
  3445. s%@LIBS@%$LIBS%g
  3446. s%@exec_prefix@%$exec_prefix%g
  3447. s%@prefix@%$prefix%g
  3448. s%@program_transform_name@%$program_transform_name%g
  3449. s%@bindir@%$bindir%g
  3450. s%@sbindir@%$sbindir%g
  3451. s%@libexecdir@%$libexecdir%g
  3452. s%@datadir@%$datadir%g
  3453. s%@sysconfdir@%$sysconfdir%g
  3454. s%@sharedstatedir@%$sharedstatedir%g
  3455. s%@localstatedir@%$localstatedir%g
  3456. s%@libdir@%$libdir%g
  3457. s%@includedir@%$includedir%g
  3458. s%@oldincludedir@%$oldincludedir%g
  3459. s%@infodir@%$infodir%g
  3460. s%@mandir@%$mandir%g
  3461. s%@mkinstalldirs@%$mkinstalldirs%g
  3462. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3463. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3464. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3465. s%@PACKAGE@%$PACKAGE%g
  3466. s%@VERSION@%$VERSION%g
  3467. s%@ACLOCAL@%$ACLOCAL%g
  3468. s%@AUTOCONF@%$AUTOCONF%g
  3469. s%@AUTOMAKE@%$AUTOMAKE%g
  3470. s%@AUTOHEADER@%$AUTOHEADER%g
  3471. s%@MAKEINFO@%$MAKEINFO%g
  3472. s%@SET_MAKE@%$SET_MAKE%g
  3473. s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  3474. s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  3475. s%@MAINT@%$MAINT%g
  3476. s%@CC@%$CC%g
  3477. s%@host@%$host%g
  3478. s%@host_alias@%$host_alias%g
  3479. s%@host_cpu@%$host_cpu%g
  3480. s%@host_vendor@%$host_vendor%g
  3481. s%@host_os@%$host_os%g
  3482. s%@build@%$build%g
  3483. s%@build_alias@%$build_alias%g
  3484. s%@build_cpu@%$build_cpu%g
  3485. s%@build_vendor@%$build_vendor%g
  3486. s%@build_os@%$build_os%g
  3487. s%@LN_S@%$LN_S%g
  3488. s%@OBJEXT@%$OBJEXT%g
  3489. s%@EXEEXT@%$EXEEXT%g
  3490. s%@RANLIB@%$RANLIB%g
  3491. s%@STRIP@%$STRIP%g
  3492. s%@DLLTOOL@%$DLLTOOL%g
  3493. s%@AS@%$AS%g
  3494. s%@OBJDUMP@%$OBJDUMP%g
  3495. s%@LIBTOOL@%$LIBTOOL%g
  3496. s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
  3497. s%@GCINCS@%$GCINCS%g
  3498. s%@CPP@%$CPP%g
  3499. s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
  3500. s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
  3501. s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
  3502. s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
  3503. s%@LIBADD_DL@%$LIBADD_DL%g
  3504. CEOF
  3505. EOF
  3506. cat >> $CONFIG_STATUS <<\EOF
  3507. # Split the substitutions into bite-sized pieces for seds with
  3508. # small command number limits, like on Digital OSF/1 and HP-UX.
  3509. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3510. ac_file=1 # Number of current file.
  3511. ac_beg=1 # First line for current file.
  3512. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3513. ac_more_lines=:
  3514. ac_sed_cmds=""
  3515. while $ac_more_lines; do
  3516. if test $ac_beg -gt 1; then
  3517. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  3518. else
  3519. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  3520. fi
  3521. if test ! -s conftest.s$ac_file; then
  3522. ac_more_lines=false
  3523. rm -f conftest.s$ac_file
  3524. else
  3525. if test -z "$ac_sed_cmds"; then
  3526. ac_sed_cmds="sed -f conftest.s$ac_file"
  3527. else
  3528. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3529. fi
  3530. ac_file=`expr $ac_file + 1`
  3531. ac_beg=$ac_end
  3532. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3533. fi
  3534. done
  3535. if test -z "$ac_sed_cmds"; then
  3536. ac_sed_cmds=cat
  3537. fi
  3538. EOF
  3539. cat >> $CONFIG_STATUS <<EOF
  3540. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  3541. EOF
  3542. cat >> $CONFIG_STATUS <<\EOF
  3543. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3544. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3545. case "$ac_file" in
  3546. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3547. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3548. *) ac_file_in="${ac_file}.in" ;;
  3549. esac
  3550. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3551. # Remove last slash and all that follows it. Not all systems have dirname.
  3552. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3553. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3554. # The file is in a subdirectory.
  3555. test ! -d "$ac_dir" && mkdir "$ac_dir"
  3556. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3557. # A "../" for each directory in $ac_dir_suffix.
  3558. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3559. else
  3560. ac_dir_suffix= ac_dots=
  3561. fi
  3562. case "$ac_given_srcdir" in
  3563. .) srcdir=.
  3564. if test -z "$ac_dots"; then top_srcdir=.
  3565. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3566. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3567. *) # Relative path.
  3568. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3569. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3570. esac
  3571. case "$ac_given_INSTALL" in
  3572. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3573. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3574. esac
  3575. echo creating "$ac_file"
  3576. rm -f "$ac_file"
  3577. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3578. case "$ac_file" in
  3579. *Makefile*) ac_comsub="1i\\
  3580. # $configure_input" ;;
  3581. *) ac_comsub= ;;
  3582. esac
  3583. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3584. sed -e "$ac_comsub
  3585. s%@configure_input@%$configure_input%g
  3586. s%@srcdir@%$srcdir%g
  3587. s%@top_srcdir@%$top_srcdir%g
  3588. s%@INSTALL@%$INSTALL%g
  3589. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3590. fi; done
  3591. rm -f conftest.s*
  3592. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3593. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3594. #
  3595. # ac_d sets the value in "#define NAME VALUE" lines.
  3596. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  3597. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  3598. ac_dC='\3'
  3599. ac_dD='%g'
  3600. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3601. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3602. ac_uB='\([ ]\)%\1#\2define\3'
  3603. ac_uC=' '
  3604. ac_uD='\4%g'
  3605. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3606. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3607. ac_eB='$%\1#\2define\3'
  3608. ac_eC=' '
  3609. ac_eD='%g'
  3610. if test "${CONFIG_HEADERS+set}" != set; then
  3611. EOF
  3612. cat >> $CONFIG_STATUS <<EOF
  3613. CONFIG_HEADERS="config.h"
  3614. EOF
  3615. cat >> $CONFIG_STATUS <<\EOF
  3616. fi
  3617. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3618. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3619. case "$ac_file" in
  3620. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3621. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3622. *) ac_file_in="${ac_file}.in" ;;
  3623. esac
  3624. echo creating $ac_file
  3625. rm -f conftest.frag conftest.in conftest.out
  3626. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3627. cat $ac_file_inputs > conftest.in
  3628. EOF
  3629. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3630. # the proper values into config.h.in to produce config.h. And first:
  3631. # Protect against being on the right side of a sed subst in config.status.
  3632. # Protect against being in an unquoted here document in config.status.
  3633. rm -f conftest.vals
  3634. cat > conftest.hdr <<\EOF
  3635. s/[\\&%]/\\&/g
  3636. s%[\\$`]%\\&%g
  3637. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3638. s%ac_d%ac_u%gp
  3639. s%ac_u%ac_e%gp
  3640. EOF
  3641. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3642. rm -f conftest.hdr
  3643. # This sed command replaces #undef with comments. This is necessary, for
  3644. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3645. # on some systems where configure will not decide to define it.
  3646. cat >> conftest.vals <<\EOF
  3647. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3648. EOF
  3649. # Break up conftest.vals because some shells have a limit on
  3650. # the size of here documents, and old seds have small limits too.
  3651. rm -f conftest.tail
  3652. while :
  3653. do
  3654. ac_lines=`grep -c . conftest.vals`
  3655. # grep -c gives empty output for an empty file on some AIX systems.
  3656. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3657. # Write a limited-size here document to conftest.frag.
  3658. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3659. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3660. echo 'CEOF
  3661. sed -f conftest.frag conftest.in > conftest.out
  3662. rm -f conftest.in
  3663. mv conftest.out conftest.in
  3664. ' >> $CONFIG_STATUS
  3665. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3666. rm -f conftest.vals
  3667. mv conftest.tail conftest.vals
  3668. done
  3669. rm -f conftest.vals
  3670. cat >> $CONFIG_STATUS <<\EOF
  3671. rm -f conftest.frag conftest.h
  3672. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  3673. cat conftest.in >> conftest.h
  3674. rm -f conftest.in
  3675. if cmp -s $ac_file conftest.h 2>/dev/null; then
  3676. echo "$ac_file is unchanged"
  3677. rm -f conftest.h
  3678. else
  3679. # Remove last slash and all that follows it. Not all systems have dirname.
  3680. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3681. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3682. # The file is in a subdirectory.
  3683. test ! -d "$ac_dir" && mkdir "$ac_dir"
  3684. fi
  3685. rm -f $ac_file
  3686. mv conftest.h $ac_file
  3687. fi
  3688. fi; done
  3689. EOF
  3690. cat >> $CONFIG_STATUS <<EOF
  3691. EOF
  3692. cat >> $CONFIG_STATUS <<\EOF
  3693. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  3694. exit 0
  3695. EOF
  3696. chmod +x $CONFIG_STATUS
  3697. rm -fr confdefs* $ac_clean_files
  3698. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3699. # Local Variables:
  3700. # mode:shell-script
  3701. # sh-indentation:2
  3702. # End: