configure 92 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930
  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. --disable-server don't build server"
  14. ac_help="$ac_help
  15. --disable-gtk-client don't build gtk-client"
  16. ac_help="$ac_help
  17. --disable-meta-client don't build meta-client"
  18. ac_help="$ac_help
  19. --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
  20. ac_help="$ac_help
  21. --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
  22. ac_help="$ac_help
  23. --disable-glibtest Do not try to compile and run a test GLIB program"
  24. ac_help="$ac_help
  25. --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
  26. ac_help="$ac_help
  27. --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  28. ac_help="$ac_help
  29. --disable-gtktest Do not try to compile and run a test GTK program"
  30. ac_help="$ac_help
  31. --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional)"
  32. ac_help="$ac_help
  33. --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)"
  34. ac_help="$ac_help
  35. --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program"
  36. ac_help="$ac_help
  37. --enable-debug enter debugging mode"
  38. # Initialize some variables set by options.
  39. # The variables have the same names as the options, with
  40. # dashes changed to underlines.
  41. build=NONE
  42. cache_file=./config.cache
  43. exec_prefix=NONE
  44. host=NONE
  45. no_create=
  46. nonopt=NONE
  47. no_recursion=
  48. prefix=NONE
  49. program_prefix=NONE
  50. program_suffix=NONE
  51. program_transform_name=s,x,x,
  52. silent=
  53. site=
  54. srcdir=
  55. target=NONE
  56. verbose=
  57. x_includes=NONE
  58. x_libraries=NONE
  59. bindir='${exec_prefix}/bin'
  60. sbindir='${exec_prefix}/sbin'
  61. libexecdir='${exec_prefix}/libexec'
  62. datadir='${prefix}/share'
  63. sysconfdir='${prefix}/etc'
  64. sharedstatedir='${prefix}/com'
  65. localstatedir='${prefix}/var'
  66. libdir='${exec_prefix}/lib'
  67. includedir='${prefix}/include'
  68. oldincludedir='/usr/include'
  69. infodir='${prefix}/info'
  70. mandir='${prefix}/man'
  71. # Initialize some other variables.
  72. subdirs=
  73. MFLAGS= MAKEFLAGS=
  74. SHELL=${CONFIG_SHELL-/bin/sh}
  75. # Maximum number of lines to put in a shell here document.
  76. ac_max_here_lines=12
  77. ac_prev=
  78. for ac_option
  79. do
  80. # If the previous option needs an argument, assign it.
  81. if test -n "$ac_prev"; then
  82. eval "$ac_prev=\$ac_option"
  83. ac_prev=
  84. continue
  85. fi
  86. case "$ac_option" in
  87. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  88. *) ac_optarg= ;;
  89. esac
  90. # Accept the important Cygnus configure options, so we can diagnose typos.
  91. case "$ac_option" in
  92. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  93. ac_prev=bindir ;;
  94. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  95. bindir="$ac_optarg" ;;
  96. -build | --build | --buil | --bui | --bu)
  97. ac_prev=build ;;
  98. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  99. build="$ac_optarg" ;;
  100. -cache-file | --cache-file | --cache-fil | --cache-fi \
  101. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  102. ac_prev=cache_file ;;
  103. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  104. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  105. cache_file="$ac_optarg" ;;
  106. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  107. ac_prev=datadir ;;
  108. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  109. | --da=*)
  110. datadir="$ac_optarg" ;;
  111. -disable-* | --disable-*)
  112. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  113. # Reject names that are not valid shell variable names.
  114. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  115. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  116. fi
  117. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  118. eval "enable_${ac_feature}=no" ;;
  119. -enable-* | --enable-*)
  120. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  121. # Reject names that are not valid shell variable names.
  122. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  123. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  124. fi
  125. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  126. case "$ac_option" in
  127. *=*) ;;
  128. *) ac_optarg=yes ;;
  129. esac
  130. eval "enable_${ac_feature}='$ac_optarg'" ;;
  131. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  132. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  133. | --exec | --exe | --ex)
  134. ac_prev=exec_prefix ;;
  135. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  136. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  137. | --exec=* | --exe=* | --ex=*)
  138. exec_prefix="$ac_optarg" ;;
  139. -gas | --gas | --ga | --g)
  140. # Obsolete; use --with-gas.
  141. with_gas=yes ;;
  142. -help | --help | --hel | --he)
  143. # Omit some internal or obsolete options to make the list less imposing.
  144. # This message is too long to be a string in the A/UX 3.1 sh.
  145. cat << EOF
  146. Usage: configure [options] [host]
  147. Options: [defaults in brackets after descriptions]
  148. Configuration:
  149. --cache-file=FILE cache test results in FILE
  150. --help print this message
  151. --no-create do not create output files
  152. --quiet, --silent do not print \`checking...' messages
  153. --version print the version of autoconf that created configure
  154. Directory and file names:
  155. --prefix=PREFIX install architecture-independent files in PREFIX
  156. [$ac_default_prefix]
  157. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  158. [same as prefix]
  159. --bindir=DIR user executables in DIR [EPREFIX/bin]
  160. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  161. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  162. --datadir=DIR read-only architecture-independent data in DIR
  163. [PREFIX/share]
  164. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  165. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  166. [PREFIX/com]
  167. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  168. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  169. --includedir=DIR C header files in DIR [PREFIX/include]
  170. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  171. --infodir=DIR info documentation in DIR [PREFIX/info]
  172. --mandir=DIR man documentation in DIR [PREFIX/man]
  173. --srcdir=DIR find the sources in DIR [configure dir or ..]
  174. --program-prefix=PREFIX prepend PREFIX to installed program names
  175. --program-suffix=SUFFIX append SUFFIX to installed program names
  176. --program-transform-name=PROGRAM
  177. run sed PROGRAM on installed program names
  178. EOF
  179. cat << EOF
  180. Host type:
  181. --build=BUILD configure for building on BUILD [BUILD=HOST]
  182. --host=HOST configure for HOST [guessed]
  183. --target=TARGET configure for TARGET [TARGET=HOST]
  184. Features and packages:
  185. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  186. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  187. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  188. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  189. --x-includes=DIR X include files are in DIR
  190. --x-libraries=DIR X library files are in DIR
  191. EOF
  192. if test -n "$ac_help"; then
  193. echo "--enable and --with options recognized:$ac_help"
  194. fi
  195. exit 0 ;;
  196. -host | --host | --hos | --ho)
  197. ac_prev=host ;;
  198. -host=* | --host=* | --hos=* | --ho=*)
  199. host="$ac_optarg" ;;
  200. -includedir | --includedir | --includedi | --included | --include \
  201. | --includ | --inclu | --incl | --inc)
  202. ac_prev=includedir ;;
  203. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  204. | --includ=* | --inclu=* | --incl=* | --inc=*)
  205. includedir="$ac_optarg" ;;
  206. -infodir | --infodir | --infodi | --infod | --info | --inf)
  207. ac_prev=infodir ;;
  208. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209. infodir="$ac_optarg" ;;
  210. -libdir | --libdir | --libdi | --libd)
  211. ac_prev=libdir ;;
  212. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  213. libdir="$ac_optarg" ;;
  214. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  215. | --libexe | --libex | --libe)
  216. ac_prev=libexecdir ;;
  217. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  218. | --libexe=* | --libex=* | --libe=*)
  219. libexecdir="$ac_optarg" ;;
  220. -localstatedir | --localstatedir | --localstatedi | --localstated \
  221. | --localstate | --localstat | --localsta | --localst \
  222. | --locals | --local | --loca | --loc | --lo)
  223. ac_prev=localstatedir ;;
  224. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  225. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  226. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  227. localstatedir="$ac_optarg" ;;
  228. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  229. ac_prev=mandir ;;
  230. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  231. mandir="$ac_optarg" ;;
  232. -nfp | --nfp | --nf)
  233. # Obsolete; use --without-fp.
  234. with_fp=no ;;
  235. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  236. | --no-cr | --no-c)
  237. no_create=yes ;;
  238. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  239. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  240. no_recursion=yes ;;
  241. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  242. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  243. | --oldin | --oldi | --old | --ol | --o)
  244. ac_prev=oldincludedir ;;
  245. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  246. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  247. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  248. oldincludedir="$ac_optarg" ;;
  249. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  250. ac_prev=prefix ;;
  251. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  252. prefix="$ac_optarg" ;;
  253. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  254. | --program-pre | --program-pr | --program-p)
  255. ac_prev=program_prefix ;;
  256. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  257. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  258. program_prefix="$ac_optarg" ;;
  259. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  260. | --program-suf | --program-su | --program-s)
  261. ac_prev=program_suffix ;;
  262. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  263. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  264. program_suffix="$ac_optarg" ;;
  265. -program-transform-name | --program-transform-name \
  266. | --program-transform-nam | --program-transform-na \
  267. | --program-transform-n | --program-transform- \
  268. | --program-transform | --program-transfor \
  269. | --program-transfo | --program-transf \
  270. | --program-trans | --program-tran \
  271. | --progr-tra | --program-tr | --program-t)
  272. ac_prev=program_transform_name ;;
  273. -program-transform-name=* | --program-transform-name=* \
  274. | --program-transform-nam=* | --program-transform-na=* \
  275. | --program-transform-n=* | --program-transform-=* \
  276. | --program-transform=* | --program-transfor=* \
  277. | --program-transfo=* | --program-transf=* \
  278. | --program-trans=* | --program-tran=* \
  279. | --progr-tra=* | --program-tr=* | --program-t=*)
  280. program_transform_name="$ac_optarg" ;;
  281. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  282. | -silent | --silent | --silen | --sile | --sil)
  283. silent=yes ;;
  284. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  285. ac_prev=sbindir ;;
  286. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  287. | --sbi=* | --sb=*)
  288. sbindir="$ac_optarg" ;;
  289. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  290. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  291. | --sharedst | --shareds | --shared | --share | --shar \
  292. | --sha | --sh)
  293. ac_prev=sharedstatedir ;;
  294. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  295. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  296. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  297. | --sha=* | --sh=*)
  298. sharedstatedir="$ac_optarg" ;;
  299. -site | --site | --sit)
  300. ac_prev=site ;;
  301. -site=* | --site=* | --sit=*)
  302. site="$ac_optarg" ;;
  303. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  304. ac_prev=srcdir ;;
  305. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  306. srcdir="$ac_optarg" ;;
  307. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  308. | --syscon | --sysco | --sysc | --sys | --sy)
  309. ac_prev=sysconfdir ;;
  310. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  311. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  312. sysconfdir="$ac_optarg" ;;
  313. -target | --target | --targe | --targ | --tar | --ta | --t)
  314. ac_prev=target ;;
  315. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  316. target="$ac_optarg" ;;
  317. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  318. verbose=yes ;;
  319. -version | --version | --versio | --versi | --vers)
  320. echo "configure generated by autoconf version 2.13"
  321. exit 0 ;;
  322. -with-* | --with-*)
  323. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  324. # Reject names that are not valid shell variable names.
  325. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  326. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  327. fi
  328. ac_package=`echo $ac_package| sed 's/-/_/g'`
  329. case "$ac_option" in
  330. *=*) ;;
  331. *) ac_optarg=yes ;;
  332. esac
  333. eval "with_${ac_package}='$ac_optarg'" ;;
  334. -without-* | --without-*)
  335. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  336. # Reject names that are not valid shell variable names.
  337. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  338. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  339. fi
  340. ac_package=`echo $ac_package| sed 's/-/_/g'`
  341. eval "with_${ac_package}=no" ;;
  342. --x)
  343. # Obsolete; use --with-x.
  344. with_x=yes ;;
  345. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  346. | --x-incl | --x-inc | --x-in | --x-i)
  347. ac_prev=x_includes ;;
  348. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  349. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  350. x_includes="$ac_optarg" ;;
  351. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  352. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  353. ac_prev=x_libraries ;;
  354. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  355. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  356. x_libraries="$ac_optarg" ;;
  357. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  358. ;;
  359. *)
  360. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  361. echo "configure: warning: $ac_option: invalid host type" 1>&2
  362. fi
  363. if test "x$nonopt" != xNONE; then
  364. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  365. fi
  366. nonopt="$ac_option"
  367. ;;
  368. esac
  369. done
  370. if test -n "$ac_prev"; then
  371. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  372. fi
  373. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  374. # File descriptor usage:
  375. # 0 standard input
  376. # 1 file creation
  377. # 2 errors and warnings
  378. # 3 some systems may open it to /dev/tty
  379. # 4 used on the Kubota Titan
  380. # 6 checking for... messages and results
  381. # 5 compiler messages saved in config.log
  382. if test "$silent" = yes; then
  383. exec 6>/dev/null
  384. else
  385. exec 6>&1
  386. fi
  387. exec 5>./config.log
  388. echo "\
  389. This file contains any messages produced by compilers while
  390. running configure, to aid debugging if configure makes a mistake.
  391. " 1>&5
  392. # Strip out --no-create and --no-recursion so they do not pile up.
  393. # Also quote any args containing shell metacharacters.
  394. ac_configure_args=
  395. for ac_arg
  396. do
  397. case "$ac_arg" in
  398. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  399. | --no-cr | --no-c) ;;
  400. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  401. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  402. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  403. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  404. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  405. esac
  406. done
  407. # NLS nuisances.
  408. # Only set these to C if already set. These must not be set unconditionally
  409. # because not all systems understand e.g. LANG=C (notably SCO).
  410. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  411. # Non-C LC_CTYPE values break the ctype check.
  412. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  413. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  414. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  415. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  416. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  417. rm -rf conftest* confdefs.h
  418. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  419. echo > confdefs.h
  420. # A filename unique to this package, relative to the directory that
  421. # configure is in, which we can look for to find out if srcdir is correct.
  422. ac_unique_file=configure.in
  423. # Find the source files, if location was not specified.
  424. if test -z "$srcdir"; then
  425. ac_srcdir_defaulted=yes
  426. # Try the directory containing this script, then its parent.
  427. ac_prog=$0
  428. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  429. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  430. srcdir=$ac_confdir
  431. if test ! -r $srcdir/$ac_unique_file; then
  432. srcdir=..
  433. fi
  434. else
  435. ac_srcdir_defaulted=no
  436. fi
  437. if test ! -r $srcdir/$ac_unique_file; then
  438. if test "$ac_srcdir_defaulted" = yes; then
  439. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  440. else
  441. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  442. fi
  443. fi
  444. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  445. # Prefer explicitly selected file to automatically selected ones.
  446. if test -z "$CONFIG_SITE"; then
  447. if test "x$prefix" != xNONE; then
  448. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  449. else
  450. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  451. fi
  452. fi
  453. for ac_site_file in $CONFIG_SITE; do
  454. if test -r "$ac_site_file"; then
  455. echo "loading site script $ac_site_file"
  456. . "$ac_site_file"
  457. fi
  458. done
  459. if test -r "$cache_file"; then
  460. echo "loading cache $cache_file"
  461. . $cache_file
  462. else
  463. echo "creating cache $cache_file"
  464. > $cache_file
  465. fi
  466. ac_ext=c
  467. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  468. ac_cpp='$CPP $CPPFLAGS'
  469. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  470. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  471. cross_compiling=$ac_cv_prog_cc_cross
  472. ac_exeext=
  473. ac_objext=o
  474. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  475. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  476. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  477. ac_n= ac_c='
  478. ' ac_t=' '
  479. else
  480. ac_n=-n ac_c= ac_t=
  481. fi
  482. else
  483. ac_n= ac_c='\c' ac_t=
  484. fi
  485. ac_aux_dir=
  486. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  487. if test -f $ac_dir/install-sh; then
  488. ac_aux_dir=$ac_dir
  489. ac_install_sh="$ac_aux_dir/install-sh -c"
  490. break
  491. elif test -f $ac_dir/install.sh; then
  492. ac_aux_dir=$ac_dir
  493. ac_install_sh="$ac_aux_dir/install.sh -c"
  494. break
  495. fi
  496. done
  497. if test -z "$ac_aux_dir"; then
  498. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  499. fi
  500. ac_config_guess=$ac_aux_dir/config.guess
  501. ac_config_sub=$ac_aux_dir/config.sub
  502. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  503. # Find a good install program. We prefer a C program (faster),
  504. # so one script is as good as another. But avoid the broken or
  505. # incompatible versions:
  506. # SysV /etc/install, /usr/sbin/install
  507. # SunOS /usr/etc/install
  508. # IRIX /sbin/install
  509. # AIX /bin/install
  510. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  511. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  512. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  513. # ./install, which can be erroneously created by make from ./install.sh.
  514. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  515. echo "configure:585: checking for a BSD compatible install" >&5
  516. if test -z "$INSTALL"; then
  517. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  518. echo $ac_n "(cached) $ac_c" 1>&6
  519. else
  520. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  521. for ac_dir in $PATH; do
  522. # Account for people who put trailing slashes in PATH elements.
  523. case "$ac_dir/" in
  524. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  525. *)
  526. # OSF1 and SCO ODT 3.0 have their own names for install.
  527. # Don't use installbsd from OSF since it installs stuff as root
  528. # by default.
  529. for ac_prog in ginstall scoinst install; do
  530. if test -f $ac_dir/$ac_prog; then
  531. if test $ac_prog = install &&
  532. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  533. # AIX install. It has an incompatible calling convention.
  534. :
  535. else
  536. ac_cv_path_install="$ac_dir/$ac_prog -c"
  537. break 2
  538. fi
  539. fi
  540. done
  541. ;;
  542. esac
  543. done
  544. IFS="$ac_save_IFS"
  545. fi
  546. if test "${ac_cv_path_install+set}" = set; then
  547. INSTALL="$ac_cv_path_install"
  548. else
  549. # As a last resort, use the slow shell script. We don't cache a
  550. # path for INSTALL within a source directory, because that will
  551. # break other packages using the cache if that directory is
  552. # removed, or if the path is relative.
  553. INSTALL="$ac_install_sh"
  554. fi
  555. fi
  556. echo "$ac_t""$INSTALL" 1>&6
  557. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  558. # It thinks the first close brace ends the variable substitution.
  559. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  560. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  561. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  562. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  563. echo "configure:638: checking whether build environment is sane" >&5
  564. # Just in case
  565. sleep 1
  566. echo timestamp > conftestfile
  567. # Do `set' in a subshell so we don't clobber the current shell's
  568. # arguments. Must try -L first in case configure is actually a
  569. # symlink; some systems play weird games with the mod time of symlinks
  570. # (eg FreeBSD returns the mod time of the symlink's containing
  571. # directory).
  572. if (
  573. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  574. if test "$*" = "X"; then
  575. # -L didn't work.
  576. set X `ls -t $srcdir/configure conftestfile`
  577. fi
  578. if test "$*" != "X $srcdir/configure conftestfile" \
  579. && test "$*" != "X conftestfile $srcdir/configure"; then
  580. # If neither matched, then we have a broken ls. This can happen
  581. # if, for instance, CONFIG_SHELL is bash and it inherits a
  582. # broken ls alias from the environment. This has actually
  583. # happened. Such a system could not be considered "sane".
  584. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  585. alias in your environment" 1>&2; exit 1; }
  586. fi
  587. test "$2" = conftestfile
  588. )
  589. then
  590. # Ok.
  591. :
  592. else
  593. { echo "configure: error: newly created file is older than distributed files!
  594. Check your system clock" 1>&2; exit 1; }
  595. fi
  596. rm -f conftest*
  597. echo "$ac_t""yes" 1>&6
  598. if test "$program_transform_name" = s,x,x,; then
  599. program_transform_name=
  600. else
  601. # Double any \ or $. echo might interpret backslashes.
  602. cat <<\EOF_SED > conftestsed
  603. s,\\,\\\\,g; s,\$,$$,g
  604. EOF_SED
  605. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  606. rm -f conftestsed
  607. fi
  608. test "$program_prefix" != NONE &&
  609. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  610. # Use a double $ so make ignores it.
  611. test "$program_suffix" != NONE &&
  612. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  613. # sed with no file args requires a program.
  614. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  615. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  616. echo "configure:695: checking whether ${MAKE-make} sets \${MAKE}" >&5
  617. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  618. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  619. echo $ac_n "(cached) $ac_c" 1>&6
  620. else
  621. cat > conftestmake <<\EOF
  622. all:
  623. @echo 'ac_maketemp="${MAKE}"'
  624. EOF
  625. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  626. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  627. if test -n "$ac_maketemp"; then
  628. eval ac_cv_prog_make_${ac_make}_set=yes
  629. else
  630. eval ac_cv_prog_make_${ac_make}_set=no
  631. fi
  632. rm -f conftestmake
  633. fi
  634. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  635. echo "$ac_t""yes" 1>&6
  636. SET_MAKE=
  637. else
  638. echo "$ac_t""no" 1>&6
  639. SET_MAKE="MAKE=${MAKE-make}"
  640. fi
  641. PACKAGE=Finale
  642. VERSION=0.8.1
  643. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  644. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  645. fi
  646. cat >> confdefs.h <<EOF
  647. #define PACKAGE "$PACKAGE"
  648. EOF
  649. cat >> confdefs.h <<EOF
  650. #define VERSION "$VERSION"
  651. EOF
  652. missing_dir=`cd $ac_aux_dir && pwd`
  653. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  654. echo "configure:741: checking for working aclocal" >&5
  655. # Run test in a subshell; some versions of sh will print an error if
  656. # an executable is not found, even if stderr is redirected.
  657. # Redirect stdin to placate older versions of autoconf. Sigh.
  658. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  659. ACLOCAL=aclocal
  660. echo "$ac_t""found" 1>&6
  661. else
  662. ACLOCAL="$missing_dir/missing aclocal"
  663. echo "$ac_t""missing" 1>&6
  664. fi
  665. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  666. echo "configure:754: checking for working autoconf" >&5
  667. # Run test in a subshell; some versions of sh will print an error if
  668. # an executable is not found, even if stderr is redirected.
  669. # Redirect stdin to placate older versions of autoconf. Sigh.
  670. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  671. AUTOCONF=autoconf
  672. echo "$ac_t""found" 1>&6
  673. else
  674. AUTOCONF="$missing_dir/missing autoconf"
  675. echo "$ac_t""missing" 1>&6
  676. fi
  677. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  678. echo "configure:767: checking for working automake" >&5
  679. # Run test in a subshell; some versions of sh will print an error if
  680. # an executable is not found, even if stderr is redirected.
  681. # Redirect stdin to placate older versions of autoconf. Sigh.
  682. if (automake --version) < /dev/null > /dev/null 2>&1; then
  683. AUTOMAKE=automake
  684. echo "$ac_t""found" 1>&6
  685. else
  686. AUTOMAKE="$missing_dir/missing automake"
  687. echo "$ac_t""missing" 1>&6
  688. fi
  689. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  690. echo "configure:780: checking for working autoheader" >&5
  691. # Run test in a subshell; some versions of sh will print an error if
  692. # an executable is not found, even if stderr is redirected.
  693. # Redirect stdin to placate older versions of autoconf. Sigh.
  694. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  695. AUTOHEADER=autoheader
  696. echo "$ac_t""found" 1>&6
  697. else
  698. AUTOHEADER="$missing_dir/missing autoheader"
  699. echo "$ac_t""missing" 1>&6
  700. fi
  701. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  702. echo "configure:793: checking for working makeinfo" >&5
  703. # Run test in a subshell; some versions of sh will print an error if
  704. # an executable is not found, even if stderr is redirected.
  705. # Redirect stdin to placate older versions of autoconf. Sigh.
  706. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  707. MAKEINFO=makeinfo
  708. echo "$ac_t""found" 1>&6
  709. else
  710. MAKEINFO="$missing_dir/missing makeinfo"
  711. echo "$ac_t""missing" 1>&6
  712. fi
  713. echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
  714. echo "configure:809: checking for strerror in -lcposix" >&5
  715. ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
  716. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  717. echo $ac_n "(cached) $ac_c" 1>&6
  718. else
  719. ac_save_LIBS="$LIBS"
  720. LIBS="-lcposix $LIBS"
  721. cat > conftest.$ac_ext <<EOF
  722. #line 817 "configure"
  723. #include "confdefs.h"
  724. /* Override any gcc2 internal prototype to avoid an error. */
  725. /* We use char because int might match the return type of a gcc2
  726. builtin and then its argument prototype would still apply. */
  727. char strerror();
  728. int main() {
  729. strerror()
  730. ; return 0; }
  731. EOF
  732. if { (eval echo configure:828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  733. rm -rf conftest*
  734. eval "ac_cv_lib_$ac_lib_var=yes"
  735. else
  736. echo "configure: failed program was:" >&5
  737. cat conftest.$ac_ext >&5
  738. rm -rf conftest*
  739. eval "ac_cv_lib_$ac_lib_var=no"
  740. fi
  741. rm -f conftest*
  742. LIBS="$ac_save_LIBS"
  743. fi
  744. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  745. echo "$ac_t""yes" 1>&6
  746. LIBS="$LIBS -lcposix"
  747. else
  748. echo "$ac_t""no" 1>&6
  749. fi
  750. # Extract the first word of "gcc", so it can be a program name with args.
  751. set dummy gcc; ac_word=$2
  752. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  753. echo "configure:853: checking for $ac_word" >&5
  754. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  755. echo $ac_n "(cached) $ac_c" 1>&6
  756. else
  757. if test -n "$CC"; then
  758. ac_cv_prog_CC="$CC" # Let the user override the test.
  759. else
  760. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  761. ac_dummy="$PATH"
  762. for ac_dir in $ac_dummy; do
  763. test -z "$ac_dir" && ac_dir=.
  764. if test -f $ac_dir/$ac_word; then
  765. ac_cv_prog_CC="gcc"
  766. break
  767. fi
  768. done
  769. IFS="$ac_save_ifs"
  770. fi
  771. fi
  772. CC="$ac_cv_prog_CC"
  773. if test -n "$CC"; then
  774. echo "$ac_t""$CC" 1>&6
  775. else
  776. echo "$ac_t""no" 1>&6
  777. fi
  778. if test -z "$CC"; then
  779. # Extract the first word of "cc", so it can be a program name with args.
  780. set dummy cc; ac_word=$2
  781. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  782. echo "configure:883: checking for $ac_word" >&5
  783. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  784. echo $ac_n "(cached) $ac_c" 1>&6
  785. else
  786. if test -n "$CC"; then
  787. ac_cv_prog_CC="$CC" # Let the user override the test.
  788. else
  789. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  790. ac_prog_rejected=no
  791. ac_dummy="$PATH"
  792. for ac_dir in $ac_dummy; do
  793. test -z "$ac_dir" && ac_dir=.
  794. if test -f $ac_dir/$ac_word; then
  795. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  796. ac_prog_rejected=yes
  797. continue
  798. fi
  799. ac_cv_prog_CC="cc"
  800. break
  801. fi
  802. done
  803. IFS="$ac_save_ifs"
  804. if test $ac_prog_rejected = yes; then
  805. # We found a bogon in the path, so make sure we never use it.
  806. set dummy $ac_cv_prog_CC
  807. shift
  808. if test $# -gt 0; then
  809. # We chose a different compiler from the bogus one.
  810. # However, it has the same basename, so the bogon will be chosen
  811. # first if we set CC to just the basename; use the full file name.
  812. shift
  813. set dummy "$ac_dir/$ac_word" "$@"
  814. shift
  815. ac_cv_prog_CC="$@"
  816. fi
  817. fi
  818. fi
  819. fi
  820. CC="$ac_cv_prog_CC"
  821. if test -n "$CC"; then
  822. echo "$ac_t""$CC" 1>&6
  823. else
  824. echo "$ac_t""no" 1>&6
  825. fi
  826. if test -z "$CC"; then
  827. case "`uname -s`" in
  828. *win32* | *WIN32*)
  829. # Extract the first word of "cl", so it can be a program name with args.
  830. set dummy cl; ac_word=$2
  831. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  832. echo "configure:934: checking for $ac_word" >&5
  833. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  834. echo $ac_n "(cached) $ac_c" 1>&6
  835. else
  836. if test -n "$CC"; then
  837. ac_cv_prog_CC="$CC" # Let the user override the test.
  838. else
  839. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  840. ac_dummy="$PATH"
  841. for ac_dir in $ac_dummy; do
  842. test -z "$ac_dir" && ac_dir=.
  843. if test -f $ac_dir/$ac_word; then
  844. ac_cv_prog_CC="cl"
  845. break
  846. fi
  847. done
  848. IFS="$ac_save_ifs"
  849. fi
  850. fi
  851. CC="$ac_cv_prog_CC"
  852. if test -n "$CC"; then
  853. echo "$ac_t""$CC" 1>&6
  854. else
  855. echo "$ac_t""no" 1>&6
  856. fi
  857. ;;
  858. esac
  859. fi
  860. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  861. fi
  862. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  863. echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  864. ac_ext=c
  865. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  866. ac_cpp='$CPP $CPPFLAGS'
  867. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  868. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  869. cross_compiling=$ac_cv_prog_cc_cross
  870. cat > conftest.$ac_ext << EOF
  871. #line 977 "configure"
  872. #include "confdefs.h"
  873. main(){return(0);}
  874. EOF
  875. if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  876. ac_cv_prog_cc_works=yes
  877. # If we can't run a trivial program, we are probably using a cross compiler.
  878. if (./conftest; exit) 2>/dev/null; then
  879. ac_cv_prog_cc_cross=no
  880. else
  881. ac_cv_prog_cc_cross=yes
  882. fi
  883. else
  884. echo "configure: failed program was:" >&5
  885. cat conftest.$ac_ext >&5
  886. ac_cv_prog_cc_works=no
  887. fi
  888. rm -fr conftest*
  889. ac_ext=c
  890. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  891. ac_cpp='$CPP $CPPFLAGS'
  892. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  893. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  894. cross_compiling=$ac_cv_prog_cc_cross
  895. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  896. if test $ac_cv_prog_cc_works = no; then
  897. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  898. fi
  899. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  900. echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  901. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  902. cross_compiling=$ac_cv_prog_cc_cross
  903. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  904. echo "configure:1013: checking whether we are using GNU C" >&5
  905. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  906. echo $ac_n "(cached) $ac_c" 1>&6
  907. else
  908. cat > conftest.c <<EOF
  909. #ifdef __GNUC__
  910. yes;
  911. #endif
  912. EOF
  913. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  914. ac_cv_prog_gcc=yes
  915. else
  916. ac_cv_prog_gcc=no
  917. fi
  918. fi
  919. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  920. if test $ac_cv_prog_gcc = yes; then
  921. GCC=yes
  922. else
  923. GCC=
  924. fi
  925. ac_test_CFLAGS="${CFLAGS+set}"
  926. ac_save_CFLAGS="$CFLAGS"
  927. CFLAGS=
  928. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  929. echo "configure:1041: checking whether ${CC-cc} accepts -g" >&5
  930. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  931. echo $ac_n "(cached) $ac_c" 1>&6
  932. else
  933. echo 'void f(){}' > conftest.c
  934. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  935. ac_cv_prog_cc_g=yes
  936. else
  937. ac_cv_prog_cc_g=no
  938. fi
  939. rm -f conftest*
  940. fi
  941. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  942. if test "$ac_test_CFLAGS" = set; then
  943. CFLAGS="$ac_save_CFLAGS"
  944. elif test $ac_cv_prog_cc_g = yes; then
  945. if test "$GCC" = yes; then
  946. CFLAGS="-g -O2"
  947. else
  948. CFLAGS="-g"
  949. fi
  950. else
  951. if test "$GCC" = yes; then
  952. CFLAGS="-O2"
  953. else
  954. CFLAGS=
  955. fi
  956. fi
  957. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  958. echo "configure:1073: checking how to run the C preprocessor" >&5
  959. # On Suns, sometimes $CPP names a directory.
  960. if test -n "$CPP" && test -d "$CPP"; then
  961. CPP=
  962. fi
  963. if test -z "$CPP"; then
  964. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  965. echo $ac_n "(cached) $ac_c" 1>&6
  966. else
  967. # This must be in double quotes, not single quotes, because CPP may get
  968. # substituted into the Makefile and "${CC-cc}" will confuse make.
  969. CPP="${CC-cc} -E"
  970. # On the NeXT, cc -E runs the code through the compiler's parser,
  971. # not just through cpp.
  972. cat > conftest.$ac_ext <<EOF
  973. #line 1088 "configure"
  974. #include "confdefs.h"
  975. #include <assert.h>
  976. Syntax Error
  977. EOF
  978. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  979. { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  980. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  981. if test -z "$ac_err"; then
  982. :
  983. else
  984. echo "$ac_err" >&5
  985. echo "configure: failed program was:" >&5
  986. cat conftest.$ac_ext >&5
  987. rm -rf conftest*
  988. CPP="${CC-cc} -E -traditional-cpp"
  989. cat > conftest.$ac_ext <<EOF
  990. #line 1105 "configure"
  991. #include "confdefs.h"
  992. #include <assert.h>
  993. Syntax Error
  994. EOF
  995. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  996. { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  997. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  998. if test -z "$ac_err"; then
  999. :
  1000. else
  1001. echo "$ac_err" >&5
  1002. echo "configure: failed program was:" >&5
  1003. cat conftest.$ac_ext >&5
  1004. rm -rf conftest*
  1005. CPP="${CC-cc} -nologo -E"
  1006. cat > conftest.$ac_ext <<EOF
  1007. #line 1122 "configure"
  1008. #include "confdefs.h"
  1009. #include <assert.h>
  1010. Syntax Error
  1011. EOF
  1012. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1013. { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1014. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1015. if test -z "$ac_err"; then
  1016. :
  1017. else
  1018. echo "$ac_err" >&5
  1019. echo "configure: failed program was:" >&5
  1020. cat conftest.$ac_ext >&5
  1021. rm -rf conftest*
  1022. CPP=/lib/cpp
  1023. fi
  1024. rm -f conftest*
  1025. fi
  1026. rm -f conftest*
  1027. fi
  1028. rm -f conftest*
  1029. ac_cv_prog_CPP="$CPP"
  1030. fi
  1031. CPP="$ac_cv_prog_CPP"
  1032. else
  1033. ac_cv_prog_CPP="$CPP"
  1034. fi
  1035. echo "$ac_t""$CPP" 1>&6
  1036. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1037. echo "configure:1153: checking for ANSI C header files" >&5
  1038. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1039. echo $ac_n "(cached) $ac_c" 1>&6
  1040. else
  1041. cat > conftest.$ac_ext <<EOF
  1042. #line 1158 "configure"
  1043. #include "confdefs.h"
  1044. #include <stdlib.h>
  1045. #include <stdarg.h>
  1046. #include <string.h>
  1047. #include <float.h>
  1048. EOF
  1049. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1050. { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1051. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1052. if test -z "$ac_err"; then
  1053. rm -rf conftest*
  1054. ac_cv_header_stdc=yes
  1055. else
  1056. echo "$ac_err" >&5
  1057. echo "configure: failed program was:" >&5
  1058. cat conftest.$ac_ext >&5
  1059. rm -rf conftest*
  1060. ac_cv_header_stdc=no
  1061. fi
  1062. rm -f conftest*
  1063. if test $ac_cv_header_stdc = yes; then
  1064. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1065. cat > conftest.$ac_ext <<EOF
  1066. #line 1183 "configure"
  1067. #include "confdefs.h"
  1068. #include <string.h>
  1069. EOF
  1070. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1071. egrep "memchr" >/dev/null 2>&1; then
  1072. :
  1073. else
  1074. rm -rf conftest*
  1075. ac_cv_header_stdc=no
  1076. fi
  1077. rm -f conftest*
  1078. fi
  1079. if test $ac_cv_header_stdc = yes; then
  1080. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1081. cat > conftest.$ac_ext <<EOF
  1082. #line 1201 "configure"
  1083. #include "confdefs.h"
  1084. #include <stdlib.h>
  1085. EOF
  1086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1087. egrep "free" >/dev/null 2>&1; then
  1088. :
  1089. else
  1090. rm -rf conftest*
  1091. ac_cv_header_stdc=no
  1092. fi
  1093. rm -f conftest*
  1094. fi
  1095. if test $ac_cv_header_stdc = yes; then
  1096. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1097. if test "$cross_compiling" = yes; then
  1098. :
  1099. else
  1100. cat > conftest.$ac_ext <<EOF
  1101. #line 1222 "configure"
  1102. #include "confdefs.h"
  1103. #include <ctype.h>
  1104. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1105. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1106. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1107. int main () { int i; for (i = 0; i < 256; i++)
  1108. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1109. exit (0); }
  1110. EOF
  1111. if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1112. then
  1113. :
  1114. else
  1115. echo "configure: failed program was:" >&5
  1116. cat conftest.$ac_ext >&5
  1117. rm -fr conftest*
  1118. ac_cv_header_stdc=no
  1119. fi
  1120. rm -fr conftest*
  1121. fi
  1122. fi
  1123. fi
  1124. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1125. if test $ac_cv_header_stdc = yes; then
  1126. cat >> confdefs.h <<\EOF
  1127. #define STDC_HEADERS 1
  1128. EOF
  1129. fi
  1130. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1131. echo "configure:1260: checking for ${CC-cc} option to accept ANSI C" >&5
  1132. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  1133. echo $ac_n "(cached) $ac_c" 1>&6
  1134. else
  1135. am_cv_prog_cc_stdc=no
  1136. ac_save_CC="$CC"
  1137. # Don't try gcc -ansi; that turns off useful extensions and
  1138. # breaks some systems' header files.
  1139. # AIX -qlanglvl=ansi
  1140. # Ultrix and OSF/1 -std1
  1141. # HP-UX -Aa -D_HPUX_SOURCE
  1142. # SVR4 -Xc -D__EXTENSIONS__
  1143. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1144. do
  1145. CC="$ac_save_CC $ac_arg"
  1146. cat > conftest.$ac_ext <<EOF
  1147. #line 1276 "configure"
  1148. #include "confdefs.h"
  1149. #include <stdarg.h>
  1150. #include <stdio.h>
  1151. #include <sys/types.h>
  1152. #include <sys/stat.h>
  1153. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1154. struct buf { int x; };
  1155. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1156. static char *e (p, i)
  1157. char **p;
  1158. int i;
  1159. {
  1160. return p[i];
  1161. }
  1162. static char *f (char * (*g) (char **, int), char **p, ...)
  1163. {
  1164. char *s;
  1165. va_list v;
  1166. va_start (v,p);
  1167. s = g (p, va_arg (v,int));
  1168. va_end (v);
  1169. return s;
  1170. }
  1171. int test (int i, double x);
  1172. struct s1 {int (*f) (int a);};
  1173. struct s2 {int (*f) (double a);};
  1174. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1175. int argc;
  1176. char **argv;
  1177. int main() {
  1178. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1179. ; return 0; }
  1180. EOF
  1181. if { (eval echo configure:1313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1182. rm -rf conftest*
  1183. am_cv_prog_cc_stdc="$ac_arg"; break
  1184. else
  1185. echo "configure: failed program was:" >&5
  1186. cat conftest.$ac_ext >&5
  1187. fi
  1188. rm -f conftest*
  1189. done
  1190. CC="$ac_save_CC"
  1191. fi
  1192. if test -z "$am_cv_prog_cc_stdc"; then
  1193. echo "$ac_t""none needed" 1>&6
  1194. else
  1195. echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  1196. fi
  1197. case "x$am_cv_prog_cc_stdc" in
  1198. x|xno) ;;
  1199. *) CC="$CC $am_cv_prog_cc_stdc" ;;
  1200. esac
  1201. # Extract the first word of "ranlib", so it can be a program name with args.
  1202. set dummy ranlib; ac_word=$2
  1203. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1204. echo "configure:1340: checking for $ac_word" >&5
  1205. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1206. echo $ac_n "(cached) $ac_c" 1>&6
  1207. else
  1208. if test -n "$RANLIB"; then
  1209. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1210. else
  1211. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1212. ac_dummy="$PATH"
  1213. for ac_dir in $ac_dummy; do
  1214. test -z "$ac_dir" && ac_dir=.
  1215. if test -f $ac_dir/$ac_word; then
  1216. ac_cv_prog_RANLIB="ranlib"
  1217. break
  1218. fi
  1219. done
  1220. IFS="$ac_save_ifs"
  1221. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1222. fi
  1223. fi
  1224. RANLIB="$ac_cv_prog_RANLIB"
  1225. if test -n "$RANLIB"; then
  1226. echo "$ac_t""$RANLIB" 1>&6
  1227. else
  1228. echo "$ac_t""no" 1>&6
  1229. fi
  1230. # Check whether --enable-server or --disable-server was given.
  1231. if test "${enable_server+set}" = set; then
  1232. enableval="$enable_server"
  1233. SERVER="$enableval"
  1234. else
  1235. SERVER="yes"
  1236. fi
  1237. # Check whether --enable-gtk-client or --disable-gtk-client was given.
  1238. if test "${enable_gtk_client+set}" = set; then
  1239. enableval="$enable_gtk_client"
  1240. GTKCLIENT="$enableval"
  1241. else
  1242. GTKCLIENT="yes"
  1243. fi
  1244. # Check whether --enable-meta-client or --disable-meta-client was given.
  1245. if test "${enable_meta_client+set}" = set; then
  1246. enableval="$enable_meta_client"
  1247. MCLIENT="$enableval"
  1248. else
  1249. MCLIENT="yes"
  1250. fi
  1251. # Check whether --with-glib-prefix or --without-glib-prefix was given.
  1252. if test "${with_glib_prefix+set}" = set; then
  1253. withval="$with_glib_prefix"
  1254. glib_config_prefix="$withval"
  1255. else
  1256. glib_config_prefix=""
  1257. fi
  1258. # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
  1259. if test "${with_glib_exec_prefix+set}" = set; then
  1260. withval="$with_glib_exec_prefix"
  1261. glib_config_exec_prefix="$withval"
  1262. else
  1263. glib_config_exec_prefix=""
  1264. fi
  1265. # Check whether --enable-glibtest or --disable-glibtest was given.
  1266. if test "${enable_glibtest+set}" = set; then
  1267. enableval="$enable_glibtest"
  1268. :
  1269. else
  1270. enable_glibtest=yes
  1271. fi
  1272. if test x$glib_config_exec_prefix != x ; then
  1273. glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
  1274. if test x${GLIB_CONFIG+set} != xset ; then
  1275. GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
  1276. fi
  1277. fi
  1278. if test x$glib_config_prefix != x ; then
  1279. glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
  1280. if test x${GLIB_CONFIG+set} != xset ; then
  1281. GLIB_CONFIG=$glib_config_prefix/bin/glib-config
  1282. fi
  1283. fi
  1284. for module in .
  1285. do
  1286. case "$module" in
  1287. gmodule)
  1288. glib_config_args="$glib_config_args gmodule"
  1289. ;;
  1290. gthread)
  1291. glib_config_args="$glib_config_args gthread"
  1292. ;;
  1293. esac
  1294. done
  1295. # Extract the first word of "glib-config", so it can be a program name with args.
  1296. set dummy glib-config; ac_word=$2
  1297. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1298. echo "configure:1446: checking for $ac_word" >&5
  1299. if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
  1300. echo $ac_n "(cached) $ac_c" 1>&6
  1301. else
  1302. case "$GLIB_CONFIG" in
  1303. /*)
  1304. ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
  1305. ;;
  1306. ?:/*)
  1307. ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
  1308. ;;
  1309. *)
  1310. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1311. ac_dummy="$PATH"
  1312. for ac_dir in $ac_dummy; do
  1313. test -z "$ac_dir" && ac_dir=.
  1314. if test -f $ac_dir/$ac_word; then
  1315. ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
  1316. break
  1317. fi
  1318. done
  1319. IFS="$ac_save_ifs"
  1320. test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
  1321. ;;
  1322. esac
  1323. fi
  1324. GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
  1325. if test -n "$GLIB_CONFIG"; then
  1326. echo "$ac_t""$GLIB_CONFIG" 1>&6
  1327. else
  1328. echo "$ac_t""no" 1>&6
  1329. fi
  1330. min_glib_version=1.2.0
  1331. echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
  1332. echo "configure:1481: checking for GLIB - version >= $min_glib_version" >&5
  1333. no_glib=""
  1334. if test "$GLIB_CONFIG" = "no" ; then
  1335. no_glib=yes
  1336. else
  1337. GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
  1338. GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
  1339. glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
  1340. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1341. glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
  1342. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1343. glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
  1344. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1345. if test "x$enable_glibtest" = "xyes" ; then
  1346. ac_save_CFLAGS="$CFLAGS"
  1347. ac_save_LIBS="$LIBS"
  1348. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  1349. LIBS="$GLIB_LIBS $LIBS"
  1350. rm -f conf.glibtest
  1351. if test "$cross_compiling" = yes; then
  1352. echo $ac_n "cross compiling; assumed OK... $ac_c"
  1353. else
  1354. cat > conftest.$ac_ext <<EOF
  1355. #line 1504 "configure"
  1356. #include "confdefs.h"
  1357. #include <glib.h>
  1358. #include <stdio.h>
  1359. #include <stdlib.h>
  1360. int
  1361. main ()
  1362. {
  1363. int major, minor, micro;
  1364. char *tmp_version;
  1365. system ("touch conf.glibtest");
  1366. /* HP/UX 9 (%@#!) writes to sscanf strings */
  1367. tmp_version = g_strdup("$min_glib_version");
  1368. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  1369. printf("%s, bad version string\n", "$min_glib_version");
  1370. exit(1);
  1371. }
  1372. if ((glib_major_version != $glib_config_major_version) ||
  1373. (glib_minor_version != $glib_config_minor_version) ||
  1374. (glib_micro_version != $glib_config_micro_version))
  1375. {
  1376. printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
  1377. $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  1378. glib_major_version, glib_minor_version, glib_micro_version);
  1379. printf ("*** was found! If glib-config was correct, then it is best\n");
  1380. printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
  1381. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  1382. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  1383. printf("*** required on your system.\n");
  1384. printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
  1385. printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
  1386. printf("*** before re-running configure\n");
  1387. }
  1388. else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  1389. (glib_minor_version != GLIB_MINOR_VERSION) ||
  1390. (glib_micro_version != GLIB_MICRO_VERSION))
  1391. {
  1392. printf("*** GLIB header files (version %d.%d.%d) do not match\n",
  1393. GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
  1394. printf("*** library (version %d.%d.%d)\n",
  1395. glib_major_version, glib_minor_version, glib_micro_version);
  1396. }
  1397. else
  1398. {
  1399. if ((glib_major_version > major) ||
  1400. ((glib_major_version == major) && (glib_minor_version > minor)) ||
  1401. ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
  1402. {
  1403. return 0;
  1404. }
  1405. else
  1406. {
  1407. printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
  1408. glib_major_version, glib_minor_version, glib_micro_version);
  1409. printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
  1410. major, minor, micro);
  1411. printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
  1412. printf("***\n");
  1413. printf("*** If you have already installed a sufficiently new version, this error\n");
  1414. printf("*** probably means that the wrong copy of the glib-config shell script is\n");
  1415. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  1416. printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
  1417. printf("*** correct copy of glib-config. (In this case, you will have to\n");
  1418. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  1419. printf("*** so that the correct libraries are found at run-time))\n");
  1420. }
  1421. }
  1422. return 1;
  1423. }
  1424. EOF
  1425. if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1426. then
  1427. :
  1428. else
  1429. echo "configure: failed program was:" >&5
  1430. cat conftest.$ac_ext >&5
  1431. rm -fr conftest*
  1432. no_glib=yes
  1433. fi
  1434. rm -fr conftest*
  1435. fi
  1436. CFLAGS="$ac_save_CFLAGS"
  1437. LIBS="$ac_save_LIBS"
  1438. fi
  1439. fi
  1440. if test "x$no_glib" = x ; then
  1441. echo "$ac_t""yes" 1>&6
  1442. :
  1443. else
  1444. echo "$ac_t""no" 1>&6
  1445. if test "$GLIB_CONFIG" = "no" ; then
  1446. echo "*** The glib-config script installed by GLIB could not be found"
  1447. echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
  1448. echo "*** your path, or set the GLIB_CONFIG environment variable to the"
  1449. echo "*** full path to glib-config."
  1450. else
  1451. if test -f conf.glibtest ; then
  1452. :
  1453. else
  1454. echo "*** Could not run GLIB test program, checking why..."
  1455. CFLAGS="$CFLAGS $GLIB_CFLAGS"
  1456. LIBS="$LIBS $GLIB_LIBS"
  1457. cat > conftest.$ac_ext <<EOF
  1458. #line 1614 "configure"
  1459. #include "confdefs.h"
  1460. #include <glib.h>
  1461. #include <stdio.h>
  1462. int main() {
  1463. return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
  1464. ; return 0; }
  1465. EOF
  1466. if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1467. rm -rf conftest*
  1468. echo "*** The test program compiled, but did not run. This usually means"
  1469. echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  1470. echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  1471. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1472. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  1473. echo "*** is required on your system"
  1474. echo "***"
  1475. echo "*** If you have an old version installed, it is best to remove it, although"
  1476. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1477. echo "***"
  1478. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  1479. echo "*** came with the system with the command"
  1480. echo "***"
  1481. echo "*** rpm --erase --nodeps gtk gtk-devel"
  1482. else
  1483. echo "configure: failed program was:" >&5
  1484. cat conftest.$ac_ext >&5
  1485. rm -rf conftest*
  1486. echo "*** The test program failed to compile or link. See the file config.log for the"
  1487. echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
  1488. echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
  1489. echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
  1490. fi
  1491. rm -f conftest*
  1492. CFLAGS="$ac_save_CFLAGS"
  1493. LIBS="$ac_save_LIBS"
  1494. fi
  1495. fi
  1496. GLIB_CFLAGS=""
  1497. GLIB_LIBS=""
  1498. { echo "configure: error: Cannot find GLIB: Is glib-config in path?" 1>&2; exit 1; }
  1499. fi
  1500. rm -f conf.glibtest
  1501. LIBGTK=no
  1502. LIBPIXBUF=no
  1503. LIBMYSQL=no
  1504. # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  1505. if test "${with_gtk_prefix+set}" = set; then
  1506. withval="$with_gtk_prefix"
  1507. gtk_config_prefix="$withval"
  1508. else
  1509. gtk_config_prefix=""
  1510. fi
  1511. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  1512. if test "${with_gtk_exec_prefix+set}" = set; then
  1513. withval="$with_gtk_exec_prefix"
  1514. gtk_config_exec_prefix="$withval"
  1515. else
  1516. gtk_config_exec_prefix=""
  1517. fi
  1518. # Check whether --enable-gtktest or --disable-gtktest was given.
  1519. if test "${enable_gtktest+set}" = set; then
  1520. enableval="$enable_gtktest"
  1521. :
  1522. else
  1523. enable_gtktest=yes
  1524. fi
  1525. for module in .
  1526. do
  1527. case "$module" in
  1528. gthread)
  1529. gtk_config_args="$gtk_config_args gthread"
  1530. ;;
  1531. esac
  1532. done
  1533. if test x$gtk_config_exec_prefix != x ; then
  1534. gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  1535. if test x${GTK_CONFIG+set} != xset ; then
  1536. GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  1537. fi
  1538. fi
  1539. if test x$gtk_config_prefix != x ; then
  1540. gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  1541. if test x${GTK_CONFIG+set} != xset ; then
  1542. GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  1543. fi
  1544. fi
  1545. # Extract the first word of "gtk-config", so it can be a program name with args.
  1546. set dummy gtk-config; ac_word=$2
  1547. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1548. echo "configure:1717: checking for $ac_word" >&5
  1549. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  1550. echo $ac_n "(cached) $ac_c" 1>&6
  1551. else
  1552. case "$GTK_CONFIG" in
  1553. /*)
  1554. ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  1555. ;;
  1556. ?:/*)
  1557. ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  1558. ;;
  1559. *)
  1560. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1561. ac_dummy="$PATH"
  1562. for ac_dir in $ac_dummy; do
  1563. test -z "$ac_dir" && ac_dir=.
  1564. if test -f $ac_dir/$ac_word; then
  1565. ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  1566. break
  1567. fi
  1568. done
  1569. IFS="$ac_save_ifs"
  1570. test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  1571. ;;
  1572. esac
  1573. fi
  1574. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  1575. if test -n "$GTK_CONFIG"; then
  1576. echo "$ac_t""$GTK_CONFIG" 1>&6
  1577. else
  1578. echo "$ac_t""no" 1>&6
  1579. fi
  1580. min_gtk_version=1.2.0
  1581. echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  1582. echo "configure:1752: checking for GTK - version >= $min_gtk_version" >&5
  1583. no_gtk=""
  1584. if test "$GTK_CONFIG" = "no" ; then
  1585. no_gtk=yes
  1586. else
  1587. GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  1588. GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  1589. gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  1590. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1591. gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  1592. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1593. gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  1594. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1595. if test "x$enable_gtktest" = "xyes" ; then
  1596. ac_save_CFLAGS="$CFLAGS"
  1597. ac_save_LIBS="$LIBS"
  1598. CFLAGS="$CFLAGS $GTK_CFLAGS"
  1599. LIBS="$GTK_LIBS $LIBS"
  1600. rm -f conf.gtktest
  1601. if test "$cross_compiling" = yes; then
  1602. echo $ac_n "cross compiling; assumed OK... $ac_c"
  1603. else
  1604. cat > conftest.$ac_ext <<EOF
  1605. #line 1775 "configure"
  1606. #include "confdefs.h"
  1607. #include <gtk/gtk.h>
  1608. #include <stdio.h>
  1609. #include <stdlib.h>
  1610. int
  1611. main ()
  1612. {
  1613. int major, minor, micro;
  1614. char *tmp_version;
  1615. system ("touch conf.gtktest");
  1616. /* HP/UX 9 (%@#!) writes to sscanf strings */
  1617. tmp_version = g_strdup("$min_gtk_version");
  1618. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  1619. printf("%s, bad version string\n", "$min_gtk_version");
  1620. exit(1);
  1621. }
  1622. if ((gtk_major_version != $gtk_config_major_version) ||
  1623. (gtk_minor_version != $gtk_config_minor_version) ||
  1624. (gtk_micro_version != $gtk_config_micro_version))
  1625. {
  1626. printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
  1627. $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  1628. gtk_major_version, gtk_minor_version, gtk_micro_version);
  1629. printf ("*** was found! If gtk-config was correct, then it is best\n");
  1630. printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  1631. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  1632. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  1633. printf("*** required on your system.\n");
  1634. printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  1635. printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  1636. printf("*** before re-running configure\n");
  1637. }
  1638. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  1639. else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  1640. (gtk_minor_version != GTK_MINOR_VERSION) ||
  1641. (gtk_micro_version != GTK_MICRO_VERSION))
  1642. {
  1643. printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  1644. GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  1645. printf("*** library (version %d.%d.%d)\n",
  1646. gtk_major_version, gtk_minor_version, gtk_micro_version);
  1647. }
  1648. #endif /* defined (GTK_MAJOR_VERSION) ... */
  1649. else
  1650. {
  1651. if ((gtk_major_version > major) ||
  1652. ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  1653. ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  1654. {
  1655. return 0;
  1656. }
  1657. else
  1658. {
  1659. printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  1660. gtk_major_version, gtk_minor_version, gtk_micro_version);
  1661. printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  1662. major, minor, micro);
  1663. printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  1664. printf("***\n");
  1665. printf("*** If you have already installed a sufficiently new version, this error\n");
  1666. printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  1667. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  1668. printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  1669. printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  1670. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  1671. printf("*** so that the correct libraries are found at run-time))\n");
  1672. }
  1673. }
  1674. return 1;
  1675. }
  1676. EOF
  1677. if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1678. then
  1679. :
  1680. else
  1681. echo "configure: failed program was:" >&5
  1682. cat conftest.$ac_ext >&5
  1683. rm -fr conftest*
  1684. no_gtk=yes
  1685. fi
  1686. rm -fr conftest*
  1687. fi
  1688. CFLAGS="$ac_save_CFLAGS"
  1689. LIBS="$ac_save_LIBS"
  1690. fi
  1691. fi
  1692. if test "x$no_gtk" = x ; then
  1693. echo "$ac_t""yes" 1>&6
  1694. LIBGTK="yes"
  1695. else
  1696. echo "$ac_t""no" 1>&6
  1697. if test "$GTK_CONFIG" = "no" ; then
  1698. echo "*** The gtk-config script installed by GTK could not be found"
  1699. echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  1700. echo "*** your path, or set the GTK_CONFIG environment variable to the"
  1701. echo "*** full path to gtk-config."
  1702. else
  1703. if test -f conf.gtktest ; then
  1704. :
  1705. else
  1706. echo "*** Could not run GTK test program, checking why..."
  1707. CFLAGS="$CFLAGS $GTK_CFLAGS"
  1708. LIBS="$LIBS $GTK_LIBS"
  1709. cat > conftest.$ac_ext <<EOF
  1710. #line 1887 "configure"
  1711. #include "confdefs.h"
  1712. #include <gtk/gtk.h>
  1713. #include <stdio.h>
  1714. int main() {
  1715. return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
  1716. ; return 0; }
  1717. EOF
  1718. if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1719. rm -rf conftest*
  1720. echo "*** The test program compiled, but did not run. This usually means"
  1721. echo "*** that the run-time linker is not finding GTK or finding the wrong"
  1722. echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  1723. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1724. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  1725. echo "*** is required on your system"
  1726. echo "***"
  1727. echo "*** If you have an old version installed, it is best to remove it, although"
  1728. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1729. echo "***"
  1730. echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  1731. echo "*** came with the system with the command"
  1732. echo "***"
  1733. echo "*** rpm --erase --nodeps gtk gtk-devel"
  1734. else
  1735. echo "configure: failed program was:" >&5
  1736. cat conftest.$ac_ext >&5
  1737. rm -rf conftest*
  1738. echo "*** The test program failed to compile or link. See the file config.log for the"
  1739. echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  1740. echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  1741. echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
  1742. fi
  1743. rm -f conftest*
  1744. CFLAGS="$ac_save_CFLAGS"
  1745. LIBS="$ac_save_LIBS"
  1746. fi
  1747. fi
  1748. GTK_CFLAGS=""
  1749. GTK_LIBS=""
  1750. echo "configure: warning: Cannot find GTK: disabling gtk-client and meta-client." 1>&2
  1751. fi
  1752. rm -f conf.gtktest
  1753. # Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given.
  1754. if test "${with_gdk_pixbuf_prefix+set}" = set; then
  1755. withval="$with_gdk_pixbuf_prefix"
  1756. gdk_pixbuf_prefix="$withval"
  1757. else
  1758. gdk_pixbuf_prefix=""
  1759. fi
  1760. # Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given.
  1761. if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then
  1762. withval="$with_gdk_pixbuf_exec_prefix"
  1763. gdk_pixbuf_exec_prefix="$withval"
  1764. else
  1765. gdk_pixbuf_exec_prefix=""
  1766. fi
  1767. # Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given.
  1768. if test "${enable_gdk_pixbuftest+set}" = set; then
  1769. enableval="$enable_gdk_pixbuftest"
  1770. :
  1771. else
  1772. enable_gdk_pixbuftest=yes
  1773. fi
  1774. if test x$gdk_pixbuf_exec_prefix != x ; then
  1775. gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
  1776. if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
  1777. GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config
  1778. fi
  1779. fi
  1780. if test x$gdk_pixbuf_prefix != x ; then
  1781. gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
  1782. if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
  1783. GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config
  1784. fi
  1785. fi
  1786. # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args.
  1787. set dummy gdk-pixbuf-config; ac_word=$2
  1788. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1789. echo "configure:1976: checking for $ac_word" >&5
  1790. if eval "test \"`echo '$''{'ac_cv_path_GDK_PIXBUF_CONFIG'+set}'`\" = set"; then
  1791. echo $ac_n "(cached) $ac_c" 1>&6
  1792. else
  1793. case "$GDK_PIXBUF_CONFIG" in
  1794. /*)
  1795. ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path.
  1796. ;;
  1797. ?:/*)
  1798. ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a dos path.
  1799. ;;
  1800. *)
  1801. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1802. ac_dummy="$PATH"
  1803. for ac_dir in $ac_dummy; do
  1804. test -z "$ac_dir" && ac_dir=.
  1805. if test -f $ac_dir/$ac_word; then
  1806. ac_cv_path_GDK_PIXBUF_CONFIG="$ac_dir/$ac_word"
  1807. break
  1808. fi
  1809. done
  1810. IFS="$ac_save_ifs"
  1811. test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no"
  1812. ;;
  1813. esac
  1814. fi
  1815. GDK_PIXBUF_CONFIG="$ac_cv_path_GDK_PIXBUF_CONFIG"
  1816. if test -n "$GDK_PIXBUF_CONFIG"; then
  1817. echo "$ac_t""$GDK_PIXBUF_CONFIG" 1>&6
  1818. else
  1819. echo "$ac_t""no" 1>&6
  1820. fi
  1821. min_gdk_pixbuf_version=0.10.0
  1822. echo $ac_n "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version""... $ac_c" 1>&6
  1823. echo "configure:2011: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5
  1824. no_gdk_pixbuf=""
  1825. if test "$GDK_PIXBUF_CONFIG" = "no" ; then
  1826. no_gdk_pixbuf=yes
  1827. else
  1828. GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
  1829. GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
  1830. gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
  1831. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1832. gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
  1833. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1834. gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
  1835. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1836. if test "x$enable_gdk_pixbuftest" = "xyes" ; then
  1837. ac_save_CFLAGS="$CFLAGS"
  1838. ac_save_LIBS="$LIBS"
  1839. CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
  1840. LIBS="$LIBS $GDK_PIXBUF_LIBS"
  1841. rm -f conf.gdk_pixbuftest
  1842. if test "$cross_compiling" = yes; then
  1843. echo $ac_n "cross compiling; assumed OK... $ac_c"
  1844. else
  1845. cat > conftest.$ac_ext <<EOF
  1846. #line 2035 "configure"
  1847. #include "confdefs.h"
  1848. #include <stdio.h>
  1849. #include <stdlib.h>
  1850. #include <string.h>
  1851. #include <gdk-pixbuf/gdk-pixbuf.h>
  1852. char*
  1853. my_strdup (char *str)
  1854. {
  1855. char *new_str;
  1856. if (str)
  1857. {
  1858. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  1859. strcpy (new_str, str);
  1860. }
  1861. else
  1862. new_str = NULL;
  1863. return new_str;
  1864. }
  1865. int main ()
  1866. {
  1867. int major, minor, micro;
  1868. char *tmp_version;
  1869. system ("touch conf.gdk_pixbuftest");
  1870. /* HP/UX 9 (%@#!) writes to sscanf strings */
  1871. tmp_version = my_strdup("$min_gdk_pixbuf_version");
  1872. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  1873. printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
  1874. exit(1);
  1875. }
  1876. if (($gdk_pixbuf_major_version > major) ||
  1877. (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
  1878. (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
  1879. {
  1880. return 0;
  1881. }
  1882. else
  1883. {
  1884. printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
  1885. printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
  1886. printf("*** best to upgrade to the required version.\n");
  1887. printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
  1888. printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
  1889. printf("*** config.cache before re-running configure\n");
  1890. return 1;
  1891. }
  1892. }
  1893. EOF
  1894. if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1895. then
  1896. :
  1897. else
  1898. echo "configure: failed program was:" >&5
  1899. cat conftest.$ac_ext >&5
  1900. rm -fr conftest*
  1901. no_gdk_pixbuf=yes
  1902. fi
  1903. rm -fr conftest*
  1904. fi
  1905. CFLAGS="$ac_save_CFLAGS"
  1906. LIBS="$ac_save_LIBS"
  1907. fi
  1908. fi
  1909. if test "x$no_gdk_pixbuf" = x ; then
  1910. echo "$ac_t""yes" 1>&6
  1911. LIBPIXBUF="yes"
  1912. else
  1913. echo "$ac_t""no" 1>&6
  1914. if test "$GDK_PIXBUF_CONFIG" = "no" ; then
  1915. echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
  1916. echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
  1917. echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
  1918. echo "*** full path to gdk-pixbuf-config."
  1919. else
  1920. if test -f conf.gdk_pixbuftest ; then
  1921. :
  1922. else
  1923. echo "*** Could not run GDK_PIXBUF test program, checking why..."
  1924. CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
  1925. LIBS="$LIBS $GDK_PIXBUF_LIBS"
  1926. cat > conftest.$ac_ext <<EOF
  1927. #line 2127 "configure"
  1928. #include "confdefs.h"
  1929. #include <stdio.h>
  1930. #include <gdk-pixbuf/gdk-pixbuf.h>
  1931. int main() {
  1932. return 0;
  1933. ; return 0; }
  1934. EOF
  1935. if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1936. rm -rf conftest*
  1937. echo "*** The test program compiled, but did not run. This usually means"
  1938. echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
  1939. echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
  1940. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1941. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  1942. echo "*** is required on your system"
  1943. echo "***"
  1944. echo "*** If you have an old version installed, it is best to remove it, although"
  1945. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1946. else
  1947. echo "configure: failed program was:" >&5
  1948. cat conftest.$ac_ext >&5
  1949. rm -rf conftest*
  1950. echo "*** The test program failed to compile or link. See the file config.log for the"
  1951. echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
  1952. echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
  1953. echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG"
  1954. fi
  1955. rm -f conftest*
  1956. CFLAGS="$ac_save_CFLAGS"
  1957. LIBS="$ac_save_LIBS"
  1958. fi
  1959. fi
  1960. GDK_PIXBUF_CFLAGS=""
  1961. GDK_PIXBUF_LIBS=""
  1962. echo "configure: warning: Cannot find GDK_PIXBUF: disabling gtk-client." 1>&2
  1963. fi
  1964. rm -f conf.gdk_pixbuftest
  1965. LIBGPC="no"
  1966. echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
  1967. echo "configure:2174: checking for sin in -lm" >&5
  1968. ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
  1969. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1970. echo $ac_n "(cached) $ac_c" 1>&6
  1971. else
  1972. ac_save_LIBS="$LIBS"
  1973. LIBS="-lm $LIBS"
  1974. cat > conftest.$ac_ext <<EOF
  1975. #line 2182 "configure"
  1976. #include "confdefs.h"
  1977. /* Override any gcc2 internal prototype to avoid an error. */
  1978. /* We use char because int might match the return type of a gcc2
  1979. builtin and then its argument prototype would still apply. */
  1980. char sin();
  1981. int main() {
  1982. sin()
  1983. ; return 0; }
  1984. EOF
  1985. if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1986. rm -rf conftest*
  1987. eval "ac_cv_lib_$ac_lib_var=yes"
  1988. else
  1989. echo "configure: failed program was:" >&5
  1990. cat conftest.$ac_ext >&5
  1991. rm -rf conftest*
  1992. eval "ac_cv_lib_$ac_lib_var=no"
  1993. fi
  1994. rm -f conftest*
  1995. LIBS="$ac_save_LIBS"
  1996. fi
  1997. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1998. echo "$ac_t""yes" 1>&6
  1999. LDFLAGS="$LDFLAGS -lm"
  2000. else
  2001. echo "$ac_t""no" 1>&6
  2002. { echo "configure: error: Standard math library not found" 1>&2; exit 1; }
  2003. fi
  2004. echo $ac_n "checking for init_Gpc in -lgpc""... $ac_c" 1>&6
  2005. echo "configure:2215: checking for init_Gpc in -lgpc" >&5
  2006. ac_lib_var=`echo gpc'_'init_Gpc | sed 'y%./+-%__p_%'`
  2007. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2008. echo $ac_n "(cached) $ac_c" 1>&6
  2009. else
  2010. ac_save_LIBS="$LIBS"
  2011. LIBS="-lgpc $LIBS"
  2012. cat > conftest.$ac_ext <<EOF
  2013. #line 2223 "configure"
  2014. #include "confdefs.h"
  2015. /* Override any gcc2 internal prototype to avoid an error. */
  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 init_Gpc();
  2019. int main() {
  2020. init_Gpc()
  2021. ; return 0; }
  2022. EOF
  2023. if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2024. rm -rf conftest*
  2025. eval "ac_cv_lib_$ac_lib_var=yes"
  2026. else
  2027. echo "configure: failed program was:" >&5
  2028. cat conftest.$ac_ext >&5
  2029. rm -rf conftest*
  2030. eval "ac_cv_lib_$ac_lib_var=no"
  2031. fi
  2032. rm -f conftest*
  2033. LIBS="$ac_save_LIBS"
  2034. fi
  2035. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2036. echo "$ac_t""yes" 1>&6
  2037. LIBGPC="yes"
  2038. else
  2039. echo "$ac_t""no" 1>&6
  2040. echo "configure: warning: Cannot find GPC library. Pascal support will be disabled." 1>&2
  2041. fi
  2042. echo $ac_n "checking for uncompress in -lz""... $ac_c" 1>&6
  2043. echo "configure:2257: checking for uncompress in -lz" >&5
  2044. ac_lib_var=`echo z'_'uncompress | sed 'y%./+-%__p_%'`
  2045. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2046. echo $ac_n "(cached) $ac_c" 1>&6
  2047. else
  2048. ac_save_LIBS="$LIBS"
  2049. LIBS="-lz $LIBS"
  2050. cat > conftest.$ac_ext <<EOF
  2051. #line 2265 "configure"
  2052. #include "confdefs.h"
  2053. /* Override any gcc2 internal prototype to avoid an error. */
  2054. /* We use char because int might match the return type of a gcc2
  2055. builtin and then its argument prototype would still apply. */
  2056. char uncompress();
  2057. int main() {
  2058. uncompress()
  2059. ; return 0; }
  2060. EOF
  2061. if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2062. rm -rf conftest*
  2063. eval "ac_cv_lib_$ac_lib_var=yes"
  2064. else
  2065. echo "configure: failed program was:" >&5
  2066. cat conftest.$ac_ext >&5
  2067. rm -rf conftest*
  2068. eval "ac_cv_lib_$ac_lib_var=no"
  2069. fi
  2070. rm -f conftest*
  2071. LIBS="$ac_save_LIBS"
  2072. fi
  2073. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2074. echo "$ac_t""yes" 1>&6
  2075. LDFLAGS="$LDFLAGS -lz"
  2076. else
  2077. echo "$ac_t""no" 1>&6
  2078. { echo "configure: error: Zlib not found" 1>&2; exit 1; }
  2079. fi
  2080. echo $ac_n "checking for mysql_real_connect in -lmysqlclient""... $ac_c" 1>&6
  2081. echo "configure:2298: checking for mysql_real_connect in -lmysqlclient" >&5
  2082. ac_lib_var=`echo mysqlclient'_'mysql_real_connect | sed 'y%./+-%__p_%'`
  2083. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2084. echo $ac_n "(cached) $ac_c" 1>&6
  2085. else
  2086. ac_save_LIBS="$LIBS"
  2087. LIBS="-lmysqlclient $LIBS"
  2088. cat > conftest.$ac_ext <<EOF
  2089. #line 2306 "configure"
  2090. #include "confdefs.h"
  2091. /* Override any gcc2 internal prototype to avoid an error. */
  2092. /* We use char because int might match the return type of a gcc2
  2093. builtin and then its argument prototype would still apply. */
  2094. char mysql_real_connect();
  2095. int main() {
  2096. mysql_real_connect()
  2097. ; return 0; }
  2098. EOF
  2099. if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2100. rm -rf conftest*
  2101. eval "ac_cv_lib_$ac_lib_var=yes"
  2102. else
  2103. echo "configure: failed program was:" >&5
  2104. cat conftest.$ac_ext >&5
  2105. rm -rf conftest*
  2106. eval "ac_cv_lib_$ac_lib_var=no"
  2107. fi
  2108. rm -f conftest*
  2109. LIBS="$ac_save_LIBS"
  2110. fi
  2111. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2112. echo "$ac_t""yes" 1>&6
  2113. LIBMYSQL="yes"
  2114. else
  2115. echo "$ac_t""no" 1>&6
  2116. echo "configure: warning: Mysql library not found. Disabling meta-client." 1>&2
  2117. fi
  2118. if test "$LIBGTK" = "no"
  2119. then
  2120. GTKCLIENT="no"
  2121. MCLIENT="no"
  2122. fi
  2123. if test "$LIBPIXBUF" = "no"
  2124. then
  2125. GTKCLIENT="no"
  2126. fi
  2127. if test "$LIBMYSQL" = "no"
  2128. then
  2129. MCLIENT="no"
  2130. fi
  2131. if test "$GTKCLIENT" != "no"; then
  2132. AM_BUILD_GTKCLIENT_TRUE=
  2133. AM_BUILD_GTKCLIENT_FALSE='#'
  2134. else
  2135. AM_BUILD_GTKCLIENT_TRUE='#'
  2136. AM_BUILD_GTKCLIENT_FALSE=
  2137. fi
  2138. if test "$MCLIENT" != "no"; then
  2139. AM_BUILD_MCLIENT_TRUE=
  2140. AM_BUILD_MCLIENT_FALSE='#'
  2141. else
  2142. AM_BUILD_MCLIENT_TRUE='#'
  2143. AM_BUILD_MCLIENT_FALSE=
  2144. fi
  2145. if test "$SERVER" != "no"; then
  2146. AM_BUILD_SERVER_TRUE=
  2147. AM_BUILD_SERVER_FALSE='#'
  2148. else
  2149. AM_BUILD_SERVER_TRUE='#'
  2150. AM_BUILD_SERVER_FALSE=
  2151. fi
  2152. if test "$LIBGPC" != "no"; then
  2153. AM_BUILD_PASCAL_TRUE=
  2154. AM_BUILD_PASCAL_FALSE='#'
  2155. else
  2156. AM_BUILD_PASCAL_TRUE='#'
  2157. AM_BUILD_PASCAL_FALSE=
  2158. fi
  2159. for ac_hdr in stdlib.h stdio.h unistd.h string.h errno.h fcntl.h math.h signal.h ctype.h
  2160. do
  2161. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2162. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2163. echo "configure:2394: checking for $ac_hdr" >&5
  2164. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2165. echo $ac_n "(cached) $ac_c" 1>&6
  2166. else
  2167. cat > conftest.$ac_ext <<EOF
  2168. #line 2399 "configure"
  2169. #include "confdefs.h"
  2170. #include <$ac_hdr>
  2171. EOF
  2172. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2173. { (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2174. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2175. if test -z "$ac_err"; then
  2176. rm -rf conftest*
  2177. eval "ac_cv_header_$ac_safe=yes"
  2178. else
  2179. echo "$ac_err" >&5
  2180. echo "configure: failed program was:" >&5
  2181. cat conftest.$ac_ext >&5
  2182. rm -rf conftest*
  2183. eval "ac_cv_header_$ac_safe=no"
  2184. fi
  2185. rm -f conftest*
  2186. fi
  2187. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2188. echo "$ac_t""yes" 1>&6
  2189. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2190. cat >> confdefs.h <<EOF
  2191. #define $ac_tr_hdr 1
  2192. EOF
  2193. else
  2194. echo "$ac_t""no" 1>&6
  2195. fi
  2196. done
  2197. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2198. echo "configure:2432: checking for working const" >&5
  2199. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2200. echo $ac_n "(cached) $ac_c" 1>&6
  2201. else
  2202. cat > conftest.$ac_ext <<EOF
  2203. #line 2437 "configure"
  2204. #include "confdefs.h"
  2205. int main() {
  2206. /* Ultrix mips cc rejects this. */
  2207. typedef int charset[2]; const charset x;
  2208. /* SunOS 4.1.1 cc rejects this. */
  2209. char const *const *ccp;
  2210. char **p;
  2211. /* NEC SVR4.0.2 mips cc rejects this. */
  2212. struct point {int x, y;};
  2213. static struct point const zero = {0,0};
  2214. /* AIX XL C 1.02.0.0 rejects this.
  2215. It does not let you subtract one const X* pointer from another in an arm
  2216. of an if-expression whose if-part is not a constant expression */
  2217. const char *g = "string";
  2218. ccp = &g + (g ? g-g : 0);
  2219. /* HPUX 7.0 cc rejects these. */
  2220. ++ccp;
  2221. p = (char**) ccp;
  2222. ccp = (char const *const *) p;
  2223. { /* SCO 3.2v4 cc rejects this. */
  2224. char *t;
  2225. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2226. *t++ = 0;
  2227. }
  2228. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2229. int x[] = {25, 17};
  2230. const int *foo = &x[0];
  2231. ++foo;
  2232. }
  2233. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2234. typedef const int *iptr;
  2235. iptr p = 0;
  2236. ++p;
  2237. }
  2238. { /* AIX XL C 1.02.0.0 rejects this saying
  2239. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2240. struct s { int j; const int *ap[3]; };
  2241. struct s *b; b->j = 5;
  2242. }
  2243. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2244. const int foo = 10;
  2245. }
  2246. ; return 0; }
  2247. EOF
  2248. if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2249. rm -rf conftest*
  2250. ac_cv_c_const=yes
  2251. else
  2252. echo "configure: failed program was:" >&5
  2253. cat conftest.$ac_ext >&5
  2254. rm -rf conftest*
  2255. ac_cv_c_const=no
  2256. fi
  2257. rm -f conftest*
  2258. fi
  2259. echo "$ac_t""$ac_cv_c_const" 1>&6
  2260. if test $ac_cv_c_const = no; then
  2261. cat >> confdefs.h <<\EOF
  2262. #define const
  2263. EOF
  2264. fi
  2265. # Check whether --enable-debug or --disable-debug was given.
  2266. if test "${enable_debug+set}" = set; then
  2267. enableval="$enable_debug"
  2268. FINALE_DEBUG=$enableval
  2269. else
  2270. FINALE_DEBUG="no"
  2271. fi
  2272. if test "$FINALE_DEBUG" != "no"
  2273. then
  2274. CFLAGS="-O0 -ggdb -D__DEBUG__"
  2275. else
  2276. CFLAGS="-O9 -finline-functions -funroll-loops -malign-double -fno-rtti -fno-exceptions -march=i686 -fomit-frame-pointer -frerun-loop-opt -Werror"
  2277. fi
  2278. CFLAGS="$CFLAGS -Wall -I${HOME}/usr/lib/ocaml -I${HOME}/usr/include"
  2279. trap '' 1 2 15
  2280. cat > confcache <<\EOF
  2281. # This file is a shell script that caches the results of configure
  2282. # tests run on this system so they can be shared between configure
  2283. # scripts and configure runs. It is not useful on other systems.
  2284. # If it contains results you don't want to keep, you may remove or edit it.
  2285. #
  2286. # By default, configure uses ./config.cache as the cache file,
  2287. # creating it if it does not exist already. You can give configure
  2288. # the --cache-file=FILE option to use a different cache file; that is
  2289. # what configure does when it calls configure scripts in
  2290. # subdirectories, so they share the cache.
  2291. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2292. # config.status only pays attention to the cache file if you give it the
  2293. # --recheck option to rerun configure.
  2294. #
  2295. EOF
  2296. # The following way of writing the cache mishandles newlines in values,
  2297. # but we know of no workaround that is simple, portable, and efficient.
  2298. # So, don't put newlines in cache variables' values.
  2299. # Ultrix sh set writes to stderr and can't be redirected directly,
  2300. # and sets the high bit in the cache file unless we assign to the vars.
  2301. (set) 2>&1 |
  2302. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2303. *ac_space=\ *)
  2304. # `set' does not quote correctly, so add quotes (double-quote substitution
  2305. # turns \\\\ into \\, and sed turns \\ into \).
  2306. sed -n \
  2307. -e "s/'/'\\\\''/g" \
  2308. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2309. ;;
  2310. *)
  2311. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2312. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2313. ;;
  2314. esac >> confcache
  2315. if cmp -s $cache_file confcache; then
  2316. :
  2317. else
  2318. if test -w $cache_file; then
  2319. echo "updating cache $cache_file"
  2320. cat confcache > $cache_file
  2321. else
  2322. echo "not updating unwritable cache $cache_file"
  2323. fi
  2324. fi
  2325. rm -f confcache
  2326. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2327. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2328. # Let make expand exec_prefix.
  2329. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2330. # Any assignment to VPATH causes Sun make to only execute
  2331. # the first set of double-colon rules, so remove it if not needed.
  2332. # If there is a colon in the path, we need to keep it.
  2333. if test "x$srcdir" = x.; then
  2334. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  2335. fi
  2336. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2337. DEFS=-DHAVE_CONFIG_H
  2338. # Without the "./", some shells look in PATH for config.status.
  2339. : ${CONFIG_STATUS=./config.status}
  2340. echo creating $CONFIG_STATUS
  2341. rm -f $CONFIG_STATUS
  2342. cat > $CONFIG_STATUS <<EOF
  2343. #! /bin/sh
  2344. # Generated automatically by configure.
  2345. # Run this file to recreate the current configuration.
  2346. # This directory was configured as follows,
  2347. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2348. #
  2349. # $0 $ac_configure_args
  2350. #
  2351. # Compiler output produced by configure, useful for debugging
  2352. # configure, is in ./config.log if it exists.
  2353. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2354. for ac_option
  2355. do
  2356. case "\$ac_option" in
  2357. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2358. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2359. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2360. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2361. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2362. exit 0 ;;
  2363. -help | --help | --hel | --he | --h)
  2364. echo "\$ac_cs_usage"; exit 0 ;;
  2365. *) echo "\$ac_cs_usage"; exit 1 ;;
  2366. esac
  2367. done
  2368. ac_given_srcdir=$srcdir
  2369. ac_given_INSTALL="$INSTALL"
  2370. trap 'rm -fr `echo "
  2371. Makefile
  2372. doc/Makefile
  2373. data/Makefile
  2374. data/map/Makefile
  2375. src/Makefile
  2376. src/server/Makefile
  2377. src/meta-client/Makefile
  2378. src/gtk-client/Makefile
  2379. src/netlib/Makefile
  2380. src/gtkutil/Makefile
  2381. config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2382. EOF
  2383. cat >> $CONFIG_STATUS <<EOF
  2384. # Protect against being on the right side of a sed subst in config.status.
  2385. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2386. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2387. $ac_vpsub
  2388. $extrasub
  2389. s%@SHELL@%$SHELL%g
  2390. s%@CFLAGS@%$CFLAGS%g
  2391. s%@CPPFLAGS@%$CPPFLAGS%g
  2392. s%@CXXFLAGS@%$CXXFLAGS%g
  2393. s%@FFLAGS@%$FFLAGS%g
  2394. s%@DEFS@%$DEFS%g
  2395. s%@LDFLAGS@%$LDFLAGS%g
  2396. s%@LIBS@%$LIBS%g
  2397. s%@exec_prefix@%$exec_prefix%g
  2398. s%@prefix@%$prefix%g
  2399. s%@program_transform_name@%$program_transform_name%g
  2400. s%@bindir@%$bindir%g
  2401. s%@sbindir@%$sbindir%g
  2402. s%@libexecdir@%$libexecdir%g
  2403. s%@datadir@%$datadir%g
  2404. s%@sysconfdir@%$sysconfdir%g
  2405. s%@sharedstatedir@%$sharedstatedir%g
  2406. s%@localstatedir@%$localstatedir%g
  2407. s%@libdir@%$libdir%g
  2408. s%@includedir@%$includedir%g
  2409. s%@oldincludedir@%$oldincludedir%g
  2410. s%@infodir@%$infodir%g
  2411. s%@mandir@%$mandir%g
  2412. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2413. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2414. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2415. s%@PACKAGE@%$PACKAGE%g
  2416. s%@VERSION@%$VERSION%g
  2417. s%@ACLOCAL@%$ACLOCAL%g
  2418. s%@AUTOCONF@%$AUTOCONF%g
  2419. s%@AUTOMAKE@%$AUTOMAKE%g
  2420. s%@AUTOHEADER@%$AUTOHEADER%g
  2421. s%@MAKEINFO@%$MAKEINFO%g
  2422. s%@SET_MAKE@%$SET_MAKE%g
  2423. s%@CC@%$CC%g
  2424. s%@CPP@%$CPP%g
  2425. s%@RANLIB@%$RANLIB%g
  2426. s%@GLIB_CONFIG@%$GLIB_CONFIG%g
  2427. s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
  2428. s%@GLIB_LIBS@%$GLIB_LIBS%g
  2429. s%@GTK_CONFIG@%$GTK_CONFIG%g
  2430. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  2431. s%@GTK_LIBS@%$GTK_LIBS%g
  2432. s%@GDK_PIXBUF_CONFIG@%$GDK_PIXBUF_CONFIG%g
  2433. s%@GDK_PIXBUF_CFLAGS@%$GDK_PIXBUF_CFLAGS%g
  2434. s%@GDK_PIXBUF_LIBS@%$GDK_PIXBUF_LIBS%g
  2435. s%@AM_BUILD_GTKCLIENT_TRUE@%$AM_BUILD_GTKCLIENT_TRUE%g
  2436. s%@AM_BUILD_GTKCLIENT_FALSE@%$AM_BUILD_GTKCLIENT_FALSE%g
  2437. s%@AM_BUILD_MCLIENT_TRUE@%$AM_BUILD_MCLIENT_TRUE%g
  2438. s%@AM_BUILD_MCLIENT_FALSE@%$AM_BUILD_MCLIENT_FALSE%g
  2439. s%@AM_BUILD_SERVER_TRUE@%$AM_BUILD_SERVER_TRUE%g
  2440. s%@AM_BUILD_SERVER_FALSE@%$AM_BUILD_SERVER_FALSE%g
  2441. s%@AM_BUILD_PASCAL_TRUE@%$AM_BUILD_PASCAL_TRUE%g
  2442. s%@AM_BUILD_PASCAL_FALSE@%$AM_BUILD_PASCAL_FALSE%g
  2443. CEOF
  2444. EOF
  2445. cat >> $CONFIG_STATUS <<\EOF
  2446. # Split the substitutions into bite-sized pieces for seds with
  2447. # small command number limits, like on Digital OSF/1 and HP-UX.
  2448. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2449. ac_file=1 # Number of current file.
  2450. ac_beg=1 # First line for current file.
  2451. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2452. ac_more_lines=:
  2453. ac_sed_cmds=""
  2454. while $ac_more_lines; do
  2455. if test $ac_beg -gt 1; then
  2456. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2457. else
  2458. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2459. fi
  2460. if test ! -s conftest.s$ac_file; then
  2461. ac_more_lines=false
  2462. rm -f conftest.s$ac_file
  2463. else
  2464. if test -z "$ac_sed_cmds"; then
  2465. ac_sed_cmds="sed -f conftest.s$ac_file"
  2466. else
  2467. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2468. fi
  2469. ac_file=`expr $ac_file + 1`
  2470. ac_beg=$ac_end
  2471. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2472. fi
  2473. done
  2474. if test -z "$ac_sed_cmds"; then
  2475. ac_sed_cmds=cat
  2476. fi
  2477. EOF
  2478. cat >> $CONFIG_STATUS <<EOF
  2479. CONFIG_FILES=\${CONFIG_FILES-"Makefile
  2480. doc/Makefile
  2481. data/Makefile
  2482. data/map/Makefile
  2483. src/Makefile
  2484. src/server/Makefile
  2485. src/meta-client/Makefile
  2486. src/gtk-client/Makefile
  2487. src/netlib/Makefile
  2488. src/gtkutil/Makefile
  2489. "}
  2490. EOF
  2491. cat >> $CONFIG_STATUS <<\EOF
  2492. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2493. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2494. case "$ac_file" in
  2495. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2496. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2497. *) ac_file_in="${ac_file}.in" ;;
  2498. esac
  2499. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2500. # Remove last slash and all that follows it. Not all systems have dirname.
  2501. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2502. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2503. # The file is in a subdirectory.
  2504. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2505. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2506. # A "../" for each directory in $ac_dir_suffix.
  2507. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2508. else
  2509. ac_dir_suffix= ac_dots=
  2510. fi
  2511. case "$ac_given_srcdir" in
  2512. .) srcdir=.
  2513. if test -z "$ac_dots"; then top_srcdir=.
  2514. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2515. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2516. *) # Relative path.
  2517. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2518. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2519. esac
  2520. case "$ac_given_INSTALL" in
  2521. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2522. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2523. esac
  2524. echo creating "$ac_file"
  2525. rm -f "$ac_file"
  2526. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2527. case "$ac_file" in
  2528. *Makefile*) ac_comsub="1i\\
  2529. # $configure_input" ;;
  2530. *) ac_comsub= ;;
  2531. esac
  2532. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2533. sed -e "$ac_comsub
  2534. s%@configure_input@%$configure_input%g
  2535. s%@srcdir@%$srcdir%g
  2536. s%@top_srcdir@%$top_srcdir%g
  2537. s%@INSTALL@%$INSTALL%g
  2538. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2539. fi; done
  2540. rm -f conftest.s*
  2541. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2542. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2543. #
  2544. # ac_d sets the value in "#define NAME VALUE" lines.
  2545. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2546. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2547. ac_dC='\3'
  2548. ac_dD='%g'
  2549. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2550. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2551. ac_uB='\([ ]\)%\1#\2define\3'
  2552. ac_uC=' '
  2553. ac_uD='\4%g'
  2554. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2555. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2556. ac_eB='$%\1#\2define\3'
  2557. ac_eC=' '
  2558. ac_eD='%g'
  2559. if test "${CONFIG_HEADERS+set}" != set; then
  2560. EOF
  2561. cat >> $CONFIG_STATUS <<EOF
  2562. CONFIG_HEADERS="config.h"
  2563. EOF
  2564. cat >> $CONFIG_STATUS <<\EOF
  2565. fi
  2566. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2567. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2568. case "$ac_file" in
  2569. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2570. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2571. *) ac_file_in="${ac_file}.in" ;;
  2572. esac
  2573. echo creating $ac_file
  2574. rm -f conftest.frag conftest.in conftest.out
  2575. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2576. cat $ac_file_inputs > conftest.in
  2577. EOF
  2578. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2579. # the proper values into config.h.in to produce config.h. And first:
  2580. # Protect against being on the right side of a sed subst in config.status.
  2581. # Protect against being in an unquoted here document in config.status.
  2582. rm -f conftest.vals
  2583. cat > conftest.hdr <<\EOF
  2584. s/[\\&%]/\\&/g
  2585. s%[\\$`]%\\&%g
  2586. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2587. s%ac_d%ac_u%gp
  2588. s%ac_u%ac_e%gp
  2589. EOF
  2590. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2591. rm -f conftest.hdr
  2592. # This sed command replaces #undef with comments. This is necessary, for
  2593. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2594. # on some systems where configure will not decide to define it.
  2595. cat >> conftest.vals <<\EOF
  2596. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2597. EOF
  2598. # Break up conftest.vals because some shells have a limit on
  2599. # the size of here documents, and old seds have small limits too.
  2600. rm -f conftest.tail
  2601. while :
  2602. do
  2603. ac_lines=`grep -c . conftest.vals`
  2604. # grep -c gives empty output for an empty file on some AIX systems.
  2605. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2606. # Write a limited-size here document to conftest.frag.
  2607. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2608. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2609. echo 'CEOF
  2610. sed -f conftest.frag conftest.in > conftest.out
  2611. rm -f conftest.in
  2612. mv conftest.out conftest.in
  2613. ' >> $CONFIG_STATUS
  2614. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2615. rm -f conftest.vals
  2616. mv conftest.tail conftest.vals
  2617. done
  2618. rm -f conftest.vals
  2619. cat >> $CONFIG_STATUS <<\EOF
  2620. rm -f conftest.frag conftest.h
  2621. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2622. cat conftest.in >> conftest.h
  2623. rm -f conftest.in
  2624. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2625. echo "$ac_file is unchanged"
  2626. rm -f conftest.h
  2627. else
  2628. # Remove last slash and all that follows it. Not all systems have dirname.
  2629. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2630. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2631. # The file is in a subdirectory.
  2632. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2633. fi
  2634. rm -f $ac_file
  2635. mv conftest.h $ac_file
  2636. fi
  2637. fi; done
  2638. EOF
  2639. cat >> $CONFIG_STATUS <<EOF
  2640. EOF
  2641. cat >> $CONFIG_STATUS <<\EOF
  2642. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  2643. exit 0
  2644. EOF
  2645. chmod +x $CONFIG_STATUS
  2646. rm -fr confdefs* $ac_clean_files
  2647. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1