configure 102 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519
  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-debug Enable debugging support"
  14. ac_help="$ac_help
  15. --with-curses=DIR Where [n]curses[w] is installed "
  16. ac_help="$ac_help
  17. --with-iconv=DIR Where iconv is installed "
  18. # Initialize some variables set by options.
  19. # The variables have the same names as the options, with
  20. # dashes changed to underlines.
  21. build=NONE
  22. cache_file=./config.cache
  23. exec_prefix=NONE
  24. host=NONE
  25. no_create=
  26. nonopt=NONE
  27. no_recursion=
  28. prefix=NONE
  29. program_prefix=NONE
  30. program_suffix=NONE
  31. program_transform_name=s,x,x,
  32. silent=
  33. site=
  34. srcdir=
  35. target=NONE
  36. verbose=
  37. x_includes=NONE
  38. x_libraries=NONE
  39. bindir='${exec_prefix}/bin'
  40. sbindir='${exec_prefix}/sbin'
  41. libexecdir='${exec_prefix}/libexec'
  42. datadir='${prefix}/share'
  43. sysconfdir='${prefix}/etc'
  44. sharedstatedir='${prefix}/com'
  45. localstatedir='${prefix}/var'
  46. libdir='${exec_prefix}/lib'
  47. includedir='${prefix}/include'
  48. oldincludedir='/usr/include'
  49. infodir='${prefix}/info'
  50. mandir='${prefix}/man'
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  54. SHELL=${CONFIG_SHELL-/bin/sh}
  55. # Maximum number of lines to put in a shell here document.
  56. ac_max_here_lines=12
  57. ac_prev=
  58. for ac_option
  59. do
  60. # If the previous option needs an argument, assign it.
  61. if test -n "$ac_prev"; then
  62. eval "$ac_prev=\$ac_option"
  63. ac_prev=
  64. continue
  65. fi
  66. case "$ac_option" in
  67. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  68. *) ac_optarg= ;;
  69. esac
  70. # Accept the important Cygnus configure options, so we can diagnose typos.
  71. case "$ac_option" in
  72. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  73. ac_prev=bindir ;;
  74. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  75. bindir="$ac_optarg" ;;
  76. -build | --build | --buil | --bui | --bu)
  77. ac_prev=build ;;
  78. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  79. build="$ac_optarg" ;;
  80. -cache-file | --cache-file | --cache-fil | --cache-fi \
  81. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  82. ac_prev=cache_file ;;
  83. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  84. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  85. cache_file="$ac_optarg" ;;
  86. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  87. ac_prev=datadir ;;
  88. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  89. | --da=*)
  90. datadir="$ac_optarg" ;;
  91. -disable-* | --disable-*)
  92. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  93. # Reject names that are not valid shell variable names.
  94. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  95. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  96. fi
  97. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  98. eval "enable_${ac_feature}=no" ;;
  99. -enable-* | --enable-*)
  100. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  101. # Reject names that are not valid shell variable names.
  102. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  103. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  104. fi
  105. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  106. case "$ac_option" in
  107. *=*) ;;
  108. *) ac_optarg=yes ;;
  109. esac
  110. eval "enable_${ac_feature}='$ac_optarg'" ;;
  111. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  112. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  113. | --exec | --exe | --ex)
  114. ac_prev=exec_prefix ;;
  115. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  116. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  117. | --exec=* | --exe=* | --ex=*)
  118. exec_prefix="$ac_optarg" ;;
  119. -gas | --gas | --ga | --g)
  120. # Obsolete; use --with-gas.
  121. with_gas=yes ;;
  122. -help | --help | --hel | --he)
  123. # Omit some internal or obsolete options to make the list less imposing.
  124. # This message is too long to be a string in the A/UX 3.1 sh.
  125. cat << EOF
  126. Usage: configure [options] [host]
  127. Options: [defaults in brackets after descriptions]
  128. Configuration:
  129. --cache-file=FILE cache test results in FILE
  130. --help print this message
  131. --no-create do not create output files
  132. --quiet, --silent do not print \`checking...' messages
  133. --version print the version of autoconf that created configure
  134. Directory and file names:
  135. --prefix=PREFIX install architecture-independent files in PREFIX
  136. [$ac_default_prefix]
  137. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  138. [same as prefix]
  139. --bindir=DIR user executables in DIR [EPREFIX/bin]
  140. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  141. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  142. --datadir=DIR read-only architecture-independent data in DIR
  143. [PREFIX/share]
  144. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  145. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  146. [PREFIX/com]
  147. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  148. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  149. --includedir=DIR C header files in DIR [PREFIX/include]
  150. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  151. --infodir=DIR info documentation in DIR [PREFIX/info]
  152. --mandir=DIR man documentation in DIR [PREFIX/man]
  153. --srcdir=DIR find the sources in DIR [configure dir or ..]
  154. --program-prefix=PREFIX prepend PREFIX to installed program names
  155. --program-suffix=SUFFIX append SUFFIX to installed program names
  156. --program-transform-name=PROGRAM
  157. run sed PROGRAM on installed program names
  158. EOF
  159. cat << EOF
  160. Host type:
  161. --build=BUILD configure for building on BUILD [BUILD=HOST]
  162. --host=HOST configure for HOST [guessed]
  163. --target=TARGET configure for TARGET [TARGET=HOST]
  164. Features and packages:
  165. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  166. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  167. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  168. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  169. --x-includes=DIR X include files are in DIR
  170. --x-libraries=DIR X library files are in DIR
  171. EOF
  172. if test -n "$ac_help"; then
  173. echo "--enable and --with options recognized:$ac_help"
  174. fi
  175. exit 0 ;;
  176. -host | --host | --hos | --ho)
  177. ac_prev=host ;;
  178. -host=* | --host=* | --hos=* | --ho=*)
  179. host="$ac_optarg" ;;
  180. -includedir | --includedir | --includedi | --included | --include \
  181. | --includ | --inclu | --incl | --inc)
  182. ac_prev=includedir ;;
  183. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  184. | --includ=* | --inclu=* | --incl=* | --inc=*)
  185. includedir="$ac_optarg" ;;
  186. -infodir | --infodir | --infodi | --infod | --info | --inf)
  187. ac_prev=infodir ;;
  188. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  189. infodir="$ac_optarg" ;;
  190. -libdir | --libdir | --libdi | --libd)
  191. ac_prev=libdir ;;
  192. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  193. libdir="$ac_optarg" ;;
  194. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  195. | --libexe | --libex | --libe)
  196. ac_prev=libexecdir ;;
  197. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  198. | --libexe=* | --libex=* | --libe=*)
  199. libexecdir="$ac_optarg" ;;
  200. -localstatedir | --localstatedir | --localstatedi | --localstated \
  201. | --localstate | --localstat | --localsta | --localst \
  202. | --locals | --local | --loca | --loc | --lo)
  203. ac_prev=localstatedir ;;
  204. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  205. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  206. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  207. localstatedir="$ac_optarg" ;;
  208. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  209. ac_prev=mandir ;;
  210. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  211. mandir="$ac_optarg" ;;
  212. -nfp | --nfp | --nf)
  213. # Obsolete; use --without-fp.
  214. with_fp=no ;;
  215. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  216. | --no-cr | --no-c)
  217. no_create=yes ;;
  218. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  219. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  220. no_recursion=yes ;;
  221. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  222. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  223. | --oldin | --oldi | --old | --ol | --o)
  224. ac_prev=oldincludedir ;;
  225. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  226. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  227. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  228. oldincludedir="$ac_optarg" ;;
  229. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  230. ac_prev=prefix ;;
  231. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  232. prefix="$ac_optarg" ;;
  233. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  234. | --program-pre | --program-pr | --program-p)
  235. ac_prev=program_prefix ;;
  236. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  237. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  238. program_prefix="$ac_optarg" ;;
  239. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  240. | --program-suf | --program-su | --program-s)
  241. ac_prev=program_suffix ;;
  242. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  243. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  244. program_suffix="$ac_optarg" ;;
  245. -program-transform-name | --program-transform-name \
  246. | --program-transform-nam | --program-transform-na \
  247. | --program-transform-n | --program-transform- \
  248. | --program-transform | --program-transfor \
  249. | --program-transfo | --program-transf \
  250. | --program-trans | --program-tran \
  251. | --progr-tra | --program-tr | --program-t)
  252. ac_prev=program_transform_name ;;
  253. -program-transform-name=* | --program-transform-name=* \
  254. | --program-transform-nam=* | --program-transform-na=* \
  255. | --program-transform-n=* | --program-transform-=* \
  256. | --program-transform=* | --program-transfor=* \
  257. | --program-transfo=* | --program-transf=* \
  258. | --program-trans=* | --program-tran=* \
  259. | --progr-tra=* | --program-tr=* | --program-t=*)
  260. program_transform_name="$ac_optarg" ;;
  261. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  262. | -silent | --silent | --silen | --sile | --sil)
  263. silent=yes ;;
  264. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  265. ac_prev=sbindir ;;
  266. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  267. | --sbi=* | --sb=*)
  268. sbindir="$ac_optarg" ;;
  269. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  270. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  271. | --sharedst | --shareds | --shared | --share | --shar \
  272. | --sha | --sh)
  273. ac_prev=sharedstatedir ;;
  274. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  275. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  276. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  277. | --sha=* | --sh=*)
  278. sharedstatedir="$ac_optarg" ;;
  279. -site | --site | --sit)
  280. ac_prev=site ;;
  281. -site=* | --site=* | --sit=*)
  282. site="$ac_optarg" ;;
  283. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  284. ac_prev=srcdir ;;
  285. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  286. srcdir="$ac_optarg" ;;
  287. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  288. | --syscon | --sysco | --sysc | --sys | --sy)
  289. ac_prev=sysconfdir ;;
  290. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  291. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  292. sysconfdir="$ac_optarg" ;;
  293. -target | --target | --targe | --targ | --tar | --ta | --t)
  294. ac_prev=target ;;
  295. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  296. target="$ac_optarg" ;;
  297. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  298. verbose=yes ;;
  299. -version | --version | --versio | --versi | --vers)
  300. echo "configure generated by autoconf version 2.13"
  301. exit 0 ;;
  302. -with-* | --with-*)
  303. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  304. # Reject names that are not valid shell variable names.
  305. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  306. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  307. fi
  308. ac_package=`echo $ac_package| sed 's/-/_/g'`
  309. case "$ac_option" in
  310. *=*) ;;
  311. *) ac_optarg=yes ;;
  312. esac
  313. eval "with_${ac_package}='$ac_optarg'" ;;
  314. -without-* | --without-*)
  315. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  316. # Reject names that are not valid shell variable names.
  317. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  318. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  319. fi
  320. ac_package=`echo $ac_package| sed 's/-/_/g'`
  321. eval "with_${ac_package}=no" ;;
  322. --x)
  323. # Obsolete; use --with-x.
  324. with_x=yes ;;
  325. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  326. | --x-incl | --x-inc | --x-in | --x-i)
  327. ac_prev=x_includes ;;
  328. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  329. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  330. x_includes="$ac_optarg" ;;
  331. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  332. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  333. ac_prev=x_libraries ;;
  334. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  335. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  336. x_libraries="$ac_optarg" ;;
  337. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  338. ;;
  339. *)
  340. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  341. echo "configure: warning: $ac_option: invalid host type" 1>&2
  342. fi
  343. if test "x$nonopt" != xNONE; then
  344. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  345. fi
  346. nonopt="$ac_option"
  347. ;;
  348. esac
  349. done
  350. if test -n "$ac_prev"; then
  351. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  352. fi
  353. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  354. # File descriptor usage:
  355. # 0 standard input
  356. # 1 file creation
  357. # 2 errors and warnings
  358. # 3 some systems may open it to /dev/tty
  359. # 4 used on the Kubota Titan
  360. # 6 checking for... messages and results
  361. # 5 compiler messages saved in config.log
  362. if test "$silent" = yes; then
  363. exec 6>/dev/null
  364. else
  365. exec 6>&1
  366. fi
  367. exec 5>./config.log
  368. echo "\
  369. This file contains any messages produced by compilers while
  370. running configure, to aid debugging if configure makes a mistake.
  371. " 1>&5
  372. # Strip out --no-create and --no-recursion so they do not pile up.
  373. # Also quote any args containing shell metacharacters.
  374. ac_configure_args=
  375. for ac_arg
  376. do
  377. case "$ac_arg" in
  378. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  379. | --no-cr | --no-c) ;;
  380. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  381. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  382. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  383. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  384. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  385. esac
  386. done
  387. # NLS nuisances.
  388. # Only set these to C if already set. These must not be set unconditionally
  389. # because not all systems understand e.g. LANG=C (notably SCO).
  390. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  391. # Non-C LC_CTYPE values break the ctype check.
  392. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  393. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  394. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  395. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  396. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  397. rm -rf conftest* confdefs.h
  398. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  399. echo > confdefs.h
  400. # A filename unique to this package, relative to the directory that
  401. # configure is in, which we can look for to find out if srcdir is correct.
  402. ac_unique_file=main.cc
  403. # Find the source files, if location was not specified.
  404. if test -z "$srcdir"; then
  405. ac_srcdir_defaulted=yes
  406. # Try the directory containing this script, then its parent.
  407. ac_prog=$0
  408. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  409. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  410. srcdir=$ac_confdir
  411. if test ! -r $srcdir/$ac_unique_file; then
  412. srcdir=..
  413. fi
  414. else
  415. ac_srcdir_defaulted=no
  416. fi
  417. if test ! -r $srcdir/$ac_unique_file; then
  418. if test "$ac_srcdir_defaulted" = yes; then
  419. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  420. else
  421. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  422. fi
  423. fi
  424. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  425. # Prefer explicitly selected file to automatically selected ones.
  426. if test -z "$CONFIG_SITE"; then
  427. if test "x$prefix" != xNONE; then
  428. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  429. else
  430. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  431. fi
  432. fi
  433. for ac_site_file in $CONFIG_SITE; do
  434. if test -r "$ac_site_file"; then
  435. echo "loading site script $ac_site_file"
  436. . "$ac_site_file"
  437. fi
  438. done
  439. if test -r "$cache_file"; then
  440. echo "loading cache $cache_file"
  441. . $cache_file
  442. else
  443. echo "creating cache $cache_file"
  444. > $cache_file
  445. fi
  446. ac_ext=c
  447. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  448. ac_cpp='$CPP $CPPFLAGS'
  449. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  450. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  451. cross_compiling=$ac_cv_prog_cc_cross
  452. ac_exeext=
  453. ac_objext=o
  454. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  455. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  456. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  457. ac_n= ac_c='
  458. ' ac_t=' '
  459. else
  460. ac_n=-n ac_c= ac_t=
  461. fi
  462. else
  463. ac_n= ac_c='\c' ac_t=
  464. fi
  465. ac_aux_dir=
  466. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  467. if test -f $ac_dir/install-sh; then
  468. ac_aux_dir=$ac_dir
  469. ac_install_sh="$ac_aux_dir/install-sh -c"
  470. break
  471. elif test -f $ac_dir/install.sh; then
  472. ac_aux_dir=$ac_dir
  473. ac_install_sh="$ac_aux_dir/install.sh -c"
  474. break
  475. fi
  476. done
  477. if test -z "$ac_aux_dir"; then
  478. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  479. fi
  480. ac_config_guess=$ac_aux_dir/config.guess
  481. ac_config_sub=$ac_aux_dir/config.sub
  482. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  483. # Find a good install program. We prefer a C program (faster),
  484. # so one script is as good as another. But avoid the broken or
  485. # incompatible versions:
  486. # SysV /etc/install, /usr/sbin/install
  487. # SunOS /usr/etc/install
  488. # IRIX /sbin/install
  489. # AIX /bin/install
  490. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  491. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  492. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  493. # ./install, which can be erroneously created by make from ./install.sh.
  494. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  495. echo "configure:562: checking for a BSD compatible install" >&5
  496. if test -z "$INSTALL"; then
  497. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  498. echo $ac_n "(cached) $ac_c" 1>&6
  499. else
  500. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  501. for ac_dir in $PATH; do
  502. # Account for people who put trailing slashes in PATH elements.
  503. case "$ac_dir/" in
  504. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  505. *)
  506. # OSF1 and SCO ODT 3.0 have their own names for install.
  507. # Don't use installbsd from OSF since it installs stuff as root
  508. # by default.
  509. for ac_prog in ginstall scoinst install; do
  510. if test -f $ac_dir/$ac_prog; then
  511. if test $ac_prog = install &&
  512. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  513. # AIX install. It has an incompatible calling convention.
  514. :
  515. else
  516. ac_cv_path_install="$ac_dir/$ac_prog -c"
  517. break 2
  518. fi
  519. fi
  520. done
  521. ;;
  522. esac
  523. done
  524. IFS="$ac_save_IFS"
  525. fi
  526. if test "${ac_cv_path_install+set}" = set; then
  527. INSTALL="$ac_cv_path_install"
  528. else
  529. # As a last resort, use the slow shell script. We don't cache a
  530. # path for INSTALL within a source directory, because that will
  531. # break other packages using the cache if that directory is
  532. # removed, or if the path is relative.
  533. INSTALL="$ac_install_sh"
  534. fi
  535. fi
  536. echo "$ac_t""$INSTALL" 1>&6
  537. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  538. # It thinks the first close brace ends the variable substitution.
  539. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  540. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  541. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  542. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  543. echo "configure:615: checking whether build environment is sane" >&5
  544. # Just in case
  545. sleep 1
  546. echo timestamp > conftestfile
  547. # Do `set' in a subshell so we don't clobber the current shell's
  548. # arguments. Must try -L first in case configure is actually a
  549. # symlink; some systems play weird games with the mod time of symlinks
  550. # (eg FreeBSD returns the mod time of the symlink's containing
  551. # directory).
  552. if (
  553. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  554. if test "$*" = "X"; then
  555. # -L didn't work.
  556. set X `ls -t $srcdir/configure conftestfile`
  557. fi
  558. if test "$*" != "X $srcdir/configure conftestfile" \
  559. && test "$*" != "X conftestfile $srcdir/configure"; then
  560. # If neither matched, then we have a broken ls. This can happen
  561. # if, for instance, CONFIG_SHELL is bash and it inherits a
  562. # broken ls alias from the environment. This has actually
  563. # happened. Such a system could not be considered "sane".
  564. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  565. alias in your environment" 1>&2; exit 1; }
  566. fi
  567. test "$2" = conftestfile
  568. )
  569. then
  570. # Ok.
  571. :
  572. else
  573. { echo "configure: error: newly created file is older than distributed files!
  574. Check your system clock" 1>&2; exit 1; }
  575. fi
  576. rm -f conftest*
  577. echo "$ac_t""yes" 1>&6
  578. if test "$program_transform_name" = s,x,x,; then
  579. program_transform_name=
  580. else
  581. # Double any \ or $. echo might interpret backslashes.
  582. cat <<\EOF_SED > conftestsed
  583. s,\\,\\\\,g; s,\$,$$,g
  584. EOF_SED
  585. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  586. rm -f conftestsed
  587. fi
  588. test "$program_prefix" != NONE &&
  589. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  590. # Use a double $ so make ignores it.
  591. test "$program_suffix" != NONE &&
  592. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  593. # sed with no file args requires a program.
  594. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  595. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  596. echo "configure:672: checking whether ${MAKE-make} sets \${MAKE}" >&5
  597. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  598. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  599. echo $ac_n "(cached) $ac_c" 1>&6
  600. else
  601. cat > conftestmake <<\EOF
  602. all:
  603. @echo 'ac_maketemp="${MAKE}"'
  604. EOF
  605. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  606. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  607. if test -n "$ac_maketemp"; then
  608. eval ac_cv_prog_make_${ac_make}_set=yes
  609. else
  610. eval ac_cv_prog_make_${ac_make}_set=no
  611. fi
  612. rm -f conftestmake
  613. fi
  614. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  615. echo "$ac_t""yes" 1>&6
  616. SET_MAKE=
  617. else
  618. echo "$ac_t""no" 1>&6
  619. SET_MAKE="MAKE=${MAKE-make}"
  620. fi
  621. PACKAGE=geresh
  622. VERSION=0.6.3
  623. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  624. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  625. fi
  626. cat >> confdefs.h <<EOF
  627. #define PACKAGE "$PACKAGE"
  628. EOF
  629. cat >> confdefs.h <<EOF
  630. #define VERSION "$VERSION"
  631. EOF
  632. missing_dir=`cd $ac_aux_dir && pwd`
  633. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  634. echo "configure:718: checking for working aclocal" >&5
  635. # Run test in a subshell; some versions of sh will print an error if
  636. # an executable is not found, even if stderr is redirected.
  637. # Redirect stdin to placate older versions of autoconf. Sigh.
  638. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  639. ACLOCAL=aclocal
  640. echo "$ac_t""found" 1>&6
  641. else
  642. ACLOCAL="$missing_dir/missing aclocal"
  643. echo "$ac_t""missing" 1>&6
  644. fi
  645. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  646. echo "configure:731: checking for working autoconf" >&5
  647. # Run test in a subshell; some versions of sh will print an error if
  648. # an executable is not found, even if stderr is redirected.
  649. # Redirect stdin to placate older versions of autoconf. Sigh.
  650. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  651. AUTOCONF=autoconf
  652. echo "$ac_t""found" 1>&6
  653. else
  654. AUTOCONF="$missing_dir/missing autoconf"
  655. echo "$ac_t""missing" 1>&6
  656. fi
  657. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  658. echo "configure:744: checking for working automake" >&5
  659. # Run test in a subshell; some versions of sh will print an error if
  660. # an executable is not found, even if stderr is redirected.
  661. # Redirect stdin to placate older versions of autoconf. Sigh.
  662. if (automake --version) < /dev/null > /dev/null 2>&1; then
  663. AUTOMAKE=automake
  664. echo "$ac_t""found" 1>&6
  665. else
  666. AUTOMAKE="$missing_dir/missing automake"
  667. echo "$ac_t""missing" 1>&6
  668. fi
  669. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  670. echo "configure:757: checking for working autoheader" >&5
  671. # Run test in a subshell; some versions of sh will print an error if
  672. # an executable is not found, even if stderr is redirected.
  673. # Redirect stdin to placate older versions of autoconf. Sigh.
  674. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  675. AUTOHEADER=autoheader
  676. echo "$ac_t""found" 1>&6
  677. else
  678. AUTOHEADER="$missing_dir/missing autoheader"
  679. echo "$ac_t""missing" 1>&6
  680. fi
  681. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  682. echo "configure:770: checking for working makeinfo" >&5
  683. # Run test in a subshell; some versions of sh will print an error if
  684. # an executable is not found, even if stderr is redirected.
  685. # Redirect stdin to placate older versions of autoconf. Sigh.
  686. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  687. MAKEINFO=makeinfo
  688. echo "$ac_t""found" 1>&6
  689. else
  690. MAKEINFO="$missing_dir/missing makeinfo"
  691. echo "$ac_t""missing" 1>&6
  692. fi
  693. # Extract the first word of "gcc", so it can be a program name with args.
  694. set dummy gcc; ac_word=$2
  695. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  696. echo "configure:790: checking for $ac_word" >&5
  697. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  698. echo $ac_n "(cached) $ac_c" 1>&6
  699. else
  700. if test -n "$CC"; then
  701. ac_cv_prog_CC="$CC" # Let the user override the test.
  702. else
  703. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  704. ac_dummy="$PATH"
  705. for ac_dir in $ac_dummy; do
  706. test -z "$ac_dir" && ac_dir=.
  707. if test -f $ac_dir/$ac_word; then
  708. ac_cv_prog_CC="gcc"
  709. break
  710. fi
  711. done
  712. IFS="$ac_save_ifs"
  713. fi
  714. fi
  715. CC="$ac_cv_prog_CC"
  716. if test -n "$CC"; then
  717. echo "$ac_t""$CC" 1>&6
  718. else
  719. echo "$ac_t""no" 1>&6
  720. fi
  721. if test -z "$CC"; then
  722. # Extract the first word of "cc", so it can be a program name with args.
  723. set dummy cc; ac_word=$2
  724. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  725. echo "configure:820: checking for $ac_word" >&5
  726. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  727. echo $ac_n "(cached) $ac_c" 1>&6
  728. else
  729. if test -n "$CC"; then
  730. ac_cv_prog_CC="$CC" # Let the user override the test.
  731. else
  732. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  733. ac_prog_rejected=no
  734. ac_dummy="$PATH"
  735. for ac_dir in $ac_dummy; do
  736. test -z "$ac_dir" && ac_dir=.
  737. if test -f $ac_dir/$ac_word; then
  738. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  739. ac_prog_rejected=yes
  740. continue
  741. fi
  742. ac_cv_prog_CC="cc"
  743. break
  744. fi
  745. done
  746. IFS="$ac_save_ifs"
  747. if test $ac_prog_rejected = yes; then
  748. # We found a bogon in the path, so make sure we never use it.
  749. set dummy $ac_cv_prog_CC
  750. shift
  751. if test $# -gt 0; then
  752. # We chose a different compiler from the bogus one.
  753. # However, it has the same basename, so the bogon will be chosen
  754. # first if we set CC to just the basename; use the full file name.
  755. shift
  756. set dummy "$ac_dir/$ac_word" "$@"
  757. shift
  758. ac_cv_prog_CC="$@"
  759. fi
  760. fi
  761. fi
  762. fi
  763. CC="$ac_cv_prog_CC"
  764. if test -n "$CC"; then
  765. echo "$ac_t""$CC" 1>&6
  766. else
  767. echo "$ac_t""no" 1>&6
  768. fi
  769. if test -z "$CC"; then
  770. case "`uname -s`" in
  771. *win32* | *WIN32*)
  772. # Extract the first word of "cl", so it can be a program name with args.
  773. set dummy cl; ac_word=$2
  774. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  775. echo "configure:871: checking for $ac_word" >&5
  776. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  777. echo $ac_n "(cached) $ac_c" 1>&6
  778. else
  779. if test -n "$CC"; then
  780. ac_cv_prog_CC="$CC" # Let the user override the test.
  781. else
  782. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  783. ac_dummy="$PATH"
  784. for ac_dir in $ac_dummy; do
  785. test -z "$ac_dir" && ac_dir=.
  786. if test -f $ac_dir/$ac_word; then
  787. ac_cv_prog_CC="cl"
  788. break
  789. fi
  790. done
  791. IFS="$ac_save_ifs"
  792. fi
  793. fi
  794. CC="$ac_cv_prog_CC"
  795. if test -n "$CC"; then
  796. echo "$ac_t""$CC" 1>&6
  797. else
  798. echo "$ac_t""no" 1>&6
  799. fi
  800. ;;
  801. esac
  802. fi
  803. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  804. fi
  805. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  806. echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  807. ac_ext=c
  808. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  809. ac_cpp='$CPP $CPPFLAGS'
  810. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  811. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  812. cross_compiling=$ac_cv_prog_cc_cross
  813. cat > conftest.$ac_ext << EOF
  814. #line 914 "configure"
  815. #include "confdefs.h"
  816. main(){return(0);}
  817. EOF
  818. if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  819. ac_cv_prog_cc_works=yes
  820. # If we can't run a trivial program, we are probably using a cross compiler.
  821. if (./conftest; exit) 2>/dev/null; then
  822. ac_cv_prog_cc_cross=no
  823. else
  824. ac_cv_prog_cc_cross=yes
  825. fi
  826. else
  827. echo "configure: failed program was:" >&5
  828. cat conftest.$ac_ext >&5
  829. ac_cv_prog_cc_works=no
  830. fi
  831. rm -fr conftest*
  832. ac_ext=c
  833. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  834. ac_cpp='$CPP $CPPFLAGS'
  835. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  836. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  837. cross_compiling=$ac_cv_prog_cc_cross
  838. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  839. if test $ac_cv_prog_cc_works = no; then
  840. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  841. fi
  842. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  843. echo "configure:945: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  844. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  845. cross_compiling=$ac_cv_prog_cc_cross
  846. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  847. echo "configure:950: checking whether we are using GNU C" >&5
  848. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  849. echo $ac_n "(cached) $ac_c" 1>&6
  850. else
  851. cat > conftest.c <<EOF
  852. #ifdef __GNUC__
  853. yes;
  854. #endif
  855. EOF
  856. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  857. ac_cv_prog_gcc=yes
  858. else
  859. ac_cv_prog_gcc=no
  860. fi
  861. fi
  862. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  863. if test $ac_cv_prog_gcc = yes; then
  864. GCC=yes
  865. else
  866. GCC=
  867. fi
  868. ac_test_CFLAGS="${CFLAGS+set}"
  869. ac_save_CFLAGS="$CFLAGS"
  870. CFLAGS=
  871. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  872. echo "configure:978: checking whether ${CC-cc} accepts -g" >&5
  873. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  874. echo $ac_n "(cached) $ac_c" 1>&6
  875. else
  876. echo 'void f(){}' > conftest.c
  877. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  878. ac_cv_prog_cc_g=yes
  879. else
  880. ac_cv_prog_cc_g=no
  881. fi
  882. rm -f conftest*
  883. fi
  884. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  885. if test "$ac_test_CFLAGS" = set; then
  886. CFLAGS="$ac_save_CFLAGS"
  887. elif test $ac_cv_prog_cc_g = yes; then
  888. if test "$GCC" = yes; then
  889. CFLAGS="-g -O2"
  890. else
  891. CFLAGS="-g"
  892. fi
  893. else
  894. if test "$GCC" = yes; then
  895. CFLAGS="-O2"
  896. else
  897. CFLAGS=
  898. fi
  899. fi
  900. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  901. echo "configure:1010: checking how to run the C preprocessor" >&5
  902. # On Suns, sometimes $CPP names a directory.
  903. if test -n "$CPP" && test -d "$CPP"; then
  904. CPP=
  905. fi
  906. if test -z "$CPP"; then
  907. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  908. echo $ac_n "(cached) $ac_c" 1>&6
  909. else
  910. # This must be in double quotes, not single quotes, because CPP may get
  911. # substituted into the Makefile and "${CC-cc}" will confuse make.
  912. CPP="${CC-cc} -E"
  913. # On the NeXT, cc -E runs the code through the compiler's parser,
  914. # not just through cpp.
  915. cat > conftest.$ac_ext <<EOF
  916. #line 1025 "configure"
  917. #include "confdefs.h"
  918. #include <assert.h>
  919. Syntax Error
  920. EOF
  921. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  922. { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  923. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  924. if test -z "$ac_err"; then
  925. :
  926. else
  927. echo "$ac_err" >&5
  928. echo "configure: failed program was:" >&5
  929. cat conftest.$ac_ext >&5
  930. rm -rf conftest*
  931. CPP="${CC-cc} -E -traditional-cpp"
  932. cat > conftest.$ac_ext <<EOF
  933. #line 1042 "configure"
  934. #include "confdefs.h"
  935. #include <assert.h>
  936. Syntax Error
  937. EOF
  938. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  939. { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  940. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  941. if test -z "$ac_err"; then
  942. :
  943. else
  944. echo "$ac_err" >&5
  945. echo "configure: failed program was:" >&5
  946. cat conftest.$ac_ext >&5
  947. rm -rf conftest*
  948. CPP="${CC-cc} -nologo -E"
  949. cat > conftest.$ac_ext <<EOF
  950. #line 1059 "configure"
  951. #include "confdefs.h"
  952. #include <assert.h>
  953. Syntax Error
  954. EOF
  955. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  956. { (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  957. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  958. if test -z "$ac_err"; then
  959. :
  960. else
  961. echo "$ac_err" >&5
  962. echo "configure: failed program was:" >&5
  963. cat conftest.$ac_ext >&5
  964. rm -rf conftest*
  965. CPP=/lib/cpp
  966. fi
  967. rm -f conftest*
  968. fi
  969. rm -f conftest*
  970. fi
  971. rm -f conftest*
  972. ac_cv_prog_CPP="$CPP"
  973. fi
  974. CPP="$ac_cv_prog_CPP"
  975. else
  976. ac_cv_prog_CPP="$CPP"
  977. fi
  978. echo "$ac_t""$CPP" 1>&6
  979. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  980. do
  981. # Extract the first word of "$ac_prog", so it can be a program name with args.
  982. set dummy $ac_prog; ac_word=$2
  983. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  984. echo "configure:1094: checking for $ac_word" >&5
  985. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  986. echo $ac_n "(cached) $ac_c" 1>&6
  987. else
  988. if test -n "$CXX"; then
  989. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  990. else
  991. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  992. ac_dummy="$PATH"
  993. for ac_dir in $ac_dummy; do
  994. test -z "$ac_dir" && ac_dir=.
  995. if test -f $ac_dir/$ac_word; then
  996. ac_cv_prog_CXX="$ac_prog"
  997. break
  998. fi
  999. done
  1000. IFS="$ac_save_ifs"
  1001. fi
  1002. fi
  1003. CXX="$ac_cv_prog_CXX"
  1004. if test -n "$CXX"; then
  1005. echo "$ac_t""$CXX" 1>&6
  1006. else
  1007. echo "$ac_t""no" 1>&6
  1008. fi
  1009. test -n "$CXX" && break
  1010. done
  1011. test -n "$CXX" || CXX="gcc"
  1012. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1013. echo "configure:1126: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1014. ac_ext=C
  1015. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1016. ac_cpp='$CXXCPP $CPPFLAGS'
  1017. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1018. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1019. cross_compiling=$ac_cv_prog_cxx_cross
  1020. cat > conftest.$ac_ext << EOF
  1021. #line 1137 "configure"
  1022. #include "confdefs.h"
  1023. int main(){return(0);}
  1024. EOF
  1025. if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1026. ac_cv_prog_cxx_works=yes
  1027. # If we can't run a trivial program, we are probably using a cross compiler.
  1028. if (./conftest; exit) 2>/dev/null; then
  1029. ac_cv_prog_cxx_cross=no
  1030. else
  1031. ac_cv_prog_cxx_cross=yes
  1032. fi
  1033. else
  1034. echo "configure: failed program was:" >&5
  1035. cat conftest.$ac_ext >&5
  1036. ac_cv_prog_cxx_works=no
  1037. fi
  1038. rm -fr conftest*
  1039. ac_ext=c
  1040. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1041. ac_cpp='$CPP $CPPFLAGS'
  1042. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1043. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1044. cross_compiling=$ac_cv_prog_cc_cross
  1045. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1046. if test $ac_cv_prog_cxx_works = no; then
  1047. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1048. fi
  1049. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1050. echo "configure:1168: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1051. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1052. cross_compiling=$ac_cv_prog_cxx_cross
  1053. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1054. echo "configure:1173: checking whether we are using GNU C++" >&5
  1055. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1056. echo $ac_n "(cached) $ac_c" 1>&6
  1057. else
  1058. cat > conftest.C <<EOF
  1059. #ifdef __GNUC__
  1060. yes;
  1061. #endif
  1062. EOF
  1063. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1064. ac_cv_prog_gxx=yes
  1065. else
  1066. ac_cv_prog_gxx=no
  1067. fi
  1068. fi
  1069. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1070. if test $ac_cv_prog_gxx = yes; then
  1071. GXX=yes
  1072. else
  1073. GXX=
  1074. fi
  1075. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1076. ac_save_CXXFLAGS="$CXXFLAGS"
  1077. CXXFLAGS=
  1078. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1079. echo "configure:1201: checking whether ${CXX-g++} accepts -g" >&5
  1080. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1081. echo $ac_n "(cached) $ac_c" 1>&6
  1082. else
  1083. echo 'void f(){}' > conftest.cc
  1084. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1085. ac_cv_prog_cxx_g=yes
  1086. else
  1087. ac_cv_prog_cxx_g=no
  1088. fi
  1089. rm -f conftest*
  1090. fi
  1091. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1092. if test "$ac_test_CXXFLAGS" = set; then
  1093. CXXFLAGS="$ac_save_CXXFLAGS"
  1094. elif test $ac_cv_prog_cxx_g = yes; then
  1095. if test "$GXX" = yes; then
  1096. CXXFLAGS="-g -O2"
  1097. else
  1098. CXXFLAGS="-g"
  1099. fi
  1100. else
  1101. if test "$GXX" = yes; then
  1102. CXXFLAGS="-O2"
  1103. else
  1104. CXXFLAGS=
  1105. fi
  1106. fi
  1107. for ac_declaration in \
  1108. ''\
  1109. '#include <stdlib.h>' \
  1110. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1111. 'extern "C" void std::exit (int); using std::exit;' \
  1112. 'extern "C" void exit (int) throw ();' \
  1113. 'extern "C" void exit (int);' \
  1114. 'void exit (int);'
  1115. do
  1116. cat > conftest.$ac_ext <<EOF
  1117. #line 1242 "configure"
  1118. #include "confdefs.h"
  1119. #include <stdlib.h>
  1120. $ac_declaration
  1121. int main() {
  1122. exit (42);
  1123. ; return 0; }
  1124. EOF
  1125. if { (eval echo configure:1250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1126. :
  1127. else
  1128. echo "configure: failed program was:" >&5
  1129. cat conftest.$ac_ext >&5
  1130. rm -rf conftest*
  1131. continue
  1132. fi
  1133. rm -f conftest*
  1134. cat > conftest.$ac_ext <<EOF
  1135. #line 1260 "configure"
  1136. #include "confdefs.h"
  1137. $ac_declaration
  1138. int main() {
  1139. exit (42);
  1140. ; return 0; }
  1141. EOF
  1142. if { (eval echo configure:1267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1143. rm -rf conftest*
  1144. break
  1145. else
  1146. echo "configure: failed program was:" >&5
  1147. cat conftest.$ac_ext >&5
  1148. fi
  1149. rm -f conftest*
  1150. done
  1151. if test -n "$ac_declaration"; then
  1152. echo '#ifdef __cplusplus' >>confdefs.h
  1153. echo $ac_declaration >>confdefs.h
  1154. echo '#endif' >>confdefs.h
  1155. fi
  1156. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  1157. echo "configure:1284: checking how to run the C++ preprocessor" >&5
  1158. if test -z "$CXXCPP"; then
  1159. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  1160. echo $ac_n "(cached) $ac_c" 1>&6
  1161. else
  1162. ac_ext=C
  1163. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1164. ac_cpp='$CXXCPP $CPPFLAGS'
  1165. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1166. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1167. cross_compiling=$ac_cv_prog_cxx_cross
  1168. CXXCPP="${CXX-g++} -E"
  1169. cat > conftest.$ac_ext <<EOF
  1170. #line 1297 "configure"
  1171. #include "confdefs.h"
  1172. #include <stdlib.h>
  1173. EOF
  1174. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1175. { (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1176. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1177. if test -z "$ac_err"; then
  1178. :
  1179. else
  1180. echo "$ac_err" >&5
  1181. echo "configure: failed program was:" >&5
  1182. cat conftest.$ac_ext >&5
  1183. rm -rf conftest*
  1184. CXXCPP=/lib/cpp
  1185. fi
  1186. rm -f conftest*
  1187. ac_cv_prog_CXXCPP="$CXXCPP"
  1188. ac_ext=c
  1189. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1190. ac_cpp='$CPP $CPPFLAGS'
  1191. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1192. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1193. cross_compiling=$ac_cv_prog_cc_cross
  1194. fi
  1195. fi
  1196. CXXCPP="$ac_cv_prog_CXXCPP"
  1197. echo "$ac_t""$CXXCPP" 1>&6
  1198. # Find a good install program. We prefer a C program (faster),
  1199. # so one script is as good as another. But avoid the broken or
  1200. # incompatible versions:
  1201. # SysV /etc/install, /usr/sbin/install
  1202. # SunOS /usr/etc/install
  1203. # IRIX /sbin/install
  1204. # AIX /bin/install
  1205. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1206. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1207. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1208. # ./install, which can be erroneously created by make from ./install.sh.
  1209. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1210. echo "configure:1338: checking for a BSD compatible install" >&5
  1211. if test -z "$INSTALL"; then
  1212. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1213. echo $ac_n "(cached) $ac_c" 1>&6
  1214. else
  1215. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1216. for ac_dir in $PATH; do
  1217. # Account for people who put trailing slashes in PATH elements.
  1218. case "$ac_dir/" in
  1219. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1220. *)
  1221. # OSF1 and SCO ODT 3.0 have their own names for install.
  1222. # Don't use installbsd from OSF since it installs stuff as root
  1223. # by default.
  1224. for ac_prog in ginstall scoinst install; do
  1225. if test -f $ac_dir/$ac_prog; then
  1226. if test $ac_prog = install &&
  1227. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1228. # AIX install. It has an incompatible calling convention.
  1229. :
  1230. else
  1231. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1232. break 2
  1233. fi
  1234. fi
  1235. done
  1236. ;;
  1237. esac
  1238. done
  1239. IFS="$ac_save_IFS"
  1240. fi
  1241. if test "${ac_cv_path_install+set}" = set; then
  1242. INSTALL="$ac_cv_path_install"
  1243. else
  1244. # As a last resort, use the slow shell script. We don't cache a
  1245. # path for INSTALL within a source directory, because that will
  1246. # break other packages using the cache if that directory is
  1247. # removed, or if the path is relative.
  1248. INSTALL="$ac_install_sh"
  1249. fi
  1250. fi
  1251. echo "$ac_t""$INSTALL" 1>&6
  1252. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1253. # It thinks the first close brace ends the variable substitution.
  1254. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1255. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1256. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1257. ac_ext=C
  1258. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1259. ac_cpp='$CXXCPP $CPPFLAGS'
  1260. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1261. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1262. cross_compiling=$ac_cv_prog_cxx_cross
  1263. if test "$program_transform_name" = s,x,x,; then
  1264. program_transform_name=
  1265. else
  1266. # Double any \ or $. echo might interpret backslashes.
  1267. cat <<\EOF_SED > conftestsed
  1268. s,\\,\\\\,g; s,\$,$$,g
  1269. EOF_SED
  1270. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1271. rm -f conftestsed
  1272. fi
  1273. test "$program_prefix" != NONE &&
  1274. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1275. # Use a double $ so make ignores it.
  1276. test "$program_suffix" != NONE &&
  1277. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1278. # sed with no file args requires a program.
  1279. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1280. debugging_support=no
  1281. # Check whether --enable-debug or --disable-debug was given.
  1282. if test "${enable_debug+set}" = set; then
  1283. enableval="$enable_debug"
  1284. if test "$enableval" = yes; then
  1285. debugging_support=yes
  1286. cat >> confdefs.h <<\EOF
  1287. #define DEBUG 1
  1288. EOF
  1289. fi
  1290. fi
  1291. if test "x$FRIBIDI_CONFIG" = x; then
  1292. # Extract the first word of "fribidi-config", so it can be a program name with args.
  1293. set dummy fribidi-config; ac_word=$2
  1294. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1295. echo "configure:1439: checking for $ac_word" >&5
  1296. if eval "test \"`echo '$''{'ac_cv_path_FRIBIDI_CONFIG'+set}'`\" = set"; then
  1297. echo $ac_n "(cached) $ac_c" 1>&6
  1298. else
  1299. case "$FRIBIDI_CONFIG" in
  1300. /*)
  1301. ac_cv_path_FRIBIDI_CONFIG="$FRIBIDI_CONFIG" # Let the user override the test with a path.
  1302. ;;
  1303. ?:/*)
  1304. ac_cv_path_FRIBIDI_CONFIG="$FRIBIDI_CONFIG" # Let the user override the test with a dos path.
  1305. ;;
  1306. *)
  1307. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1308. ac_dummy="$PATH"
  1309. for ac_dir in $ac_dummy; do
  1310. test -z "$ac_dir" && ac_dir=.
  1311. if test -f $ac_dir/$ac_word; then
  1312. ac_cv_path_FRIBIDI_CONFIG="$ac_dir/$ac_word"
  1313. break
  1314. fi
  1315. done
  1316. IFS="$ac_save_ifs"
  1317. ;;
  1318. esac
  1319. fi
  1320. FRIBIDI_CONFIG="$ac_cv_path_FRIBIDI_CONFIG"
  1321. if test -n "$FRIBIDI_CONFIG"; then
  1322. echo "$ac_t""$FRIBIDI_CONFIG" 1>&6
  1323. else
  1324. echo "$ac_t""no" 1>&6
  1325. fi
  1326. fi
  1327. test "x$FRIBIDI_CONFIG" = x && { echo "configure: error: Can't locate the fribidi-config program" 1>&2; exit 1; }
  1328. test ! -x "$FRIBIDI_CONFIG" && { echo "configure: error: Can't execute the program '$FRIBIDI_CONFIG'" 1>&2; exit 1; }
  1329. FRIBIDI_CXXFLAGS=`$FRIBIDI_CONFIG --cflags`
  1330. if test "x$FRIBIDI_CXXFLAGS" = x-I/usr/include; then
  1331. ac_safe=`echo "fribidi/fribidi.h" | sed 'y%./+-%__p_%'`
  1332. echo $ac_n "checking for fribidi/fribidi.h""... $ac_c" 1>&6
  1333. echo "configure:1481: checking for fribidi/fribidi.h" >&5
  1334. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1335. echo $ac_n "(cached) $ac_c" 1>&6
  1336. else
  1337. cat > conftest.$ac_ext <<EOF
  1338. #line 1486 "configure"
  1339. #include "confdefs.h"
  1340. #include <fribidi/fribidi.h>
  1341. EOF
  1342. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1343. { (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1344. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1345. if test -z "$ac_err"; then
  1346. rm -rf conftest*
  1347. eval "ac_cv_header_$ac_safe=yes"
  1348. else
  1349. echo "$ac_err" >&5
  1350. echo "configure: failed program was:" >&5
  1351. cat conftest.$ac_ext >&5
  1352. rm -rf conftest*
  1353. eval "ac_cv_header_$ac_safe=no"
  1354. fi
  1355. rm -f conftest*
  1356. fi
  1357. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1358. echo "$ac_t""yes" 1>&6
  1359. :
  1360. else
  1361. echo "$ac_t""no" 1>&6
  1362. CXXFLAGS="$CXXFLAGS $FRIBIDI_CXXFLAGS"
  1363. fi
  1364. else
  1365. CXXFLAGS="$CXXFLAGS $FRIBIDI_CXXFLAGS"
  1366. fi
  1367. LDFLAGS="$LDFLAGS `$FRIBIDI_CONFIG --libs`"
  1368. for ac_func in fribidi_log2vis fribidi_log2vis_get_embedding_levels
  1369. do
  1370. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1371. echo "configure:1521: checking for $ac_func" >&5
  1372. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1373. echo $ac_n "(cached) $ac_c" 1>&6
  1374. else
  1375. cat > conftest.$ac_ext <<EOF
  1376. #line 1526 "configure"
  1377. #include "confdefs.h"
  1378. /* System header to define __stub macros and hopefully few prototypes,
  1379. which can conflict with char $ac_func(); below. */
  1380. #include <assert.h>
  1381. /* Override any gcc2 internal prototype to avoid an error. */
  1382. #ifdef __cplusplus
  1383. extern "C"
  1384. #endif
  1385. /* We use char because int might match the return type of a gcc2
  1386. builtin and then its argument prototype would still apply. */
  1387. char $ac_func();
  1388. int main() {
  1389. /* The GNU C library defines this for functions which it implements
  1390. to always fail with ENOSYS. Some functions are actually named
  1391. something starting with __ and the normal name is an alias. */
  1392. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1393. choke me
  1394. #else
  1395. $ac_func();
  1396. #endif
  1397. ; return 0; }
  1398. EOF
  1399. if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1400. rm -rf conftest*
  1401. eval "ac_cv_func_$ac_func=yes"
  1402. else
  1403. echo "configure: failed program was:" >&5
  1404. cat conftest.$ac_ext >&5
  1405. rm -rf conftest*
  1406. eval "ac_cv_func_$ac_func=no"
  1407. fi
  1408. rm -f conftest*
  1409. fi
  1410. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1411. echo "$ac_t""yes" 1>&6
  1412. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1413. cat >> confdefs.h <<EOF
  1414. #define $ac_tr_func 1
  1415. EOF
  1416. else
  1417. echo "$ac_t""no" 1>&6
  1418. { echo "configure: error: A required FriBiDi function doesn't exist" 1>&2; exit 1; }
  1419. fi
  1420. done
  1421. echo $ac_n "checking your FriBiDi library using a short test program""... $ac_c" 1>&6
  1422. echo "configure:1579: checking your FriBiDi library using a short test program" >&5
  1423. if test "$cross_compiling" = yes; then
  1424. { echo "configure: error: Can't cross-compile this test" 1>&2; exit 1; }
  1425. else
  1426. cat > conftest.$ac_ext <<EOF
  1427. #line 1584 "configure"
  1428. #include "confdefs.h"
  1429. #include <stdio.h>
  1430. #include <fribidi/fribidi.h>
  1431. typedef FriBidiChar unichar;
  1432. typedef FriBidiCharType ctype_t;
  1433. typedef FriBidiLevel level_t;
  1434. typedef FriBidiStrIndex idx_t;
  1435. int main()
  1436. {
  1437. unichar unistr[] = { 0x5D0, 0x5D1, 0x5D2, 'A', 0 }; /* alef, bet, gimel, 'A' */
  1438. #define UNISTRLEN 4
  1439. level_t levels[UNISTRLEN];
  1440. unichar deststr[UNISTRLEN + 1];
  1441. ctype_t ctype;
  1442. ctype_t base_dir = FRIBIDI_TYPE_RTL;
  1443. unichar lparen = '(';
  1444. unichar lparen_mirror;
  1445. /* make sure all these constants are defined. */
  1446. ctype = FRIBIDI_TYPE_LTR | FRIBIDI_TYPE_RTL | FRIBIDI_TYPE_ON | FRIBIDI_TYPE_NSM;
  1447. if (sizeof(unichar) != 4) {
  1448. printf("\nERROR: FriBiDi doesn't use UCS-4\n");
  1449. /* I'm planning support for 16 bit chars someday. */
  1450. return 1;
  1451. }
  1452. ctype = fribidi_get_type(unistr[0]);
  1453. if (!FRIBIDI_IS_LETTER(ctype) ||
  1454. !FRIBIDI_IS_RTL(ctype) ||
  1455. FRIBIDI_IS_SPACE(ctype) ||
  1456. FRIBIDI_IS_NUMBER(ctype))
  1457. {
  1458. printf("\nERROR: Wrong properties for the Hebrew letter Alef\n");
  1459. return 1;
  1460. }
  1461. fribidi_log2vis_get_embedding_levels(unistr, UNISTRLEN, &base_dir, levels);
  1462. if (levels[0] != 1 ||
  1463. levels[1] != 1 ||
  1464. levels[2] != 1 ||
  1465. levels[3] != 2)
  1466. {
  1467. printf("\nERROR: fribidi_log2vis_get_embedding_levels() "
  1468. "gives wrong results\n");
  1469. return 1;
  1470. }
  1471. fribidi_log2vis(unistr, UNISTRLEN, &base_dir, deststr, NULL, NULL, NULL);
  1472. if (deststr[0] != 'A' ||
  1473. deststr[1] != 0x5D2 ||
  1474. deststr[2] != 0x5D1 ||
  1475. deststr[3] != 0x5D0)
  1476. {
  1477. printf("\nERROR: fribidi_log2vis() gives wrong results\n");
  1478. return 1;
  1479. }
  1480. if (!fribidi_get_mirror_char(lparen, &lparen_mirror) ||
  1481. lparen_mirror != ')')
  1482. {
  1483. printf("\nERROR: fribidi_get_mirror_char() gives wrong results\n");
  1484. return 1;
  1485. }
  1486. return 0;
  1487. }
  1488. EOF
  1489. if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1490. then
  1491. echo "$ac_t""OK" 1>&6
  1492. else
  1493. echo "configure: failed program was:" >&5
  1494. cat conftest.$ac_ext >&5
  1495. rm -fr conftest*
  1496. { echo "configure: error: The test program failed; check 'config.log'. You probably have an old version of FriBiDi; please upgrade." 1>&2; exit 1; }
  1497. fi
  1498. rm -fr conftest*
  1499. fi
  1500. # Check whether --with-curses or --without-curses was given.
  1501. if test "${with_curses+set}" = set; then
  1502. withval="$with_curses"
  1503. case $withval in
  1504. no)
  1505. { echo "configure: error: I can only use curses, so don't specify --without-curses!" 1>&2; exit 1; };;
  1506. yes) ;;
  1507. *)
  1508. if test "x$withval" != x/usr; then
  1509. LDFLAGS="-L${withval}/lib $LDFLAGS"
  1510. CPPFLAGS="$CPPFLAGS -I${withval}/include"
  1511. fi;;
  1512. esac
  1513. fi
  1514. curses_lib=ncursesw
  1515. curses_header=
  1516. # First, check for ncursesw
  1517. echo $ac_n "checking for waddnwstr in -lncursesw""... $ac_c" 1>&6
  1518. echo "configure:1694: checking for waddnwstr in -lncursesw" >&5
  1519. ac_lib_var=`echo ncursesw'_'waddnwstr | sed 'y%./+-%__p_%'`
  1520. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1521. echo $ac_n "(cached) $ac_c" 1>&6
  1522. else
  1523. ac_save_LIBS="$LIBS"
  1524. LIBS="-lncursesw $LIBS"
  1525. cat > conftest.$ac_ext <<EOF
  1526. #line 1702 "configure"
  1527. #include "confdefs.h"
  1528. /* Override any gcc2 internal prototype to avoid an error. */
  1529. #ifdef __cplusplus
  1530. extern "C"
  1531. #endif
  1532. /* We use char because int might match the return type of a gcc2
  1533. builtin and then its argument prototype would still apply. */
  1534. char waddnwstr();
  1535. int main() {
  1536. waddnwstr()
  1537. ; return 0; }
  1538. EOF
  1539. if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1540. rm -rf conftest*
  1541. eval "ac_cv_lib_$ac_lib_var=yes"
  1542. else
  1543. echo "configure: failed program was:" >&5
  1544. cat conftest.$ac_ext >&5
  1545. rm -rf conftest*
  1546. eval "ac_cv_lib_$ac_lib_var=no"
  1547. fi
  1548. rm -f conftest*
  1549. LIBS="$ac_save_LIBS"
  1550. fi
  1551. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1552. echo "$ac_t""yes" 1>&6
  1553. ac_tr_lib=HAVE_LIB`echo ncursesw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1554. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1555. cat >> confdefs.h <<EOF
  1556. #define $ac_tr_lib 1
  1557. EOF
  1558. LIBS="-lncursesw $LIBS"
  1559. else
  1560. echo "$ac_t""no" 1>&6
  1561. curses_lib=
  1562. fi
  1563. if test "x$curses_lib" = xncursesw; then
  1564. # look for ncursesw headers
  1565. for ac_hdr in ncursesw/ncurses.h
  1566. do
  1567. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1568. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1569. echo "configure:1750: checking for $ac_hdr" >&5
  1570. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1571. echo $ac_n "(cached) $ac_c" 1>&6
  1572. else
  1573. cat > conftest.$ac_ext <<EOF
  1574. #line 1755 "configure"
  1575. #include "confdefs.h"
  1576. #include <$ac_hdr>
  1577. EOF
  1578. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1579. { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1580. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1581. if test -z "$ac_err"; then
  1582. rm -rf conftest*
  1583. eval "ac_cv_header_$ac_safe=yes"
  1584. else
  1585. echo "$ac_err" >&5
  1586. echo "configure: failed program was:" >&5
  1587. cat conftest.$ac_ext >&5
  1588. rm -rf conftest*
  1589. eval "ac_cv_header_$ac_safe=no"
  1590. fi
  1591. rm -f conftest*
  1592. fi
  1593. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1594. echo "$ac_t""yes" 1>&6
  1595. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1596. cat >> confdefs.h <<EOF
  1597. #define $ac_tr_hdr 1
  1598. EOF
  1599. curses_header="ncursesw/ncurses.h"
  1600. else
  1601. echo "$ac_t""no" 1>&6
  1602. fi
  1603. done
  1604. if test "x$curses_header" = x; then
  1605. for ac_hdr in ncurses.h
  1606. do
  1607. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1608. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1609. echo "configure:1791: checking for $ac_hdr" >&5
  1610. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1611. echo $ac_n "(cached) $ac_c" 1>&6
  1612. else
  1613. cat > conftest.$ac_ext <<EOF
  1614. #line 1796 "configure"
  1615. #include "confdefs.h"
  1616. #include <$ac_hdr>
  1617. EOF
  1618. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1619. { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1620. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1621. if test -z "$ac_err"; then
  1622. rm -rf conftest*
  1623. eval "ac_cv_header_$ac_safe=yes"
  1624. else
  1625. echo "$ac_err" >&5
  1626. echo "configure: failed program was:" >&5
  1627. cat conftest.$ac_ext >&5
  1628. rm -rf conftest*
  1629. eval "ac_cv_header_$ac_safe=no"
  1630. fi
  1631. rm -f conftest*
  1632. fi
  1633. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1634. echo "$ac_t""yes" 1>&6
  1635. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1636. cat >> confdefs.h <<EOF
  1637. #define $ac_tr_hdr 1
  1638. EOF
  1639. curses_header="ncurses.h"
  1640. else
  1641. echo "$ac_t""no" 1>&6
  1642. { echo "configure: error: Can't find ncursesw's header file!" 1>&2; exit 1; }
  1643. fi
  1644. done
  1645. fi
  1646. # make sure it is indeed the header of the wchar_t version.
  1647. cat > conftest.$ac_ext <<EOF
  1648. #line 1831 "configure"
  1649. #include "confdefs.h"
  1650. #define _XOPEN_SOURCE_EXTENDED 1
  1651. #include <$curses_header>
  1652. int main() {
  1653. wchar_t ch;
  1654. waddnwstr((WINDOW*)0, &ch, 1);
  1655. ; return 0; }
  1656. EOF
  1657. if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1658. :
  1659. else
  1660. echo "configure: failed program was:" >&5
  1661. cat conftest.$ac_ext >&5
  1662. rm -rf conftest*
  1663. { echo "configure: error: I can't find ncursesw's header file! please check config.log" 1>&2; exit 1; }
  1664. fi
  1665. rm -f conftest*
  1666. cat >> confdefs.h <<\EOF
  1667. #define HAVE_WIDE_CURSES 1
  1668. EOF
  1669. else
  1670. curses_lib=ncurses
  1671. for ac_hdr in curses.h ncurses.h
  1672. do
  1673. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1674. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1675. echo "configure:1861: checking for $ac_hdr" >&5
  1676. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1677. echo $ac_n "(cached) $ac_c" 1>&6
  1678. else
  1679. cat > conftest.$ac_ext <<EOF
  1680. #line 1866 "configure"
  1681. #include "confdefs.h"
  1682. #include <$ac_hdr>
  1683. EOF
  1684. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1685. { (eval echo configure:1871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1686. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1687. if test -z "$ac_err"; then
  1688. rm -rf conftest*
  1689. eval "ac_cv_header_$ac_safe=yes"
  1690. else
  1691. echo "$ac_err" >&5
  1692. echo "configure: failed program was:" >&5
  1693. cat conftest.$ac_ext >&5
  1694. rm -rf conftest*
  1695. eval "ac_cv_header_$ac_safe=no"
  1696. fi
  1697. rm -f conftest*
  1698. fi
  1699. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1700. echo "$ac_t""yes" 1>&6
  1701. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1702. cat >> confdefs.h <<EOF
  1703. #define $ac_tr_hdr 1
  1704. EOF
  1705. else
  1706. echo "$ac_t""no" 1>&6
  1707. fi
  1708. done
  1709. echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
  1710. echo "configure:1898: checking for initscr in -lncurses" >&5
  1711. ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
  1712. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1713. echo $ac_n "(cached) $ac_c" 1>&6
  1714. else
  1715. ac_save_LIBS="$LIBS"
  1716. LIBS="-lncurses $LIBS"
  1717. cat > conftest.$ac_ext <<EOF
  1718. #line 1906 "configure"
  1719. #include "confdefs.h"
  1720. /* Override any gcc2 internal prototype to avoid an error. */
  1721. #ifdef __cplusplus
  1722. extern "C"
  1723. #endif
  1724. /* We use char because int might match the return type of a gcc2
  1725. builtin and then its argument prototype would still apply. */
  1726. char initscr();
  1727. int main() {
  1728. initscr()
  1729. ; return 0; }
  1730. EOF
  1731. if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1732. rm -rf conftest*
  1733. eval "ac_cv_lib_$ac_lib_var=yes"
  1734. else
  1735. echo "configure: failed program was:" >&5
  1736. cat conftest.$ac_ext >&5
  1737. rm -rf conftest*
  1738. eval "ac_cv_lib_$ac_lib_var=no"
  1739. fi
  1740. rm -f conftest*
  1741. LIBS="$ac_save_LIBS"
  1742. fi
  1743. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1744. echo "$ac_t""yes" 1>&6
  1745. ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1746. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1747. cat >> confdefs.h <<EOF
  1748. #define $ac_tr_lib 1
  1749. EOF
  1750. LIBS="-lncurses $LIBS"
  1751. else
  1752. echo "$ac_t""no" 1>&6
  1753. curses_lib=
  1754. fi
  1755. if test "x$curses_lib" = x; then
  1756. curses_lib=curses
  1757. echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
  1758. echo "configure:1951: checking for initscr in -lcurses" >&5
  1759. ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
  1760. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1761. echo $ac_n "(cached) $ac_c" 1>&6
  1762. else
  1763. ac_save_LIBS="$LIBS"
  1764. LIBS="-lcurses $LIBS"
  1765. cat > conftest.$ac_ext <<EOF
  1766. #line 1959 "configure"
  1767. #include "confdefs.h"
  1768. /* Override any gcc2 internal prototype to avoid an error. */
  1769. #ifdef __cplusplus
  1770. extern "C"
  1771. #endif
  1772. /* We use char because int might match the return type of a gcc2
  1773. builtin and then its argument prototype would still apply. */
  1774. char initscr();
  1775. int main() {
  1776. initscr()
  1777. ; return 0; }
  1778. EOF
  1779. if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1780. rm -rf conftest*
  1781. eval "ac_cv_lib_$ac_lib_var=yes"
  1782. else
  1783. echo "configure: failed program was:" >&5
  1784. cat conftest.$ac_ext >&5
  1785. rm -rf conftest*
  1786. eval "ac_cv_lib_$ac_lib_var=no"
  1787. fi
  1788. rm -f conftest*
  1789. LIBS="$ac_save_LIBS"
  1790. fi
  1791. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1792. echo "$ac_t""yes" 1>&6
  1793. ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1794. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1795. cat >> confdefs.h <<EOF
  1796. #define $ac_tr_lib 1
  1797. EOF
  1798. LIBS="-lcurses $LIBS"
  1799. else
  1800. echo "$ac_t""no" 1>&6
  1801. curses_lib=
  1802. fi
  1803. fi
  1804. if test "x$curses_lib" = x; then
  1805. { echo "configure: error: No curses/ncurses was found" 1>&2; exit 1; }
  1806. fi
  1807. fi
  1808. # test for the existance of particular curses functions
  1809. for ac_func in use_default_colors start_color curs_set
  1810. do
  1811. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1812. echo "configure:2012: checking for $ac_func" >&5
  1813. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1814. echo $ac_n "(cached) $ac_c" 1>&6
  1815. else
  1816. cat > conftest.$ac_ext <<EOF
  1817. #line 2017 "configure"
  1818. #include "confdefs.h"
  1819. /* System header to define __stub macros and hopefully few prototypes,
  1820. which can conflict with char $ac_func(); below. */
  1821. #include <assert.h>
  1822. /* Override any gcc2 internal prototype to avoid an error. */
  1823. #ifdef __cplusplus
  1824. extern "C"
  1825. #endif
  1826. /* We use char because int might match the return type of a gcc2
  1827. builtin and then its argument prototype would still apply. */
  1828. char $ac_func();
  1829. int main() {
  1830. /* The GNU C library defines this for functions which it implements
  1831. to always fail with ENOSYS. Some functions are actually named
  1832. something starting with __ and the normal name is an alias. */
  1833. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1834. choke me
  1835. #else
  1836. $ac_func();
  1837. #endif
  1838. ; return 0; }
  1839. EOF
  1840. if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1841. rm -rf conftest*
  1842. eval "ac_cv_func_$ac_func=yes"
  1843. else
  1844. echo "configure: failed program was:" >&5
  1845. cat conftest.$ac_ext >&5
  1846. rm -rf conftest*
  1847. eval "ac_cv_func_$ac_func=no"
  1848. fi
  1849. rm -f conftest*
  1850. fi
  1851. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1852. echo "$ac_t""yes" 1>&6
  1853. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1854. cat >> confdefs.h <<EOF
  1855. #define $ac_tr_func 1
  1856. EOF
  1857. else
  1858. echo "$ac_t""no" 1>&6
  1859. fi
  1860. done
  1861. if test "$ac_cv_func_start_color" = yes; then
  1862. cat >> confdefs.h <<\EOF
  1863. #define HAVE_COLOR 1
  1864. EOF
  1865. fi
  1866. # rudimentary gettext check, till I utilize automake's gettext support
  1867. for ac_hdr in libintl.h
  1868. do
  1869. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1870. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1871. echo "configure:2081: checking for $ac_hdr" >&5
  1872. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1873. echo $ac_n "(cached) $ac_c" 1>&6
  1874. else
  1875. cat > conftest.$ac_ext <<EOF
  1876. #line 2086 "configure"
  1877. #include "confdefs.h"
  1878. #include <$ac_hdr>
  1879. EOF
  1880. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1881. { (eval echo configure:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1882. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1883. if test -z "$ac_err"; then
  1884. rm -rf conftest*
  1885. eval "ac_cv_header_$ac_safe=yes"
  1886. else
  1887. echo "$ac_err" >&5
  1888. echo "configure: failed program was:" >&5
  1889. cat conftest.$ac_ext >&5
  1890. rm -rf conftest*
  1891. eval "ac_cv_header_$ac_safe=no"
  1892. fi
  1893. rm -f conftest*
  1894. fi
  1895. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1896. echo "$ac_t""yes" 1>&6
  1897. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1898. cat >> confdefs.h <<EOF
  1899. #define $ac_tr_hdr 1
  1900. EOF
  1901. for ac_func in gettext
  1902. do
  1903. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1904. echo "configure:2114: checking for $ac_func" >&5
  1905. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1906. echo $ac_n "(cached) $ac_c" 1>&6
  1907. else
  1908. cat > conftest.$ac_ext <<EOF
  1909. #line 2119 "configure"
  1910. #include "confdefs.h"
  1911. /* System header to define __stub macros and hopefully few prototypes,
  1912. which can conflict with char $ac_func(); below. */
  1913. #include <assert.h>
  1914. /* Override any gcc2 internal prototype to avoid an error. */
  1915. #ifdef __cplusplus
  1916. extern "C"
  1917. #endif
  1918. /* We use char because int might match the return type of a gcc2
  1919. builtin and then its argument prototype would still apply. */
  1920. char $ac_func();
  1921. int main() {
  1922. /* The GNU C library defines this for functions which it implements
  1923. to always fail with ENOSYS. Some functions are actually named
  1924. something starting with __ and the normal name is an alias. */
  1925. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1926. choke me
  1927. #else
  1928. $ac_func();
  1929. #endif
  1930. ; return 0; }
  1931. EOF
  1932. if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1933. rm -rf conftest*
  1934. eval "ac_cv_func_$ac_func=yes"
  1935. else
  1936. echo "configure: failed program was:" >&5
  1937. cat conftest.$ac_ext >&5
  1938. rm -rf conftest*
  1939. eval "ac_cv_func_$ac_func=no"
  1940. fi
  1941. rm -f conftest*
  1942. fi
  1943. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1944. echo "$ac_t""yes" 1>&6
  1945. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1946. cat >> confdefs.h <<EOF
  1947. #define $ac_tr_func 1
  1948. EOF
  1949. cat >> confdefs.h <<\EOF
  1950. #define USE_GETTEXT 1
  1951. EOF
  1952. else
  1953. echo "$ac_t""no" 1>&6
  1954. fi
  1955. done
  1956. else
  1957. echo "$ac_t""no" 1>&6
  1958. fi
  1959. done
  1960. # locale support
  1961. for ac_hdr in locale.h
  1962. do
  1963. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1964. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1965. echo "configure:2184: checking for $ac_hdr" >&5
  1966. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1967. echo $ac_n "(cached) $ac_c" 1>&6
  1968. else
  1969. cat > conftest.$ac_ext <<EOF
  1970. #line 2189 "configure"
  1971. #include "confdefs.h"
  1972. #include <$ac_hdr>
  1973. EOF
  1974. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1975. { (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1976. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1977. if test -z "$ac_err"; then
  1978. rm -rf conftest*
  1979. eval "ac_cv_header_$ac_safe=yes"
  1980. else
  1981. echo "$ac_err" >&5
  1982. echo "configure: failed program was:" >&5
  1983. cat conftest.$ac_ext >&5
  1984. rm -rf conftest*
  1985. eval "ac_cv_header_$ac_safe=no"
  1986. fi
  1987. rm -f conftest*
  1988. fi
  1989. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1990. echo "$ac_t""yes" 1>&6
  1991. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1992. cat >> confdefs.h <<EOF
  1993. #define $ac_tr_hdr 1
  1994. EOF
  1995. else
  1996. echo "$ac_t""no" 1>&6
  1997. fi
  1998. done
  1999. for ac_func in setlocale
  2000. do
  2001. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2002. echo "configure:2224: checking for $ac_func" >&5
  2003. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2004. echo $ac_n "(cached) $ac_c" 1>&6
  2005. else
  2006. cat > conftest.$ac_ext <<EOF
  2007. #line 2229 "configure"
  2008. #include "confdefs.h"
  2009. /* System header to define __stub macros and hopefully few prototypes,
  2010. which can conflict with char $ac_func(); below. */
  2011. #include <assert.h>
  2012. /* Override any gcc2 internal prototype to avoid an error. */
  2013. #ifdef __cplusplus
  2014. extern "C"
  2015. #endif
  2016. /* We use char because int might match the return type of a gcc2
  2017. builtin and then its argument prototype would still apply. */
  2018. char $ac_func();
  2019. int main() {
  2020. /* The GNU C library defines this for functions which it implements
  2021. to always fail with ENOSYS. Some functions are actually named
  2022. something starting with __ and the normal name is an alias. */
  2023. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2024. choke me
  2025. #else
  2026. $ac_func();
  2027. #endif
  2028. ; return 0; }
  2029. EOF
  2030. if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2031. rm -rf conftest*
  2032. eval "ac_cv_func_$ac_func=yes"
  2033. else
  2034. echo "configure: failed program was:" >&5
  2035. cat conftest.$ac_ext >&5
  2036. rm -rf conftest*
  2037. eval "ac_cv_func_$ac_func=no"
  2038. fi
  2039. rm -f conftest*
  2040. fi
  2041. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2042. echo "$ac_t""yes" 1>&6
  2043. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2044. cat >> confdefs.h <<EOF
  2045. #define $ac_tr_func 1
  2046. EOF
  2047. else
  2048. echo "$ac_t""no" 1>&6
  2049. fi
  2050. done
  2051. echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
  2052. echo "configure:2281: checking for nl_langinfo and CODESET" >&5
  2053. cat > conftest.$ac_ext <<EOF
  2054. #line 2283 "configure"
  2055. #include "confdefs.h"
  2056. #include <langinfo.h>
  2057. int main() {
  2058. char* s = nl_langinfo(CODESET);
  2059. ; return 0; }
  2060. EOF
  2061. if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2062. rm -rf conftest*
  2063. echo "$ac_t""yes" 1>&6
  2064. cat >> confdefs.h <<\EOF
  2065. #define HAVE_LANGINFO_CODESET 1
  2066. EOF
  2067. else
  2068. echo "configure: failed program was:" >&5
  2069. cat conftest.$ac_ext >&5
  2070. rm -rf conftest*
  2071. echo "$ac_t""no" 1>&6
  2072. fi
  2073. rm -f conftest*
  2074. # Check whether --with-iconv or --without-iconv was given.
  2075. if test "${with_iconv+set}" = set; then
  2076. withval="$with_iconv"
  2077. case $withval in
  2078. no) skip_iconv=yes ;;
  2079. yes) ;;
  2080. *)
  2081. if test "x$withval" != x/usr; then
  2082. LDFLAGS="-L${withval}/lib $LDFLAGS"
  2083. CPPFLAGS="$CPPFLAGS -I${withval}/include"
  2084. fi;;
  2085. esac
  2086. fi
  2087. use_iconv=no
  2088. default_encoding=ISO-8859-8
  2089. if test "x$skip_iconv" != xyes; then
  2090. for ac_hdr in iconv.h
  2091. do
  2092. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2093. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2094. echo "configure:2333: checking for $ac_hdr" >&5
  2095. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2096. echo $ac_n "(cached) $ac_c" 1>&6
  2097. else
  2098. cat > conftest.$ac_ext <<EOF
  2099. #line 2338 "configure"
  2100. #include "confdefs.h"
  2101. #include <$ac_hdr>
  2102. EOF
  2103. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2104. { (eval echo configure:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2105. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2106. if test -z "$ac_err"; then
  2107. rm -rf conftest*
  2108. eval "ac_cv_header_$ac_safe=yes"
  2109. else
  2110. echo "$ac_err" >&5
  2111. echo "configure: failed program was:" >&5
  2112. cat conftest.$ac_ext >&5
  2113. rm -rf conftest*
  2114. eval "ac_cv_header_$ac_safe=no"
  2115. fi
  2116. rm -f conftest*
  2117. fi
  2118. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2119. echo "$ac_t""yes" 1>&6
  2120. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2121. cat >> confdefs.h <<EOF
  2122. #define $ac_tr_hdr 1
  2123. EOF
  2124. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2125. echo "configure:2365: checking whether byte ordering is bigendian" >&5
  2126. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2127. echo $ac_n "(cached) $ac_c" 1>&6
  2128. else
  2129. ac_cv_c_bigendian=unknown
  2130. # See if sys/param.h defines the BYTE_ORDER macro.
  2131. cat > conftest.$ac_ext <<EOF
  2132. #line 2372 "configure"
  2133. #include "confdefs.h"
  2134. #include <sys/types.h>
  2135. #include <sys/param.h>
  2136. int main() {
  2137. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2138. bogus endian macros
  2139. #endif
  2140. ; return 0; }
  2141. EOF
  2142. if { (eval echo configure:2383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2143. rm -rf conftest*
  2144. # It does; now see whether it defined to BIG_ENDIAN or not.
  2145. cat > conftest.$ac_ext <<EOF
  2146. #line 2387 "configure"
  2147. #include "confdefs.h"
  2148. #include <sys/types.h>
  2149. #include <sys/param.h>
  2150. int main() {
  2151. #if BYTE_ORDER != BIG_ENDIAN
  2152. not big endian
  2153. #endif
  2154. ; return 0; }
  2155. EOF
  2156. if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2157. rm -rf conftest*
  2158. ac_cv_c_bigendian=yes
  2159. else
  2160. echo "configure: failed program was:" >&5
  2161. cat conftest.$ac_ext >&5
  2162. rm -rf conftest*
  2163. ac_cv_c_bigendian=no
  2164. fi
  2165. rm -f conftest*
  2166. else
  2167. echo "configure: failed program was:" >&5
  2168. cat conftest.$ac_ext >&5
  2169. fi
  2170. rm -f conftest*
  2171. if test $ac_cv_c_bigendian = unknown; then
  2172. if test "$cross_compiling" = yes; then
  2173. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2174. else
  2175. cat > conftest.$ac_ext <<EOF
  2176. #line 2418 "configure"
  2177. #include "confdefs.h"
  2178. main () {
  2179. /* Are we little or big endian? From Harbison&Steele. */
  2180. union
  2181. {
  2182. long l;
  2183. char c[sizeof (long)];
  2184. } u;
  2185. u.l = 1;
  2186. exit (u.c[sizeof (long) - 1] == 1);
  2187. }
  2188. EOF
  2189. if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2190. then
  2191. ac_cv_c_bigendian=no
  2192. else
  2193. echo "configure: failed program was:" >&5
  2194. cat conftest.$ac_ext >&5
  2195. rm -fr conftest*
  2196. ac_cv_c_bigendian=yes
  2197. fi
  2198. rm -fr conftest*
  2199. fi
  2200. fi
  2201. fi
  2202. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2203. if test $ac_cv_c_bigendian = yes; then
  2204. cat >> confdefs.h <<\EOF
  2205. #define WORDS_BIGENDIAN 1
  2206. EOF
  2207. fi
  2208. case $ac_cv_c_bigendian in
  2209. yes) internal_encoding=UCS-4BE ;;
  2210. no) internal_encoding=UCS-4LE ;;
  2211. *) { echo "configure: error: Can't determine machine endianess" 1>&2; exit 1; }
  2212. esac
  2213. echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
  2214. echo "configure:2461: checking for iconv_open in -liconv" >&5
  2215. ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
  2216. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2217. echo $ac_n "(cached) $ac_c" 1>&6
  2218. else
  2219. ac_save_LIBS="$LIBS"
  2220. LIBS="-liconv $LIBS"
  2221. cat > conftest.$ac_ext <<EOF
  2222. #line 2469 "configure"
  2223. #include "confdefs.h"
  2224. /* Override any gcc2 internal prototype to avoid an error. */
  2225. #ifdef __cplusplus
  2226. extern "C"
  2227. #endif
  2228. /* We use char because int might match the return type of a gcc2
  2229. builtin and then its argument prototype would still apply. */
  2230. char iconv_open();
  2231. int main() {
  2232. iconv_open()
  2233. ; return 0; }
  2234. EOF
  2235. if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2236. rm -rf conftest*
  2237. eval "ac_cv_lib_$ac_lib_var=yes"
  2238. else
  2239. echo "configure: failed program was:" >&5
  2240. cat conftest.$ac_ext >&5
  2241. rm -rf conftest*
  2242. eval "ac_cv_lib_$ac_lib_var=no"
  2243. fi
  2244. rm -f conftest*
  2245. LIBS="$ac_save_LIBS"
  2246. fi
  2247. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2248. echo "$ac_t""yes" 1>&6
  2249. ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2250. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2251. cat >> confdefs.h <<EOF
  2252. #define $ac_tr_lib 1
  2253. EOF
  2254. LIBS="-liconv $LIBS"
  2255. else
  2256. echo "$ac_t""no" 1>&6
  2257. fi
  2258. for encoding in UTF-8 ISO-8859-8 CP1255; do
  2259. tr_encoding=`echo $encoding | tr - _`
  2260. echo $ac_n "checking whether iconv supports the $encoding encoding""... $ac_c" 1>&6
  2261. echo "configure:2513: checking whether iconv supports the $encoding encoding" >&5
  2262. if test "$cross_compiling" = yes; then
  2263. { echo "configure: error: Can't cross-compile this test" 1>&2; exit 1; }
  2264. else
  2265. cat > conftest.$ac_ext <<EOF
  2266. #line 2519 "configure"
  2267. #include "confdefs.h"
  2268. #include <iconv.h>
  2269. int main()
  2270. {
  2271. iconv_t cd = iconv_open("$internal_encoding", "$encoding");
  2272. return (cd == (iconv_t)-1);
  2273. }
  2274. EOF
  2275. if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2276. then
  2277. echo "$ac_t""yes" 1>&6
  2278. eval "have_encoding_${tr_encoding}=yes"
  2279. else
  2280. echo "configure: failed program was:" >&5
  2281. cat conftest.$ac_ext >&5
  2282. rm -fr conftest*
  2283. echo "$ac_t""no" 1>&6
  2284. eval "have_encoding_${tr_encoding}=no"
  2285. fi
  2286. rm -fr conftest*
  2287. fi
  2288. done
  2289. if test "$have_encoding_UTF_8" = yes -a "$have_encoding_ISO_8859_8" = yes; then
  2290. use_iconv=yes
  2291. if test "$have_encoding_CP1255" = yes; then
  2292. default_encoding=CP1255
  2293. else
  2294. default_encoding=ISO-8859-8
  2295. fi
  2296. echo $ac_n "checking whether your iconv() needs const""... $ac_c" 1>&6
  2297. echo "configure:2556: checking whether your iconv() needs const" >&5
  2298. iconv_const=
  2299. cat > conftest.$ac_ext <<EOF
  2300. #line 2559 "configure"
  2301. #include "confdefs.h"
  2302. #include <stdlib.h>
  2303. #include <iconv.h>
  2304. int main() {
  2305. iconv((iconv_t)-1,(const char **)NULL,NULL,NULL,NULL);
  2306. ; return 0; }
  2307. EOF
  2308. if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2309. rm -rf conftest*
  2310. cat > conftest.$ac_ext <<EOF
  2311. #line 2570 "configure"
  2312. #include "confdefs.h"
  2313. #include <stdlib.h>
  2314. #include <iconv.h>
  2315. int main() {
  2316. iconv((iconv_t)-1,(char **)NULL,NULL,NULL,NULL);
  2317. ; return 0; }
  2318. EOF
  2319. if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2320. :
  2321. else
  2322. echo "configure: failed program was:" >&5
  2323. cat conftest.$ac_ext >&5
  2324. rm -rf conftest*
  2325. iconv_const=const
  2326. fi
  2327. rm -f conftest*
  2328. else
  2329. echo "configure: failed program was:" >&5
  2330. cat conftest.$ac_ext >&5
  2331. fi
  2332. rm -f conftest*
  2333. echo "$ac_t""$iconv_const" 1>&6
  2334. cat >> confdefs.h <<\EOF
  2335. #define USE_ICONV 1
  2336. EOF
  2337. cat >> confdefs.h <<EOF
  2338. #define ICONV_CONST $iconv_const
  2339. EOF
  2340. cat >> confdefs.h <<EOF
  2341. #define INTERNAL_ENCODING "$internal_encoding"
  2342. EOF
  2343. fi
  2344. else
  2345. echo "$ac_t""no" 1>&6
  2346. fi
  2347. done
  2348. fi
  2349. cat >> confdefs.h <<EOF
  2350. #define DEFAULT_FILE_ENCODING "$default_encoding"
  2351. EOF
  2352. for ac_func in wctob btowc
  2353. do
  2354. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2355. echo "configure:2625: checking for $ac_func" >&5
  2356. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2357. echo $ac_n "(cached) $ac_c" 1>&6
  2358. else
  2359. cat > conftest.$ac_ext <<EOF
  2360. #line 2630 "configure"
  2361. #include "confdefs.h"
  2362. /* System header to define __stub macros and hopefully few prototypes,
  2363. which can conflict with char $ac_func(); below. */
  2364. #include <assert.h>
  2365. /* Override any gcc2 internal prototype to avoid an error. */
  2366. #ifdef __cplusplus
  2367. extern "C"
  2368. #endif
  2369. /* We use char because int might match the return type of a gcc2
  2370. builtin and then its argument prototype would still apply. */
  2371. char $ac_func();
  2372. int main() {
  2373. /* The GNU C library defines this for functions which it implements
  2374. to always fail with ENOSYS. Some functions are actually named
  2375. something starting with __ and the normal name is an alias. */
  2376. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2377. choke me
  2378. #else
  2379. $ac_func();
  2380. #endif
  2381. ; return 0; }
  2382. EOF
  2383. if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2384. rm -rf conftest*
  2385. eval "ac_cv_func_$ac_func=yes"
  2386. else
  2387. echo "configure: failed program was:" >&5
  2388. cat conftest.$ac_ext >&5
  2389. rm -rf conftest*
  2390. eval "ac_cv_func_$ac_func=no"
  2391. fi
  2392. rm -f conftest*
  2393. fi
  2394. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2395. echo "$ac_t""yes" 1>&6
  2396. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2397. cat >> confdefs.h <<EOF
  2398. #define $ac_tr_func 1
  2399. EOF
  2400. else
  2401. echo "$ac_t""no" 1>&6
  2402. fi
  2403. done
  2404. for ac_func in getopt_long
  2405. do
  2406. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2407. echo "configure:2685: checking for $ac_func" >&5
  2408. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2409. echo $ac_n "(cached) $ac_c" 1>&6
  2410. else
  2411. cat > conftest.$ac_ext <<EOF
  2412. #line 2690 "configure"
  2413. #include "confdefs.h"
  2414. /* System header to define __stub macros and hopefully few prototypes,
  2415. which can conflict with char $ac_func(); below. */
  2416. #include <assert.h>
  2417. /* Override any gcc2 internal prototype to avoid an error. */
  2418. #ifdef __cplusplus
  2419. extern "C"
  2420. #endif
  2421. /* We use char because int might match the return type of a gcc2
  2422. builtin and then its argument prototype would still apply. */
  2423. char $ac_func();
  2424. int main() {
  2425. /* The GNU C library defines this for functions which it implements
  2426. to always fail with ENOSYS. Some functions are actually named
  2427. something starting with __ and the normal name is an alias. */
  2428. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2429. choke me
  2430. #else
  2431. $ac_func();
  2432. #endif
  2433. ; return 0; }
  2434. EOF
  2435. if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2436. rm -rf conftest*
  2437. eval "ac_cv_func_$ac_func=yes"
  2438. else
  2439. echo "configure: failed program was:" >&5
  2440. cat conftest.$ac_ext >&5
  2441. rm -rf conftest*
  2442. eval "ac_cv_func_$ac_func=no"
  2443. fi
  2444. rm -f conftest*
  2445. fi
  2446. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2447. echo "$ac_t""yes" 1>&6
  2448. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2449. cat >> confdefs.h <<EOF
  2450. #define $ac_tr_func 1
  2451. EOF
  2452. else
  2453. echo "$ac_t""no" 1>&6
  2454. fi
  2455. done
  2456. ac_header_dirent=no
  2457. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  2458. do
  2459. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2460. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  2461. echo "configure:2745: checking for $ac_hdr that defines DIR" >&5
  2462. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  2463. echo $ac_n "(cached) $ac_c" 1>&6
  2464. else
  2465. cat > conftest.$ac_ext <<EOF
  2466. #line 2750 "configure"
  2467. #include "confdefs.h"
  2468. #include <sys/types.h>
  2469. #include <$ac_hdr>
  2470. int main() {
  2471. DIR *dirp = 0;
  2472. ; return 0; }
  2473. EOF
  2474. if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2475. rm -rf conftest*
  2476. eval "ac_cv_header_dirent_$ac_safe=yes"
  2477. else
  2478. echo "configure: failed program was:" >&5
  2479. cat conftest.$ac_ext >&5
  2480. rm -rf conftest*
  2481. eval "ac_cv_header_dirent_$ac_safe=no"
  2482. fi
  2483. rm -f conftest*
  2484. fi
  2485. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2486. echo "$ac_t""yes" 1>&6
  2487. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2488. cat >> confdefs.h <<EOF
  2489. #define $ac_tr_hdr 1
  2490. EOF
  2491. ac_header_dirent=$ac_hdr; break
  2492. else
  2493. echo "$ac_t""no" 1>&6
  2494. fi
  2495. done
  2496. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2497. if test $ac_header_dirent = dirent.h; then
  2498. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  2499. echo "configure:2783: checking for opendir in -ldir" >&5
  2500. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  2501. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2502. echo $ac_n "(cached) $ac_c" 1>&6
  2503. else
  2504. ac_save_LIBS="$LIBS"
  2505. LIBS="-ldir $LIBS"
  2506. cat > conftest.$ac_ext <<EOF
  2507. #line 2791 "configure"
  2508. #include "confdefs.h"
  2509. /* Override any gcc2 internal prototype to avoid an error. */
  2510. #ifdef __cplusplus
  2511. extern "C"
  2512. #endif
  2513. /* We use char because int might match the return type of a gcc2
  2514. builtin and then its argument prototype would still apply. */
  2515. char opendir();
  2516. int main() {
  2517. opendir()
  2518. ; return 0; }
  2519. EOF
  2520. if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2521. rm -rf conftest*
  2522. eval "ac_cv_lib_$ac_lib_var=yes"
  2523. else
  2524. echo "configure: failed program was:" >&5
  2525. cat conftest.$ac_ext >&5
  2526. rm -rf conftest*
  2527. eval "ac_cv_lib_$ac_lib_var=no"
  2528. fi
  2529. rm -f conftest*
  2530. LIBS="$ac_save_LIBS"
  2531. fi
  2532. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2533. echo "$ac_t""yes" 1>&6
  2534. LIBS="$LIBS -ldir"
  2535. else
  2536. echo "$ac_t""no" 1>&6
  2537. fi
  2538. else
  2539. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  2540. echo "configure:2827: checking for opendir in -lx" >&5
  2541. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  2542. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2543. echo $ac_n "(cached) $ac_c" 1>&6
  2544. else
  2545. ac_save_LIBS="$LIBS"
  2546. LIBS="-lx $LIBS"
  2547. cat > conftest.$ac_ext <<EOF
  2548. #line 2835 "configure"
  2549. #include "confdefs.h"
  2550. /* Override any gcc2 internal prototype to avoid an error. */
  2551. #ifdef __cplusplus
  2552. extern "C"
  2553. #endif
  2554. /* We use char because int might match the return type of a gcc2
  2555. builtin and then its argument prototype would still apply. */
  2556. char opendir();
  2557. int main() {
  2558. opendir()
  2559. ; return 0; }
  2560. EOF
  2561. if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2562. rm -rf conftest*
  2563. eval "ac_cv_lib_$ac_lib_var=yes"
  2564. else
  2565. echo "configure: failed program was:" >&5
  2566. cat conftest.$ac_ext >&5
  2567. rm -rf conftest*
  2568. eval "ac_cv_lib_$ac_lib_var=no"
  2569. fi
  2570. rm -f conftest*
  2571. LIBS="$ac_save_LIBS"
  2572. fi
  2573. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2574. echo "$ac_t""yes" 1>&6
  2575. LIBS="$LIBS -lx"
  2576. else
  2577. echo "$ac_t""no" 1>&6
  2578. fi
  2579. fi
  2580. for ac_func in strerror strstr strtol vprintf
  2581. do
  2582. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2583. echo "configure:2874: checking for $ac_func" >&5
  2584. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2585. echo $ac_n "(cached) $ac_c" 1>&6
  2586. else
  2587. cat > conftest.$ac_ext <<EOF
  2588. #line 2879 "configure"
  2589. #include "confdefs.h"
  2590. /* System header to define __stub macros and hopefully few prototypes,
  2591. which can conflict with char $ac_func(); below. */
  2592. #include <assert.h>
  2593. /* Override any gcc2 internal prototype to avoid an error. */
  2594. #ifdef __cplusplus
  2595. extern "C"
  2596. #endif
  2597. /* We use char because int might match the return type of a gcc2
  2598. builtin and then its argument prototype would still apply. */
  2599. char $ac_func();
  2600. int main() {
  2601. /* The GNU C library defines this for functions which it implements
  2602. to always fail with ENOSYS. Some functions are actually named
  2603. something starting with __ and the normal name is an alias. */
  2604. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2605. choke me
  2606. #else
  2607. $ac_func();
  2608. #endif
  2609. ; return 0; }
  2610. EOF
  2611. if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2612. rm -rf conftest*
  2613. eval "ac_cv_func_$ac_func=yes"
  2614. else
  2615. echo "configure: failed program was:" >&5
  2616. cat conftest.$ac_ext >&5
  2617. rm -rf conftest*
  2618. eval "ac_cv_func_$ac_func=no"
  2619. fi
  2620. rm -f conftest*
  2621. fi
  2622. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2623. echo "$ac_t""yes" 1>&6
  2624. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2625. cat >> confdefs.h <<EOF
  2626. #define $ac_tr_func 1
  2627. EOF
  2628. else
  2629. echo "$ac_t""no" 1>&6
  2630. { echo "configure: error: A required function does not exist" 1>&2; exit 1; }
  2631. fi
  2632. done
  2633. for ac_func in vsnprintf vasprintf
  2634. do
  2635. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2636. echo "configure:2933: checking for $ac_func" >&5
  2637. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2638. echo $ac_n "(cached) $ac_c" 1>&6
  2639. else
  2640. cat > conftest.$ac_ext <<EOF
  2641. #line 2938 "configure"
  2642. #include "confdefs.h"
  2643. /* System header to define __stub macros and hopefully few prototypes,
  2644. which can conflict with char $ac_func(); below. */
  2645. #include <assert.h>
  2646. /* Override any gcc2 internal prototype to avoid an error. */
  2647. #ifdef __cplusplus
  2648. extern "C"
  2649. #endif
  2650. /* We use char because int might match the return type of a gcc2
  2651. builtin and then its argument prototype would still apply. */
  2652. char $ac_func();
  2653. int main() {
  2654. /* The GNU C library defines this for functions which it implements
  2655. to always fail with ENOSYS. Some functions are actually named
  2656. something starting with __ and the normal name is an alias. */
  2657. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2658. choke me
  2659. #else
  2660. $ac_func();
  2661. #endif
  2662. ; return 0; }
  2663. EOF
  2664. if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2665. rm -rf conftest*
  2666. eval "ac_cv_func_$ac_func=yes"
  2667. else
  2668. echo "configure: failed program was:" >&5
  2669. cat conftest.$ac_ext >&5
  2670. rm -rf conftest*
  2671. eval "ac_cv_func_$ac_func=no"
  2672. fi
  2673. rm -f conftest*
  2674. fi
  2675. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2676. echo "$ac_t""yes" 1>&6
  2677. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2678. cat >> confdefs.h <<EOF
  2679. #define $ac_tr_func 1
  2680. EOF
  2681. else
  2682. echo "$ac_t""no" 1>&6
  2683. fi
  2684. done
  2685. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2686. echo "configure:2989: checking for ANSI C header files" >&5
  2687. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2688. echo $ac_n "(cached) $ac_c" 1>&6
  2689. else
  2690. cat > conftest.$ac_ext <<EOF
  2691. #line 2994 "configure"
  2692. #include "confdefs.h"
  2693. #include <stdlib.h>
  2694. #include <stdarg.h>
  2695. #include <string.h>
  2696. #include <float.h>
  2697. EOF
  2698. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2699. { (eval echo configure:3002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2700. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2701. if test -z "$ac_err"; then
  2702. rm -rf conftest*
  2703. ac_cv_header_stdc=yes
  2704. else
  2705. echo "$ac_err" >&5
  2706. echo "configure: failed program was:" >&5
  2707. cat conftest.$ac_ext >&5
  2708. rm -rf conftest*
  2709. ac_cv_header_stdc=no
  2710. fi
  2711. rm -f conftest*
  2712. if test $ac_cv_header_stdc = yes; then
  2713. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2714. cat > conftest.$ac_ext <<EOF
  2715. #line 3019 "configure"
  2716. #include "confdefs.h"
  2717. #include <string.h>
  2718. EOF
  2719. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2720. egrep "memchr" >/dev/null 2>&1; then
  2721. :
  2722. else
  2723. rm -rf conftest*
  2724. ac_cv_header_stdc=no
  2725. fi
  2726. rm -f conftest*
  2727. fi
  2728. if test $ac_cv_header_stdc = yes; then
  2729. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2730. cat > conftest.$ac_ext <<EOF
  2731. #line 3037 "configure"
  2732. #include "confdefs.h"
  2733. #include <stdlib.h>
  2734. EOF
  2735. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2736. egrep "free" >/dev/null 2>&1; then
  2737. :
  2738. else
  2739. rm -rf conftest*
  2740. ac_cv_header_stdc=no
  2741. fi
  2742. rm -f conftest*
  2743. fi
  2744. if test $ac_cv_header_stdc = yes; then
  2745. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2746. if test "$cross_compiling" = yes; then
  2747. :
  2748. else
  2749. cat > conftest.$ac_ext <<EOF
  2750. #line 3058 "configure"
  2751. #include "confdefs.h"
  2752. #include <ctype.h>
  2753. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2754. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2755. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2756. int main () { int i; for (i = 0; i < 256; i++)
  2757. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2758. exit (0); }
  2759. EOF
  2760. if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2761. then
  2762. :
  2763. else
  2764. echo "configure: failed program was:" >&5
  2765. cat conftest.$ac_ext >&5
  2766. rm -fr conftest*
  2767. ac_cv_header_stdc=no
  2768. fi
  2769. rm -fr conftest*
  2770. fi
  2771. fi
  2772. fi
  2773. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2774. if test $ac_cv_header_stdc = yes; then
  2775. cat >> confdefs.h <<\EOF
  2776. #define STDC_HEADERS 1
  2777. EOF
  2778. fi
  2779. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  2780. echo "configure:3093: checking for mode_t" >&5
  2781. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  2782. echo $ac_n "(cached) $ac_c" 1>&6
  2783. else
  2784. cat > conftest.$ac_ext <<EOF
  2785. #line 3098 "configure"
  2786. #include "confdefs.h"
  2787. #include <sys/types.h>
  2788. #if STDC_HEADERS
  2789. #include <stdlib.h>
  2790. #include <stddef.h>
  2791. #endif
  2792. EOF
  2793. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2794. egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2795. rm -rf conftest*
  2796. ac_cv_type_mode_t=yes
  2797. else
  2798. rm -rf conftest*
  2799. ac_cv_type_mode_t=no
  2800. fi
  2801. rm -f conftest*
  2802. fi
  2803. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  2804. if test $ac_cv_type_mode_t = no; then
  2805. cat >> confdefs.h <<\EOF
  2806. #define mode_t int
  2807. EOF
  2808. fi
  2809. cat >> confdefs.h <<\EOF
  2810. #define RETSIGTYPE void
  2811. EOF
  2812. cat <<MSG
  2813. Results:
  2814. --------
  2815. curses library: $curses_lib
  2816. use iconv: $use_iconv
  2817. default file encoding: $default_encoding
  2818. (debugging support: $debugging_support)
  2819. MSG
  2820. if ! test "$curses_lib" = ncursesw; then
  2821. cat <<MSG
  2822. WARNING: you're using $curses_lib, not ncursesw, so you won't be able to use
  2823. $PACKAGE in the UTF-8 locale.
  2824. MSG
  2825. fi
  2826. trap '' 1 2 15
  2827. cat > confcache <<\EOF
  2828. # This file is a shell script that caches the results of configure
  2829. # tests run on this system so they can be shared between configure
  2830. # scripts and configure runs. It is not useful on other systems.
  2831. # If it contains results you don't want to keep, you may remove or edit it.
  2832. #
  2833. # By default, configure uses ./config.cache as the cache file,
  2834. # creating it if it does not exist already. You can give configure
  2835. # the --cache-file=FILE option to use a different cache file; that is
  2836. # what configure does when it calls configure scripts in
  2837. # subdirectories, so they share the cache.
  2838. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2839. # config.status only pays attention to the cache file if you give it the
  2840. # --recheck option to rerun configure.
  2841. #
  2842. EOF
  2843. # The following way of writing the cache mishandles newlines in values,
  2844. # but we know of no workaround that is simple, portable, and efficient.
  2845. # So, don't put newlines in cache variables' values.
  2846. # Ultrix sh set writes to stderr and can't be redirected directly,
  2847. # and sets the high bit in the cache file unless we assign to the vars.
  2848. (set) 2>&1 |
  2849. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2850. *ac_space=\ *)
  2851. # `set' does not quote correctly, so add quotes (double-quote substitution
  2852. # turns \\\\ into \\, and sed turns \\ into \).
  2853. sed -n \
  2854. -e "s/'/'\\\\''/g" \
  2855. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2856. ;;
  2857. *)
  2858. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2859. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2860. ;;
  2861. esac >> confcache
  2862. if cmp -s $cache_file confcache; then
  2863. :
  2864. else
  2865. if test -w $cache_file; then
  2866. echo "updating cache $cache_file"
  2867. cat confcache > $cache_file
  2868. else
  2869. echo "not updating unwritable cache $cache_file"
  2870. fi
  2871. fi
  2872. rm -f confcache
  2873. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2874. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2875. # Let make expand exec_prefix.
  2876. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2877. # Any assignment to VPATH causes Sun make to only execute
  2878. # the first set of double-colon rules, so remove it if not needed.
  2879. # If there is a colon in the path, we need to keep it.
  2880. if test "x$srcdir" = x.; then
  2881. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  2882. fi
  2883. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2884. DEFS=-DHAVE_CONFIG_H
  2885. # Without the "./", some shells look in PATH for config.status.
  2886. : ${CONFIG_STATUS=./config.status}
  2887. echo creating $CONFIG_STATUS
  2888. rm -f $CONFIG_STATUS
  2889. cat > $CONFIG_STATUS <<EOF
  2890. #! /bin/sh
  2891. # Generated automatically by configure.
  2892. # Run this file to recreate the current configuration.
  2893. # This directory was configured as follows,
  2894. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2895. #
  2896. # $0 $ac_configure_args
  2897. #
  2898. # Compiler output produced by configure, useful for debugging
  2899. # configure, is in ./config.log if it exists.
  2900. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2901. for ac_option
  2902. do
  2903. case "\$ac_option" in
  2904. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2905. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2906. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2907. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2908. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2909. exit 0 ;;
  2910. -help | --help | --hel | --he | --h)
  2911. echo "\$ac_cs_usage"; exit 0 ;;
  2912. *) echo "\$ac_cs_usage"; exit 1 ;;
  2913. esac
  2914. done
  2915. ac_given_srcdir=$srcdir
  2916. ac_given_INSTALL="$INSTALL"
  2917. trap 'rm -fr `echo "Makefile pgeresh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2918. EOF
  2919. cat >> $CONFIG_STATUS <<EOF
  2920. # Protect against being on the right side of a sed subst in config.status.
  2921. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2922. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2923. $ac_vpsub
  2924. $extrasub
  2925. s%@SHELL@%$SHELL%g
  2926. s%@CFLAGS@%$CFLAGS%g
  2927. s%@CPPFLAGS@%$CPPFLAGS%g
  2928. s%@CXXFLAGS@%$CXXFLAGS%g
  2929. s%@FFLAGS@%$FFLAGS%g
  2930. s%@DEFS@%$DEFS%g
  2931. s%@LDFLAGS@%$LDFLAGS%g
  2932. s%@LIBS@%$LIBS%g
  2933. s%@exec_prefix@%$exec_prefix%g
  2934. s%@prefix@%$prefix%g
  2935. s%@program_transform_name@%$program_transform_name%g
  2936. s%@bindir@%$bindir%g
  2937. s%@sbindir@%$sbindir%g
  2938. s%@libexecdir@%$libexecdir%g
  2939. s%@datadir@%$datadir%g
  2940. s%@sysconfdir@%$sysconfdir%g
  2941. s%@sharedstatedir@%$sharedstatedir%g
  2942. s%@localstatedir@%$localstatedir%g
  2943. s%@libdir@%$libdir%g
  2944. s%@includedir@%$includedir%g
  2945. s%@oldincludedir@%$oldincludedir%g
  2946. s%@infodir@%$infodir%g
  2947. s%@mandir@%$mandir%g
  2948. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2949. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2950. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2951. s%@PACKAGE@%$PACKAGE%g
  2952. s%@VERSION@%$VERSION%g
  2953. s%@ACLOCAL@%$ACLOCAL%g
  2954. s%@AUTOCONF@%$AUTOCONF%g
  2955. s%@AUTOMAKE@%$AUTOMAKE%g
  2956. s%@AUTOHEADER@%$AUTOHEADER%g
  2957. s%@MAKEINFO@%$MAKEINFO%g
  2958. s%@SET_MAKE@%$SET_MAKE%g
  2959. s%@CC@%$CC%g
  2960. s%@CPP@%$CPP%g
  2961. s%@CXX@%$CXX%g
  2962. s%@CXXCPP@%$CXXCPP%g
  2963. s%@FRIBIDI_CONFIG@%$FRIBIDI_CONFIG%g
  2964. CEOF
  2965. EOF
  2966. cat >> $CONFIG_STATUS <<\EOF
  2967. # Split the substitutions into bite-sized pieces for seds with
  2968. # small command number limits, like on Digital OSF/1 and HP-UX.
  2969. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2970. ac_file=1 # Number of current file.
  2971. ac_beg=1 # First line for current file.
  2972. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2973. ac_more_lines=:
  2974. ac_sed_cmds=""
  2975. while $ac_more_lines; do
  2976. if test $ac_beg -gt 1; then
  2977. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2978. else
  2979. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2980. fi
  2981. if test ! -s conftest.s$ac_file; then
  2982. ac_more_lines=false
  2983. rm -f conftest.s$ac_file
  2984. else
  2985. if test -z "$ac_sed_cmds"; then
  2986. ac_sed_cmds="sed -f conftest.s$ac_file"
  2987. else
  2988. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2989. fi
  2990. ac_file=`expr $ac_file + 1`
  2991. ac_beg=$ac_end
  2992. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2993. fi
  2994. done
  2995. if test -z "$ac_sed_cmds"; then
  2996. ac_sed_cmds=cat
  2997. fi
  2998. EOF
  2999. cat >> $CONFIG_STATUS <<EOF
  3000. CONFIG_FILES=\${CONFIG_FILES-"Makefile pgeresh"}
  3001. EOF
  3002. cat >> $CONFIG_STATUS <<\EOF
  3003. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3004. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3005. case "$ac_file" in
  3006. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3007. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3008. *) ac_file_in="${ac_file}.in" ;;
  3009. esac
  3010. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3011. # Remove last slash and all that follows it. Not all systems have dirname.
  3012. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3013. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3014. # The file is in a subdirectory.
  3015. test ! -d "$ac_dir" && mkdir "$ac_dir"
  3016. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3017. # A "../" for each directory in $ac_dir_suffix.
  3018. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3019. else
  3020. ac_dir_suffix= ac_dots=
  3021. fi
  3022. case "$ac_given_srcdir" in
  3023. .) srcdir=.
  3024. if test -z "$ac_dots"; then top_srcdir=.
  3025. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3026. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3027. *) # Relative path.
  3028. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3029. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3030. esac
  3031. case "$ac_given_INSTALL" in
  3032. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3033. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3034. esac
  3035. echo creating "$ac_file"
  3036. rm -f "$ac_file"
  3037. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3038. case "$ac_file" in
  3039. *Makefile*) ac_comsub="1i\\
  3040. # $configure_input" ;;
  3041. *) ac_comsub= ;;
  3042. esac
  3043. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3044. sed -e "$ac_comsub
  3045. s%@configure_input@%$configure_input%g
  3046. s%@srcdir@%$srcdir%g
  3047. s%@top_srcdir@%$top_srcdir%g
  3048. s%@INSTALL@%$INSTALL%g
  3049. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3050. fi; done
  3051. rm -f conftest.s*
  3052. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3053. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3054. #
  3055. # ac_d sets the value in "#define NAME VALUE" lines.
  3056. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  3057. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  3058. ac_dC='\3'
  3059. ac_dD='%g'
  3060. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3061. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3062. ac_uB='\([ ]\)%\1#\2define\3'
  3063. ac_uC=' '
  3064. ac_uD='\4%g'
  3065. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3066. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3067. ac_eB='$%\1#\2define\3'
  3068. ac_eC=' '
  3069. ac_eD='%g'
  3070. if test "${CONFIG_HEADERS+set}" != set; then
  3071. EOF
  3072. cat >> $CONFIG_STATUS <<EOF
  3073. CONFIG_HEADERS="config.h"
  3074. EOF
  3075. cat >> $CONFIG_STATUS <<\EOF
  3076. fi
  3077. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3078. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3079. case "$ac_file" in
  3080. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3081. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3082. *) ac_file_in="${ac_file}.in" ;;
  3083. esac
  3084. echo creating $ac_file
  3085. rm -f conftest.frag conftest.in conftest.out
  3086. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3087. cat $ac_file_inputs > conftest.in
  3088. EOF
  3089. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3090. # the proper values into config.h.in to produce config.h. And first:
  3091. # Protect against being on the right side of a sed subst in config.status.
  3092. # Protect against being in an unquoted here document in config.status.
  3093. rm -f conftest.vals
  3094. cat > conftest.hdr <<\EOF
  3095. s/[\\&%]/\\&/g
  3096. s%[\\$`]%\\&%g
  3097. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3098. s%ac_d%ac_u%gp
  3099. s%ac_u%ac_e%gp
  3100. EOF
  3101. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3102. rm -f conftest.hdr
  3103. # This sed command replaces #undef with comments. This is necessary, for
  3104. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3105. # on some systems where configure will not decide to define it.
  3106. cat >> conftest.vals <<\EOF
  3107. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3108. EOF
  3109. # Break up conftest.vals because some shells have a limit on
  3110. # the size of here documents, and old seds have small limits too.
  3111. rm -f conftest.tail
  3112. while :
  3113. do
  3114. ac_lines=`grep -c . conftest.vals`
  3115. # grep -c gives empty output for an empty file on some AIX systems.
  3116. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3117. # Write a limited-size here document to conftest.frag.
  3118. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3119. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3120. echo 'CEOF
  3121. sed -f conftest.frag conftest.in > conftest.out
  3122. rm -f conftest.in
  3123. mv conftest.out conftest.in
  3124. ' >> $CONFIG_STATUS
  3125. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3126. rm -f conftest.vals
  3127. mv conftest.tail conftest.vals
  3128. done
  3129. rm -f conftest.vals
  3130. cat >> $CONFIG_STATUS <<\EOF
  3131. rm -f conftest.frag conftest.h
  3132. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  3133. cat conftest.in >> conftest.h
  3134. rm -f conftest.in
  3135. if cmp -s $ac_file conftest.h 2>/dev/null; then
  3136. echo "$ac_file is unchanged"
  3137. rm -f conftest.h
  3138. else
  3139. # Remove last slash and all that follows it. Not all systems have dirname.
  3140. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3141. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3142. # The file is in a subdirectory.
  3143. test ! -d "$ac_dir" && mkdir "$ac_dir"
  3144. fi
  3145. rm -f $ac_file
  3146. mv conftest.h $ac_file
  3147. fi
  3148. fi; done
  3149. EOF
  3150. cat >> $CONFIG_STATUS <<EOF
  3151. EOF
  3152. cat >> $CONFIG_STATUS <<\EOF
  3153. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  3154. chmod +x pgeresh
  3155. exit 0
  3156. EOF
  3157. chmod +x $CONFIG_STATUS
  3158. rm -fr confdefs* $ac_clean_files
  3159. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1