You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 70KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --with-x use the X Window System"
  14. ac_help="$ac_help
  15. --with-installed-zlib use the version of zlib which is installed on the
  16. system instead of the one distributed with VNC"
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. mandir='${prefix}/man'
  50. # Initialize some other variables.
  51. subdirs=
  52. MFLAGS= MAKEFLAGS=
  53. SHELL=${CONFIG_SHELL-/bin/sh}
  54. # Maximum number of lines to put in a shell here document.
  55. ac_max_here_lines=12
  56. ac_prev=
  57. for ac_option
  58. do
  59. # If the previous option needs an argument, assign it.
  60. if test -n "$ac_prev"; then
  61. eval "$ac_prev=\$ac_option"
  62. ac_prev=
  63. continue
  64. fi
  65. case "$ac_option" in
  66. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  67. *) ac_optarg= ;;
  68. esac
  69. # Accept the important Cygnus configure options, so we can diagnose typos.
  70. case "$ac_option" in
  71. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  72. ac_prev=bindir ;;
  73. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  74. bindir="$ac_optarg" ;;
  75. -build | --build | --buil | --bui | --bu)
  76. ac_prev=build ;;
  77. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  78. build="$ac_optarg" ;;
  79. -cache-file | --cache-file | --cache-fil | --cache-fi \
  80. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  81. ac_prev=cache_file ;;
  82. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  83. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  84. cache_file="$ac_optarg" ;;
  85. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  86. ac_prev=datadir ;;
  87. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  88. | --da=*)
  89. datadir="$ac_optarg" ;;
  90. -disable-* | --disable-*)
  91. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  92. # Reject names that are not valid shell variable names.
  93. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  94. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  95. fi
  96. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  97. eval "enable_${ac_feature}=no" ;;
  98. -enable-* | --enable-*)
  99. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  100. # Reject names that are not valid shell variable names.
  101. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  102. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  103. fi
  104. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  105. case "$ac_option" in
  106. *=*) ;;
  107. *) ac_optarg=yes ;;
  108. esac
  109. eval "enable_${ac_feature}='$ac_optarg'" ;;
  110. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  111. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  112. | --exec | --exe | --ex)
  113. ac_prev=exec_prefix ;;
  114. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  115. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  116. | --exec=* | --exe=* | --ex=*)
  117. exec_prefix="$ac_optarg" ;;
  118. -gas | --gas | --ga | --g)
  119. # Obsolete; use --with-gas.
  120. with_gas=yes ;;
  121. -help | --help | --hel | --he)
  122. # Omit some internal or obsolete options to make the list less imposing.
  123. # This message is too long to be a string in the A/UX 3.1 sh.
  124. cat << EOF
  125. Usage: configure [options] [host]
  126. Options: [defaults in brackets after descriptions]
  127. Configuration:
  128. --cache-file=FILE cache test results in FILE
  129. --help print this message
  130. --no-create do not create output files
  131. --quiet, --silent do not print \`checking...' messages
  132. --version print the version of autoconf that created configure
  133. Directory and file names:
  134. --prefix=PREFIX install architecture-independent files in PREFIX
  135. [$ac_default_prefix]
  136. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  137. [same as prefix]
  138. --bindir=DIR user executables in DIR [EPREFIX/bin]
  139. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  140. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  141. --datadir=DIR read-only architecture-independent data in DIR
  142. [PREFIX/share]
  143. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  144. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  145. [PREFIX/com]
  146. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  147. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  148. --includedir=DIR C header files in DIR [PREFIX/include]
  149. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  150. --infodir=DIR info documentation in DIR [PREFIX/info]
  151. --mandir=DIR man documentation in DIR [PREFIX/man]
  152. --srcdir=DIR find the sources in DIR [configure dir or ..]
  153. --program-prefix=PREFIX prepend PREFIX to installed program names
  154. --program-suffix=SUFFIX append SUFFIX to installed program names
  155. --program-transform-name=PROGRAM
  156. run sed PROGRAM on installed program names
  157. EOF
  158. cat << EOF
  159. Host type:
  160. --build=BUILD configure for building on BUILD [BUILD=HOST]
  161. --host=HOST configure for HOST [guessed]
  162. --target=TARGET configure for TARGET [TARGET=HOST]
  163. Features and packages:
  164. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  165. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  166. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  167. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  168. --x-includes=DIR X include files are in DIR
  169. --x-libraries=DIR X library files are in DIR
  170. EOF
  171. if test -n "$ac_help"; then
  172. echo "--enable and --with options recognized:$ac_help"
  173. fi
  174. exit 0 ;;
  175. -host | --host | --hos | --ho)
  176. ac_prev=host ;;
  177. -host=* | --host=* | --hos=* | --ho=*)
  178. host="$ac_optarg" ;;
  179. -includedir | --includedir | --includedi | --included | --include \
  180. | --includ | --inclu | --incl | --inc)
  181. ac_prev=includedir ;;
  182. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  183. | --includ=* | --inclu=* | --incl=* | --inc=*)
  184. includedir="$ac_optarg" ;;
  185. -infodir | --infodir | --infodi | --infod | --info | --inf)
  186. ac_prev=infodir ;;
  187. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  188. infodir="$ac_optarg" ;;
  189. -libdir | --libdir | --libdi | --libd)
  190. ac_prev=libdir ;;
  191. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  192. libdir="$ac_optarg" ;;
  193. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  194. | --libexe | --libex | --libe)
  195. ac_prev=libexecdir ;;
  196. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  197. | --libexe=* | --libex=* | --libe=*)
  198. libexecdir="$ac_optarg" ;;
  199. -localstatedir | --localstatedir | --localstatedi | --localstated \
  200. | --localstate | --localstat | --localsta | --localst \
  201. | --locals | --local | --loca | --loc | --lo)
  202. ac_prev=localstatedir ;;
  203. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  204. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  205. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  206. localstatedir="$ac_optarg" ;;
  207. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  208. ac_prev=mandir ;;
  209. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  210. mandir="$ac_optarg" ;;
  211. -nfp | --nfp | --nf)
  212. # Obsolete; use --without-fp.
  213. with_fp=no ;;
  214. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  215. | --no-cr | --no-c)
  216. no_create=yes ;;
  217. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  218. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  219. no_recursion=yes ;;
  220. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  221. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  222. | --oldin | --oldi | --old | --ol | --o)
  223. ac_prev=oldincludedir ;;
  224. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  225. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  226. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  227. oldincludedir="$ac_optarg" ;;
  228. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  229. ac_prev=prefix ;;
  230. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  231. prefix="$ac_optarg" ;;
  232. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  233. | --program-pre | --program-pr | --program-p)
  234. ac_prev=program_prefix ;;
  235. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  236. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  237. program_prefix="$ac_optarg" ;;
  238. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  239. | --program-suf | --program-su | --program-s)
  240. ac_prev=program_suffix ;;
  241. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  242. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  243. program_suffix="$ac_optarg" ;;
  244. -program-transform-name | --program-transform-name \
  245. | --program-transform-nam | --program-transform-na \
  246. | --program-transform-n | --program-transform- \
  247. | --program-transform | --program-transfor \
  248. | --program-transfo | --program-transf \
  249. | --program-trans | --program-tran \
  250. | --progr-tra | --program-tr | --program-t)
  251. ac_prev=program_transform_name ;;
  252. -program-transform-name=* | --program-transform-name=* \
  253. | --program-transform-nam=* | --program-transform-na=* \
  254. | --program-transform-n=* | --program-transform-=* \
  255. | --program-transform=* | --program-transfor=* \
  256. | --program-transfo=* | --program-transf=* \
  257. | --program-trans=* | --program-tran=* \
  258. | --progr-tra=* | --program-tr=* | --program-t=*)
  259. program_transform_name="$ac_optarg" ;;
  260. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  261. | -silent | --silent | --silen | --sile | --sil)
  262. silent=yes ;;
  263. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  264. ac_prev=sbindir ;;
  265. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  266. | --sbi=* | --sb=*)
  267. sbindir="$ac_optarg" ;;
  268. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  269. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  270. | --sharedst | --shareds | --shared | --share | --shar \
  271. | --sha | --sh)
  272. ac_prev=sharedstatedir ;;
  273. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  274. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  275. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  276. | --sha=* | --sh=*)
  277. sharedstatedir="$ac_optarg" ;;
  278. -site | --site | --sit)
  279. ac_prev=site ;;
  280. -site=* | --site=* | --sit=*)
  281. site="$ac_optarg" ;;
  282. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  283. ac_prev=srcdir ;;
  284. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  285. srcdir="$ac_optarg" ;;
  286. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  287. | --syscon | --sysco | --sysc | --sys | --sy)
  288. ac_prev=sysconfdir ;;
  289. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  290. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  291. sysconfdir="$ac_optarg" ;;
  292. -target | --target | --targe | --targ | --tar | --ta | --t)
  293. ac_prev=target ;;
  294. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  295. target="$ac_optarg" ;;
  296. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  297. verbose=yes ;;
  298. -version | --version | --versio | --versi | --vers)
  299. echo "configure generated by autoconf version 2.13"
  300. exit 0 ;;
  301. -with-* | --with-*)
  302. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  303. # Reject names that are not valid shell variable names.
  304. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  305. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  306. fi
  307. ac_package=`echo $ac_package| sed 's/-/_/g'`
  308. case "$ac_option" in
  309. *=*) ;;
  310. *) ac_optarg=yes ;;
  311. esac
  312. eval "with_${ac_package}='$ac_optarg'" ;;
  313. -without-* | --without-*)
  314. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  315. # Reject names that are not valid shell variable names.
  316. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  317. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  318. fi
  319. ac_package=`echo $ac_package| sed 's/-/_/g'`
  320. eval "with_${ac_package}=no" ;;
  321. --x)
  322. # Obsolete; use --with-x.
  323. with_x=yes ;;
  324. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  325. | --x-incl | --x-inc | --x-in | --x-i)
  326. ac_prev=x_includes ;;
  327. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  328. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  329. x_includes="$ac_optarg" ;;
  330. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  331. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  332. ac_prev=x_libraries ;;
  333. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  334. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  335. x_libraries="$ac_optarg" ;;
  336. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  337. ;;
  338. *)
  339. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  340. echo "configure: warning: $ac_option: invalid host type" 1>&2
  341. fi
  342. if test "x$nonopt" != xNONE; then
  343. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  344. fi
  345. nonopt="$ac_option"
  346. ;;
  347. esac
  348. done
  349. if test -n "$ac_prev"; then
  350. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  351. fi
  352. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  353. # File descriptor usage:
  354. # 0 standard input
  355. # 1 file creation
  356. # 2 errors and warnings
  357. # 3 some systems may open it to /dev/tty
  358. # 4 used on the Kubota Titan
  359. # 6 checking for... messages and results
  360. # 5 compiler messages saved in config.log
  361. if test "$silent" = yes; then
  362. exec 6>/dev/null
  363. else
  364. exec 6>&1
  365. fi
  366. exec 5>./config.log
  367. echo "\
  368. This file contains any messages produced by compilers while
  369. running configure, to aid debugging if configure makes a mistake.
  370. " 1>&5
  371. # Strip out --no-create and --no-recursion so they do not pile up.
  372. # Also quote any args containing shell metacharacters.
  373. ac_configure_args=
  374. for ac_arg
  375. do
  376. case "$ac_arg" in
  377. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  378. | --no-cr | --no-c) ;;
  379. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  380. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  381. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  382. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  383. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  384. esac
  385. done
  386. # NLS nuisances.
  387. # Only set these to C if already set. These must not be set unconditionally
  388. # because not all systems understand e.g. LANG=C (notably SCO).
  389. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  390. # Non-C LC_CTYPE values break the ctype check.
  391. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  392. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  393. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  394. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  395. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  396. rm -rf conftest* confdefs.h
  397. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  398. echo > confdefs.h
  399. # A filename unique to this package, relative to the directory that
  400. # configure is in, which we can look for to find out if srcdir is correct.
  401. ac_unique_file=rdr/InStream.h
  402. # Find the source files, if location was not specified.
  403. if test -z "$srcdir"; then
  404. ac_srcdir_defaulted=yes
  405. # Try the directory containing this script, then its parent.
  406. ac_prog=$0
  407. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  408. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  409. srcdir=$ac_confdir
  410. if test ! -r $srcdir/$ac_unique_file; then
  411. srcdir=..
  412. fi
  413. else
  414. ac_srcdir_defaulted=no
  415. fi
  416. if test ! -r $srcdir/$ac_unique_file; then
  417. if test "$ac_srcdir_defaulted" = yes; then
  418. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  419. else
  420. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  421. fi
  422. fi
  423. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  424. # Prefer explicitly selected file to automatically selected ones.
  425. if test -z "$CONFIG_SITE"; then
  426. if test "x$prefix" != xNONE; then
  427. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  428. else
  429. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  430. fi
  431. fi
  432. for ac_site_file in $CONFIG_SITE; do
  433. if test -r "$ac_site_file"; then
  434. echo "loading site script $ac_site_file"
  435. . "$ac_site_file"
  436. fi
  437. done
  438. if test -r "$cache_file"; then
  439. echo "loading cache $cache_file"
  440. . $cache_file
  441. else
  442. echo "creating cache $cache_file"
  443. > $cache_file
  444. fi
  445. ac_ext=c
  446. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  447. ac_cpp='$CPP $CPPFLAGS'
  448. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  449. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  450. cross_compiling=$ac_cv_prog_cc_cross
  451. ac_exeext=
  452. ac_objext=o
  453. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  454. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  455. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  456. ac_n= ac_c='
  457. ' ac_t=' '
  458. else
  459. ac_n=-n ac_c= ac_t=
  460. fi
  461. else
  462. ac_n= ac_c='\c' ac_t=
  463. fi
  464. ac_cv_prog_cc_g=no
  465. ac_cv_prog_cxx_g=no
  466. # Extract the first word of "gcc", so it can be a program name with args.
  467. set dummy gcc; ac_word=$2
  468. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  469. echo "configure:537: checking for $ac_word" >&5
  470. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  471. echo $ac_n "(cached) $ac_c" 1>&6
  472. else
  473. if test -n "$CC"; then
  474. ac_cv_prog_CC="$CC" # Let the user override the test.
  475. else
  476. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  477. ac_dummy="$PATH"
  478. for ac_dir in $ac_dummy; do
  479. test -z "$ac_dir" && ac_dir=.
  480. if test -f $ac_dir/$ac_word; then
  481. ac_cv_prog_CC="gcc"
  482. break
  483. fi
  484. done
  485. IFS="$ac_save_ifs"
  486. fi
  487. fi
  488. CC="$ac_cv_prog_CC"
  489. if test -n "$CC"; then
  490. echo "$ac_t""$CC" 1>&6
  491. else
  492. echo "$ac_t""no" 1>&6
  493. fi
  494. if test -z "$CC"; then
  495. # Extract the first word of "cc", so it can be a program name with args.
  496. set dummy cc; ac_word=$2
  497. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  498. echo "configure:567: checking for $ac_word" >&5
  499. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  500. echo $ac_n "(cached) $ac_c" 1>&6
  501. else
  502. if test -n "$CC"; then
  503. ac_cv_prog_CC="$CC" # Let the user override the test.
  504. else
  505. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  506. ac_prog_rejected=no
  507. ac_dummy="$PATH"
  508. for ac_dir in $ac_dummy; do
  509. test -z "$ac_dir" && ac_dir=.
  510. if test -f $ac_dir/$ac_word; then
  511. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  512. ac_prog_rejected=yes
  513. continue
  514. fi
  515. ac_cv_prog_CC="cc"
  516. break
  517. fi
  518. done
  519. IFS="$ac_save_ifs"
  520. if test $ac_prog_rejected = yes; then
  521. # We found a bogon in the path, so make sure we never use it.
  522. set dummy $ac_cv_prog_CC
  523. shift
  524. if test $# -gt 0; then
  525. # We chose a different compiler from the bogus one.
  526. # However, it has the same basename, so the bogon will be chosen
  527. # first if we set CC to just the basename; use the full file name.
  528. shift
  529. set dummy "$ac_dir/$ac_word" "$@"
  530. shift
  531. ac_cv_prog_CC="$@"
  532. fi
  533. fi
  534. fi
  535. fi
  536. CC="$ac_cv_prog_CC"
  537. if test -n "$CC"; then
  538. echo "$ac_t""$CC" 1>&6
  539. else
  540. echo "$ac_t""no" 1>&6
  541. fi
  542. if test -z "$CC"; then
  543. case "`uname -s`" in
  544. *win32* | *WIN32*)
  545. # Extract the first word of "cl", so it can be a program name with args.
  546. set dummy cl; ac_word=$2
  547. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  548. echo "configure:618: checking for $ac_word" >&5
  549. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  550. echo $ac_n "(cached) $ac_c" 1>&6
  551. else
  552. if test -n "$CC"; then
  553. ac_cv_prog_CC="$CC" # Let the user override the test.
  554. else
  555. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  556. ac_dummy="$PATH"
  557. for ac_dir in $ac_dummy; do
  558. test -z "$ac_dir" && ac_dir=.
  559. if test -f $ac_dir/$ac_word; then
  560. ac_cv_prog_CC="cl"
  561. break
  562. fi
  563. done
  564. IFS="$ac_save_ifs"
  565. fi
  566. fi
  567. CC="$ac_cv_prog_CC"
  568. if test -n "$CC"; then
  569. echo "$ac_t""$CC" 1>&6
  570. else
  571. echo "$ac_t""no" 1>&6
  572. fi
  573. ;;
  574. esac
  575. fi
  576. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  577. fi
  578. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  579. echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  580. ac_ext=c
  581. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  582. ac_cpp='$CPP $CPPFLAGS'
  583. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  584. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  585. cross_compiling=$ac_cv_prog_cc_cross
  586. cat > conftest.$ac_ext << EOF
  587. #line 661 "configure"
  588. #include "confdefs.h"
  589. main(){return(0);}
  590. EOF
  591. if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  592. ac_cv_prog_cc_works=yes
  593. # If we can't run a trivial program, we are probably using a cross compiler.
  594. if (./conftest; exit) 2>/dev/null; then
  595. ac_cv_prog_cc_cross=no
  596. else
  597. ac_cv_prog_cc_cross=yes
  598. fi
  599. else
  600. echo "configure: failed program was:" >&5
  601. cat conftest.$ac_ext >&5
  602. ac_cv_prog_cc_works=no
  603. fi
  604. rm -fr conftest*
  605. ac_ext=c
  606. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  607. ac_cpp='$CPP $CPPFLAGS'
  608. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  609. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  610. cross_compiling=$ac_cv_prog_cc_cross
  611. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  612. if test $ac_cv_prog_cc_works = no; then
  613. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  614. fi
  615. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  616. echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  617. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  618. cross_compiling=$ac_cv_prog_cc_cross
  619. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  620. echo "configure:697: checking whether we are using GNU C" >&5
  621. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  622. echo $ac_n "(cached) $ac_c" 1>&6
  623. else
  624. cat > conftest.c <<EOF
  625. #ifdef __GNUC__
  626. yes;
  627. #endif
  628. EOF
  629. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  630. ac_cv_prog_gcc=yes
  631. else
  632. ac_cv_prog_gcc=no
  633. fi
  634. fi
  635. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  636. if test $ac_cv_prog_gcc = yes; then
  637. GCC=yes
  638. else
  639. GCC=
  640. fi
  641. ac_test_CFLAGS="${CFLAGS+set}"
  642. ac_save_CFLAGS="$CFLAGS"
  643. CFLAGS=
  644. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  645. echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
  646. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  647. echo $ac_n "(cached) $ac_c" 1>&6
  648. else
  649. echo 'void f(){}' > conftest.c
  650. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  651. ac_cv_prog_cc_g=yes
  652. else
  653. ac_cv_prog_cc_g=no
  654. fi
  655. rm -f conftest*
  656. fi
  657. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  658. if test "$ac_test_CFLAGS" = set; then
  659. CFLAGS="$ac_save_CFLAGS"
  660. elif test $ac_cv_prog_cc_g = yes; then
  661. if test "$GCC" = yes; then
  662. CFLAGS="-g -O2"
  663. else
  664. CFLAGS="-g"
  665. fi
  666. else
  667. if test "$GCC" = yes; then
  668. CFLAGS="-O2"
  669. else
  670. CFLAGS=
  671. fi
  672. fi
  673. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  674. do
  675. # Extract the first word of "$ac_prog", so it can be a program name with args.
  676. set dummy $ac_prog; ac_word=$2
  677. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  678. echo "configure:761: checking for $ac_word" >&5
  679. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  680. echo $ac_n "(cached) $ac_c" 1>&6
  681. else
  682. if test -n "$CXX"; then
  683. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  684. else
  685. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  686. ac_dummy="$PATH"
  687. for ac_dir in $ac_dummy; do
  688. test -z "$ac_dir" && ac_dir=.
  689. if test -f $ac_dir/$ac_word; then
  690. ac_cv_prog_CXX="$ac_prog"
  691. break
  692. fi
  693. done
  694. IFS="$ac_save_ifs"
  695. fi
  696. fi
  697. CXX="$ac_cv_prog_CXX"
  698. if test -n "$CXX"; then
  699. echo "$ac_t""$CXX" 1>&6
  700. else
  701. echo "$ac_t""no" 1>&6
  702. fi
  703. test -n "$CXX" && break
  704. done
  705. test -n "$CXX" || CXX="gcc"
  706. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  707. echo "configure:793: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  708. ac_ext=C
  709. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  710. ac_cpp='$CXXCPP $CPPFLAGS'
  711. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  712. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  713. cross_compiling=$ac_cv_prog_cxx_cross
  714. cat > conftest.$ac_ext << EOF
  715. #line 804 "configure"
  716. #include "confdefs.h"
  717. int main(){return(0);}
  718. EOF
  719. if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  720. ac_cv_prog_cxx_works=yes
  721. # If we can't run a trivial program, we are probably using a cross compiler.
  722. if (./conftest; exit) 2>/dev/null; then
  723. ac_cv_prog_cxx_cross=no
  724. else
  725. ac_cv_prog_cxx_cross=yes
  726. fi
  727. else
  728. echo "configure: failed program was:" >&5
  729. cat conftest.$ac_ext >&5
  730. ac_cv_prog_cxx_works=no
  731. fi
  732. rm -fr conftest*
  733. ac_ext=c
  734. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  735. ac_cpp='$CPP $CPPFLAGS'
  736. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  737. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  738. cross_compiling=$ac_cv_prog_cc_cross
  739. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  740. if test $ac_cv_prog_cxx_works = no; then
  741. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  742. fi
  743. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  744. echo "configure:835: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  745. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  746. cross_compiling=$ac_cv_prog_cxx_cross
  747. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  748. echo "configure:840: checking whether we are using GNU C++" >&5
  749. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  750. echo $ac_n "(cached) $ac_c" 1>&6
  751. else
  752. cat > conftest.C <<EOF
  753. #ifdef __GNUC__
  754. yes;
  755. #endif
  756. EOF
  757. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  758. ac_cv_prog_gxx=yes
  759. else
  760. ac_cv_prog_gxx=no
  761. fi
  762. fi
  763. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  764. if test $ac_cv_prog_gxx = yes; then
  765. GXX=yes
  766. else
  767. GXX=
  768. fi
  769. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  770. ac_save_CXXFLAGS="$CXXFLAGS"
  771. CXXFLAGS=
  772. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  773. echo "configure:868: checking whether ${CXX-g++} accepts -g" >&5
  774. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  775. echo $ac_n "(cached) $ac_c" 1>&6
  776. else
  777. echo 'void f(){}' > conftest.cc
  778. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  779. ac_cv_prog_cxx_g=yes
  780. else
  781. ac_cv_prog_cxx_g=no
  782. fi
  783. rm -f conftest*
  784. fi
  785. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  786. if test "$ac_test_CXXFLAGS" = set; then
  787. CXXFLAGS="$ac_save_CXXFLAGS"
  788. elif test $ac_cv_prog_cxx_g = yes; then
  789. if test "$GXX" = yes; then
  790. CXXFLAGS="-g -O2"
  791. else
  792. CXXFLAGS="-g"
  793. fi
  794. else
  795. if test "$GXX" = yes; then
  796. CXXFLAGS="-O2"
  797. else
  798. CXXFLAGS=
  799. fi
  800. fi
  801. # Extract the first word of "ranlib", so it can be a program name with args.
  802. set dummy ranlib; ac_word=$2
  803. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  804. echo "configure:902: checking for $ac_word" >&5
  805. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  806. echo $ac_n "(cached) $ac_c" 1>&6
  807. else
  808. if test -n "$RANLIB"; then
  809. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  810. else
  811. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  812. ac_dummy="$PATH"
  813. for ac_dir in $ac_dummy; do
  814. test -z "$ac_dir" && ac_dir=.
  815. if test -f $ac_dir/$ac_word; then
  816. ac_cv_prog_RANLIB="ranlib"
  817. break
  818. fi
  819. done
  820. IFS="$ac_save_ifs"
  821. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  822. fi
  823. fi
  824. RANLIB="$ac_cv_prog_RANLIB"
  825. if test -n "$RANLIB"; then
  826. echo "$ac_t""$RANLIB" 1>&6
  827. else
  828. echo "$ac_t""no" 1>&6
  829. fi
  830. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  831. echo "configure:930: checking whether ${MAKE-make} sets \${MAKE}" >&5
  832. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  833. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  834. echo $ac_n "(cached) $ac_c" 1>&6
  835. else
  836. cat > conftestmake <<\EOF
  837. all:
  838. @echo 'ac_maketemp="${MAKE}"'
  839. EOF
  840. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  841. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  842. if test -n "$ac_maketemp"; then
  843. eval ac_cv_prog_make_${ac_make}_set=yes
  844. else
  845. eval ac_cv_prog_make_${ac_make}_set=no
  846. fi
  847. rm -f conftestmake
  848. fi
  849. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  850. echo "$ac_t""yes" 1>&6
  851. SET_MAKE=
  852. else
  853. echo "$ac_t""no" 1>&6
  854. SET_MAKE="MAKE=${MAKE-make}"
  855. fi
  856. ac_ext=C
  857. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  858. ac_cpp='$CXXCPP $CPPFLAGS'
  859. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  860. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  861. cross_compiling=$ac_cv_prog_cxx_cross
  862. case "`(uname -sr) 2>/dev/null`" in
  863. "SunOS 5"*)
  864. SOLARIS=yes
  865. USE_MITSHM=yes
  866. ;;
  867. "Linux"*)
  868. LINUX=yes
  869. USE_MITSHM=yes
  870. ;;
  871. esac
  872. if test "$USE_MITSHM" = yes; then
  873. MITSHM_CPPFLAGS="-DMITSHM"
  874. fi
  875. if test "$GCC" = yes; then
  876. CFLAGS="$CFLAGS -Wall"
  877. if test "$SOLARIS" = yes; then
  878. CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
  879. fi
  880. fi
  881. if test "$GXX" = yes; then
  882. CXXFLAGS="$CXXFLAGS -Wall"
  883. if test "$SOLARIS" = yes; then
  884. CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive"
  885. fi
  886. fi
  887. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  888. echo "configure:994: checking how to run the C++ preprocessor" >&5
  889. if test -z "$CXXCPP"; then
  890. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  891. echo $ac_n "(cached) $ac_c" 1>&6
  892. else
  893. ac_ext=C
  894. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  895. ac_cpp='$CXXCPP $CPPFLAGS'
  896. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  897. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  898. cross_compiling=$ac_cv_prog_cxx_cross
  899. CXXCPP="${CXX-g++} -E"
  900. cat > conftest.$ac_ext <<EOF
  901. #line 1007 "configure"
  902. #include "confdefs.h"
  903. #include <stdlib.h>
  904. EOF
  905. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  906. { (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  907. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  908. if test -z "$ac_err"; then
  909. :
  910. else
  911. echo "$ac_err" >&5
  912. echo "configure: failed program was:" >&5
  913. cat conftest.$ac_ext >&5
  914. rm -rf conftest*
  915. CXXCPP=/lib/cpp
  916. fi
  917. rm -f conftest*
  918. ac_cv_prog_CXXCPP="$CXXCPP"
  919. ac_ext=C
  920. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  921. ac_cpp='$CXXCPP $CPPFLAGS'
  922. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  923. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  924. cross_compiling=$ac_cv_prog_cxx_cross
  925. fi
  926. fi
  927. CXXCPP="$ac_cv_prog_CXXCPP"
  928. echo "$ac_t""$CXXCPP" 1>&6
  929. # If we find X, set shell vars x_includes and x_libraries to the
  930. # paths, otherwise set no_x=yes.
  931. # Uses ac_ vars as temps to allow command line to override cache and checks.
  932. # --without-x overrides everything else, but does not touch the cache.
  933. echo $ac_n "checking for X""... $ac_c" 1>&6
  934. echo "configure:1041: checking for X" >&5
  935. # Check whether --with-x or --without-x was given.
  936. if test "${with_x+set}" = set; then
  937. withval="$with_x"
  938. :
  939. fi
  940. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  941. if test "x$with_x" = xno; then
  942. # The user explicitly disabled X.
  943. have_x=disabled
  944. else
  945. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  946. # Both variables are already set.
  947. have_x=yes
  948. else
  949. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  950. echo $ac_n "(cached) $ac_c" 1>&6
  951. else
  952. # One or both of the vars are not set, and there is no cached value.
  953. ac_x_includes=NO ac_x_libraries=NO
  954. rm -fr conftestdir
  955. if mkdir conftestdir; then
  956. cd conftestdir
  957. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  958. cat > Imakefile <<'EOF'
  959. acfindx:
  960. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  961. EOF
  962. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  963. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  964. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  965. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  966. for ac_extension in a so sl; do
  967. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  968. test -f $ac_im_libdir/libX11.$ac_extension; then
  969. ac_im_usrlibdir=$ac_im_libdir; break
  970. fi
  971. done
  972. # Screen out bogus values from the imake configuration. They are
  973. # bogus both because they are the default anyway, and because
  974. # using them would break gcc on systems where it needs fixed includes.
  975. case "$ac_im_incroot" in
  976. /usr/include) ;;
  977. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  978. esac
  979. case "$ac_im_usrlibdir" in
  980. /usr/lib | /lib) ;;
  981. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  982. esac
  983. fi
  984. cd ..
  985. rm -fr conftestdir
  986. fi
  987. if test "$ac_x_includes" = NO; then
  988. # Guess where to find include files, by looking for this one X11 .h file.
  989. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  990. # First, try using that file with no special directory specified.
  991. cat > conftest.$ac_ext <<EOF
  992. #line 1103 "configure"
  993. #include "confdefs.h"
  994. #include <$x_direct_test_include>
  995. EOF
  996. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  997. { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  998. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  999. if test -z "$ac_err"; then
  1000. rm -rf conftest*
  1001. # We can compile using X headers with no special include directory.
  1002. ac_x_includes=
  1003. else
  1004. echo "$ac_err" >&5
  1005. echo "configure: failed program was:" >&5
  1006. cat conftest.$ac_ext >&5
  1007. rm -rf conftest*
  1008. # Look for the header file in a standard set of common directories.
  1009. # Check X11 before X11Rn because it is often a symlink to the current release.
  1010. for ac_dir in \
  1011. /usr/X11/include \
  1012. /usr/X11R6/include \
  1013. /usr/X11R5/include \
  1014. /usr/X11R4/include \
  1015. \
  1016. /usr/include/X11 \
  1017. /usr/include/X11R6 \
  1018. /usr/include/X11R5 \
  1019. /usr/include/X11R4 \
  1020. \
  1021. /usr/local/X11/include \
  1022. /usr/local/X11R6/include \
  1023. /usr/local/X11R5/include \
  1024. /usr/local/X11R4/include \
  1025. \
  1026. /usr/local/include/X11 \
  1027. /usr/local/include/X11R6 \
  1028. /usr/local/include/X11R5 \
  1029. /usr/local/include/X11R4 \
  1030. \
  1031. /usr/X386/include \
  1032. /usr/x386/include \
  1033. /usr/XFree86/include/X11 \
  1034. \
  1035. /usr/include \
  1036. /usr/local/include \
  1037. /usr/unsupported/include \
  1038. /usr/athena/include \
  1039. /usr/local/x11r5/include \
  1040. /usr/lpp/Xamples/include \
  1041. \
  1042. /usr/openwin/include \
  1043. /usr/openwin/share/include \
  1044. ; \
  1045. do
  1046. if test -r "$ac_dir/$x_direct_test_include"; then
  1047. ac_x_includes=$ac_dir
  1048. break
  1049. fi
  1050. done
  1051. fi
  1052. rm -f conftest*
  1053. fi # $ac_x_includes = NO
  1054. if test "$ac_x_libraries" = NO; then
  1055. # Check for the libraries.
  1056. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1057. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1058. # See if we find them without any special options.
  1059. # Don't add to $LIBS permanently.
  1060. ac_save_LIBS="$LIBS"
  1061. LIBS="-l$x_direct_test_library $LIBS"
  1062. cat > conftest.$ac_ext <<EOF
  1063. #line 1177 "configure"
  1064. #include "confdefs.h"
  1065. int main() {
  1066. ${x_direct_test_function}()
  1067. ; return 0; }
  1068. EOF
  1069. if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1070. rm -rf conftest*
  1071. LIBS="$ac_save_LIBS"
  1072. # We can link X programs with no special library path.
  1073. ac_x_libraries=
  1074. else
  1075. echo "configure: failed program was:" >&5
  1076. cat conftest.$ac_ext >&5
  1077. rm -rf conftest*
  1078. LIBS="$ac_save_LIBS"
  1079. # First see if replacing the include by lib works.
  1080. # Check X11 before X11Rn because it is often a symlink to the current release.
  1081. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1082. /usr/X11/lib \
  1083. /usr/X11R6/lib \
  1084. /usr/X11R5/lib \
  1085. /usr/X11R4/lib \
  1086. \
  1087. /usr/lib/X11 \
  1088. /usr/lib/X11R6 \
  1089. /usr/lib/X11R5 \
  1090. /usr/lib/X11R4 \
  1091. \
  1092. /usr/local/X11/lib \
  1093. /usr/local/X11R6/lib \
  1094. /usr/local/X11R5/lib \
  1095. /usr/local/X11R4/lib \
  1096. \
  1097. /usr/local/lib/X11 \
  1098. /usr/local/lib/X11R6 \
  1099. /usr/local/lib/X11R5 \
  1100. /usr/local/lib/X11R4 \
  1101. \
  1102. /usr/X386/lib \
  1103. /usr/x386/lib \
  1104. /usr/XFree86/lib/X11 \
  1105. \
  1106. /usr/lib \
  1107. /usr/local/lib \
  1108. /usr/unsupported/lib \
  1109. /usr/athena/lib \
  1110. /usr/local/x11r5/lib \
  1111. /usr/lpp/Xamples/lib \
  1112. /lib/usr/lib/X11 \
  1113. \
  1114. /usr/openwin/lib \
  1115. /usr/openwin/share/lib \
  1116. ; \
  1117. do
  1118. for ac_extension in a so sl; do
  1119. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1120. ac_x_libraries=$ac_dir
  1121. break 2
  1122. fi
  1123. done
  1124. done
  1125. fi
  1126. rm -f conftest*
  1127. fi # $ac_x_libraries = NO
  1128. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  1129. # Didn't find X anywhere. Cache the known absence of X.
  1130. ac_cv_have_x="have_x=no"
  1131. else
  1132. # Record where we found X for the cache.
  1133. ac_cv_have_x="have_x=yes \
  1134. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1135. fi
  1136. fi
  1137. fi
  1138. eval "$ac_cv_have_x"
  1139. fi # $with_x != no
  1140. if test "$have_x" != yes; then
  1141. echo "$ac_t""$have_x" 1>&6
  1142. no_x=yes
  1143. else
  1144. # If each of the values was on the command line, it overrides each guess.
  1145. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1146. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1147. # Update the cache value to reflect the command line values.
  1148. ac_cv_have_x="have_x=yes \
  1149. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1150. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1151. fi
  1152. if test "$no_x" = yes; then
  1153. # Not all programs may use this symbol, but it does not hurt to define it.
  1154. cat >> confdefs.h <<\EOF
  1155. #define X_DISPLAY_MISSING 1
  1156. EOF
  1157. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  1158. else
  1159. if test -n "$x_includes"; then
  1160. X_CFLAGS="$X_CFLAGS -I$x_includes"
  1161. fi
  1162. # It would also be nice to do this for all -L options, not just this one.
  1163. if test -n "$x_libraries"; then
  1164. X_LIBS="$X_LIBS -L$x_libraries"
  1165. # For Solaris; some versions of Sun CC require a space after -R and
  1166. # others require no space. Words are not sufficient . . . .
  1167. case "`(uname -sr) 2>/dev/null`" in
  1168. "SunOS 5"*)
  1169. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  1170. echo "configure:1290: checking whether -R must be followed by a space" >&5
  1171. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  1172. cat > conftest.$ac_ext <<EOF
  1173. #line 1293 "configure"
  1174. #include "confdefs.h"
  1175. int main() {
  1176. ; return 0; }
  1177. EOF
  1178. if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1179. rm -rf conftest*
  1180. ac_R_nospace=yes
  1181. else
  1182. echo "configure: failed program was:" >&5
  1183. cat conftest.$ac_ext >&5
  1184. rm -rf conftest*
  1185. ac_R_nospace=no
  1186. fi
  1187. rm -f conftest*
  1188. if test $ac_R_nospace = yes; then
  1189. echo "$ac_t""no" 1>&6
  1190. X_LIBS="$X_LIBS -R$x_libraries"
  1191. else
  1192. LIBS="$ac_xsave_LIBS -R $x_libraries"
  1193. cat > conftest.$ac_ext <<EOF
  1194. #line 1316 "configure"
  1195. #include "confdefs.h"
  1196. int main() {
  1197. ; return 0; }
  1198. EOF
  1199. if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1200. rm -rf conftest*
  1201. ac_R_space=yes
  1202. else
  1203. echo "configure: failed program was:" >&5
  1204. cat conftest.$ac_ext >&5
  1205. rm -rf conftest*
  1206. ac_R_space=no
  1207. fi
  1208. rm -f conftest*
  1209. if test $ac_R_space = yes; then
  1210. echo "$ac_t""yes" 1>&6
  1211. X_LIBS="$X_LIBS -R $x_libraries"
  1212. else
  1213. echo "$ac_t""neither works" 1>&6
  1214. fi
  1215. fi
  1216. LIBS="$ac_xsave_LIBS"
  1217. esac
  1218. fi
  1219. # Check for system-dependent libraries X programs must link with.
  1220. # Do this before checking for the system-independent R6 libraries
  1221. # (-lICE), since we may need -lsocket or whatever for X linking.
  1222. if test "$ISC" = yes; then
  1223. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1224. else
  1225. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1226. # libraries were built with DECnet support. And karl@cs.umb.edu says
  1227. # the Alpha needs dnet_stub (dnet does not exist).
  1228. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  1229. echo "configure:1355: checking for dnet_ntoa in -ldnet" >&5
  1230. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1231. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1232. echo $ac_n "(cached) $ac_c" 1>&6
  1233. else
  1234. ac_save_LIBS="$LIBS"
  1235. LIBS="-ldnet $LIBS"
  1236. cat > conftest.$ac_ext <<EOF
  1237. #line 1363 "configure"
  1238. #include "confdefs.h"
  1239. /* Override any gcc2 internal prototype to avoid an error. */
  1240. #ifdef __cplusplus
  1241. extern "C"
  1242. #endif
  1243. /* We use char because int might match the return type of a gcc2
  1244. builtin and then its argument prototype would still apply. */
  1245. char dnet_ntoa();
  1246. int main() {
  1247. dnet_ntoa()
  1248. ; return 0; }
  1249. EOF
  1250. if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1251. rm -rf conftest*
  1252. eval "ac_cv_lib_$ac_lib_var=yes"
  1253. else
  1254. echo "configure: failed program was:" >&5
  1255. cat conftest.$ac_ext >&5
  1256. rm -rf conftest*
  1257. eval "ac_cv_lib_$ac_lib_var=no"
  1258. fi
  1259. rm -f conftest*
  1260. LIBS="$ac_save_LIBS"
  1261. fi
  1262. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1263. echo "$ac_t""yes" 1>&6
  1264. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1265. else
  1266. echo "$ac_t""no" 1>&6
  1267. fi
  1268. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  1269. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  1270. echo "configure:1399: checking for dnet_ntoa in -ldnet_stub" >&5
  1271. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1272. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1273. echo $ac_n "(cached) $ac_c" 1>&6
  1274. else
  1275. ac_save_LIBS="$LIBS"
  1276. LIBS="-ldnet_stub $LIBS"
  1277. cat > conftest.$ac_ext <<EOF
  1278. #line 1407 "configure"
  1279. #include "confdefs.h"
  1280. /* Override any gcc2 internal prototype to avoid an error. */
  1281. #ifdef __cplusplus
  1282. extern "C"
  1283. #endif
  1284. /* We use char because int might match the return type of a gcc2
  1285. builtin and then its argument prototype would still apply. */
  1286. char dnet_ntoa();
  1287. int main() {
  1288. dnet_ntoa()
  1289. ; return 0; }
  1290. EOF
  1291. if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1292. rm -rf conftest*
  1293. eval "ac_cv_lib_$ac_lib_var=yes"
  1294. else
  1295. echo "configure: failed program was:" >&5
  1296. cat conftest.$ac_ext >&5
  1297. rm -rf conftest*
  1298. eval "ac_cv_lib_$ac_lib_var=no"
  1299. fi
  1300. rm -f conftest*
  1301. LIBS="$ac_save_LIBS"
  1302. fi
  1303. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1304. echo "$ac_t""yes" 1>&6
  1305. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1306. else
  1307. echo "$ac_t""no" 1>&6
  1308. fi
  1309. fi
  1310. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1311. # to get the SysV transport functions.
  1312. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  1313. # needs -lnsl.
  1314. # The nsl library prevents programs from opening the X display
  1315. # on Irix 5.2, according to dickey@clark.net.
  1316. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  1317. echo "configure:1450: checking for gethostbyname" >&5
  1318. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  1319. echo $ac_n "(cached) $ac_c" 1>&6
  1320. else
  1321. cat > conftest.$ac_ext <<EOF
  1322. #line 1455 "configure"
  1323. #include "confdefs.h"
  1324. /* System header to define __stub macros and hopefully few prototypes,
  1325. which can conflict with char gethostbyname(); below. */
  1326. #include <assert.h>
  1327. /* Override any gcc2 internal prototype to avoid an error. */
  1328. #ifdef __cplusplus
  1329. extern "C"
  1330. #endif
  1331. /* We use char because int might match the return type of a gcc2
  1332. builtin and then its argument prototype would still apply. */
  1333. char gethostbyname();
  1334. int main() {
  1335. /* The GNU C library defines this for functions which it implements
  1336. to always fail with ENOSYS. Some functions are actually named
  1337. something starting with __ and the normal name is an alias. */
  1338. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  1339. choke me
  1340. #else
  1341. gethostbyname();
  1342. #endif
  1343. ; return 0; }
  1344. EOF
  1345. if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1346. rm -rf conftest*
  1347. eval "ac_cv_func_gethostbyname=yes"
  1348. else
  1349. echo "configure: failed program was:" >&5
  1350. cat conftest.$ac_ext >&5
  1351. rm -rf conftest*
  1352. eval "ac_cv_func_gethostbyname=no"
  1353. fi
  1354. rm -f conftest*
  1355. fi
  1356. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  1357. echo "$ac_t""yes" 1>&6
  1358. :
  1359. else
  1360. echo "$ac_t""no" 1>&6
  1361. fi
  1362. if test $ac_cv_func_gethostbyname = no; then
  1363. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  1364. echo "configure:1502: checking for gethostbyname in -lnsl" >&5
  1365. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  1366. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1367. echo $ac_n "(cached) $ac_c" 1>&6
  1368. else
  1369. ac_save_LIBS="$LIBS"
  1370. LIBS="-lnsl $LIBS"
  1371. cat > conftest.$ac_ext <<EOF
  1372. #line 1510 "configure"
  1373. #include "confdefs.h"
  1374. /* Override any gcc2 internal prototype to avoid an error. */
  1375. #ifdef __cplusplus
  1376. extern "C"
  1377. #endif
  1378. /* We use char because int might match the return type of a gcc2
  1379. builtin and then its argument prototype would still apply. */
  1380. char gethostbyname();
  1381. int main() {
  1382. gethostbyname()
  1383. ; return 0; }
  1384. EOF
  1385. if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1386. rm -rf conftest*
  1387. eval "ac_cv_lib_$ac_lib_var=yes"
  1388. else
  1389. echo "configure: failed program was:" >&5
  1390. cat conftest.$ac_ext >&5
  1391. rm -rf conftest*
  1392. eval "ac_cv_lib_$ac_lib_var=no"
  1393. fi
  1394. rm -f conftest*
  1395. LIBS="$ac_save_LIBS"
  1396. fi
  1397. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1398. echo "$ac_t""yes" 1>&6
  1399. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  1400. else
  1401. echo "$ac_t""no" 1>&6
  1402. fi
  1403. fi
  1404. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  1405. # socket/setsockopt and other routines are undefined under SCO ODT
  1406. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  1407. # on later versions), says simon@lia.di.epfl.ch: it contains
  1408. # gethostby* variants that don't use the nameserver (or something).
  1409. # -lsocket must be given before -lnsl if both are needed.
  1410. # We assume that if connect needs -lnsl, so does gethostbyname.
  1411. echo $ac_n "checking for connect""... $ac_c" 1>&6
  1412. echo "configure:1554: checking for connect" >&5
  1413. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  1414. echo $ac_n "(cached) $ac_c" 1>&6
  1415. else
  1416. cat > conftest.$ac_ext <<EOF
  1417. #line 1559 "configure"
  1418. #include "confdefs.h"
  1419. /* System header to define __stub macros and hopefully few prototypes,
  1420. which can conflict with char connect(); below. */
  1421. #include <assert.h>
  1422. /* Override any gcc2 internal prototype to avoid an error. */
  1423. #ifdef __cplusplus
  1424. extern "C"
  1425. #endif
  1426. /* We use char because int might match the return type of a gcc2
  1427. builtin and then its argument prototype would still apply. */
  1428. char connect();
  1429. int main() {
  1430. /* The GNU C library defines this for functions which it implements
  1431. to always fail with ENOSYS. Some functions are actually named
  1432. something starting with __ and the normal name is an alias. */
  1433. #if defined (__stub_connect) || defined (__stub___connect)
  1434. choke me
  1435. #else
  1436. connect();
  1437. #endif
  1438. ; return 0; }
  1439. EOF
  1440. if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1441. rm -rf conftest*
  1442. eval "ac_cv_func_connect=yes"
  1443. else
  1444. echo "configure: failed program was:" >&5
  1445. cat conftest.$ac_ext >&5
  1446. rm -rf conftest*
  1447. eval "ac_cv_func_connect=no"
  1448. fi
  1449. rm -f conftest*
  1450. fi
  1451. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  1452. echo "$ac_t""yes" 1>&6
  1453. :
  1454. else
  1455. echo "$ac_t""no" 1>&6
  1456. fi
  1457. if test $ac_cv_func_connect = no; then
  1458. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  1459. echo "configure:1606: checking for connect in -lsocket" >&5
  1460. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  1461. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1462. echo $ac_n "(cached) $ac_c" 1>&6
  1463. else
  1464. ac_save_LIBS="$LIBS"
  1465. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  1466. cat > conftest.$ac_ext <<EOF
  1467. #line 1614 "configure"
  1468. #include "confdefs.h"
  1469. /* Override any gcc2 internal prototype to avoid an error. */
  1470. #ifdef __cplusplus
  1471. extern "C"
  1472. #endif
  1473. /* We use char because int might match the return type of a gcc2
  1474. builtin and then its argument prototype would still apply. */
  1475. char connect();
  1476. int main() {
  1477. connect()
  1478. ; return 0; }
  1479. EOF
  1480. if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1481. rm -rf conftest*
  1482. eval "ac_cv_lib_$ac_lib_var=yes"
  1483. else
  1484. echo "configure: failed program was:" >&5
  1485. cat conftest.$ac_ext >&5
  1486. rm -rf conftest*
  1487. eval "ac_cv_lib_$ac_lib_var=no"
  1488. fi
  1489. rm -f conftest*
  1490. LIBS="$ac_save_LIBS"
  1491. fi
  1492. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1493. echo "$ac_t""yes" 1>&6
  1494. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  1495. else
  1496. echo "$ac_t""no" 1>&6
  1497. fi
  1498. fi
  1499. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  1500. echo $ac_n "checking for remove""... $ac_c" 1>&6
  1501. echo "configure:1652: checking for remove" >&5
  1502. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  1503. echo $ac_n "(cached) $ac_c" 1>&6
  1504. else
  1505. cat > conftest.$ac_ext <<EOF
  1506. #line 1657 "configure"
  1507. #include "confdefs.h"
  1508. /* System header to define __stub macros and hopefully few prototypes,
  1509. which can conflict with char remove(); below. */
  1510. #include <assert.h>
  1511. /* Override any gcc2 internal prototype to avoid an error. */
  1512. #ifdef __cplusplus
  1513. extern "C"
  1514. #endif
  1515. /* We use char because int might match the return type of a gcc2
  1516. builtin and then its argument prototype would still apply. */
  1517. char remove();
  1518. int main() {
  1519. /* The GNU C library defines this for functions which it implements
  1520. to always fail with ENOSYS. Some functions are actually named
  1521. something starting with __ and the normal name is an alias. */
  1522. #if defined (__stub_remove) || defined (__stub___remove)
  1523. choke me
  1524. #else
  1525. remove();
  1526. #endif
  1527. ; return 0; }
  1528. EOF
  1529. if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1530. rm -rf conftest*
  1531. eval "ac_cv_func_remove=yes"
  1532. else
  1533. echo "configure: failed program was:" >&5
  1534. cat conftest.$ac_ext >&5
  1535. rm -rf conftest*
  1536. eval "ac_cv_func_remove=no"
  1537. fi
  1538. rm -f conftest*
  1539. fi
  1540. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  1541. echo "$ac_t""yes" 1>&6
  1542. :
  1543. else
  1544. echo "$ac_t""no" 1>&6
  1545. fi
  1546. if test $ac_cv_func_remove = no; then
  1547. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  1548. echo "configure:1704: checking for remove in -lposix" >&5
  1549. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  1550. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1551. echo $ac_n "(cached) $ac_c" 1>&6
  1552. else
  1553. ac_save_LIBS="$LIBS"
  1554. LIBS="-lposix $LIBS"
  1555. cat > conftest.$ac_ext <<EOF
  1556. #line 1712 "configure"
  1557. #include "confdefs.h"
  1558. /* Override any gcc2 internal prototype to avoid an error. */
  1559. #ifdef __cplusplus
  1560. extern "C"
  1561. #endif
  1562. /* We use char because int might match the return type of a gcc2
  1563. builtin and then its argument prototype would still apply. */
  1564. char remove();
  1565. int main() {
  1566. remove()
  1567. ; return 0; }
  1568. EOF
  1569. if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1570. rm -rf conftest*
  1571. eval "ac_cv_lib_$ac_lib_var=yes"
  1572. else
  1573. echo "configure: failed program was:" >&5
  1574. cat conftest.$ac_ext >&5
  1575. rm -rf conftest*
  1576. eval "ac_cv_lib_$ac_lib_var=no"
  1577. fi
  1578. rm -f conftest*
  1579. LIBS="$ac_save_LIBS"
  1580. fi
  1581. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1582. echo "$ac_t""yes" 1>&6
  1583. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  1584. else
  1585. echo "$ac_t""no" 1>&6
  1586. fi
  1587. fi
  1588. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  1589. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  1590. echo "configure:1750: checking for shmat" >&5
  1591. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  1592. echo $ac_n "(cached) $ac_c" 1>&6
  1593. else
  1594. cat > conftest.$ac_ext <<EOF
  1595. #line 1755 "configure"
  1596. #include "confdefs.h"
  1597. /* System header to define __stub macros and hopefully few prototypes,
  1598. which can conflict with char shmat(); below. */
  1599. #include <assert.h>
  1600. /* Override any gcc2 internal prototype to avoid an error. */
  1601. #ifdef __cplusplus
  1602. extern "C"
  1603. #endif
  1604. /* We use char because int might match the return type of a gcc2
  1605. builtin and then its argument prototype would still apply. */
  1606. char shmat();
  1607. int main() {
  1608. /* The GNU C library defines this for functions which it implements
  1609. to always fail with ENOSYS. Some functions are actually named
  1610. something starting with __ and the normal name is an alias. */
  1611. #if defined (__stub_shmat) || defined (__stub___shmat)
  1612. choke me
  1613. #else
  1614. shmat();
  1615. #endif
  1616. ; return 0; }
  1617. EOF
  1618. if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1619. rm -rf conftest*
  1620. eval "ac_cv_func_shmat=yes"
  1621. else
  1622. echo "configure: failed program was:" >&5
  1623. cat conftest.$ac_ext >&5
  1624. rm -rf conftest*
  1625. eval "ac_cv_func_shmat=no"
  1626. fi
  1627. rm -f conftest*
  1628. fi
  1629. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  1630. echo "$ac_t""yes" 1>&6
  1631. :
  1632. else
  1633. echo "$ac_t""no" 1>&6
  1634. fi
  1635. if test $ac_cv_func_shmat = no; then
  1636. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  1637. echo "configure:1802: checking for shmat in -lipc" >&5
  1638. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  1639. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1640. echo $ac_n "(cached) $ac_c" 1>&6
  1641. else
  1642. ac_save_LIBS="$LIBS"
  1643. LIBS="-lipc $LIBS"
  1644. cat > conftest.$ac_ext <<EOF
  1645. #line 1810 "configure"
  1646. #include "confdefs.h"
  1647. /* Override any gcc2 internal prototype to avoid an error. */
  1648. #ifdef __cplusplus
  1649. extern "C"
  1650. #endif
  1651. /* We use char because int might match the return type of a gcc2
  1652. builtin and then its argument prototype would still apply. */
  1653. char shmat();
  1654. int main() {
  1655. shmat()
  1656. ; return 0; }
  1657. EOF
  1658. if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1659. rm -rf conftest*
  1660. eval "ac_cv_lib_$ac_lib_var=yes"
  1661. else
  1662. echo "configure: failed program was:" >&5
  1663. cat conftest.$ac_ext >&5
  1664. rm -rf conftest*
  1665. eval "ac_cv_lib_$ac_lib_var=no"
  1666. fi
  1667. rm -f conftest*
  1668. LIBS="$ac_save_LIBS"
  1669. fi
  1670. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1671. echo "$ac_t""yes" 1>&6
  1672. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  1673. else
  1674. echo "$ac_t""no" 1>&6
  1675. fi
  1676. fi
  1677. fi
  1678. # Check for libraries that X11R6 Xt/Xaw programs need.
  1679. ac_save_LDFLAGS="$LDFLAGS"
  1680. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  1681. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1682. # check for ICE first), but we must link in the order -lSM -lICE or
  1683. # we get undefined symbols. So assume we have SM if we have ICE.
  1684. # These have to be linked with before -lX11, unlike the other
  1685. # libraries we check for below, so use a different variable.
  1686. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1687. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  1688. echo "configure:1857: checking for IceConnectionNumber in -lICE" >&5
  1689. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  1690. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1691. echo $ac_n "(cached) $ac_c" 1>&6
  1692. else
  1693. ac_save_LIBS="$LIBS"
  1694. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  1695. cat > conftest.$ac_ext <<EOF
  1696. #line 1865 "configure"
  1697. #include "confdefs.h"
  1698. /* Override any gcc2 internal prototype to avoid an error. */
  1699. #ifdef __cplusplus
  1700. extern "C"
  1701. #endif
  1702. /* We use char because int might match the return type of a gcc2
  1703. builtin and then its argument prototype would still apply. */
  1704. char IceConnectionNumber();
  1705. int main() {
  1706. IceConnectionNumber()
  1707. ; return 0; }
  1708. EOF
  1709. if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1710. rm -rf conftest*
  1711. eval "ac_cv_lib_$ac_lib_var=yes"
  1712. else
  1713. echo "configure: failed program was:" >&5
  1714. cat conftest.$ac_ext >&5
  1715. rm -rf conftest*
  1716. eval "ac_cv_lib_$ac_lib_var=no"
  1717. fi
  1718. rm -f conftest*
  1719. LIBS="$ac_save_LIBS"
  1720. fi
  1721. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1722. echo "$ac_t""yes" 1>&6
  1723. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1724. else
  1725. echo "$ac_t""no" 1>&6
  1726. fi
  1727. LDFLAGS="$ac_save_LDFLAGS"
  1728. fi
  1729. # Check whether --with-installed-zlib or --without-installed-zlib was given.
  1730. if test "${with_installed_zlib+set}" = set; then
  1731. withval="$with_installed_zlib"
  1732. :
  1733. fi
  1734. if test "$with_installed_zlib" = yes; then
  1735. echo "using installed zlib"
  1736. ZLIB_LIB=-lz
  1737. else
  1738. ZLIB_DIR=zlib
  1739. ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
  1740. ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
  1741. echo "configuring zlib..."
  1742. (cd zlib; ./configure)
  1743. echo "...done configuring zlib"
  1744. fi
  1745. echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
  1746. echo "configure:1928: checking for vsnprintf" >&5
  1747. if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
  1748. echo $ac_n "(cached) $ac_c" 1>&6
  1749. else
  1750. cat > conftest.$ac_ext <<EOF
  1751. #line 1933 "configure"
  1752. #include "confdefs.h"
  1753. /* System header to define __stub macros and hopefully few prototypes,
  1754. which can conflict with char vsnprintf(); below. */
  1755. #include <assert.h>
  1756. /* Override any gcc2 internal prototype to avoid an error. */
  1757. #ifdef __cplusplus
  1758. extern "C"
  1759. #endif
  1760. /* We use char because int might match the return type of a gcc2
  1761. builtin and then its argument prototype would still apply. */
  1762. char vsnprintf();
  1763. int main() {
  1764. /* The GNU C library defines this for functions which it implements
  1765. to always fail with ENOSYS. Some functions are actually named
  1766. something starting with __ and the normal name is an alias. */
  1767. #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
  1768. choke me
  1769. #else
  1770. vsnprintf();
  1771. #endif
  1772. ; return 0; }
  1773. EOF
  1774. if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1775. rm -rf conftest*
  1776. eval "ac_cv_func_vsnprintf=yes"
  1777. else
  1778. echo "configure: failed program was:" >&5
  1779. cat conftest.$ac_ext >&5
  1780. rm -rf conftest*
  1781. eval "ac_cv_func_vsnprintf=no"
  1782. fi
  1783. rm -f conftest*
  1784. fi
  1785. if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
  1786. echo "$ac_t""yes" 1>&6
  1787. VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
  1788. else
  1789. echo "$ac_t""no" 1>&6
  1790. VSNPRINTF_DEFINE=
  1791. fi
  1792. echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
  1793. echo "configure:1982: checking for socklen_t" >&5
  1794. cat > conftest.$ac_ext <<EOF
  1795. #line 1984 "configure"
  1796. #include "confdefs.h"
  1797. #include <sys/types.h>
  1798. #include <sys/socket.h>
  1799. int main() {
  1800. socklen_t x;
  1801. accept(0, 0, &x);
  1802. ; return 0; }
  1803. EOF
  1804. if { (eval echo configure:1993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1805. rm -rf conftest*
  1806. echo "$ac_t""yes" 1>&6
  1807. SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
  1808. else
  1809. echo "configure: failed program was:" >&5
  1810. cat conftest.$ac_ext >&5
  1811. rm -rf conftest*
  1812. echo "$ac_t""using int" 1>&6
  1813. SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
  1814. fi
  1815. rm -f conftest*
  1816. BOILERPLATE=boilerplate.mk
  1817. if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
  1818. if sh -c "vncmkdepend" >/dev/null 2>&1; then
  1819. BOILERPLATE="$BOILERPLATE:depend.mk"
  1820. fi
  1821. fi
  1822. trap '' 1 2 15
  1823. cat > confcache <<\EOF
  1824. # This file is a shell script that caches the results of configure
  1825. # tests run on this system so they can be shared between configure
  1826. # scripts and configure runs. It is not useful on other systems.
  1827. # If it contains results you don't want to keep, you may remove or edit it.
  1828. #
  1829. # By default, configure uses ./config.cache as the cache file,
  1830. # creating it if it does not exist already. You can give configure
  1831. # the --cache-file=FILE option to use a different cache file; that is
  1832. # what configure does when it calls configure scripts in
  1833. # subdirectories, so they share the cache.
  1834. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1835. # config.status only pays attention to the cache file if you give it the
  1836. # --recheck option to rerun configure.
  1837. #
  1838. EOF
  1839. # The following way of writing the cache mishandles newlines in values,
  1840. # but we know of no workaround that is simple, portable, and efficient.
  1841. # So, don't put newlines in cache variables' values.
  1842. # Ultrix sh set writes to stderr and can't be redirected directly,
  1843. # and sets the high bit in the cache file unless we assign to the vars.
  1844. (set) 2>&1 |
  1845. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1846. *ac_space=\ *)
  1847. # `set' does not quote correctly, so add quotes (double-quote substitution
  1848. # turns \\\\ into \\, and sed turns \\ into \).
  1849. sed -n \
  1850. -e "s/'/'\\\\''/g" \
  1851. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1852. ;;
  1853. *)
  1854. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1855. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1856. ;;
  1857. esac >> confcache
  1858. if cmp -s $cache_file confcache; then
  1859. :
  1860. else
  1861. if test -w $cache_file; then
  1862. echo "updating cache $cache_file"
  1863. cat confcache > $cache_file
  1864. else
  1865. echo "not updating unwritable cache $cache_file"
  1866. fi
  1867. fi
  1868. rm -f confcache
  1869. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1870. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1871. # Let make expand exec_prefix.
  1872. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1873. # Any assignment to VPATH causes Sun make to only execute
  1874. # the first set of double-colon rules, so remove it if not needed.
  1875. # If there is a colon in the path, we need to keep it.
  1876. if test "x$srcdir" = x.; then
  1877. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1878. fi
  1879. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1880. # Transform confdefs.h into DEFS.
  1881. # Protect against shell expansion while executing Makefile rules.
  1882. # Protect against Makefile macro expansion.
  1883. cat > conftest.defs <<\EOF
  1884. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1885. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  1886. s%\[%\\&%g
  1887. s%\]%\\&%g
  1888. s%\$%$$%g
  1889. EOF
  1890. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1891. rm -f conftest.defs
  1892. # Without the "./", some shells look in PATH for config.status.
  1893. : ${CONFIG_STATUS=./config.status}
  1894. echo creating $CONFIG_STATUS
  1895. rm -f $CONFIG_STATUS
  1896. cat > $CONFIG_STATUS <<EOF
  1897. #! /bin/sh
  1898. # Generated automatically by configure.
  1899. # Run this file to recreate the current configuration.
  1900. # This directory was configured as follows,
  1901. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1902. #
  1903. # $0 $ac_configure_args
  1904. #
  1905. # Compiler output produced by configure, useful for debugging
  1906. # configure, is in ./config.log if it exists.
  1907. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1908. for ac_option
  1909. do
  1910. case "\$ac_option" in
  1911. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1912. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1913. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1914. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1915. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1916. exit 0 ;;
  1917. -help | --help | --hel | --he | --h)
  1918. echo "\$ac_cs_usage"; exit 0 ;;
  1919. *) echo "\$ac_cs_usage"; exit 1 ;;
  1920. esac
  1921. done
  1922. ac_given_srcdir=$srcdir
  1923. trap 'rm -fr `echo "Makefile:Makefile.in:$BOILERPLATE \
  1924. rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \
  1925. network/Makefile:network/Makefile.in:$BOILERPLATE \
  1926. Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \
  1927. rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \
  1928. tx/Makefile:tx/Makefile.in:$BOILERPLATE \
  1929. x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE \
  1930. vncviewer/Makefile:vncviewer/Makefile.in:$BOILERPLATE \
  1931. vncconfig/Makefile:vncconfig/Makefile.in:$BOILERPLATE \
  1932. vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE \
  1933. " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1934. EOF
  1935. cat >> $CONFIG_STATUS <<EOF
  1936. # Protect against being on the right side of a sed subst in config.status.
  1937. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1938. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1939. $ac_vpsub
  1940. $extrasub
  1941. s%@SHELL@%$SHELL%g
  1942. s%@CFLAGS@%$CFLAGS%g
  1943. s%@CPPFLAGS@%$CPPFLAGS%g
  1944. s%@CXXFLAGS@%$CXXFLAGS%g
  1945. s%@FFLAGS@%$FFLAGS%g
  1946. s%@DEFS@%$DEFS%g
  1947. s%@LDFLAGS@%$LDFLAGS%g
  1948. s%@LIBS@%$LIBS%g
  1949. s%@exec_prefix@%$exec_prefix%g
  1950. s%@prefix@%$prefix%g
  1951. s%@program_transform_name@%$program_transform_name%g
  1952. s%@bindir@%$bindir%g
  1953. s%@sbindir@%$sbindir%g
  1954. s%@libexecdir@%$libexecdir%g
  1955. s%@datadir@%$datadir%g
  1956. s%@sysconfdir@%$sysconfdir%g
  1957. s%@sharedstatedir@%$sharedstatedir%g
  1958. s%@localstatedir@%$localstatedir%g
  1959. s%@libdir@%$libdir%g
  1960. s%@includedir@%$includedir%g
  1961. s%@oldincludedir@%$oldincludedir%g
  1962. s%@infodir@%$infodir%g
  1963. s%@mandir@%$mandir%g
  1964. s%@CC@%$CC%g
  1965. s%@CXX@%$CXX%g
  1966. s%@RANLIB@%$RANLIB%g
  1967. s%@SET_MAKE@%$SET_MAKE%g
  1968. s%@MITSHM_CPPFLAGS@%$MITSHM_CPPFLAGS%g
  1969. s%@CXXCPP@%$CXXCPP%g
  1970. s%@X_CFLAGS@%$X_CFLAGS%g
  1971. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  1972. s%@X_LIBS@%$X_LIBS%g
  1973. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  1974. s%@ZLIB_DIR@%$ZLIB_DIR%g
  1975. s%@ZLIB_INCLUDE@%$ZLIB_INCLUDE%g
  1976. s%@ZLIB_LIB@%$ZLIB_LIB%g
  1977. s%@VSNPRINTF_DEFINE@%$VSNPRINTF_DEFINE%g
  1978. s%@SOCKLEN_T_DEFINE@%$SOCKLEN_T_DEFINE%g
  1979. CEOF
  1980. EOF
  1981. cat >> $CONFIG_STATUS <<\EOF
  1982. # Split the substitutions into bite-sized pieces for seds with
  1983. # small command number limits, like on Digital OSF/1 and HP-UX.
  1984. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1985. ac_file=1 # Number of current file.
  1986. ac_beg=1 # First line for current file.
  1987. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1988. ac_more_lines=:
  1989. ac_sed_cmds=""
  1990. while $ac_more_lines; do
  1991. if test $ac_beg -gt 1; then
  1992. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1993. else
  1994. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1995. fi
  1996. if test ! -s conftest.s$ac_file; then
  1997. ac_more_lines=false
  1998. rm -f conftest.s$ac_file
  1999. else
  2000. if test -z "$ac_sed_cmds"; then
  2001. ac_sed_cmds="sed -f conftest.s$ac_file"
  2002. else
  2003. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2004. fi
  2005. ac_file=`expr $ac_file + 1`
  2006. ac_beg=$ac_end
  2007. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2008. fi
  2009. done
  2010. if test -z "$ac_sed_cmds"; then
  2011. ac_sed_cmds=cat
  2012. fi
  2013. EOF
  2014. cat >> $CONFIG_STATUS <<EOF
  2015. CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in:$BOILERPLATE \
  2016. rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \
  2017. network/Makefile:network/Makefile.in:$BOILERPLATE \
  2018. Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \
  2019. rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \
  2020. tx/Makefile:tx/Makefile.in:$BOILERPLATE \
  2021. x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE \
  2022. vncviewer/Makefile:vncviewer/Makefile.in:$BOILERPLATE \
  2023. vncconfig/Makefile:vncconfig/Makefile.in:$BOILERPLATE \
  2024. vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE \
  2025. "}
  2026. EOF
  2027. cat >> $CONFIG_STATUS <<\EOF
  2028. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2029. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2030. case "$ac_file" in
  2031. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2032. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2033. *) ac_file_in="${ac_file}.in" ;;
  2034. esac
  2035. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2036. # Remove last slash and all that follows it. Not all systems have dirname.
  2037. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2038. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2039. # The file is in a subdirectory.
  2040. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2041. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2042. # A "../" for each directory in $ac_dir_suffix.
  2043. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2044. else
  2045. ac_dir_suffix= ac_dots=
  2046. fi
  2047. case "$ac_given_srcdir" in
  2048. .) srcdir=.
  2049. if test -z "$ac_dots"; then top_srcdir=.
  2050. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2051. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2052. *) # Relative path.
  2053. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2054. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2055. esac
  2056. echo creating "$ac_file"
  2057. rm -f "$ac_file"
  2058. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2059. case "$ac_file" in
  2060. *Makefile*) ac_comsub="1i\\
  2061. # $configure_input" ;;
  2062. *) ac_comsub= ;;
  2063. esac
  2064. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2065. sed -e "$ac_comsub
  2066. s%@configure_input@%$configure_input%g
  2067. s%@srcdir@%$srcdir%g
  2068. s%@top_srcdir@%$top_srcdir%g
  2069. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2070. fi; done
  2071. rm -f conftest.s*
  2072. EOF
  2073. cat >> $CONFIG_STATUS <<EOF
  2074. EOF
  2075. cat >> $CONFIG_STATUS <<\EOF
  2076. exit 0
  2077. EOF
  2078. chmod +x $CONFIG_STATUS
  2079. rm -fr confdefs* $ac_clean_files
  2080. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1