configure 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.12
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --enable-shared build shared library using GNU libtool"
  14. ac_help="$ac_help
  15. --enable-static build static library using GNU libtool"
  16. ac_help="$ac_help
  17. --enable-maxmem[=N] enable use of temp files, set max mem usage to N MB"
  18. ac_help="$ac_help
  19. "
  20. # Initialize some variables set by options.
  21. # The variables have the same names as the options, with
  22. # dashes changed to underlines.
  23. build=NONE
  24. cache_file=./config.cache
  25. exec_prefix=NONE
  26. host=NONE
  27. no_create=
  28. nonopt=NONE
  29. no_recursion=
  30. prefix=NONE
  31. program_prefix=NONE
  32. program_suffix=NONE
  33. program_transform_name=s,x,x,
  34. silent=
  35. site=
  36. srcdir=
  37. target=NONE
  38. verbose=
  39. x_includes=NONE
  40. x_libraries=NONE
  41. bindir='${exec_prefix}/bin'
  42. sbindir='${exec_prefix}/sbin'
  43. libexecdir='${exec_prefix}/libexec'
  44. datadir='${prefix}/share'
  45. sysconfdir='${prefix}/etc'
  46. sharedstatedir='${prefix}/com'
  47. localstatedir='${prefix}/var'
  48. libdir='${exec_prefix}/lib'
  49. includedir='${prefix}/include'
  50. oldincludedir='/usr/include'
  51. infodir='${prefix}/info'
  52. mandir='${prefix}/man'
  53. # Initialize some other variables.
  54. subdirs=
  55. MFLAGS= MAKEFLAGS=
  56. # Maximum number of lines to put in a shell here document.
  57. ac_max_here_lines=12
  58. ac_prev=
  59. for ac_option
  60. do
  61. # If the previous option needs an argument, assign it.
  62. if test -n "$ac_prev"; then
  63. eval "$ac_prev=\$ac_option"
  64. ac_prev=
  65. continue
  66. fi
  67. case "$ac_option" in
  68. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  69. *) ac_optarg= ;;
  70. esac
  71. # Accept the important Cygnus configure options, so we can diagnose typos.
  72. case "$ac_option" in
  73. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74. ac_prev=bindir ;;
  75. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76. bindir="$ac_optarg" ;;
  77. -build | --build | --buil | --bui | --bu)
  78. ac_prev=build ;;
  79. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  80. build="$ac_optarg" ;;
  81. -cache-file | --cache-file | --cache-fil | --cache-fi \
  82. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  83. ac_prev=cache_file ;;
  84. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  85. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  86. cache_file="$ac_optarg" ;;
  87. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  88. ac_prev=datadir ;;
  89. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  90. | --da=*)
  91. datadir="$ac_optarg" ;;
  92. -disable-* | --disable-*)
  93. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  94. # Reject names that are not valid shell variable names.
  95. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  96. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  97. fi
  98. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  99. eval "enable_${ac_feature}=no" ;;
  100. -enable-* | --enable-*)
  101. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  102. # Reject names that are not valid shell variable names.
  103. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  104. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105. fi
  106. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107. case "$ac_option" in
  108. *=*) ;;
  109. *) ac_optarg=yes ;;
  110. esac
  111. eval "enable_${ac_feature}='$ac_optarg'" ;;
  112. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  113. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  114. | --exec | --exe | --ex)
  115. ac_prev=exec_prefix ;;
  116. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  117. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  118. | --exec=* | --exe=* | --ex=*)
  119. exec_prefix="$ac_optarg" ;;
  120. -gas | --gas | --ga | --g)
  121. # Obsolete; use --with-gas.
  122. with_gas=yes ;;
  123. -help | --help | --hel | --he)
  124. # Omit some internal or obsolete options to make the list less imposing.
  125. # This message is too long to be a string in the A/UX 3.1 sh.
  126. cat << EOF
  127. Usage: configure [options] [host]
  128. Options: [defaults in brackets after descriptions]
  129. Configuration:
  130. --cache-file=FILE cache test results in FILE
  131. --help print this message
  132. --no-create do not create output files
  133. --quiet, --silent do not print \`checking...' messages
  134. --version print the version of autoconf that created configure
  135. Directory and file names:
  136. --prefix=PREFIX install architecture-independent files in PREFIX
  137. [$ac_default_prefix]
  138. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  139. [same as prefix]
  140. --bindir=DIR user executables in DIR [EPREFIX/bin]
  141. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  142. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  143. --datadir=DIR read-only architecture-independent data in DIR
  144. [PREFIX/share]
  145. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  146. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  147. [PREFIX/com]
  148. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  149. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  150. --includedir=DIR C header files in DIR [PREFIX/include]
  151. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  152. --infodir=DIR info documentation in DIR [PREFIX/info]
  153. --mandir=DIR man documentation in DIR [PREFIX/man]
  154. --srcdir=DIR find the sources in DIR [configure dir or ..]
  155. --program-prefix=PREFIX prepend PREFIX to installed program names
  156. --program-suffix=SUFFIX append SUFFIX to installed program names
  157. --program-transform-name=PROGRAM
  158. run sed PROGRAM on installed program names
  159. EOF
  160. cat << EOF
  161. Host type:
  162. --build=BUILD configure for building on BUILD [BUILD=HOST]
  163. --host=HOST configure for HOST [guessed]
  164. --target=TARGET configure for TARGET [TARGET=HOST]
  165. Features and packages:
  166. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  167. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  168. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  169. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  170. --x-includes=DIR X include files are in DIR
  171. --x-libraries=DIR X library files are in DIR
  172. EOF
  173. if test -n "$ac_help"; then
  174. echo "--enable and --with options recognized:$ac_help"
  175. fi
  176. exit 0 ;;
  177. -host | --host | --hos | --ho)
  178. ac_prev=host ;;
  179. -host=* | --host=* | --hos=* | --ho=*)
  180. host="$ac_optarg" ;;
  181. -includedir | --includedir | --includedi | --included | --include \
  182. | --includ | --inclu | --incl | --inc)
  183. ac_prev=includedir ;;
  184. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  185. | --includ=* | --inclu=* | --incl=* | --inc=*)
  186. includedir="$ac_optarg" ;;
  187. -infodir | --infodir | --infodi | --infod | --info | --inf)
  188. ac_prev=infodir ;;
  189. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  190. infodir="$ac_optarg" ;;
  191. -libdir | --libdir | --libdi | --libd)
  192. ac_prev=libdir ;;
  193. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  194. libdir="$ac_optarg" ;;
  195. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  196. | --libexe | --libex | --libe)
  197. ac_prev=libexecdir ;;
  198. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  199. | --libexe=* | --libex=* | --libe=*)
  200. libexecdir="$ac_optarg" ;;
  201. -localstatedir | --localstatedir | --localstatedi | --localstated \
  202. | --localstate | --localstat | --localsta | --localst \
  203. | --locals | --local | --loca | --loc | --lo)
  204. ac_prev=localstatedir ;;
  205. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  206. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  207. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  208. localstatedir="$ac_optarg" ;;
  209. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  210. ac_prev=mandir ;;
  211. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  212. mandir="$ac_optarg" ;;
  213. -nfp | --nfp | --nf)
  214. # Obsolete; use --without-fp.
  215. with_fp=no ;;
  216. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  217. | --no-cr | --no-c)
  218. no_create=yes ;;
  219. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  220. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  221. no_recursion=yes ;;
  222. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  223. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  224. | --oldin | --oldi | --old | --ol | --o)
  225. ac_prev=oldincludedir ;;
  226. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  227. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  228. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  229. oldincludedir="$ac_optarg" ;;
  230. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  231. ac_prev=prefix ;;
  232. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  233. prefix="$ac_optarg" ;;
  234. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  235. | --program-pre | --program-pr | --program-p)
  236. ac_prev=program_prefix ;;
  237. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  238. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  239. program_prefix="$ac_optarg" ;;
  240. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  241. | --program-suf | --program-su | --program-s)
  242. ac_prev=program_suffix ;;
  243. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  244. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  245. program_suffix="$ac_optarg" ;;
  246. -program-transform-name | --program-transform-name \
  247. | --program-transform-nam | --program-transform-na \
  248. | --program-transform-n | --program-transform- \
  249. | --program-transform | --program-transfor \
  250. | --program-transfo | --program-transf \
  251. | --program-trans | --program-tran \
  252. | --progr-tra | --program-tr | --program-t)
  253. ac_prev=program_transform_name ;;
  254. -program-transform-name=* | --program-transform-name=* \
  255. | --program-transform-nam=* | --program-transform-na=* \
  256. | --program-transform-n=* | --program-transform-=* \
  257. | --program-transform=* | --program-transfor=* \
  258. | --program-transfo=* | --program-transf=* \
  259. | --program-trans=* | --program-tran=* \
  260. | --progr-tra=* | --program-tr=* | --program-t=*)
  261. program_transform_name="$ac_optarg" ;;
  262. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  263. | -silent | --silent | --silen | --sile | --sil)
  264. silent=yes ;;
  265. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  266. ac_prev=sbindir ;;
  267. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  268. | --sbi=* | --sb=*)
  269. sbindir="$ac_optarg" ;;
  270. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  271. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  272. | --sharedst | --shareds | --shared | --share | --shar \
  273. | --sha | --sh)
  274. ac_prev=sharedstatedir ;;
  275. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  276. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  277. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  278. | --sha=* | --sh=*)
  279. sharedstatedir="$ac_optarg" ;;
  280. -site | --site | --sit)
  281. ac_prev=site ;;
  282. -site=* | --site=* | --sit=*)
  283. site="$ac_optarg" ;;
  284. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  285. ac_prev=srcdir ;;
  286. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  287. srcdir="$ac_optarg" ;;
  288. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  289. | --syscon | --sysco | --sysc | --sys | --sy)
  290. ac_prev=sysconfdir ;;
  291. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  292. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  293. sysconfdir="$ac_optarg" ;;
  294. -target | --target | --targe | --targ | --tar | --ta | --t)
  295. ac_prev=target ;;
  296. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  297. target="$ac_optarg" ;;
  298. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  299. verbose=yes ;;
  300. -version | --version | --versio | --versi | --vers)
  301. echo "configure generated by autoconf version 2.12"
  302. exit 0 ;;
  303. -with-* | --with-*)
  304. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  305. # Reject names that are not valid shell variable names.
  306. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  307. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  308. fi
  309. ac_package=`echo $ac_package| sed 's/-/_/g'`
  310. case "$ac_option" in
  311. *=*) ;;
  312. *) ac_optarg=yes ;;
  313. esac
  314. eval "with_${ac_package}='$ac_optarg'" ;;
  315. -without-* | --without-*)
  316. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  317. # Reject names that are not valid shell variable names.
  318. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  319. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  320. fi
  321. ac_package=`echo $ac_package| sed 's/-/_/g'`
  322. eval "with_${ac_package}=no" ;;
  323. --x)
  324. # Obsolete; use --with-x.
  325. with_x=yes ;;
  326. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  327. | --x-incl | --x-inc | --x-in | --x-i)
  328. ac_prev=x_includes ;;
  329. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  330. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  331. x_includes="$ac_optarg" ;;
  332. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  333. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  334. ac_prev=x_libraries ;;
  335. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  336. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  337. x_libraries="$ac_optarg" ;;
  338. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  339. ;;
  340. *=*)
  341. varname=`echo "$ac_option"|sed -e 's/=.*//'`
  342. # Reject names that aren't valid shell variable names.
  343. if test -n "`echo $varname| sed 's/[a-zA-Z0-9_]//g'`"; then
  344. { echo "configure: error: $varname: invalid shell variable name" 1>&2; exit 1; }
  345. fi
  346. val="`echo "$ac_option"|sed 's/[^=]*=//'`"
  347. test -n "$verbose" && echo " setting shell variable $varname to $val"
  348. eval "$varname='$val'"
  349. eval "export $varname" ;;
  350. *)
  351. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  352. echo "configure: warning: $ac_option: invalid host type" 1>&2
  353. fi
  354. if test "x$nonopt" != xNONE; then
  355. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  356. fi
  357. nonopt="$ac_option"
  358. ;;
  359. esac
  360. done
  361. if test -n "$ac_prev"; then
  362. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  363. fi
  364. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  365. # File descriptor usage:
  366. # 0 standard input
  367. # 1 file creation
  368. # 2 errors and warnings
  369. # 3 some systems may open it to /dev/tty
  370. # 4 used on the Kubota Titan
  371. # 6 checking for... messages and results
  372. # 5 compiler messages saved in config.log
  373. if test "$silent" = yes; then
  374. exec 6>/dev/null
  375. else
  376. exec 6>&1
  377. fi
  378. exec 5>./config.log
  379. echo "\
  380. This file contains any messages produced by compilers while
  381. running configure, to aid debugging if configure makes a mistake.
  382. " 1>&5
  383. # Strip out --no-create and --no-recursion so they do not pile up.
  384. # Also quote any args containing shell metacharacters.
  385. ac_configure_args=
  386. for ac_arg
  387. do
  388. case "$ac_arg" in
  389. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  390. | --no-cr | --no-c) ;;
  391. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  392. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  393. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  394. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  395. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  396. esac
  397. done
  398. # NLS nuisances.
  399. # Only set these to C if already set. These must not be set unconditionally
  400. # because not all systems understand e.g. LANG=C (notably SCO).
  401. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  402. # Non-C LC_CTYPE values break the ctype check.
  403. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  404. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  405. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  406. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  407. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  408. rm -rf conftest* confdefs.h
  409. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  410. echo > confdefs.h
  411. # A filename unique to this package, relative to the directory that
  412. # configure is in, which we can look for to find out if srcdir is correct.
  413. ac_unique_file=jcmaster.c
  414. # Find the source files, if location was not specified.
  415. if test -z "$srcdir"; then
  416. ac_srcdir_defaulted=yes
  417. # Try the directory containing this script, then its parent.
  418. ac_prog=$0
  419. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  420. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  421. srcdir=$ac_confdir
  422. if test ! -r $srcdir/$ac_unique_file; then
  423. srcdir=..
  424. fi
  425. else
  426. ac_srcdir_defaulted=no
  427. fi
  428. if test ! -r $srcdir/$ac_unique_file; then
  429. if test "$ac_srcdir_defaulted" = yes; then
  430. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  431. else
  432. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  433. fi
  434. fi
  435. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  436. # Prefer explicitly selected file to automatically selected ones.
  437. if test -z "$CONFIG_SITE"; then
  438. if test "x$prefix" != xNONE; then
  439. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  440. else
  441. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  442. fi
  443. fi
  444. for ac_site_file in $CONFIG_SITE; do
  445. if test -r "$ac_site_file"; then
  446. echo "loading site script $ac_site_file"
  447. . "$ac_site_file"
  448. fi
  449. done
  450. ac_ext=c
  451. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  452. ac_cpp='$CPP $CPPFLAGS'
  453. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  454. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  455. cross_compiling=$ac_cv_prog_cc_cross
  456. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  457. # Stardent Vistra SVR4 grep lacks -e, says [email protected].
  458. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  459. ac_n= ac_c='
  460. ' ac_t=' '
  461. else
  462. ac_n=-n ac_c= ac_t=
  463. fi
  464. else
  465. ac_n= ac_c='\c' ac_t=
  466. fi
  467. # Extract the first word of "gcc", so it can be a program name with args.
  468. set dummy gcc; ac_word=$2
  469. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  470. echo "configure:538: checking for $ac_word" >&5
  471. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  472. echo $ac_n "(cached) $ac_c" 1>&6
  473. else
  474. if test -n "$CC"; then
  475. ac_cv_prog_CC="$CC" # Let the user override the test.
  476. else
  477. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  478. for ac_dir in $PATH; do
  479. test -z "$ac_dir" && ac_dir=.
  480. if test -f $ac_dir/$ac_word; then
  481. ac_cv_prog_CC="gcc"
  482. break
  483. fi
  484. done
  485. IFS="$ac_save_ifs"
  486. fi
  487. fi
  488. CC="$ac_cv_prog_CC"
  489. if test -n "$CC"; then
  490. echo "$ac_t""$CC" 1>&6
  491. else
  492. echo "$ac_t""no" 1>&6
  493. fi
  494. if test -z "$CC"; then
  495. # Extract the first word of "cc", so it can be a program name with args.
  496. set dummy cc; ac_word=$2
  497. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  498. echo "configure:567: checking for $ac_word" >&5
  499. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  500. echo $ac_n "(cached) $ac_c" 1>&6
  501. else
  502. if test -n "$CC"; then
  503. ac_cv_prog_CC="$CC" # Let the user override the test.
  504. else
  505. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  506. ac_prog_rejected=no
  507. for ac_dir in $PATH; do
  508. test -z "$ac_dir" && ac_dir=.
  509. if test -f $ac_dir/$ac_word; then
  510. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  511. ac_prog_rejected=yes
  512. continue
  513. fi
  514. ac_cv_prog_CC="cc"
  515. break
  516. fi
  517. done
  518. IFS="$ac_save_ifs"
  519. if test $ac_prog_rejected = yes; then
  520. # We found a bogon in the path, so make sure we never use it.
  521. set dummy $ac_cv_prog_CC
  522. shift
  523. if test $# -gt 0; then
  524. # We chose a different compiler from the bogus one.
  525. # However, it has the same basename, so the bogon will be chosen
  526. # first if we set CC to just the basename; use the full file name.
  527. shift
  528. set dummy "$ac_dir/$ac_word" "$@"
  529. shift
  530. ac_cv_prog_CC="$@"
  531. fi
  532. fi
  533. fi
  534. fi
  535. CC="$ac_cv_prog_CC"
  536. if test -n "$CC"; then
  537. echo "$ac_t""$CC" 1>&6
  538. else
  539. echo "$ac_t""no" 1>&6
  540. fi
  541. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  542. fi
  543. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  544. echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  545. ac_ext=c
  546. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  547. ac_cpp='$CPP $CPPFLAGS'
  548. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  549. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  550. cross_compiling=$ac_cv_prog_cc_cross
  551. cat > conftest.$ac_ext <<EOF
  552. #line 625 "configure"
  553. #include "confdefs.h"
  554. main(){return(0);}
  555. EOF
  556. if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  557. ac_cv_prog_cc_works=yes
  558. # If we can't run a trivial program, we are probably using a cross compiler.
  559. if (./conftest; exit) 2>/dev/null; then
  560. ac_cv_prog_cc_cross=no
  561. else
  562. ac_cv_prog_cc_cross=yes
  563. fi
  564. else
  565. echo "configure: failed program was:" >&5
  566. cat conftest.$ac_ext >&5
  567. ac_cv_prog_cc_works=no
  568. fi
  569. rm -fr conftest*
  570. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  571. if test $ac_cv_prog_cc_works = no; then
  572. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  573. fi
  574. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  575. echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  576. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  577. cross_compiling=$ac_cv_prog_cc_cross
  578. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  579. echo "configure:654: checking whether we are using GNU C" >&5
  580. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  581. echo $ac_n "(cached) $ac_c" 1>&6
  582. else
  583. cat > conftest.c <<EOF
  584. #ifdef __GNUC__
  585. yes;
  586. #endif
  587. EOF
  588. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  589. ac_cv_prog_gcc=yes
  590. else
  591. ac_cv_prog_gcc=no
  592. fi
  593. fi
  594. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  595. if test $ac_cv_prog_gcc = yes; then
  596. GCC=yes
  597. test "${CFLAGS+set}" = set || CFLAGS="-O2"
  598. else
  599. GCC=
  600. test "${CFLAGS+set}" = set || CFLAGS="-O"
  601. fi
  602. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  603. echo "configure:681: checking how to run the C preprocessor" >&5
  604. # On Suns, sometimes $CPP names a directory.
  605. if test -n "$CPP" && test -d "$CPP"; then
  606. CPP=
  607. fi
  608. if test -z "$CPP"; then
  609. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  610. echo $ac_n "(cached) $ac_c" 1>&6
  611. else
  612. # This must be in double quotes, not single quotes, because CPP may get
  613. # substituted into the Makefile and "${CC-cc}" will confuse make.
  614. CPP="${CC-cc} -E"
  615. # On the NeXT, cc -E runs the code through the compiler's parser,
  616. # not just through cpp.
  617. cat > conftest.$ac_ext <<EOF
  618. #line 696 "configure"
  619. #include "confdefs.h"
  620. #include <assert.h>
  621. Syntax Error
  622. EOF
  623. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  624. { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  625. ac_err=`grep -v '^ *+' conftest.out`
  626. if test -z "$ac_err"; then
  627. :
  628. else
  629. echo "$ac_err" >&5
  630. echo "configure: failed program was:" >&5
  631. cat conftest.$ac_ext >&5
  632. rm -rf conftest*
  633. CPP="${CC-cc} -E -traditional-cpp"
  634. cat > conftest.$ac_ext <<EOF
  635. #line 713 "configure"
  636. #include "confdefs.h"
  637. #include <assert.h>
  638. Syntax Error
  639. EOF
  640. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  641. { (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  642. ac_err=`grep -v '^ *+' conftest.out`
  643. if test -z "$ac_err"; then
  644. :
  645. else
  646. echo "$ac_err" >&5
  647. echo "configure: failed program was:" >&5
  648. cat conftest.$ac_ext >&5
  649. rm -rf conftest*
  650. CPP=/lib/cpp
  651. fi
  652. rm -f conftest*
  653. fi
  654. rm -f conftest*
  655. ac_cv_prog_CPP="$CPP"
  656. fi
  657. CPP="$ac_cv_prog_CPP"
  658. else
  659. ac_cv_prog_CPP="$CPP"
  660. fi
  661. echo "$ac_t""$CPP" 1>&6
  662. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  663. echo "configure:742: checking for function prototypes" >&5
  664. if eval "test \"`echo '$''{'ijg_cv_have_prototypes'+set}'`\" = set"; then
  665. echo $ac_n "(cached) $ac_c" 1>&6
  666. else
  667. cat > conftest.$ac_ext <<EOF
  668. #line 747 "configure"
  669. #include "confdefs.h"
  670. int testfunction (int arg1, int * arg2); /* check prototypes */
  671. struct methods_struct { /* check method-pointer declarations */
  672. int (*error_exit) (char *msgtext);
  673. int (*trace_message) (char *msgtext);
  674. int (*another_method) (void);
  675. };
  676. int testfunction (int arg1, int * arg2) /* check definitions */
  677. { return arg2[arg1]; }
  678. int test2function (void) /* check void arg list */
  679. { return 0; }
  680. int main() {
  681. ; return 0; }
  682. EOF
  683. if { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  684. rm -rf conftest*
  685. ijg_cv_have_prototypes=yes
  686. else
  687. echo "configure: failed program was:" >&5
  688. cat conftest.$ac_ext >&5
  689. rm -rf conftest*
  690. ijg_cv_have_prototypes=no
  691. fi
  692. rm -f conftest*
  693. fi
  694. echo "$ac_t""$ijg_cv_have_prototypes" 1>&6
  695. if test $ijg_cv_have_prototypes = yes; then
  696. cat >> confdefs.h <<\EOF
  697. #define HAVE_PROTOTYPES
  698. EOF
  699. else
  700. echo Your compiler does not seem to know about function prototypes.
  701. echo Perhaps it needs a special switch to enable ANSI C mode.
  702. echo If so, we recommend running configure like this:
  703. echo " ./configure CC='cc -switch'"
  704. echo where -switch is the proper switch.
  705. fi
  706. ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
  707. echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
  708. echo "configure:792: checking for stddef.h" >&5
  709. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  710. echo $ac_n "(cached) $ac_c" 1>&6
  711. else
  712. cat > conftest.$ac_ext <<EOF
  713. #line 797 "configure"
  714. #include "confdefs.h"
  715. #include <stddef.h>
  716. EOF
  717. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  718. { (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  719. ac_err=`grep -v '^ *+' conftest.out`
  720. if test -z "$ac_err"; then
  721. rm -rf conftest*
  722. eval "ac_cv_header_$ac_safe=yes"
  723. else
  724. echo "$ac_err" >&5
  725. echo "configure: failed program was:" >&5
  726. cat conftest.$ac_ext >&5
  727. rm -rf conftest*
  728. eval "ac_cv_header_$ac_safe=no"
  729. fi
  730. rm -f conftest*
  731. fi
  732. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  733. echo "$ac_t""yes" 1>&6
  734. cat >> confdefs.h <<\EOF
  735. #define HAVE_STDDEF_H
  736. EOF
  737. else
  738. echo "$ac_t""no" 1>&6
  739. fi
  740. ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
  741. echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  742. echo "configure:828: checking for stdlib.h" >&5
  743. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  744. echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746. cat > conftest.$ac_ext <<EOF
  747. #line 833 "configure"
  748. #include "confdefs.h"
  749. #include <stdlib.h>
  750. EOF
  751. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  752. { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  753. ac_err=`grep -v '^ *+' conftest.out`
  754. if test -z "$ac_err"; then
  755. rm -rf conftest*
  756. eval "ac_cv_header_$ac_safe=yes"
  757. else
  758. echo "$ac_err" >&5
  759. echo "configure: failed program was:" >&5
  760. cat conftest.$ac_ext >&5
  761. rm -rf conftest*
  762. eval "ac_cv_header_$ac_safe=no"
  763. fi
  764. rm -f conftest*
  765. fi
  766. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  767. echo "$ac_t""yes" 1>&6
  768. cat >> confdefs.h <<\EOF
  769. #define HAVE_STDLIB_H
  770. EOF
  771. else
  772. echo "$ac_t""no" 1>&6
  773. fi
  774. ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
  775. echo $ac_n "checking for string.h""... $ac_c" 1>&6
  776. echo "configure:864: checking for string.h" >&5
  777. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  778. echo $ac_n "(cached) $ac_c" 1>&6
  779. else
  780. cat > conftest.$ac_ext <<EOF
  781. #line 869 "configure"
  782. #include "confdefs.h"
  783. #include <string.h>
  784. EOF
  785. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  786. { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  787. ac_err=`grep -v '^ *+' conftest.out`
  788. if test -z "$ac_err"; then
  789. rm -rf conftest*
  790. eval "ac_cv_header_$ac_safe=yes"
  791. else
  792. echo "$ac_err" >&5
  793. echo "configure: failed program was:" >&5
  794. cat conftest.$ac_ext >&5
  795. rm -rf conftest*
  796. eval "ac_cv_header_$ac_safe=no"
  797. fi
  798. rm -f conftest*
  799. fi
  800. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  801. echo "$ac_t""yes" 1>&6
  802. :
  803. else
  804. echo "$ac_t""no" 1>&6
  805. cat >> confdefs.h <<\EOF
  806. #define NEED_BSD_STRINGS
  807. EOF
  808. fi
  809. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  810. echo "configure:900: checking for size_t" >&5
  811. cat > conftest.$ac_ext <<EOF
  812. #line 902 "configure"
  813. #include "confdefs.h"
  814. #ifdef HAVE_STDDEF_H
  815. #include <stddef.h>
  816. #endif
  817. #ifdef HAVE_STDLIB_H
  818. #include <stdlib.h>
  819. #endif
  820. #include <stdio.h>
  821. #ifdef NEED_BSD_STRINGS
  822. #include <strings.h>
  823. #else
  824. #include <string.h>
  825. #endif
  826. typedef size_t my_size_t;
  827. int main() {
  828. my_size_t foovar;
  829. ; return 0; }
  830. EOF
  831. if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  832. rm -rf conftest*
  833. ijg_size_t_ok=yes
  834. else
  835. echo "configure: failed program was:" >&5
  836. cat conftest.$ac_ext >&5
  837. rm -rf conftest*
  838. ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
  839. fi
  840. rm -f conftest*
  841. echo "$ac_t""$ijg_size_t_ok" 1>&6
  842. if test "$ijg_size_t_ok" != yes; then
  843. ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
  844. echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
  845. echo "configure:937: checking for sys/types.h" >&5
  846. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  847. echo $ac_n "(cached) $ac_c" 1>&6
  848. else
  849. cat > conftest.$ac_ext <<EOF
  850. #line 942 "configure"
  851. #include "confdefs.h"
  852. #include <sys/types.h>
  853. EOF
  854. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  855. { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  856. ac_err=`grep -v '^ *+' conftest.out`
  857. if test -z "$ac_err"; then
  858. rm -rf conftest*
  859. eval "ac_cv_header_$ac_safe=yes"
  860. else
  861. echo "$ac_err" >&5
  862. echo "configure: failed program was:" >&5
  863. cat conftest.$ac_ext >&5
  864. rm -rf conftest*
  865. eval "ac_cv_header_$ac_safe=no"
  866. fi
  867. rm -f conftest*
  868. fi
  869. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  870. echo "$ac_t""yes" 1>&6
  871. cat >> confdefs.h <<\EOF
  872. #define NEED_SYS_TYPES_H
  873. EOF
  874. cat > conftest.$ac_ext <<EOF
  875. #line 968 "configure"
  876. #include "confdefs.h"
  877. #include <sys/types.h>
  878. EOF
  879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  880. egrep "size_t" >/dev/null 2>&1; then
  881. rm -rf conftest*
  882. ijg_size_t_ok="size_t is in sys/types.h"
  883. else
  884. rm -rf conftest*
  885. ijg_size_t_ok=no
  886. fi
  887. rm -f conftest*
  888. else
  889. echo "$ac_t""no" 1>&6
  890. ijg_size_t_ok=no
  891. fi
  892. echo "$ac_t""$ijg_size_t_ok" 1>&6
  893. if test "$ijg_size_t_ok" = no; then
  894. echo Type size_t is not defined in any of the usual places.
  895. echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
  896. fi
  897. fi
  898. echo $ac_n "checking for type unsigned char""... $ac_c" 1>&6
  899. echo "configure:994: checking for type unsigned char" >&5
  900. cat > conftest.$ac_ext <<EOF
  901. #line 996 "configure"
  902. #include "confdefs.h"
  903. int main() {
  904. unsigned char un_char;
  905. ; return 0; }
  906. EOF
  907. if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  908. rm -rf conftest*
  909. echo "$ac_t""yes" 1>&6
  910. cat >> confdefs.h <<\EOF
  911. #define HAVE_UNSIGNED_CHAR
  912. EOF
  913. else
  914. echo "configure: failed program was:" >&5
  915. cat conftest.$ac_ext >&5
  916. rm -rf conftest*
  917. echo "$ac_t""no" 1>&6
  918. fi
  919. rm -f conftest*
  920. echo $ac_n "checking for type unsigned short""... $ac_c" 1>&6
  921. echo "configure:1018: checking for type unsigned short" >&5
  922. cat > conftest.$ac_ext <<EOF
  923. #line 1020 "configure"
  924. #include "confdefs.h"
  925. int main() {
  926. unsigned short un_short;
  927. ; return 0; }
  928. EOF
  929. if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  930. rm -rf conftest*
  931. echo "$ac_t""yes" 1>&6
  932. cat >> confdefs.h <<\EOF
  933. #define HAVE_UNSIGNED_SHORT
  934. EOF
  935. else
  936. echo "configure: failed program was:" >&5
  937. cat conftest.$ac_ext >&5
  938. rm -rf conftest*
  939. echo "$ac_t""no" 1>&6
  940. fi
  941. rm -f conftest*
  942. echo $ac_n "checking for type void""... $ac_c" 1>&6
  943. echo "configure:1042: checking for type void" >&5
  944. cat > conftest.$ac_ext <<EOF
  945. #line 1044 "configure"
  946. #include "confdefs.h"
  947. /* Caution: a C++ compiler will insist on valid prototypes */
  948. typedef void * void_ptr; /* check void * */
  949. #ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
  950. typedef void (*void_func) (int a, int b);
  951. #else
  952. typedef void (*void_func) ();
  953. #endif
  954. #ifdef HAVE_PROTOTYPES /* check void function result */
  955. void test3function (void_ptr arg1, void_func arg2)
  956. #else
  957. void test3function (arg1, arg2)
  958. void_ptr arg1;
  959. void_func arg2;
  960. #endif
  961. {
  962. char * locptr = (char *) arg1; /* check casting to and from void * */
  963. arg1 = (void *) locptr;
  964. (*arg2) (1, 2); /* check call of fcn returning void */
  965. }
  966. int main() {
  967. ; return 0; }
  968. EOF
  969. if { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  970. rm -rf conftest*
  971. echo "$ac_t""yes" 1>&6
  972. else
  973. echo "configure: failed program was:" >&5
  974. cat conftest.$ac_ext >&5
  975. rm -rf conftest*
  976. echo "$ac_t""no" 1>&6
  977. cat >> confdefs.h <<\EOF
  978. #define void char
  979. EOF
  980. fi
  981. rm -f conftest*
  982. echo $ac_n "checking for working const""... $ac_c" 1>&6
  983. echo "configure:1088: checking for working const" >&5
  984. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  985. echo $ac_n "(cached) $ac_c" 1>&6
  986. else
  987. cat > conftest.$ac_ext <<EOF
  988. #line 1093 "configure"
  989. #include "confdefs.h"
  990. int main() {
  991. /* Ultrix mips cc rejects this. */
  992. typedef int charset[2]; const charset x;
  993. /* SunOS 4.1.1 cc rejects this. */
  994. char const *const *ccp;
  995. char **p;
  996. /* NEC SVR4.0.2 mips cc rejects this. */
  997. struct point {int x, y;};
  998. static struct point const zero = {0,0};
  999. /* AIX XL C 1.02.0.0 rejects this.
  1000. It does not let you subtract one const X* pointer from another in an arm
  1001. of an if-expression whose if-part is not a constant expression */
  1002. const char *g = "string";
  1003. ccp = &g + (g ? g-g : 0);
  1004. /* HPUX 7.0 cc rejects these. */
  1005. ++ccp;
  1006. p = (char**) ccp;
  1007. ccp = (char const *const *) p;
  1008. { /* SCO 3.2v4 cc rejects this. */
  1009. char *t;
  1010. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1011. *t++ = 0;
  1012. }
  1013. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1014. int x[] = {25, 17};
  1015. const int *foo = &x[0];
  1016. ++foo;
  1017. }
  1018. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1019. typedef const int *iptr;
  1020. iptr p = 0;
  1021. ++p;
  1022. }
  1023. { /* AIX XL C 1.02.0.0 rejects this saying
  1024. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1025. struct s { int j; const int *ap[3]; };
  1026. struct s *b; b->j = 5;
  1027. }
  1028. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1029. const int foo = 10;
  1030. }
  1031. ; return 0; }
  1032. EOF
  1033. if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1034. rm -rf conftest*
  1035. ac_cv_c_const=yes
  1036. else
  1037. echo "configure: failed program was:" >&5
  1038. cat conftest.$ac_ext >&5
  1039. rm -rf conftest*
  1040. ac_cv_c_const=no
  1041. fi
  1042. rm -f conftest*
  1043. fi
  1044. echo "$ac_t""$ac_cv_c_const" 1>&6
  1045. if test $ac_cv_c_const = no; then
  1046. cat >> confdefs.h <<\EOF
  1047. #define const
  1048. EOF
  1049. fi
  1050. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1051. echo "configure:1163: checking for inline" >&5
  1052. ijg_cv_inline=""
  1053. cat > conftest.$ac_ext <<EOF
  1054. #line 1166 "configure"
  1055. #include "confdefs.h"
  1056. int main() {
  1057. } __inline__ int foo() { return 0; }
  1058. int bar() { return foo();
  1059. ; return 0; }
  1060. EOF
  1061. if { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1062. rm -rf conftest*
  1063. ijg_cv_inline="__inline__"
  1064. else
  1065. echo "configure: failed program was:" >&5
  1066. cat conftest.$ac_ext >&5
  1067. rm -rf conftest*
  1068. cat > conftest.$ac_ext <<EOF
  1069. #line 1182 "configure"
  1070. #include "confdefs.h"
  1071. int main() {
  1072. } __inline int foo() { return 0; }
  1073. int bar() { return foo();
  1074. ; return 0; }
  1075. EOF
  1076. if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1077. rm -rf conftest*
  1078. ijg_cv_inline="__inline"
  1079. else
  1080. echo "configure: failed program was:" >&5
  1081. cat conftest.$ac_ext >&5
  1082. rm -rf conftest*
  1083. cat > conftest.$ac_ext <<EOF
  1084. #line 1198 "configure"
  1085. #include "confdefs.h"
  1086. int main() {
  1087. } inline int foo() { return 0; }
  1088. int bar() { return foo();
  1089. ; return 0; }
  1090. EOF
  1091. if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1092. rm -rf conftest*
  1093. ijg_cv_inline="inline"
  1094. else
  1095. echo "configure: failed program was:" >&5
  1096. cat conftest.$ac_ext >&5
  1097. fi
  1098. rm -f conftest*
  1099. fi
  1100. rm -f conftest*
  1101. fi
  1102. rm -f conftest*
  1103. echo "$ac_t""$ijg_cv_inline" 1>&6
  1104. cat >> confdefs.h <<EOF
  1105. #define INLINE $ijg_cv_inline
  1106. EOF
  1107. echo $ac_n "checking for broken incomplete types""... $ac_c" 1>&6
  1108. echo "configure:1224: checking for broken incomplete types" >&5
  1109. cat > conftest.$ac_ext <<EOF
  1110. #line 1226 "configure"
  1111. #include "confdefs.h"
  1112. typedef struct undefined_structure * undef_struct_ptr;
  1113. int main() {
  1114. ; return 0; }
  1115. EOF
  1116. if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1117. rm -rf conftest*
  1118. echo "$ac_t""ok" 1>&6
  1119. else
  1120. echo "configure: failed program was:" >&5
  1121. cat conftest.$ac_ext >&5
  1122. rm -rf conftest*
  1123. echo "$ac_t""broken" 1>&6
  1124. cat >> confdefs.h <<\EOF
  1125. #define INCOMPLETE_TYPES_BROKEN
  1126. EOF
  1127. fi
  1128. rm -f conftest*
  1129. echo $ac_n "checking for short external names""... $ac_c" 1>&6
  1130. echo "configure:1248: checking for short external names" >&5
  1131. cat > conftest.$ac_ext <<EOF
  1132. #line 1250 "configure"
  1133. #include "confdefs.h"
  1134. int possibly_duplicate_function () { return 0; }
  1135. int possibly_dupli_function () { return 1; }
  1136. int main() {
  1137. ; return 0; }
  1138. EOF
  1139. if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1140. rm -rf conftest*
  1141. echo "$ac_t""ok" 1>&6
  1142. else
  1143. echo "configure: failed program was:" >&5
  1144. cat conftest.$ac_ext >&5
  1145. rm -rf conftest*
  1146. echo "$ac_t""short" 1>&6
  1147. cat >> confdefs.h <<\EOF
  1148. #define NEED_SHORT_EXTERNAL_NAMES
  1149. EOF
  1150. fi
  1151. rm -f conftest*
  1152. echo $ac_n "checking to see if char is signed""... $ac_c" 1>&6
  1153. echo "configure:1275: checking to see if char is signed" >&5
  1154. if test "$cross_compiling" = yes; then
  1155. echo Assuming that char is signed on target machine.
  1156. echo If it is unsigned, this will be a little bit inefficient.
  1157. else
  1158. cat > conftest.$ac_ext <<EOF
  1159. #line 1282 "configure"
  1160. #include "confdefs.h"
  1161. #ifdef HAVE_PROTOTYPES
  1162. int is_char_signed (int arg)
  1163. #else
  1164. int is_char_signed (arg)
  1165. int arg;
  1166. #endif
  1167. {
  1168. if (arg == 189) { /* expected result for unsigned char */
  1169. return 0; /* type char is unsigned */
  1170. }
  1171. else if (arg != -67) { /* expected result for signed char */
  1172. printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
  1173. printf("I fear the JPEG software will not work at all.\n\n");
  1174. }
  1175. return 1; /* assume char is signed otherwise */
  1176. }
  1177. char signed_char_check = (char) (-67);
  1178. main() {
  1179. exit(is_char_signed((int) signed_char_check));
  1180. }
  1181. EOF
  1182. if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1183. then
  1184. echo "$ac_t""no" 1>&6
  1185. cat >> confdefs.h <<\EOF
  1186. #define CHAR_IS_UNSIGNED
  1187. EOF
  1188. else
  1189. echo "configure: failed program was:" >&5
  1190. cat conftest.$ac_ext >&5
  1191. rm -fr conftest*
  1192. echo "$ac_t""yes" 1>&6
  1193. fi
  1194. rm -fr conftest*
  1195. fi
  1196. echo $ac_n "checking to see if right shift is signed""... $ac_c" 1>&6
  1197. echo "configure:1323: checking to see if right shift is signed" >&5
  1198. if test "$cross_compiling" = yes; then
  1199. echo "$ac_t""Assuming that right shift is signed on target machine." 1>&6
  1200. else
  1201. cat > conftest.$ac_ext <<EOF
  1202. #line 1328 "configure"
  1203. #include "confdefs.h"
  1204. #ifdef HAVE_PROTOTYPES
  1205. int is_shifting_signed (long arg)
  1206. #else
  1207. int is_shifting_signed (arg)
  1208. long arg;
  1209. #endif
  1210. /* See whether right-shift on a long is signed or not. */
  1211. {
  1212. long res = arg >> 4;
  1213. if (res == -0x7F7E80CL) { /* expected result for signed shift */
  1214. return 1; /* right shift is signed */
  1215. }
  1216. /* see if unsigned-shift hack will fix it. */
  1217. /* we can't just test exact value since it depends on width of long... */
  1218. res |= (~0L) << (32-4);
  1219. if (res == -0x7F7E80CL) { /* expected result now? */
  1220. return 0; /* right shift is unsigned */
  1221. }
  1222. printf("Right shift isn't acting as I expect it to.\n");
  1223. printf("I fear the JPEG software will not work at all.\n\n");
  1224. return 0; /* try it with unsigned anyway */
  1225. }
  1226. main() {
  1227. exit(is_shifting_signed(-0x7F7E80B1L));
  1228. }
  1229. EOF
  1230. if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1231. then
  1232. echo "$ac_t""no" 1>&6
  1233. cat >> confdefs.h <<\EOF
  1234. #define RIGHT_SHIFT_IS_UNSIGNED
  1235. EOF
  1236. else
  1237. echo "configure: failed program was:" >&5
  1238. cat conftest.$ac_ext >&5
  1239. rm -fr conftest*
  1240. echo "$ac_t""yes" 1>&6
  1241. fi
  1242. rm -fr conftest*
  1243. fi
  1244. echo $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6
  1245. echo "configure:1375: checking to see if fopen accepts b spec" >&5
  1246. if test "$cross_compiling" = yes; then
  1247. echo "$ac_t""Assuming that it does." 1>&6
  1248. else
  1249. cat > conftest.$ac_ext <<EOF
  1250. #line 1380 "configure"
  1251. #include "confdefs.h"
  1252. #include <stdio.h>
  1253. main() {
  1254. if (fopen("conftestdata", "wb") != NULL)
  1255. exit(0);
  1256. exit(1);
  1257. }
  1258. EOF
  1259. if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1260. then
  1261. echo "$ac_t""yes" 1>&6
  1262. else
  1263. echo "configure: failed program was:" >&5
  1264. cat conftest.$ac_ext >&5
  1265. rm -fr conftest*
  1266. echo "$ac_t""no" 1>&6
  1267. cat >> confdefs.h <<\EOF
  1268. #define DONT_USE_B_MODE
  1269. EOF
  1270. fi
  1271. rm -fr conftest*
  1272. fi
  1273. ac_aux_dir=
  1274. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1275. if test -f $ac_dir/install-sh; then
  1276. ac_aux_dir=$ac_dir
  1277. ac_install_sh="$ac_aux_dir/install-sh -c"
  1278. break
  1279. elif test -f $ac_dir/install.sh; then
  1280. ac_aux_dir=$ac_dir
  1281. ac_install_sh="$ac_aux_dir/install.sh -c"
  1282. break
  1283. fi
  1284. done
  1285. if test -z "$ac_aux_dir"; then
  1286. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1287. fi
  1288. ac_config_guess=$ac_aux_dir/config.guess
  1289. ac_config_sub=$ac_aux_dir/config.sub
  1290. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1291. # Find a good install program. We prefer a C program (faster),
  1292. # so one script is as good as another. But avoid the broken or
  1293. # incompatible versions:
  1294. # SysV /etc/install, /usr/sbin/install
  1295. # SunOS /usr/etc/install
  1296. # IRIX /sbin/install
  1297. # AIX /bin/install
  1298. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1299. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1300. # ./install, which can be erroneously created by make from ./install.sh.
  1301. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1302. echo "configure:1436: checking for a BSD compatible install" >&5
  1303. if test -z "$INSTALL"; then
  1304. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1305. echo $ac_n "(cached) $ac_c" 1>&6
  1306. else
  1307. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  1308. for ac_dir in $PATH; do
  1309. # Account for people who put trailing slashes in PATH elements.
  1310. case "$ac_dir/" in
  1311. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1312. *)
  1313. # OSF1 and SCO ODT 3.0 have their own names for install.
  1314. for ac_prog in ginstall installbsd scoinst install; do
  1315. if test -f $ac_dir/$ac_prog; then
  1316. if test $ac_prog = install &&
  1317. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1318. # AIX install. It has an incompatible calling convention.
  1319. # OSF/1 installbsd also uses dspmsg, but is usable.
  1320. :
  1321. else
  1322. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1323. break 2
  1324. fi
  1325. fi
  1326. done
  1327. ;;
  1328. esac
  1329. done
  1330. IFS="$ac_save_IFS"
  1331. fi
  1332. if test "${ac_cv_path_install+set}" = set; then
  1333. INSTALL="$ac_cv_path_install"
  1334. else
  1335. # As a last resort, use the slow shell script. We don't cache a
  1336. # path for INSTALL within a source directory, because that will
  1337. # break other packages using the cache if that directory is
  1338. # removed, or if the path is relative.
  1339. INSTALL="$ac_install_sh"
  1340. fi
  1341. fi
  1342. echo "$ac_t""$INSTALL" 1>&6
  1343. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1344. # It thinks the first close brace ends the variable substitution.
  1345. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1346. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1347. # Extract the first word of "ranlib", so it can be a program name with args.
  1348. set dummy ranlib; ac_word=$2
  1349. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1350. echo "configure:1488: checking for $ac_word" >&5
  1351. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1352. echo $ac_n "(cached) $ac_c" 1>&6
  1353. else
  1354. if test -n "$RANLIB"; then
  1355. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1356. else
  1357. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1358. for ac_dir in $PATH; do
  1359. test -z "$ac_dir" && ac_dir=.
  1360. if test -f $ac_dir/$ac_word; then
  1361. ac_cv_prog_RANLIB="ranlib"
  1362. break
  1363. fi
  1364. done
  1365. IFS="$ac_save_ifs"
  1366. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1367. fi
  1368. fi
  1369. RANLIB="$ac_cv_prog_RANLIB"
  1370. if test -n "$RANLIB"; then
  1371. echo "$ac_t""$RANLIB" 1>&6
  1372. else
  1373. echo "$ac_t""no" 1>&6
  1374. fi
  1375. # Decide whether to use libtool,
  1376. # and if so whether to build shared, static, or both flavors of library.
  1377. LTSHARED="no"
  1378. # Check whether --enable-shared or --disable-shared was given.
  1379. if test "${enable_shared+set}" = set; then
  1380. enableval="$enable_shared"
  1381. LTSHARED="$enableval"
  1382. fi
  1383. LTSTATIC="no"
  1384. # Check whether --enable-static or --disable-static was given.
  1385. if test "${enable_static+set}" = set; then
  1386. enableval="$enable_static"
  1387. LTSTATIC="$enableval"
  1388. fi
  1389. if test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; then
  1390. USELIBTOOL="yes"
  1391. LIBTOOL="./libtool"
  1392. O="lo"
  1393. A="la"
  1394. LN='$(LIBTOOL) --mode=link $(CC)'
  1395. INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}'
  1396. INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM"
  1397. else
  1398. USELIBTOOL="no"
  1399. LIBTOOL=""
  1400. O="o"
  1401. A="a"
  1402. LN='$(CC)'
  1403. INSTALL_LIB="$INSTALL_DATA"
  1404. fi
  1405. # Configure libtool if needed.
  1406. if test $USELIBTOOL = yes; then
  1407. disable_shared=
  1408. disable_static=
  1409. if test "x$LTSHARED" = xno; then
  1410. disable_shared="--disable-shared"
  1411. fi
  1412. if test "x$LTSTATIC" = xno; then
  1413. disable_static="--disable-static"
  1414. fi
  1415. $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
  1416. fi
  1417. # Select memory manager depending on user input.
  1418. # If no "-enable-maxmem", use jmemnobs
  1419. MEMORYMGR='jmemnobs.$(O)'
  1420. MAXMEM="no"
  1421. # Check whether --enable-maxmem or --disable-maxmem was given.
  1422. if test "${enable_maxmem+set}" = set; then
  1423. enableval="$enable_maxmem"
  1424. MAXMEM="$enableval"
  1425. fi
  1426. # support --with-maxmem for backwards compatibility with IJG V5.
  1427. # Check whether --with-maxmem or --without-maxmem was given.
  1428. if test "${with_maxmem+set}" = set; then
  1429. withval="$with_maxmem"
  1430. MAXMEM="$withval"
  1431. fi
  1432. if test "x$MAXMEM" = xyes; then
  1433. MAXMEM=1
  1434. fi
  1435. if test "x$MAXMEM" != xno; then
  1436. if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
  1437. { echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; }
  1438. fi
  1439. DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
  1440. cat >> confdefs.h <<EOF
  1441. #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
  1442. EOF
  1443. echo $ac_n "checking for 'tmpfile()'""... $ac_c" 1>&6
  1444. echo "configure:1596: checking for 'tmpfile()'" >&5
  1445. cat > conftest.$ac_ext <<EOF
  1446. #line 1598 "configure"
  1447. #include "confdefs.h"
  1448. #include <stdio.h>
  1449. int main() {
  1450. FILE * tfile = tmpfile();
  1451. ; return 0; }
  1452. EOF
  1453. if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1454. rm -rf conftest*
  1455. echo "$ac_t""yes" 1>&6
  1456. MEMORYMGR='jmemansi.$(O)'
  1457. else
  1458. echo "configure: failed program was:" >&5
  1459. cat conftest.$ac_ext >&5
  1460. rm -rf conftest*
  1461. echo "$ac_t""no" 1>&6
  1462. MEMORYMGR='jmemname.$(O)'
  1463. cat >> confdefs.h <<\EOF
  1464. #define NEED_SIGNAL_CATCHER
  1465. EOF
  1466. echo $ac_n "checking for 'mktemp()'""... $ac_c" 1>&6
  1467. echo "configure:1620: checking for 'mktemp()'" >&5
  1468. cat > conftest.$ac_ext <<EOF
  1469. #line 1622 "configure"
  1470. #include "confdefs.h"
  1471. int main() {
  1472. char fname[80]; mktemp(fname);
  1473. ; return 0; }
  1474. EOF
  1475. if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1476. rm -rf conftest*
  1477. echo "$ac_t""yes" 1>&6
  1478. else
  1479. echo "configure: failed program was:" >&5
  1480. cat conftest.$ac_ext >&5
  1481. rm -rf conftest*
  1482. echo "$ac_t""no" 1>&6
  1483. cat >> confdefs.h <<\EOF
  1484. #define NO_MKTEMP
  1485. EOF
  1486. fi
  1487. rm -f conftest*
  1488. fi
  1489. rm -f conftest*
  1490. fi
  1491. # Extract the library version ID from jpeglib.h.
  1492. echo $ac_n "checking libjpeg version number""... $ac_c" 1>&6
  1493. echo "configure:1650: checking libjpeg version number" >&5
  1494. JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
  1495. echo "$ac_t""$JPEG_LIB_VERSION" 1>&6
  1496. # Prepare to massage makefile.cfg correctly.
  1497. if test $ijg_cv_have_prototypes = yes; then
  1498. A2K_DEPS=""
  1499. COM_A2K="# "
  1500. else
  1501. A2K_DEPS="ansi2knr"
  1502. COM_A2K=""
  1503. fi
  1504. # ansi2knr needs -DBSD if string.h is missing
  1505. if test $ac_cv_header_string_h = no; then
  1506. ANSI2KNRFLAGS="-DBSD"
  1507. else
  1508. ANSI2KNRFLAGS=""
  1509. fi
  1510. # Substitutions to enable or disable libtool-related stuff
  1511. if test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; then
  1512. COM_LT=""
  1513. else
  1514. COM_LT="# "
  1515. fi
  1516. if test "x$LTSHARED" != xno; then
  1517. FORCE_INSTALL_LIB="install-lib"
  1518. else
  1519. FORCE_INSTALL_LIB=""
  1520. fi
  1521. # Set up -I directives
  1522. if test "x$srcdir" = x.; then
  1523. INCLUDEFLAGS='-I$(srcdir)'
  1524. else
  1525. INCLUDEFLAGS='-I. -I$(srcdir)'
  1526. fi
  1527. trap '' 1 2 15
  1528. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1529. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1530. # Let make expand exec_prefix.
  1531. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1532. # Any assignment to VPATH causes Sun make to only execute
  1533. # the first set of double-colon rules, so remove it if not needed.
  1534. # If there is a colon in the path, we need to keep it.
  1535. if test "x$srcdir" = x.; then
  1536. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1537. fi
  1538. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1539. DEFS=-DHAVE_CONFIG_H
  1540. # Without the "./", some shells look in PATH for config.status.
  1541. : ${CONFIG_STATUS=./config.status}
  1542. echo creating $CONFIG_STATUS
  1543. rm -f $CONFIG_STATUS
  1544. cat > $CONFIG_STATUS <<EOF
  1545. #! /bin/sh
  1546. # Generated automatically by configure.
  1547. # Run this file to recreate the current configuration.
  1548. # This directory was configured as follows,
  1549. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1550. #
  1551. # $0 $ac_configure_args
  1552. #
  1553. # Compiler output produced by configure, useful for debugging
  1554. # configure, is in ./config.log if it exists.
  1555. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1556. for ac_option
  1557. do
  1558. case "\$ac_option" in
  1559. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1560. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1561. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1562. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1563. echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1564. exit 0 ;;
  1565. -help | --help | --hel | --he | --h)
  1566. echo "\$ac_cs_usage"; exit 0 ;;
  1567. *) echo "\$ac_cs_usage"; exit 1 ;;
  1568. esac
  1569. done
  1570. ac_given_srcdir=$srcdir
  1571. ac_given_INSTALL="$INSTALL"
  1572. trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1573. EOF
  1574. cat >> $CONFIG_STATUS <<EOF
  1575. # Protect against being on the right side of a sed subst in config.status.
  1576. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1577. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1578. $ac_vpsub
  1579. $extrasub
  1580. s%@CFLAGS@%$CFLAGS%g
  1581. s%@CPPFLAGS@%$CPPFLAGS%g
  1582. s%@CXXFLAGS@%$CXXFLAGS%g
  1583. s%@DEFS@%$DEFS%g
  1584. s%@LDFLAGS@%$LDFLAGS%g
  1585. s%@LIBS@%$LIBS%g
  1586. s%@exec_prefix@%$exec_prefix%g
  1587. s%@prefix@%$prefix%g
  1588. s%@program_transform_name@%$program_transform_name%g
  1589. s%@bindir@%$bindir%g
  1590. s%@sbindir@%$sbindir%g
  1591. s%@libexecdir@%$libexecdir%g
  1592. s%@datadir@%$datadir%g
  1593. s%@sysconfdir@%$sysconfdir%g
  1594. s%@sharedstatedir@%$sharedstatedir%g
  1595. s%@localstatedir@%$localstatedir%g
  1596. s%@libdir@%$libdir%g
  1597. s%@includedir@%$includedir%g
  1598. s%@oldincludedir@%$oldincludedir%g
  1599. s%@infodir@%$infodir%g
  1600. s%@mandir@%$mandir%g
  1601. s%@CC@%$CC%g
  1602. s%@CPP@%$CPP%g
  1603. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1604. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1605. s%@RANLIB@%$RANLIB%g
  1606. s%@LIBTOOL@%$LIBTOOL%g
  1607. s%@O@%$O%g
  1608. s%@A@%$A%g
  1609. s%@LN@%$LN%g
  1610. s%@INSTALL_LIB@%$INSTALL_LIB%g
  1611. s%@MEMORYMGR@%$MEMORYMGR%g
  1612. s%@JPEG_LIB_VERSION@%$JPEG_LIB_VERSION%g
  1613. s%@A2K_DEPS@%$A2K_DEPS%g
  1614. s%@COM_A2K@%$COM_A2K%g
  1615. s%@ANSI2KNRFLAGS@%$ANSI2KNRFLAGS%g
  1616. s%@COM_LT@%$COM_LT%g
  1617. s%@FORCE_INSTALL_LIB@%$FORCE_INSTALL_LIB%g
  1618. s%@INCLUDEFLAGS@%$INCLUDEFLAGS%g
  1619. CEOF
  1620. EOF
  1621. cat >> $CONFIG_STATUS <<\EOF
  1622. # Split the substitutions into bite-sized pieces for seds with
  1623. # small command number limits, like on Digital OSF/1 and HP-UX.
  1624. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1625. ac_file=1 # Number of current file.
  1626. ac_beg=1 # First line for current file.
  1627. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1628. ac_more_lines=:
  1629. ac_sed_cmds=""
  1630. while $ac_more_lines; do
  1631. if test $ac_beg -gt 1; then
  1632. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1633. else
  1634. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1635. fi
  1636. if test ! -s conftest.s$ac_file; then
  1637. ac_more_lines=false
  1638. rm -f conftest.s$ac_file
  1639. else
  1640. if test -z "$ac_sed_cmds"; then
  1641. ac_sed_cmds="sed -f conftest.s$ac_file"
  1642. else
  1643. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1644. fi
  1645. ac_file=`expr $ac_file + 1`
  1646. ac_beg=$ac_end
  1647. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1648. fi
  1649. done
  1650. if test -z "$ac_sed_cmds"; then
  1651. ac_sed_cmds=cat
  1652. fi
  1653. EOF
  1654. cat >> $CONFIG_STATUS <<EOF
  1655. CONFIG_FILES=\${CONFIG_FILES-"Makefile:makefile.cfg"}
  1656. EOF
  1657. cat >> $CONFIG_STATUS <<\EOF
  1658. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1659. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1660. case "$ac_file" in
  1661. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1662. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1663. *) ac_file_in="${ac_file}.in" ;;
  1664. esac
  1665. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1666. # Remove last slash and all that follows it. Not all systems have dirname.
  1667. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1668. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1669. # The file is in a subdirectory.
  1670. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1671. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1672. # A "../" for each directory in $ac_dir_suffix.
  1673. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1674. else
  1675. ac_dir_suffix= ac_dots=
  1676. fi
  1677. case "$ac_given_srcdir" in
  1678. .) srcdir=.
  1679. if test -z "$ac_dots"; then top_srcdir=.
  1680. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1681. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1682. *) # Relative path.
  1683. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1684. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1685. esac
  1686. case "$ac_given_INSTALL" in
  1687. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1688. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1689. esac
  1690. echo creating "$ac_file"
  1691. rm -f "$ac_file"
  1692. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1693. case "$ac_file" in
  1694. *Makefile*) ac_comsub="1i\\
  1695. # $configure_input" ;;
  1696. *) ac_comsub= ;;
  1697. esac
  1698. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1699. sed -e "$ac_comsub
  1700. s%@configure_input@%$configure_input%g
  1701. s%@srcdir@%$srcdir%g
  1702. s%@top_srcdir@%$top_srcdir%g
  1703. s%@INSTALL@%$INSTALL%g
  1704. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1705. fi; done
  1706. rm -f conftest.s*
  1707. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1708. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1709. #
  1710. # ac_d sets the value in "#define NAME VALUE" lines.
  1711. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1712. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1713. ac_dC='\3'
  1714. ac_dD='%g'
  1715. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1716. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1717. ac_uB='\([ ]\)%\1#\2define\3'
  1718. ac_uC=' '
  1719. ac_uD='\4%g'
  1720. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1721. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1722. ac_eB='$%\1#\2define\3'
  1723. ac_eC=' '
  1724. ac_eD='%g'
  1725. if test "${CONFIG_HEADERS+set}" != set; then
  1726. EOF
  1727. cat >> $CONFIG_STATUS <<EOF
  1728. CONFIG_HEADERS="jconfig.h:jconfig.cfg"
  1729. EOF
  1730. cat >> $CONFIG_STATUS <<\EOF
  1731. fi
  1732. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1733. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1734. case "$ac_file" in
  1735. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1736. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1737. *) ac_file_in="${ac_file}.in" ;;
  1738. esac
  1739. echo creating $ac_file
  1740. rm -f conftest.frag conftest.in conftest.out
  1741. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1742. cat $ac_file_inputs > conftest.in
  1743. EOF
  1744. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1745. # the proper values into config.h.in to produce config.h. And first:
  1746. # Protect against being on the right side of a sed subst in config.status.
  1747. # Protect against being in an unquoted here document in config.status.
  1748. rm -f conftest.vals
  1749. cat > conftest.hdr <<\EOF
  1750. s/[\\&%]/\\&/g
  1751. s%[\\$`]%\\&%g
  1752. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1753. s%ac_d%ac_u%gp
  1754. s%ac_u%ac_e%gp
  1755. EOF
  1756. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1757. rm -f conftest.hdr
  1758. # This sed command replaces #undef with comments. This is necessary, for
  1759. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1760. # on some systems where configure will not decide to define it.
  1761. cat >> conftest.vals <<\EOF
  1762. EOF
  1763. # Break up conftest.vals because some shells have a limit on
  1764. # the size of here documents, and old seds have small limits too.
  1765. rm -f conftest.tail
  1766. while :
  1767. do
  1768. ac_lines=`grep -c . conftest.vals`
  1769. # grep -c gives empty output for an empty file on some AIX systems.
  1770. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1771. # Write a limited-size here document to conftest.frag.
  1772. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1773. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1774. echo 'CEOF
  1775. sed -f conftest.frag conftest.in > conftest.out
  1776. rm -f conftest.in
  1777. mv conftest.out conftest.in
  1778. ' >> $CONFIG_STATUS
  1779. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1780. rm -f conftest.vals
  1781. mv conftest.tail conftest.vals
  1782. done
  1783. rm -f conftest.vals
  1784. cat >> $CONFIG_STATUS <<\EOF
  1785. rm -f conftest.frag conftest.h
  1786. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  1787. cat conftest.in >> conftest.h
  1788. rm -f conftest.in
  1789. if cmp -s $ac_file conftest.h 2>/dev/null; then
  1790. echo "$ac_file is unchanged"
  1791. rm -f conftest.h
  1792. else
  1793. # Remove last slash and all that follows it. Not all systems have dirname.
  1794. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1795. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1796. # The file is in a subdirectory.
  1797. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1798. fi
  1799. rm -f $ac_file
  1800. mv conftest.h $ac_file
  1801. fi
  1802. fi; done
  1803. EOF
  1804. cat >> $CONFIG_STATUS <<EOF
  1805. EOF
  1806. cat >> $CONFIG_STATUS <<\EOF
  1807. exit 0
  1808. EOF
  1809. chmod +x $CONFIG_STATUS
  1810. rm -fr confdefs* $ac_clean_files
  1811. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1