configure 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.4
  4. # Copyright (C) 1992, 1993, 1994 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_default_prefix=/usr
  13. ac_help="$ac_help
  14. --with-arch=value set/override (Debian) architecture value"
  15. ac_help="$ac_help
  16. --with-newdeb make dpkg-deb default to new archives"
  17. ac_help="$ac_help
  18. --with-olddeb make dpkg-deb default to old archives"
  19. # Initialize some variables set by options.
  20. # The variables have the same names as the options, with
  21. # dashes changed to underlines.
  22. build=NONE
  23. cache_file=./config.cache
  24. exec_prefix=NONE
  25. host=NONE
  26. no_create=
  27. nonopt=NONE
  28. no_recursion=
  29. prefix=NONE
  30. program_prefix=NONE
  31. program_suffix=NONE
  32. program_transform_name=s,x,x,
  33. silent=
  34. site=
  35. srcdir=
  36. target=NONE
  37. verbose=
  38. x_includes=NONE
  39. x_libraries=NONE
  40. # Initialize some other variables.
  41. subdirs=
  42. ac_prev=
  43. for ac_option
  44. do
  45. # If the previous option needs an argument, assign it.
  46. if test -n "$ac_prev"; then
  47. eval "$ac_prev=\$ac_option"
  48. ac_prev=
  49. continue
  50. fi
  51. case "$ac_option" in
  52. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  53. *) ac_optarg= ;;
  54. esac
  55. # Accept the important Cygnus configure options, so we can diagnose typos.
  56. case "$ac_option" in
  57. -build | --build | --buil | --bui | --bu | --b)
  58. ac_prev=build ;;
  59. -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  60. build="$ac_optarg" ;;
  61. -cache-file | --cache-file | --cache-fil | --cache-fi \
  62. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  63. ac_prev=cache_file ;;
  64. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  65. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  66. cache_file="$ac_optarg" ;;
  67. -disable-* | --disable-*)
  68. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  69. # Reject names that are not valid shell variable names.
  70. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  71. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  72. fi
  73. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  74. eval "enable_${ac_feature}=no" ;;
  75. -enable-* | --enable-*)
  76. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  77. # Reject names that are not valid shell variable names.
  78. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  79. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  80. fi
  81. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  82. case "$ac_option" in
  83. *=*) ;;
  84. *) ac_optarg=yes ;;
  85. esac
  86. eval "enable_${ac_feature}='$ac_optarg'" ;;
  87. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  88. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  89. | --exec | --exe | --ex)
  90. ac_prev=exec_prefix ;;
  91. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  92. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  93. | --exec=* | --exe=* | --ex=*)
  94. exec_prefix="$ac_optarg" ;;
  95. -gas | --gas | --ga | --g)
  96. # Obsolete; use --with-gas.
  97. with_gas=yes ;;
  98. -help | --help | --hel | --he)
  99. # Omit some internal or obsolete options to make the list less imposing.
  100. # This message is too long to be a string in the A/UX 3.1 sh.
  101. cat << EOF
  102. Usage: configure [options] [host]
  103. Options: [defaults in brackets after descriptions]
  104. Configuration:
  105. --cache-file=FILE cache test results in FILE
  106. --help print this message
  107. --no-create do not create output files
  108. --quiet, --silent do not print \`checking...' messages
  109. --version print the version of autoconf that created configure
  110. Directory and file names:
  111. --prefix=PREFIX install architecture-independent files in PREFIX
  112. [$ac_default_prefix]
  113. --exec-prefix=PREFIX install architecture-dependent files in PREFIX
  114. [same as prefix]
  115. --srcdir=DIR find the sources in DIR [configure dir or ..]
  116. --program-prefix=PREFIX prepend PREFIX to installed program names
  117. --program-suffix=SUFFIX append SUFFIX to installed program names
  118. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  119. Host type:
  120. --build=BUILD configure for building on BUILD [BUILD=HOST]
  121. --host=HOST configure for HOST [guessed]
  122. --target=TARGET configure for TARGET [TARGET=HOST]
  123. Features and packages:
  124. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  125. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  126. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  127. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  128. --x-includes=DIR X include files are in DIR
  129. --x-libraries=DIR X library files are in DIR
  130. --enable and --with options recognized:$ac_help
  131. EOF
  132. exit 0 ;;
  133. -host | --host | --hos | --ho)
  134. ac_prev=host ;;
  135. -host=* | --host=* | --hos=* | --ho=*)
  136. host="$ac_optarg" ;;
  137. -nfp | --nfp | --nf)
  138. # Obsolete; use --without-fp.
  139. with_fp=no ;;
  140. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  141. | --no-cr | --no-c)
  142. no_create=yes ;;
  143. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  144. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  145. no_recursion=yes ;;
  146. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  147. ac_prev=prefix ;;
  148. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  149. prefix="$ac_optarg" ;;
  150. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  151. | --program-pre | --program-pr | --program-p)
  152. ac_prev=program_prefix ;;
  153. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  154. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  155. program_prefix="$ac_optarg" ;;
  156. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  157. | --program-suf | --program-su | --program-s)
  158. ac_prev=program_suffix ;;
  159. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  160. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  161. program_suffix="$ac_optarg" ;;
  162. -program-transform-name | --program-transform-name \
  163. | --program-transform-nam | --program-transform-na \
  164. | --program-transform-n | --program-transform- \
  165. | --program-transform | --program-transfor \
  166. | --program-transfo | --program-transf \
  167. | --program-trans | --program-tran \
  168. | --progr-tra | --program-tr | --program-t)
  169. ac_prev=program_transform_name ;;
  170. -program-transform-name=* | --program-transform-name=* \
  171. | --program-transform-nam=* | --program-transform-na=* \
  172. | --program-transform-n=* | --program-transform-=* \
  173. | --program-transform=* | --program-transfor=* \
  174. | --program-transfo=* | --program-transf=* \
  175. | --program-trans=* | --program-tran=* \
  176. | --progr-tra=* | --program-tr=* | --program-t=*)
  177. program_transform_name="$ac_optarg" ;;
  178. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  179. | -silent | --silent | --silen | --sile | --sil)
  180. silent=yes ;;
  181. -site | --site | --sit)
  182. ac_prev=site ;;
  183. -site=* | --site=* | --sit=*)
  184. site="$ac_optarg" ;;
  185. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  186. ac_prev=srcdir ;;
  187. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  188. srcdir="$ac_optarg" ;;
  189. -target | --target | --targe | --targ | --tar | --ta | --t)
  190. ac_prev=target ;;
  191. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  192. target="$ac_optarg" ;;
  193. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  194. verbose=yes ;;
  195. -version | --version | --versio | --versi | --vers)
  196. echo "configure generated by autoconf version 2.4"
  197. exit 0 ;;
  198. -with-* | --with-*)
  199. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  200. # Reject names that are not valid shell variable names.
  201. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  202. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  203. fi
  204. ac_package=`echo $ac_package| sed 's/-/_/g'`
  205. case "$ac_option" in
  206. *=*) ;;
  207. *) ac_optarg=yes ;;
  208. esac
  209. eval "with_${ac_package}='$ac_optarg'" ;;
  210. -without-* | --without-*)
  211. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  212. # Reject names that are not valid shell variable names.
  213. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  214. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  215. fi
  216. ac_package=`echo $ac_package| sed 's/-/_/g'`
  217. eval "with_${ac_package}=no" ;;
  218. --x)
  219. # Obsolete; use --with-x.
  220. with_x=yes ;;
  221. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  222. | --x-incl | --x-inc | --x-in | --x-i)
  223. ac_prev=x_includes ;;
  224. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  225. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  226. x_includes="$ac_optarg" ;;
  227. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  228. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  229. ac_prev=x_libraries ;;
  230. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  231. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  232. x_libraries="$ac_optarg" ;;
  233. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  234. ;;
  235. *)
  236. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  237. echo "configure: warning: $ac_option: invalid host type" 1>&2
  238. fi
  239. if test "x$nonopt" != xNONE; then
  240. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  241. fi
  242. nonopt="$ac_option"
  243. ;;
  244. esac
  245. done
  246. if test -n "$ac_prev"; then
  247. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  248. fi
  249. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  250. # File descriptor usage:
  251. # 0 standard input
  252. # 1 file creation
  253. # 2 errors and warnings
  254. # 3 some systems may open it to /dev/tty
  255. # 4 used on the Kubota Titan
  256. # 6 checking for... messages and results
  257. # 5 compiler messages saved in config.log
  258. if test "$silent" = yes; then
  259. exec 6>/dev/null
  260. else
  261. exec 6>&1
  262. fi
  263. exec 5>./config.log
  264. echo "\
  265. This file contains any messages produced by compilers while
  266. running configure, to aid debugging if configure makes a mistake.
  267. " 1>&5
  268. # Strip out --no-create and --no-recursion so they do not pile up.
  269. # Also quote any args containing shell metacharacters.
  270. ac_configure_args=
  271. for ac_arg
  272. do
  273. case "$ac_arg" in
  274. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  275. | --no-cr | --no-c) ;;
  276. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  277. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  278. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  279. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  280. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  281. esac
  282. done
  283. # NLS nuisances.
  284. # Only set LANG and LC_ALL to C if already set.
  285. # These must not be set unconditionally because not all systems understand
  286. # e.g. LANG=C (notably SCO).
  287. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  288. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  289. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  290. rm -rf conftest* confdefs.h
  291. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  292. echo > confdefs.h
  293. # A filename unique to this package, relative to the directory that
  294. # configure is in, which we can look for to find out if srcdir is correct.
  295. ac_unique_file=include/dpkg.h
  296. # Find the source files, if location was not specified.
  297. if test -z "$srcdir"; then
  298. ac_srcdir_defaulted=yes
  299. # Try the directory containing this script, then its parent.
  300. ac_prog=$0
  301. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  302. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  303. srcdir=$ac_confdir
  304. if test ! -r $srcdir/$ac_unique_file; then
  305. srcdir=..
  306. fi
  307. else
  308. ac_srcdir_defaulted=no
  309. fi
  310. if test ! -r $srcdir/$ac_unique_file; then
  311. if test "$ac_srcdir_defaulted" = yes; then
  312. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  313. else
  314. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  315. fi
  316. fi
  317. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  318. # Prefer explicitly selected file to automatically selected ones.
  319. if test -z "$CONFIG_SITE"; then
  320. if test "x$prefix" != xNONE; then
  321. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  322. else
  323. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  324. fi
  325. fi
  326. for ac_site_file in $CONFIG_SITE; do
  327. if test -r "$ac_site_file"; then
  328. echo "loading site script $ac_site_file"
  329. . "$ac_site_file"
  330. fi
  331. done
  332. if test -r "$cache_file"; then
  333. echo "loading cache $cache_file"
  334. . $cache_file
  335. else
  336. echo "creating cache $cache_file"
  337. > $cache_file
  338. fi
  339. ac_ext=c
  340. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  341. ac_cpp='$CPP $CPPFLAGS'
  342. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  343. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  344. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  345. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  346. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  347. ac_n= ac_c='
  348. ' ac_t=' '
  349. else
  350. ac_n=-n ac_c= ac_t=
  351. fi
  352. else
  353. ac_n= ac_c='\c' ac_t=
  354. fi
  355. # Extract the first word of "gcc", so it can be a program name with args.
  356. set dummy gcc; ac_word=$2
  357. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  358. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  359. echo $ac_n "(cached) $ac_c" 1>&6
  360. else
  361. if test -n "$CC"; then
  362. ac_cv_prog_CC="$CC" # Let the user override the test.
  363. else
  364. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  365. for ac_dir in $PATH; do
  366. test -z "$ac_dir" && ac_dir=.
  367. if test -f $ac_dir/$ac_word; then
  368. ac_cv_prog_CC="gcc"
  369. break
  370. fi
  371. done
  372. IFS="$ac_save_ifs"
  373. test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  374. fi
  375. fi
  376. CC="$ac_cv_prog_CC"
  377. if test -n "$CC"; then
  378. echo "$ac_t""$CC" 1>&6
  379. else
  380. echo "$ac_t""no" 1>&6
  381. fi
  382. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  383. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  384. echo $ac_n "(cached) $ac_c" 1>&6
  385. else
  386. cat > conftest.c <<EOF
  387. #ifdef __GNUC__
  388. yes;
  389. #endif
  390. EOF
  391. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  392. ac_cv_prog_gcc=yes
  393. else
  394. ac_cv_prog_gcc=no
  395. fi
  396. fi
  397. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  398. if test $ac_cv_prog_gcc = yes; then
  399. GCC=yes
  400. if test "${CFLAGS+set}" != set; then
  401. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  402. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  403. echo $ac_n "(cached) $ac_c" 1>&6
  404. else
  405. echo 'void f(){}' > conftest.c
  406. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  407. ac_cv_prog_gcc_g=yes
  408. else
  409. ac_cv_prog_gcc_g=no
  410. fi
  411. rm -f conftest*
  412. fi
  413. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  414. if test $ac_cv_prog_gcc_g = yes; then
  415. CFLAGS="-g -O"
  416. else
  417. CFLAGS="-O"
  418. fi
  419. fi
  420. else
  421. GCC=
  422. test "${CFLAGS+set}" = set || CFLAGS="-g"
  423. fi
  424. for ac_prog in $CCC c++ g++ gcc CC cxx
  425. do
  426. # Extract the first word of "$ac_prog", so it can be a program name with args.
  427. set dummy $ac_prog; ac_word=$2
  428. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  429. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  430. echo $ac_n "(cached) $ac_c" 1>&6
  431. else
  432. if test -n "$CXX"; then
  433. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  434. else
  435. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  436. for ac_dir in $PATH; do
  437. test -z "$ac_dir" && ac_dir=.
  438. if test -f $ac_dir/$ac_word; then
  439. ac_cv_prog_CXX="$ac_prog"
  440. break
  441. fi
  442. done
  443. IFS="$ac_save_ifs"
  444. fi
  445. fi
  446. CXX="$ac_cv_prog_CXX"
  447. if test -n "$CXX"; then
  448. echo "$ac_t""$CXX" 1>&6
  449. else
  450. echo "$ac_t""no" 1>&6
  451. fi
  452. test -n "$CXX" && break
  453. done
  454. test -n "$CXX" || CXX="gcc"
  455. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  456. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  457. echo $ac_n "(cached) $ac_c" 1>&6
  458. else
  459. cat > conftest.C <<EOF
  460. #ifdef __GNUC__
  461. yes;
  462. #endif
  463. EOF
  464. if ${CXX-g++} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
  465. ac_cv_prog_gxx=yes
  466. else
  467. ac_cv_prog_gxx=no
  468. fi
  469. fi
  470. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  471. if test $ac_cv_prog_gxx = yes; then
  472. GXX=yes
  473. if test "${CXXFLAGS+set}" != set; then
  474. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  475. if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
  476. echo $ac_n "(cached) $ac_c" 1>&6
  477. else
  478. echo 'void f(){}' > conftest.cc
  479. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  480. ac_cv_prog_gxx_g=yes
  481. else
  482. ac_cv_prog_gxx_g=no
  483. fi
  484. rm -f conftest*
  485. fi
  486. echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
  487. if test $ac_cv_prog_gxx_g = yes; then
  488. CXXFLAGS="-g -O"
  489. else
  490. CXXFLAGS="-O"
  491. fi
  492. fi
  493. else
  494. GXX=
  495. test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  496. fi
  497. dpkg_archset=''
  498. # Check whether --with-arch or --without-arch was given.
  499. withval="$with_arch"
  500. if test -n "$withval"; then
  501. if test "x$with_arch" = x; then
  502. { echo "configure: error: --with-arch requires an architecture name" 1>&2; exit 1; }
  503. fi
  504. dpkg_archset="${with_arch}"
  505. else
  506. echo $ac_n "checking system architecture""... $ac_c" 1>&6
  507. dpkg_archwhy=''
  508. if eval "test \"`echo '$''{'dpkg_cv_arch'+set}'`\" = set"; then
  509. echo $ac_n "(cached) $ac_c" 1>&6
  510. else
  511. dpkg_arch="`dpkg --print-architecture 2>/dev/null`"
  512. if test "x$dpkg_arch" != x; then
  513. dpkg_archwhy=" (obtained from dpkg)"
  514. elif test "${GCC-no}" = yes; then
  515. dpkg_arch="`$(CC) --print-libgcc-file-name |
  516. sed -e 's,^.*/gcc-lib/,,; s,/libgcc\.a$,,; s,/[0-9.][0-9.]*$,,; s/-.*$//'`"
  517. if test "x`echo \"$dpkg_arch\" | tr -d a-z0-9-`" != x -o "x$dpkg_arch" = x
  518. then
  519. dpkg_arch=""
  520. dpkg_archwhy=" (bad output from --print-libgcc-file-name)"
  521. else
  522. dpkg_arch2="`sed -e '/^'$dpkg_arch'[ ]/!d; s/^[-0-9a-z]*[ ]*//' \
  523. $srcdir/archtable`"
  524. if test "x$dpkg_arch2" = "x$dpkg_arch"; then
  525. dpkg_archwhy=" (obtained from gcc)"
  526. elif test "x$dpkg_arch2" != x; then
  527. dpkg_archwhy=" (from gcc, canonical form of $dpkg_arch)"
  528. dpkg_arch="$dpkg_arch2"
  529. else
  530. dpkg_archwhy=" (from gcc, but not in archtable)"
  531. fi
  532. fi
  533. else
  534. dpkg_archwhy=''
  535. fi
  536. dpkg_cv_arch="$dpkg_arch"
  537. fi
  538. if test "x$dpkg_cv_arch" != x; then
  539. echo "$ac_t"""$dpkg_cv_arch$dpkg_archwhy"" 1>&6
  540. dpkg_archset="${dpkg_cv_arch}"
  541. else
  542. echo "$ac_t"""failed$dpkg_archwhy"" 1>&6
  543. fi
  544. fi
  545. if test "x$dpkg_archset" != x
  546. then
  547. cat >> confdefs.h <<EOF
  548. #define ARCHITECTURE "${dpkg_cv_arch}"
  549. EOF
  550. fi
  551. if test "x${dpkg_archset}" = xi386; then
  552. echo $ac_n "checking for i386 system/binary format""... $ac_c" 1>&6
  553. dpkg_libgcc="`$CC --print-libgcc-file-name 2>/dev/null`"
  554. case "$dpkg_libgcc" in
  555. *-linux*)
  556. if ar p "$dpkg_libgcc" __main.o 2>/dev/null | file - 2>/dev/null | grep ELF >/dev/null; then
  557. echo "$ac_t""Linux ELF" 1>&6
  558. dpkg_cc_binfmt=elf
  559. else
  560. echo "$ac_t""Linux a.out" 1>&6
  561. dpkg_cc_binfmt=a.out
  562. fi
  563. cat >> confdefs.h <<EOF
  564. #define ARCHBINFMT " $dpkg_cc_binfmt"
  565. EOF
  566. ;;
  567. *)
  568. echo "$ac_t""non-Linux" 1>&6
  569. ;;
  570. esac
  571. fi
  572. # Check whether --with-newdeb or --without-newdeb was given.
  573. withval="$with_newdeb"
  574. if test -n "$withval"; then
  575. cat >> confdefs.h <<\EOF
  576. #define BUILDOLDPKGFORMAT 0
  577. EOF
  578. fi
  579. # Check whether --with-olddeb or --without-olddeb was given.
  580. withval="$with_olddeb"
  581. if test -n "$withval"; then
  582. cat >> confdefs.h <<\EOF
  583. #define BUILDOLDPKGFORMAT 1
  584. EOF
  585. fi
  586. echo $ac_n "checking for /usr/bin/perl""... $ac_c" 1>&6
  587. if test -f /usr/bin/perl
  588. then
  589. echo "$ac_t""yes" 1>&6
  590. perlpath=/usr/bin/perl
  591. else
  592. echo "$ac_t""no" 1>&6
  593. # Extract the first word of "perl", so it can be a program name with args.
  594. set dummy perl; ac_word=$2
  595. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  596. if eval "test \"`echo '$''{'ac_cv_path_perlpath'+set}'`\" = set"; then
  597. echo $ac_n "(cached) $ac_c" 1>&6
  598. else
  599. case "$perlpath" in
  600. /*)
  601. ac_cv_path_perlpath="$perlpath" # Let the user override the test with a path.
  602. ;;
  603. *)
  604. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  605. for ac_dir in $PATH; do
  606. test -z "$ac_dir" && ac_dir=.
  607. if test -f $ac_dir/$ac_word; then
  608. ac_cv_path_perlpath="$ac_dir/$ac_word"
  609. break
  610. fi
  611. done
  612. IFS="$ac_save_ifs"
  613. ;;
  614. esac
  615. fi
  616. perlpath="$ac_cv_path_perlpath"
  617. if test -n "$perlpath"; then
  618. echo "$ac_t""$perlpath" 1>&6
  619. else
  620. echo "$ac_t""no" 1>&6
  621. fi
  622. fi
  623. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  624. # On Suns, sometimes $CPP names a directory.
  625. if test -n "$CPP" && test -d "$CPP"; then
  626. CPP=
  627. fi
  628. if test -z "$CPP"; then
  629. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  630. echo $ac_n "(cached) $ac_c" 1>&6
  631. else
  632. # This must be in double quotes, not single quotes, because CPP may get
  633. # substituted into the Makefile and "${CC-cc}" will confuse make.
  634. CPP="${CC-cc} -E"
  635. # On the NeXT, cc -E runs the code through the compiler's parser,
  636. # not just through cpp.
  637. cat > conftest.$ac_ext <<EOF
  638. #line 726 "configure"
  639. #include "confdefs.h"
  640. #include <assert.h>
  641. Syntax Error
  642. EOF
  643. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  644. ac_err=`grep -v '^ *+' conftest.out`
  645. if test -z "$ac_err"; then
  646. :
  647. else
  648. echo "$ac_err" >&5
  649. rm -rf conftest*
  650. CPP="${CC-cc} -E -traditional-cpp"
  651. cat > conftest.$ac_ext <<EOF
  652. #line 740 "configure"
  653. #include "confdefs.h"
  654. #include <assert.h>
  655. Syntax Error
  656. EOF
  657. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  658. ac_err=`grep -v '^ *+' conftest.out`
  659. if test -z "$ac_err"; then
  660. :
  661. else
  662. echo "$ac_err" >&5
  663. rm -rf conftest*
  664. CPP=/lib/cpp
  665. fi
  666. rm -f conftest*
  667. fi
  668. rm -f conftest*
  669. ac_cv_prog_CPP="$CPP"
  670. fi
  671. CPP="$ac_cv_prog_CPP"
  672. else
  673. ac_cv_prog_CPP="$CPP"
  674. fi
  675. echo "$ac_t""$CPP" 1>&6
  676. # If we cannot run a trivial program, we must be cross compiling.
  677. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  678. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  679. echo $ac_n "(cached) $ac_c" 1>&6
  680. else
  681. if test "$cross_compiling" = yes; then
  682. ac_cv_c_cross=yes
  683. else
  684. cat > conftest.$ac_ext <<EOF
  685. #line 774 "configure"
  686. #include "confdefs.h"
  687. main(){return(0);}
  688. EOF
  689. eval $ac_link
  690. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  691. ac_cv_c_cross=no
  692. else
  693. ac_cv_c_cross=yes
  694. fi
  695. fi
  696. rm -fr conftest*
  697. fi
  698. cross_compiling=$ac_cv_c_cross
  699. echo "$ac_t""$ac_cv_c_cross" 1>&6
  700. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  701. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  702. echo $ac_n "(cached) $ac_c" 1>&6
  703. else
  704. cat > conftest.$ac_ext <<EOF
  705. #line 795 "configure"
  706. #include "confdefs.h"
  707. #include <stdlib.h>
  708. #include <stdarg.h>
  709. #include <string.h>
  710. #include <float.h>
  711. EOF
  712. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  713. ac_err=`grep -v '^ *+' conftest.out`
  714. if test -z "$ac_err"; then
  715. rm -rf conftest*
  716. ac_cv_header_stdc=yes
  717. else
  718. echo "$ac_err" >&5
  719. rm -rf conftest*
  720. ac_cv_header_stdc=no
  721. fi
  722. rm -f conftest*
  723. if test $ac_cv_header_stdc = yes; then
  724. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  725. cat > conftest.$ac_ext <<EOF
  726. #line 817 "configure"
  727. #include "confdefs.h"
  728. #include <string.h>
  729. EOF
  730. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  731. egrep "memchr" >/dev/null 2>&1; then
  732. :
  733. else
  734. rm -rf conftest*
  735. ac_cv_header_stdc=no
  736. fi
  737. rm -f conftest*
  738. fi
  739. if test $ac_cv_header_stdc = yes; then
  740. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  741. cat > conftest.$ac_ext <<EOF
  742. #line 835 "configure"
  743. #include "confdefs.h"
  744. #include <stdlib.h>
  745. EOF
  746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  747. egrep "free" >/dev/null 2>&1; then
  748. :
  749. else
  750. rm -rf conftest*
  751. ac_cv_header_stdc=no
  752. fi
  753. rm -f conftest*
  754. fi
  755. if test $ac_cv_header_stdc = yes; then
  756. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  757. if test "$cross_compiling" = yes; then
  758. ac_cv_header_stdc=no
  759. else
  760. cat > conftest.$ac_ext <<EOF
  761. #line 856 "configure"
  762. #include "confdefs.h"
  763. #include <ctype.h>
  764. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  765. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  766. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  767. int main () { int i; for (i = 0; i < 256; i++)
  768. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  769. exit (0); }
  770. EOF
  771. eval $ac_link
  772. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  773. :
  774. else
  775. ac_cv_header_stdc=no
  776. fi
  777. fi
  778. rm -fr conftest*
  779. fi
  780. fi
  781. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  782. if test $ac_cv_header_stdc = yes; then
  783. cat >> confdefs.h <<\EOF
  784. #define STDC_HEADERS 1
  785. EOF
  786. fi
  787. ac_aux_dir=
  788. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  789. if test -f $ac_dir/install-sh; then
  790. ac_aux_dir=$ac_dir
  791. ac_install_sh="$ac_aux_dir/install-sh -c"
  792. break
  793. elif test -f $ac_dir/install.sh; then
  794. ac_aux_dir=$ac_dir
  795. ac_install_sh="$ac_aux_dir/install.sh -c"
  796. break
  797. fi
  798. done
  799. if test -z "$ac_aux_dir"; then
  800. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  801. fi
  802. ac_config_guess=$ac_aux_dir/config.guess
  803. ac_config_sub=$ac_aux_dir/config.sub
  804. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  805. # Find a good install program. We prefer a C program (faster),
  806. # so one script is as good as another. But avoid the broken or
  807. # incompatible versions:
  808. # SysV /etc/install, /usr/sbin/install
  809. # SunOS /usr/etc/install
  810. # IRIX /sbin/install
  811. # AIX /bin/install
  812. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  813. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  814. # ./install, which can be erroneously created by make from ./install.sh.
  815. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  816. if test -z "$INSTALL"; then
  817. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  818. echo $ac_n "(cached) $ac_c" 1>&6
  819. else
  820. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  821. for ac_dir in $PATH; do
  822. # Account for people who put trailing slashes in PATH elements.
  823. case "$ac_dir/" in
  824. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  825. *)
  826. # OSF1 and SCO ODT 3.0 have their own names for install.
  827. for ac_prog in ginstall installbsd scoinst install; do
  828. if test -f $ac_dir/$ac_prog; then
  829. if test $ac_prog = install &&
  830. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  831. # AIX install. It has an incompatible calling convention.
  832. # OSF/1 installbsd also uses dspmsg, but is usable.
  833. :
  834. else
  835. ac_cv_path_install="$ac_dir/$ac_prog -c"
  836. break 2
  837. fi
  838. fi
  839. done
  840. ;;
  841. esac
  842. done
  843. IFS="$ac_save_ifs"
  844. # As a last resort, use the slow shell script.
  845. test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  846. fi
  847. INSTALL="$ac_cv_path_install"
  848. fi
  849. echo "$ac_t""$INSTALL" 1>&6
  850. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  851. # It thinks the first close brace ends the variable substitution.
  852. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  853. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  854. # Extract the first word of "ranlib", so it can be a program name with args.
  855. set dummy ranlib; ac_word=$2
  856. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  857. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  858. echo $ac_n "(cached) $ac_c" 1>&6
  859. else
  860. if test -n "$RANLIB"; then
  861. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  862. else
  863. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  864. for ac_dir in $PATH; do
  865. test -z "$ac_dir" && ac_dir=.
  866. if test -f $ac_dir/$ac_word; then
  867. ac_cv_prog_RANLIB="ranlib"
  868. break
  869. fi
  870. done
  871. IFS="$ac_save_ifs"
  872. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  873. fi
  874. fi
  875. RANLIB="$ac_cv_prog_RANLIB"
  876. if test -n "$RANLIB"; then
  877. echo "$ac_t""$RANLIB" 1>&6
  878. else
  879. echo "$ac_t""no" 1>&6
  880. fi
  881. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  882. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  883. echo $ac_n "(cached) $ac_c" 1>&6
  884. else
  885. cat > conftest.$ac_ext <<EOF
  886. #line 989 "configure"
  887. #include "confdefs.h"
  888. #include <sys/types.h>
  889. #if STDC_HEADERS
  890. #include <stdlib.h>
  891. #endif
  892. EOF
  893. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  894. egrep "mode_t" >/dev/null 2>&1; then
  895. rm -rf conftest*
  896. ac_cv_type_mode_t=yes
  897. else
  898. rm -rf conftest*
  899. ac_cv_type_mode_t=no
  900. fi
  901. rm -f conftest*
  902. fi
  903. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  904. if test $ac_cv_type_mode_t = no; then
  905. cat >> confdefs.h <<\EOF
  906. #define mode_t int
  907. EOF
  908. fi
  909. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  910. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  911. echo $ac_n "(cached) $ac_c" 1>&6
  912. else
  913. cat > conftest.$ac_ext <<EOF
  914. #line 1020 "configure"
  915. #include "confdefs.h"
  916. #include <sys/types.h>
  917. #if STDC_HEADERS
  918. #include <stdlib.h>
  919. #endif
  920. EOF
  921. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  922. egrep "pid_t" >/dev/null 2>&1; then
  923. rm -rf conftest*
  924. ac_cv_type_pid_t=yes
  925. else
  926. rm -rf conftest*
  927. ac_cv_type_pid_t=no
  928. fi
  929. rm -f conftest*
  930. fi
  931. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  932. if test $ac_cv_type_pid_t = no; then
  933. cat >> confdefs.h <<\EOF
  934. #define pid_t int
  935. EOF
  936. fi
  937. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  938. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  939. echo $ac_n "(cached) $ac_c" 1>&6
  940. else
  941. cat > conftest.$ac_ext <<EOF
  942. #line 1051 "configure"
  943. #include "confdefs.h"
  944. #include <sys/types.h>
  945. #if STDC_HEADERS
  946. #include <stdlib.h>
  947. #endif
  948. EOF
  949. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  950. egrep "size_t" >/dev/null 2>&1; then
  951. rm -rf conftest*
  952. ac_cv_type_size_t=yes
  953. else
  954. rm -rf conftest*
  955. ac_cv_type_size_t=no
  956. fi
  957. rm -f conftest*
  958. fi
  959. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  960. if test $ac_cv_type_size_t = no; then
  961. cat >> confdefs.h <<\EOF
  962. #define size_t unsigned
  963. EOF
  964. fi
  965. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  966. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  967. echo $ac_n "(cached) $ac_c" 1>&6
  968. else
  969. cat > conftest.$ac_ext <<EOF
  970. #line 1082 "configure"
  971. #include "confdefs.h"
  972. /* System header to define __stub macros and hopefully few prototypes,
  973. which can conflict with char vprintf(); below. */
  974. #include <assert.h>
  975. /* Override any gcc2 internal prototype to avoid an error. */
  976. char vprintf();
  977. int main() { return 0; }
  978. int t() {
  979. /* The GNU C library defines this for functions which it implements
  980. to always fail with ENOSYS. Some functions are actually named
  981. something starting with __ and the normal name is an alias. */
  982. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  983. choke me
  984. #else
  985. vprintf();
  986. #endif
  987. ; return 0; }
  988. EOF
  989. if eval $ac_link; then
  990. rm -rf conftest*
  991. eval "ac_cv_func_vprintf=yes"
  992. else
  993. rm -rf conftest*
  994. eval "ac_cv_func_vprintf=no"
  995. fi
  996. rm -f conftest*
  997. fi
  998. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  999. echo "$ac_t""yes" 1>&6
  1000. cat >> confdefs.h <<\EOF
  1001. #define HAVE_VPRINTF 1
  1002. EOF
  1003. else
  1004. echo "$ac_t""no" 1>&6
  1005. fi
  1006. if test "$ac_cv_func_vprintf" != yes; then
  1007. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1008. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1009. echo $ac_n "(cached) $ac_c" 1>&6
  1010. else
  1011. cat > conftest.$ac_ext <<EOF
  1012. #line 1130 "configure"
  1013. #include "confdefs.h"
  1014. /* System header to define __stub macros and hopefully few prototypes,
  1015. which can conflict with char _doprnt(); below. */
  1016. #include <assert.h>
  1017. /* Override any gcc2 internal prototype to avoid an error. */
  1018. char _doprnt();
  1019. int main() { return 0; }
  1020. int t() {
  1021. /* The GNU C library defines this for functions which it implements
  1022. to always fail with ENOSYS. Some functions are actually named
  1023. something starting with __ and the normal name is an alias. */
  1024. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1025. choke me
  1026. #else
  1027. _doprnt();
  1028. #endif
  1029. ; return 0; }
  1030. EOF
  1031. if eval $ac_link; then
  1032. rm -rf conftest*
  1033. eval "ac_cv_func__doprnt=yes"
  1034. else
  1035. rm -rf conftest*
  1036. eval "ac_cv_func__doprnt=no"
  1037. fi
  1038. rm -f conftest*
  1039. fi
  1040. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1041. echo "$ac_t""yes" 1>&6
  1042. cat >> confdefs.h <<\EOF
  1043. #define HAVE_DOPRNT 1
  1044. EOF
  1045. else
  1046. echo "$ac_t""no" 1>&6
  1047. fi
  1048. fi
  1049. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1050. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1051. echo $ac_n "(cached) $ac_c" 1>&6
  1052. else
  1053. cat > conftest.$ac_ext <<EOF
  1054. #line 1179 "configure"
  1055. #include "confdefs.h"
  1056. int main() { return 0; }
  1057. int t() {
  1058. /* Ultrix mips cc rejects this. */
  1059. typedef int charset[2]; const charset x;
  1060. /* SunOS 4.1.1 cc rejects this. */
  1061. char const *const *ccp;
  1062. char **p;
  1063. /* NEC SVR4.0.2 mips cc rejects this. */
  1064. struct point {int x, y;};
  1065. static struct point const zero;
  1066. /* AIX XL C 1.02.0.0 rejects this.
  1067. It does not let you subtract one const X* pointer from another in an arm
  1068. of an if-expression whose if-part is not a constant expression */
  1069. const char *g = "string";
  1070. ccp = &g + (g ? g-g : 0);
  1071. /* HPUX 7.0 cc rejects these. */
  1072. ++ccp;
  1073. p = (char**) ccp;
  1074. ccp = (char const *const *) p;
  1075. { /* SCO 3.2v4 cc rejects this. */
  1076. char *t;
  1077. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1078. *t++ = 0;
  1079. }
  1080. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1081. int x[] = {25, 17};
  1082. const int *foo = &x[0];
  1083. ++foo;
  1084. }
  1085. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1086. typedef const int *iptr;
  1087. iptr p = 0;
  1088. ++p;
  1089. }
  1090. { /* AIX XL C 1.02.0.0 rejects this saying
  1091. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1092. struct s { int j; const int *ap[3]; };
  1093. struct s *b; b->j = 5;
  1094. }
  1095. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1096. const int foo = 10;
  1097. }
  1098. ; return 0; }
  1099. EOF
  1100. if eval $ac_compile; then
  1101. rm -rf conftest*
  1102. ac_cv_c_const=yes
  1103. else
  1104. rm -rf conftest*
  1105. ac_cv_c_const=no
  1106. fi
  1107. rm -f conftest*
  1108. fi
  1109. echo "$ac_t""$ac_cv_c_const" 1>&6
  1110. if test $ac_cv_c_const = no; then
  1111. cat >> confdefs.h <<\EOF
  1112. #define const
  1113. EOF
  1114. fi
  1115. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1116. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1117. echo $ac_n "(cached) $ac_c" 1>&6
  1118. else
  1119. ac_cv_c_bigendian=unknown
  1120. # See if sys/param.h defines the BYTE_ORDER macro.
  1121. cat > conftest.$ac_ext <<EOF
  1122. #line 1254 "configure"
  1123. #include "confdefs.h"
  1124. #include <sys/types.h>
  1125. #include <sys/param.h>
  1126. int main() { return 0; }
  1127. int t() {
  1128. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1129. bogus endian macros
  1130. #endif
  1131. ; return 0; }
  1132. EOF
  1133. if eval $ac_compile; then
  1134. rm -rf conftest*
  1135. # It does; now see whether it defined to BIG_ENDIAN or not.
  1136. cat > conftest.$ac_ext <<EOF
  1137. #line 1270 "configure"
  1138. #include "confdefs.h"
  1139. #include <sys/types.h>
  1140. #include <sys/param.h>
  1141. int main() { return 0; }
  1142. int t() {
  1143. #if BYTE_ORDER != BIG_ENDIAN
  1144. not big endian
  1145. #endif
  1146. ; return 0; }
  1147. EOF
  1148. if eval $ac_compile; then
  1149. rm -rf conftest*
  1150. ac_cv_c_bigendian=yes
  1151. else
  1152. rm -rf conftest*
  1153. ac_cv_c_bigendian=no
  1154. fi
  1155. rm -f conftest*
  1156. fi
  1157. rm -f conftest*
  1158. if test $ac_cv_c_bigendian = unknown; then
  1159. if test "$cross_compiling" = yes; then
  1160. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1161. else
  1162. cat > conftest.$ac_ext <<EOF
  1163. #line 1299 "configure"
  1164. #include "confdefs.h"
  1165. main () {
  1166. /* Are we little or big endian? From Harbison&Steele. */
  1167. union
  1168. {
  1169. long l;
  1170. char c[sizeof (long)];
  1171. } u;
  1172. u.l = 1;
  1173. exit (u.c[sizeof (long) - 1] == 1);
  1174. }
  1175. EOF
  1176. eval $ac_link
  1177. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1178. ac_cv_c_bigendian=no
  1179. else
  1180. ac_cv_c_bigendian=yes
  1181. fi
  1182. fi
  1183. rm -fr conftest*
  1184. fi
  1185. fi
  1186. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1187. if test $ac_cv_c_bigendian = yes; then
  1188. cat >> confdefs.h <<\EOF
  1189. #define WORDS_BIGENDIAN 1
  1190. EOF
  1191. fi
  1192. echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
  1193. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
  1194. echo $ac_n "(cached) $ac_c" 1>&6
  1195. else
  1196. if test "$cross_compiling" = yes; then
  1197. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1198. else
  1199. cat > conftest.$ac_ext <<EOF
  1200. #line 1338 "configure"
  1201. #include "confdefs.h"
  1202. #include <stdio.h>
  1203. main()
  1204. {
  1205. FILE *f=fopen("conftestval", "w");
  1206. if (!f) exit(1);
  1207. fprintf(f, "%d\n", sizeof(unsigned long));
  1208. exit(0);
  1209. }
  1210. EOF
  1211. eval $ac_link
  1212. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1213. ac_cv_sizeof_unsigned_long=`cat conftestval`
  1214. else
  1215. ac_cv_sizeof_unsigned_long=0
  1216. fi
  1217. fi
  1218. rm -fr conftest*
  1219. fi
  1220. echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
  1221. cat >> confdefs.h <<EOF
  1222. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  1223. EOF
  1224. echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  1225. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  1226. echo $ac_n "(cached) $ac_c" 1>&6
  1227. else
  1228. if test "$cross_compiling" = yes; then
  1229. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1230. else
  1231. cat > conftest.$ac_ext <<EOF
  1232. #line 1372 "configure"
  1233. #include "confdefs.h"
  1234. #include <stdio.h>
  1235. main()
  1236. {
  1237. FILE *f=fopen("conftestval", "w");
  1238. if (!f) exit(1);
  1239. fprintf(f, "%d\n", sizeof(unsigned int));
  1240. exit(0);
  1241. }
  1242. EOF
  1243. eval $ac_link
  1244. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1245. ac_cv_sizeof_unsigned_int=`cat conftestval`
  1246. else
  1247. ac_cv_sizeof_unsigned_int=0
  1248. fi
  1249. fi
  1250. rm -fr conftest*
  1251. fi
  1252. echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  1253. cat >> confdefs.h <<EOF
  1254. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  1255. EOF
  1256. for ac_func in unsetenv alphasort scandir strerror strsignal strtoul vsnprintf
  1257. do
  1258. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1259. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1260. echo $ac_n "(cached) $ac_c" 1>&6
  1261. else
  1262. cat > conftest.$ac_ext <<EOF
  1263. #line 1405 "configure"
  1264. #include "confdefs.h"
  1265. /* System header to define __stub macros and hopefully few prototypes,
  1266. which can conflict with char $ac_func(); below. */
  1267. #include <assert.h>
  1268. /* Override any gcc2 internal prototype to avoid an error. */
  1269. char $ac_func();
  1270. int main() { return 0; }
  1271. int t() {
  1272. /* The GNU C library defines this for functions which it implements
  1273. to always fail with ENOSYS. Some functions are actually named
  1274. something starting with __ and the normal name is an alias. */
  1275. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1276. choke me
  1277. #else
  1278. $ac_func();
  1279. #endif
  1280. ; return 0; }
  1281. EOF
  1282. if eval $ac_link; then
  1283. rm -rf conftest*
  1284. eval "ac_cv_func_$ac_func=yes"
  1285. else
  1286. rm -rf conftest*
  1287. eval "ac_cv_func_$ac_func=no"
  1288. fi
  1289. rm -f conftest*
  1290. fi
  1291. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1292. echo "$ac_t""yes" 1>&6
  1293. ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1294. cat >> confdefs.h <<EOF
  1295. #define $ac_tr_func 1
  1296. EOF
  1297. else
  1298. echo "$ac_t""no" 1>&6
  1299. fi
  1300. done
  1301. for ac_hdr in sys/cdefs.h
  1302. do
  1303. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1304. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1305. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1306. echo $ac_n "(cached) $ac_c" 1>&6
  1307. else
  1308. cat > conftest.$ac_ext <<EOF
  1309. #line 1457 "configure"
  1310. #include "confdefs.h"
  1311. #include <$ac_hdr>
  1312. EOF
  1313. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1314. ac_err=`grep -v '^ *+' conftest.out`
  1315. if test -z "$ac_err"; then
  1316. rm -rf conftest*
  1317. eval "ac_cv_header_$ac_safe=yes"
  1318. else
  1319. echo "$ac_err" >&5
  1320. rm -rf conftest*
  1321. eval "ac_cv_header_$ac_safe=no"
  1322. fi
  1323. rm -f conftest*
  1324. fi
  1325. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1326. echo "$ac_t""yes" 1>&6
  1327. ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1328. cat >> confdefs.h <<EOF
  1329. #define $ac_tr_hdr 1
  1330. EOF
  1331. else
  1332. echo "$ac_t""no" 1>&6
  1333. fi
  1334. done
  1335. echo $ac_n "checking for sysinfo""... $ac_c" 1>&6
  1336. if eval "test \"`echo '$''{'ac_cv_func_sysinfo'+set}'`\" = set"; then
  1337. echo $ac_n "(cached) $ac_c" 1>&6
  1338. else
  1339. cat > conftest.$ac_ext <<EOF
  1340. #line 1491 "configure"
  1341. #include "confdefs.h"
  1342. /* System header to define __stub macros and hopefully few prototypes,
  1343. which can conflict with char sysinfo(); below. */
  1344. #include <assert.h>
  1345. /* Override any gcc2 internal prototype to avoid an error. */
  1346. char sysinfo();
  1347. int main() { return 0; }
  1348. int t() {
  1349. /* The GNU C library defines this for functions which it implements
  1350. to always fail with ENOSYS. Some functions are actually named
  1351. something starting with __ and the normal name is an alias. */
  1352. #if defined (__stub_sysinfo) || defined (__stub___sysinfo)
  1353. choke me
  1354. #else
  1355. sysinfo();
  1356. #endif
  1357. ; return 0; }
  1358. EOF
  1359. if eval $ac_link; then
  1360. rm -rf conftest*
  1361. eval "ac_cv_func_sysinfo=yes"
  1362. else
  1363. rm -rf conftest*
  1364. eval "ac_cv_func_sysinfo=no"
  1365. fi
  1366. rm -f conftest*
  1367. fi
  1368. if eval "test \"`echo '$ac_cv_func_'sysinfo`\" = yes"; then
  1369. echo "$ac_t""yes" 1>&6
  1370. cat >> confdefs.h <<\EOF
  1371. #define HAVE_SYSINFO 1
  1372. EOF
  1373. else
  1374. echo "$ac_t""no" 1>&6
  1375. echo $ac_n "checking __NR_sysinfo""... $ac_c" 1>&6
  1376. cat > conftest.$ac_ext <<EOF
  1377. #line 1533 "configure"
  1378. #include "confdefs.h"
  1379. #include <linux/sys.h>
  1380. #include <linux/kernel.h>
  1381. #include <linux/unistd.h>
  1382. #ifdef __NR_sysinfo
  1383. yes
  1384. #endif
  1385. EOF
  1386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1387. egrep "yes" >/dev/null 2>&1; then
  1388. rm -rf conftest*
  1389. echo "$ac_t""yes; tsk tsk - get your libc fixed." 1>&6
  1390. cat >> confdefs.h <<\EOF
  1391. #define HAVE_NRSYSINFO 1
  1392. EOF
  1393. else
  1394. rm -rf conftest*
  1395. echo "$ac_t""no" 1>&6
  1396. echo "configure: warning: sysinfo missing; compilation of dpkg proper may fail." 1>&2
  1397. fi
  1398. rm -f conftest*
  1399. fi
  1400. if test "${GCC-no}" = yes; then
  1401. CFLAGS=-O2; OPTCFLAGS=-O3
  1402. else
  1403. CFLAGS=-O
  1404. fi
  1405. echo $ac_n "checking your C compiler""... $ac_c" 1>&6
  1406. if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
  1407. echo $ac_n "(cached) $ac_c" 1>&6
  1408. else
  1409. cat > conftest.$ac_ext <<EOF
  1410. #line 1578 "configure"
  1411. #include "confdefs.h"
  1412. #include <string.h>
  1413. int main() { return 0; }
  1414. int t() {
  1415. strcmp("a","b")
  1416. ; return 0; }
  1417. EOF
  1418. if eval $ac_compile; then
  1419. rm -rf conftest*
  1420. dpkg_cv_c_works=yes
  1421. else
  1422. rm -rf conftest*
  1423. dpkg_cv_c_works=no
  1424. fi
  1425. rm -f conftest*
  1426. fi
  1427. if test "x$dpkg_cv_c_works" = xyes; then
  1428. true
  1429. echo "$ac_t""works" 1>&6
  1430. else
  1431. true
  1432. echo "$ac_t""broken" 1>&6
  1433. { echo "configure: error: C compiler is broken" 1>&2; exit 1; }
  1434. fi
  1435. echo $ac_n "checking alphasort declaration""... $ac_c" 1>&6
  1436. if eval "test \"`echo '$''{'dpkg_cv_header_alphasort'+set}'`\" = set"; then
  1437. echo $ac_n "(cached) $ac_c" 1>&6
  1438. else
  1439. cat > conftest.$ac_ext <<EOF
  1440. #line 1615 "configure"
  1441. #include "confdefs.h"
  1442. #include <sys/types.h>
  1443. #include <sys/dir.h>
  1444. int main() { return 0; }
  1445. int t() {
  1446. alphasort
  1447. ; return 0; }
  1448. EOF
  1449. if eval $ac_compile; then
  1450. rm -rf conftest*
  1451. dpkg_cv_header_alphasort=yes
  1452. else
  1453. rm -rf conftest*
  1454. dpkg_cv_header_alphasort=no
  1455. fi
  1456. rm -f conftest*
  1457. fi
  1458. if test "x$dpkg_cv_header_alphasort" = xyes; then
  1459. true
  1460. echo "$ac_t""yes" 1>&6
  1461. cat >> confdefs.h <<\EOF
  1462. #define HAVE_ALPHASORT_DECLARATION 1
  1463. EOF
  1464. else
  1465. true
  1466. echo "$ac_t""no" 1>&6
  1467. fi
  1468. echo $ac_n "checking inlines""... $ac_c" 1>&6
  1469. if eval "test \"`echo '$''{'dpkg_cv_c_inline'+set}'`\" = set"; then
  1470. echo $ac_n "(cached) $ac_c" 1>&6
  1471. else
  1472. cat > conftest.$ac_ext <<EOF
  1473. #line 1658 "configure"
  1474. #include "confdefs.h"
  1475. int main() { return 0; }
  1476. int t() {
  1477. } inline int foo (int x) {
  1478. ; return 0; }
  1479. EOF
  1480. if eval $ac_compile; then
  1481. rm -rf conftest*
  1482. dpkg_cv_c_inline=yes
  1483. else
  1484. rm -rf conftest*
  1485. dpkg_cv_c_inline=no
  1486. fi
  1487. rm -f conftest*
  1488. fi
  1489. if test "x$dpkg_cv_c_inline" = xyes; then
  1490. true
  1491. echo "$ac_t""yes" 1>&6
  1492. cat >> confdefs.h <<\EOF
  1493. #define HAVE_INLINE 1
  1494. EOF
  1495. else
  1496. true
  1497. echo "$ac_t""no" 1>&6
  1498. fi
  1499. echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
  1500. if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
  1501. echo $ac_n "(cached) $ac_c" 1>&6
  1502. else
  1503. cat > conftest.$ac_ext <<EOF
  1504. #line 1698 "configure"
  1505. #include "confdefs.h"
  1506. int main() { return 0; }
  1507. int t() {
  1508. extern int testfunction(int x) __attribute__((,,))
  1509. ; return 0; }
  1510. EOF
  1511. if eval $ac_compile; then
  1512. rm -rf conftest*
  1513. dpkg_cv_c_attribute_supported=yes
  1514. else
  1515. rm -rf conftest*
  1516. dpkg_cv_c_attribute_supported=no
  1517. fi
  1518. rm -f conftest*
  1519. fi
  1520. if test "x$dpkg_cv_c_attribute_supported" = xyes; then
  1521. true
  1522. echo "$ac_t""yes" 1>&6
  1523. cat >> confdefs.h <<\EOF
  1524. #define HAVE_GNUC25_ATTRIB 1
  1525. EOF
  1526. echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
  1527. if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
  1528. echo $ac_n "(cached) $ac_c" 1>&6
  1529. else
  1530. cat > conftest.$ac_ext <<EOF
  1531. #line 1732 "configure"
  1532. #include "confdefs.h"
  1533. int main() { return 0; }
  1534. int t() {
  1535. extern int testfunction(int x) __attribute__((noreturn))
  1536. ; return 0; }
  1537. EOF
  1538. if eval $ac_compile; then
  1539. rm -rf conftest*
  1540. dpkg_cv_c_attribute_noreturn=yes
  1541. else
  1542. rm -rf conftest*
  1543. dpkg_cv_c_attribute_noreturn=no
  1544. fi
  1545. rm -f conftest*
  1546. fi
  1547. if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
  1548. true
  1549. echo "$ac_t""yes" 1>&6
  1550. cat >> confdefs.h <<\EOF
  1551. #define HAVE_GNUC25_NORETURN 1
  1552. EOF
  1553. else
  1554. true
  1555. echo "$ac_t""no" 1>&6
  1556. fi
  1557. echo $ac_n "checking __attribute__((const))""... $ac_c" 1>&6
  1558. if eval "test \"`echo '$''{'dpkg_cv_c_attribute_const'+set}'`\" = set"; then
  1559. echo $ac_n "(cached) $ac_c" 1>&6
  1560. else
  1561. cat > conftest.$ac_ext <<EOF
  1562. #line 1771 "configure"
  1563. #include "confdefs.h"
  1564. int main() { return 0; }
  1565. int t() {
  1566. extern int testfunction(int x) __attribute__((const))
  1567. ; return 0; }
  1568. EOF
  1569. if eval $ac_compile; then
  1570. rm -rf conftest*
  1571. dpkg_cv_c_attribute_const=yes
  1572. else
  1573. rm -rf conftest*
  1574. dpkg_cv_c_attribute_const=no
  1575. fi
  1576. rm -f conftest*
  1577. fi
  1578. if test "x$dpkg_cv_c_attribute_const" = xyes; then
  1579. true
  1580. echo "$ac_t""yes" 1>&6
  1581. cat >> confdefs.h <<\EOF
  1582. #define HAVE_GNUC25_CONST 1
  1583. EOF
  1584. else
  1585. true
  1586. echo "$ac_t""no" 1>&6
  1587. fi
  1588. echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
  1589. if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
  1590. echo $ac_n "(cached) $ac_c" 1>&6
  1591. else
  1592. cat > conftest.$ac_ext <<EOF
  1593. #line 1810 "configure"
  1594. #include "confdefs.h"
  1595. int main() { return 0; }
  1596. int t() {
  1597. extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
  1598. ; return 0; }
  1599. EOF
  1600. if eval $ac_compile; then
  1601. rm -rf conftest*
  1602. dpkg_cv_attribute_format=yes
  1603. else
  1604. rm -rf conftest*
  1605. dpkg_cv_attribute_format=no
  1606. fi
  1607. rm -f conftest*
  1608. fi
  1609. if test "x$dpkg_cv_attribute_format" = xyes; then
  1610. true
  1611. echo "$ac_t""yes" 1>&6
  1612. cat >> confdefs.h <<\EOF
  1613. #define HAVE_GNUC25_PRINTFFORMAT 1
  1614. EOF
  1615. else
  1616. true
  1617. echo "$ac_t""no" 1>&6
  1618. fi
  1619. else
  1620. true
  1621. echo "$ac_t""no" 1>&6
  1622. fi
  1623. CWARNS=""
  1624. echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
  1625. if test "${GCC-no}" = yes
  1626. then
  1627. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
  1628. echo $ac_n "(cached) $ac_c" 1>&6
  1629. else
  1630. oldcflags="${CFLAGS-}"
  1631. CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
  1632. cat > conftest.$ac_ext <<EOF
  1633. #line 1864 "configure"
  1634. #include "confdefs.h"
  1635. #include <string.h>
  1636. #include <stdio.h>
  1637. int main() { return 0; }
  1638. int t() {
  1639. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1640. ; return 0; }
  1641. EOF
  1642. if eval $ac_compile; then
  1643. rm -rf conftest*
  1644. dpkg_cv_c_gcc_warn_all=yes
  1645. else
  1646. rm -rf conftest*
  1647. dpkg_cv_c_gcc_warn_all=no
  1648. fi
  1649. rm -f conftest*
  1650. CFLAGS="${oldcflags}"
  1651. fi
  1652. if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
  1653. CWARNS="${CWARNS} -Wall -Wno-implicit"
  1654. echo "$ac_t""ok" 1>&6
  1655. else
  1656. dpkg_cv_c_gcc_warn_all=''
  1657. echo "$ac_t""no" 1>&6
  1658. fi
  1659. else
  1660. echo "$ac_t""no" 1>&6
  1661. fi
  1662. echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
  1663. if test "${GCC-no}" = yes
  1664. then
  1665. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
  1666. echo $ac_n "(cached) $ac_c" 1>&6
  1667. else
  1668. oldcflags="${CFLAGS-}"
  1669. CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
  1670. cat > conftest.$ac_ext <<EOF
  1671. #line 1911 "configure"
  1672. #include "confdefs.h"
  1673. #include <string.h>
  1674. #include <stdio.h>
  1675. int main() { return 0; }
  1676. int t() {
  1677. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1678. ; return 0; }
  1679. EOF
  1680. if eval $ac_compile; then
  1681. rm -rf conftest*
  1682. dpkg_cv_c_gcc_warn_writestrings=yes
  1683. else
  1684. rm -rf conftest*
  1685. dpkg_cv_c_gcc_warn_writestrings=no
  1686. fi
  1687. rm -f conftest*
  1688. CFLAGS="${oldcflags}"
  1689. fi
  1690. if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
  1691. CWARNS="${CWARNS} -Wwrite-strings"
  1692. echo "$ac_t""ok" 1>&6
  1693. else
  1694. dpkg_cv_c_gcc_warn_writestrings=''
  1695. echo "$ac_t""no" 1>&6
  1696. fi
  1697. else
  1698. echo "$ac_t""no" 1>&6
  1699. fi
  1700. echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
  1701. if test "${GCC-no}" = yes
  1702. then
  1703. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
  1704. echo $ac_n "(cached) $ac_c" 1>&6
  1705. else
  1706. oldcflags="${CFLAGS-}"
  1707. CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
  1708. cat > conftest.$ac_ext <<EOF
  1709. #line 1958 "configure"
  1710. #include "confdefs.h"
  1711. #include <string.h>
  1712. #include <stdio.h>
  1713. int main() { return 0; }
  1714. int t() {
  1715. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1716. ; return 0; }
  1717. EOF
  1718. if eval $ac_compile; then
  1719. rm -rf conftest*
  1720. dpkg_cv_c_gcc_warn_pointerarith=yes
  1721. else
  1722. rm -rf conftest*
  1723. dpkg_cv_c_gcc_warn_pointerarith=no
  1724. fi
  1725. rm -f conftest*
  1726. CFLAGS="${oldcflags}"
  1727. fi
  1728. if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
  1729. CWARNS="${CWARNS} -Wpointer-arith"
  1730. echo "$ac_t""ok" 1>&6
  1731. else
  1732. dpkg_cv_c_gcc_warn_pointerarith=''
  1733. echo "$ac_t""no" 1>&6
  1734. fi
  1735. else
  1736. echo "$ac_t""no" 1>&6
  1737. fi
  1738. echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
  1739. if test "${GCC-no}" = yes
  1740. then
  1741. if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
  1742. echo $ac_n "(cached) $ac_c" 1>&6
  1743. else
  1744. oldcflags="${CFLAGS-}"
  1745. CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
  1746. cat > conftest.$ac_ext <<EOF
  1747. #line 2005 "configure"
  1748. #include "confdefs.h"
  1749. #include <string.h>
  1750. #include <stdio.h>
  1751. int main() { return 0; }
  1752. int t() {
  1753. strcmp("a","b"); fprintf(stdout,"test ok\n");
  1754. ; return 0; }
  1755. EOF
  1756. if eval $ac_compile; then
  1757. rm -rf conftest*
  1758. dpkg_cv_c_gcc_warn_implicit=yes
  1759. else
  1760. rm -rf conftest*
  1761. dpkg_cv_c_gcc_warn_implicit=no
  1762. fi
  1763. rm -f conftest*
  1764. CFLAGS="${oldcflags}"
  1765. fi
  1766. if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
  1767. CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
  1768. echo "$ac_t""ok" 1>&6
  1769. else
  1770. dpkg_cv_c_gcc_warn_implicit=''
  1771. echo "$ac_t""no" 1>&6
  1772. fi
  1773. else
  1774. echo "$ac_t""no" 1>&6
  1775. fi
  1776. if test "${GCC-no}" = yes; then
  1777. CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
  1778. fi
  1779. trap '' 1 2 15
  1780. cat > confcache <<\EOF
  1781. # This file is a shell script that caches the results of configure
  1782. # tests run on this system so they can be shared between configure
  1783. # scripts and configure runs. It is not useful on other systems.
  1784. # If it contains results you don't want to keep, you may remove or edit it.
  1785. #
  1786. # By default, configure uses ./config.cache as the cache file,
  1787. # creating it if it does not exist already. You can give configure
  1788. # the --cache-file=FILE option to use a different cache file; that is
  1789. # what configure does when it calls configure scripts in
  1790. # subdirectories, so they share the cache.
  1791. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1792. # config.status only pays attention to the cache file if you give it the
  1793. # --recheck option to rerun configure.
  1794. #
  1795. EOF
  1796. # Ultrix sh set writes to stderr and can't be redirected directly,
  1797. # and sets the high bit in the cache file unless we assign to the vars.
  1798. (set) 2>&1 |
  1799. sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1800. >> confcache
  1801. if cmp -s $cache_file confcache; then
  1802. :
  1803. else
  1804. if test -w $cache_file; then
  1805. echo "updating cache $cache_file"
  1806. cat confcache > $cache_file
  1807. else
  1808. echo "not updating unwritable cache $cache_file"
  1809. fi
  1810. fi
  1811. rm -f confcache
  1812. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1813. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1814. # Let make expand exec_prefix.
  1815. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1816. # Any assignment to VPATH causes Sun make to only execute
  1817. # the first set of double-colon rules, so remove it if not needed.
  1818. # If there is a colon in the path, we need to keep it.
  1819. if test "x$srcdir" = x.; then
  1820. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1821. fi
  1822. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1823. DEFS=-DHAVE_CONFIG_H
  1824. # Without the "./", some shells look in PATH for config.status.
  1825. : ${CONFIG_STATUS=./config.status}
  1826. echo creating $CONFIG_STATUS
  1827. rm -f $CONFIG_STATUS
  1828. cat > $CONFIG_STATUS <<EOF
  1829. #! /bin/sh
  1830. # Generated automatically by configure.
  1831. # Run this file to recreate the current configuration.
  1832. # This directory was configured as follows,
  1833. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1834. #
  1835. # $0 $ac_configure_args
  1836. #
  1837. # Compiler output produced by configure, useful for debugging
  1838. # configure, is in ./config.log if it exists.
  1839. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1840. for ac_option
  1841. do
  1842. case "\$ac_option" in
  1843. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1844. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1845. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1846. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1847. echo "$CONFIG_STATUS generated by autoconf version 2.4"
  1848. exit 0 ;;
  1849. -help | --help | --hel | --he | --h)
  1850. echo "\$ac_cs_usage"; exit 0 ;;
  1851. *) echo "\$ac_cs_usage"; exit 1 ;;
  1852. esac
  1853. done
  1854. ac_given_srcdir=$srcdir
  1855. ac_given_INSTALL="$INSTALL"
  1856. trap 'rm -fr `echo "Makefile dpkg-deb/Makefile lib/Makefile include/Makefile
  1857. dselect/Makefile split/Makefile methods/Makefile
  1858. md5sum/Makefile main/Makefile doc/Makefile scripts/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1859. # Protect against being on the right side of a sed subst in config.status.
  1860. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
  1861. s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1862. $ac_vpsub
  1863. $extrasub
  1864. s%@CFLAGS@%$CFLAGS%g
  1865. s%@CPPFLAGS@%$CPPFLAGS%g
  1866. s%@CXXFLAGS@%$CXXFLAGS%g
  1867. s%@DEFS@%$DEFS%g
  1868. s%@LDFLAGS@%$LDFLAGS%g
  1869. s%@LIBS@%$LIBS%g
  1870. s%@exec_prefix@%$exec_prefix%g
  1871. s%@prefix@%$prefix%g
  1872. s%@program_transform_name@%$program_transform_name%g
  1873. s%@CC@%$CC%g
  1874. s%@CXX@%$CXX%g
  1875. s%@perlpath@%$perlpath%g
  1876. s%@CPP@%$CPP%g
  1877. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1878. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1879. s%@RANLIB@%$RANLIB%g
  1880. s%@OPTCFLAGS@%$OPTCFLAGS%g
  1881. s%@CWARNS@%$CWARNS%g
  1882. CEOF
  1883. EOF
  1884. cat >> $CONFIG_STATUS <<EOF
  1885. CONFIG_FILES=\${CONFIG_FILES-"Makefile dpkg-deb/Makefile lib/Makefile include/Makefile
  1886. dselect/Makefile split/Makefile methods/Makefile
  1887. md5sum/Makefile main/Makefile doc/Makefile scripts/Makefile"}
  1888. EOF
  1889. cat >> $CONFIG_STATUS <<\EOF
  1890. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1891. # Support "outfile[:infile]", defaulting infile="outfile.in".
  1892. case "$ac_file" in
  1893. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1894. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1895. *) ac_file_in="${ac_file}.in" ;;
  1896. esac
  1897. # Adjust relative srcdir, etc. for subdirectories.
  1898. # Remove last slash and all that follows it. Not all systems have dirname.
  1899. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1900. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1901. # The file is in a subdirectory.
  1902. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1903. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1904. # A "../" for each directory in $ac_dir_suffix.
  1905. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1906. else
  1907. ac_dir_suffix= ac_dots=
  1908. fi
  1909. case "$ac_given_srcdir" in
  1910. .) srcdir=.
  1911. if test -z "$ac_dots"; then top_srcdir=.
  1912. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1913. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1914. *) # Relative path.
  1915. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1916. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1917. esac
  1918. case "$ac_given_INSTALL" in
  1919. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1920. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1921. esac
  1922. echo creating "$ac_file"
  1923. rm -f "$ac_file"
  1924. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1925. case "$ac_file" in
  1926. *Makefile*) ac_comsub="1i\\
  1927. # $configure_input" ;;
  1928. *) ac_comsub= ;;
  1929. esac
  1930. sed -e "$ac_comsub
  1931. s%@configure_input@%$configure_input%g
  1932. s%@srcdir@%$srcdir%g
  1933. s%@top_srcdir@%$top_srcdir%g
  1934. s%@INSTALL@%$INSTALL%g
  1935. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1936. fi; done
  1937. rm -f conftest.subs
  1938. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1939. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1940. #
  1941. # ac_d sets the value in "#define NAME VALUE" lines.
  1942. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1943. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1944. ac_dC='\3'
  1945. ac_dD='%g'
  1946. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1947. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1948. ac_uB='\([ ]\)%\1#\2define\3'
  1949. ac_uC=' '
  1950. ac_uD='\4%g'
  1951. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1952. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1953. ac_eB='$%\1#\2define\3'
  1954. ac_eC=' '
  1955. ac_eD='%g'
  1956. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  1957. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1958. # Support "outfile[:infile]", defaulting infile="outfile.in".
  1959. case "$ac_file" in
  1960. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1961. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1962. *) ac_file_in="${ac_file}.in" ;;
  1963. esac
  1964. echo creating $ac_file
  1965. rm -f conftest.frag conftest.in conftest.out
  1966. cp $ac_given_srcdir/$ac_file_in conftest.in
  1967. EOF
  1968. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1969. # the proper values into config.h.in to produce config.h. And first:
  1970. # Protect against being on the right side of a sed subst in config.status.
  1971. # Protect against being in an unquoted here document in config.status.
  1972. rm -f conftest.vals
  1973. cat > conftest.hdr <<\EOF
  1974. s/[\\&%]/\\&/g
  1975. s%[\\$`]%\\&%g
  1976. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1977. s%ac_d%ac_u%gp
  1978. s%ac_u%ac_e%gp
  1979. EOF
  1980. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1981. rm -f conftest.hdr
  1982. # This sed command replaces #undef with comments. This is necessary, for
  1983. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1984. # on some systems where configure will not decide to define it.
  1985. cat >> conftest.vals <<\EOF
  1986. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1987. EOF
  1988. # Break up conftest.vals because some shells have a limit on
  1989. # the size of here documents, and old seds have small limits too.
  1990. # Maximum number of lines to put in a single here document.
  1991. ac_max_here_lines=12
  1992. rm -f conftest.tail
  1993. while :
  1994. do
  1995. ac_lines=`grep -c . conftest.vals`
  1996. # grep -c gives empty output for an empty file on some AIX systems.
  1997. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1998. # Write a limited-size here document to conftest.frag.
  1999. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2000. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2001. echo 'CEOF
  2002. sed -f conftest.frag conftest.in > conftest.out
  2003. rm -f conftest.in
  2004. mv conftest.out conftest.in
  2005. ' >> $CONFIG_STATUS
  2006. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2007. rm -f conftest.vals
  2008. mv conftest.tail conftest.vals
  2009. done
  2010. rm -f conftest.vals
  2011. cat >> $CONFIG_STATUS <<\EOF
  2012. rm -f conftest.frag conftest.h
  2013. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2014. cat conftest.in >> conftest.h
  2015. rm -f conftest.in
  2016. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2017. echo "$ac_file is unchanged"
  2018. rm -f conftest.h
  2019. else
  2020. rm -f $ac_file
  2021. mv conftest.h $ac_file
  2022. fi
  2023. fi; done
  2024. exit 0
  2025. EOF
  2026. chmod +x $CONFIG_STATUS
  2027. rm -fr confdefs* $ac_clean_files
  2028. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1