configure 108 KB

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