configure 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424
  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.1
  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. # Initialize some variables set by options.
  13. # The variables have the same names as the options, with
  14. # dashes changed to underlines.
  15. build=NONE
  16. cache_file=./config.cache
  17. exec_prefix=NONE
  18. host=NONE
  19. no_create=
  20. nonopt=NONE
  21. no_recursion=
  22. prefix=NONE
  23. program_prefix=NONE
  24. program_suffix=NONE
  25. program_transform_name=s,x,x,
  26. silent=
  27. site=
  28. srcdir=
  29. target=NONE
  30. verbose=
  31. x_includes=NONE
  32. x_libraries=NONE
  33. # Initialize some other variables.
  34. subdirs=
  35. ac_prev=
  36. for ac_option
  37. do
  38. # If the previous option needs an argument, assign it.
  39. if test -n "$ac_prev"; then
  40. eval "$ac_prev=\$ac_option"
  41. ac_prev=
  42. continue
  43. fi
  44. case "$ac_option" in
  45. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  46. *) ac_optarg= ;;
  47. esac
  48. # Accept the important Cygnus configure options, so we can diagnose typos.
  49. case "$ac_option" in
  50. -build | --build | --buil | --bui | --bu | --b)
  51. ac_prev=build ;;
  52. -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  53. build="$ac_optarg" ;;
  54. -cache-file | --cache-file | --cache-fil | --cache-fi \
  55. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  56. ac_prev=cache_file ;;
  57. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  58. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  59. cache_file="$ac_optarg" ;;
  60. -disable-* | --disable-*)
  61. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  62. # Reject names that are not valid shell variable names.
  63. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  64. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  65. fi
  66. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  67. eval "enable_${ac_feature}=no" ;;
  68. -enable-* | --enable-*)
  69. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  70. # Reject names that are not valid shell variable names.
  71. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  72. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  73. fi
  74. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  75. case "$ac_option" in
  76. *=*) ;;
  77. *) ac_optarg=yes ;;
  78. esac
  79. eval "enable_${ac_feature}='$ac_optarg'" ;;
  80. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  81. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  82. | --exec | --exe | --ex)
  83. ac_prev=exec_prefix ;;
  84. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  85. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  86. | --exec=* | --exe=* | --ex=*)
  87. exec_prefix="$ac_optarg" ;;
  88. -gas | --gas | --ga | --g)
  89. # Obsolete; use --with-gas.
  90. with_gas=yes ;;
  91. -help | --help | --hel | --he)
  92. # Omit some internal or obsolete options to make the list less imposing.
  93. # This message is too long to be a string in the A/UX 3.1 sh.
  94. cat << EOF
  95. Usage: configure [options] [host]
  96. Options: [defaults in brackets after descriptions]
  97. Configuration:
  98. --cache-file=FILE cache test results in FILE
  99. --help print this message
  100. --no-create do not create output files
  101. --quiet, --silent do not print \`checking...' messages
  102. --version print the version of autoconf that created configure
  103. Directory and file names:
  104. --prefix=PREFIX install architecture-independent files in PREFIX
  105. [$ac_default_prefix]
  106. --exec-prefix=PREFIX install architecture-dependent files in PREFIX
  107. [same as prefix]
  108. --srcdir=DIR find the sources in DIR [configure dir or ..]
  109. --program-prefix=PREFIX prepend PREFIX to installed program names
  110. --program-suffix=SUFFIX append SUFFIX to installed program names
  111. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  112. Host type:
  113. --build=BUILD configure for building on BUILD [BUILD=HOST]
  114. --host=HOST configure for HOST [guessed]
  115. --target=TARGET configure for TARGET [TARGET=HOST]
  116. Features and packages:
  117. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  118. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  119. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  120. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  121. --x-includes=DIR X include files are in DIR
  122. --x-libraries=DIR X library files are in DIR
  123. --enable and --with options recognized:$ac_help
  124. EOF
  125. exit 0 ;;
  126. -host | --host | --hos | --ho)
  127. ac_prev=host ;;
  128. -host=* | --host=* | --hos=* | --ho=*)
  129. host="$ac_optarg" ;;
  130. -nfp | --nfp | --nf)
  131. # Obsolete; use --without-fp.
  132. with_fp=no ;;
  133. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  134. | --no-cr | --no-c)
  135. no_create=yes ;;
  136. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  137. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  138. no_recursion=yes ;;
  139. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  140. ac_prev=prefix ;;
  141. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  142. prefix="$ac_optarg" ;;
  143. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  144. | --program-pre | --program-pr | --program-p)
  145. ac_prev=program_prefix ;;
  146. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  147. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  148. program_prefix="$ac_optarg" ;;
  149. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  150. | --program-suf | --program-su | --program-s)
  151. ac_prev=program_suffix ;;
  152. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  153. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  154. program_suffix="$ac_optarg" ;;
  155. -program-transform-name | --program-transform-name \
  156. | --program-transform-nam | --program-transform-na \
  157. | --program-transform-n | --program-transform- \
  158. | --program-transform | --program-transfor \
  159. | --program-transfo | --program-transf \
  160. | --program-trans | --program-tran \
  161. | --progr-tra | --program-tr | --program-t)
  162. ac_prev=program_transform_name ;;
  163. -program-transform-name=* | --program-transform-name=* \
  164. | --program-transform-nam=* | --program-transform-na=* \
  165. | --program-transform-n=* | --program-transform-=* \
  166. | --program-transform=* | --program-transfor=* \
  167. | --program-transfo=* | --program-transf=* \
  168. | --program-trans=* | --program-tran=* \
  169. | --progr-tra=* | --program-tr=* | --program-t=*)
  170. program_transform_name="$ac_optarg" ;;
  171. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  172. | -silent | --silent | --silen | --sile | --sil)
  173. silent=yes ;;
  174. -site | --site | --sit)
  175. ac_prev=site ;;
  176. -site=* | --site=* | --sit=*)
  177. site="$ac_optarg" ;;
  178. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  179. ac_prev=srcdir ;;
  180. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  181. srcdir="$ac_optarg" ;;
  182. -target | --target | --targe | --targ | --tar | --ta | --t)
  183. ac_prev=target ;;
  184. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  185. target="$ac_optarg" ;;
  186. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  187. verbose=yes ;;
  188. -version | --version | --versio | --versi | --vers)
  189. echo "configure generated by autoconf version 2.1"
  190. exit 0 ;;
  191. -with-* | --with-*)
  192. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  193. # Reject names that are not valid shell variable names.
  194. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  195. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  196. fi
  197. ac_package=`echo $ac_package| sed 's/-/_/g'`
  198. case "$ac_option" in
  199. *=*) ;;
  200. *) ac_optarg=yes ;;
  201. esac
  202. eval "with_${ac_package}='$ac_optarg'" ;;
  203. -without-* | --without-*)
  204. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  205. # Reject names that are not valid shell variable names.
  206. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  207. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  208. fi
  209. ac_package=`echo $ac_package| sed 's/-/_/g'`
  210. eval "with_${ac_package}=no" ;;
  211. --x)
  212. # Obsolete; use --with-x.
  213. with_x=yes ;;
  214. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  215. | --x-incl | --x-inc | --x-in | --x-i)
  216. ac_prev=x_includes ;;
  217. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  218. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  219. x_includes="$ac_optarg" ;;
  220. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  221. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  222. ac_prev=x_libraries ;;
  223. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  224. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  225. x_libraries="$ac_optarg" ;;
  226. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  227. ;;
  228. *)
  229. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  230. echo "configure: warning: $ac_option: invalid host type" 1>&2
  231. fi
  232. if test "x$nonopt" != xNONE; then
  233. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  234. fi
  235. nonopt="$ac_option"
  236. ;;
  237. esac
  238. done
  239. if test -n "$ac_prev"; then
  240. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  241. fi
  242. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  243. # File descriptor usage:
  244. # 0 unused; standard input
  245. # 1 file creation
  246. # 2 errors and warnings
  247. # 3 unused; some systems may open it to /dev/tty
  248. # 4 checking for... messages and results
  249. # 5 compiler messages saved in config.log
  250. if test "$silent" = yes; then
  251. exec 4>/dev/null
  252. else
  253. exec 4>&1
  254. fi
  255. exec 5>./config.log
  256. echo "\
  257. This file contains any messages produced by compilers while
  258. running configure, to aid debugging if configure makes a mistake.
  259. " 1>&5
  260. # Strip out --no-create and --no-recursion so they do not pile up.
  261. # Also quote any args containing shell metacharacters.
  262. ac_configure_args=
  263. for ac_arg
  264. do
  265. case "$ac_arg" in
  266. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  267. | --no-cr | --no-c) ;;
  268. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  269. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  270. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  271. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  272. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  273. esac
  274. done
  275. # NLS nuisances.
  276. # Only set LANG and LC_ALL to C if already set.
  277. # These must not be set unconditionally because not all systems understand
  278. # e.g. LANG=C (notably SCO).
  279. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  280. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  281. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  282. rm -rf conftest* confdefs.h
  283. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  284. echo > confdefs.h
  285. # A filename unique to this package, relative to the directory that
  286. # configure is in, which we can look for to find out if srcdir is correct.
  287. ac_unique_file=reduce.c
  288. # Find the source files, if location was not specified.
  289. if test -z "$srcdir"; then
  290. ac_srcdir_defaulted=yes
  291. # Try the directory containing this script, then its parent.
  292. ac_prog=$0
  293. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  294. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  295. srcdir=$ac_confdir
  296. if test ! -r $srcdir/$ac_unique_file; then
  297. srcdir=..
  298. fi
  299. else
  300. ac_srcdir_defaulted=no
  301. fi
  302. if test ! -r $srcdir/$ac_unique_file; then
  303. if test "$ac_srcdir_defaulted" = yes; then
  304. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  305. else
  306. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  307. fi
  308. fi
  309. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  310. # Prefer explicitly selected file to automatically selected ones.
  311. if test -z "$CONFIG_SITE"; then
  312. if test "x$prefix" != xNONE; then
  313. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  314. else
  315. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  316. fi
  317. fi
  318. for ac_site_file in $CONFIG_SITE; do
  319. if test -r "$ac_site_file"; then
  320. echo "loading site script $ac_site_file"
  321. . "$ac_site_file"
  322. fi
  323. done
  324. if test -r "$cache_file"; then
  325. echo "loading cache $cache_file"
  326. . $cache_file
  327. else
  328. echo "creating cache $cache_file"
  329. > $cache_file
  330. fi
  331. ac_ext=c
  332. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  333. ac_cpp='$CPP $CPPFLAGS'
  334. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  335. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  336. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  337. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  338. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  339. ac_n= ac_c='
  340. ' ac_t=' '
  341. else
  342. ac_n=-n ac_c= ac_t=
  343. fi
  344. else
  345. ac_n= ac_c='\c' ac_t=
  346. fi
  347. # Extract the first word of "gcc", so it can be a program name with args.
  348. set dummy gcc; ac_word=$2
  349. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  350. if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  351. echo $ac_n "(cached) $ac_c" 1>&4
  352. else
  353. if test -n "$CC"; then
  354. ac_cv_prog_CC="$CC" # Let the user override the test.
  355. else
  356. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  357. for ac_dir in $PATH; do
  358. test -z "$ac_dir" && ac_dir=.
  359. if test -f $ac_dir/$ac_word; then
  360. ac_cv_prog_CC="gcc"
  361. break
  362. fi
  363. done
  364. IFS="$ac_save_ifs"
  365. test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  366. fi
  367. fi
  368. CC="$ac_cv_prog_CC"
  369. if test -n "$CC"; then
  370. echo "$ac_t""$CC" 1>&4
  371. else
  372. echo "$ac_t""no" 1>&4
  373. fi
  374. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  375. if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  376. echo $ac_n "(cached) $ac_c" 1>&4
  377. else
  378. cat > conftest.c <<EOF
  379. #ifdef __GNUC__
  380. yes;
  381. #endif
  382. EOF
  383. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  384. ac_cv_prog_gcc=yes
  385. else
  386. ac_cv_prog_gcc=no
  387. fi
  388. fi
  389. echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  390. if test $ac_cv_prog_gcc = yes; then
  391. GCC=yes
  392. if test "${CFLAGS+set}" != set; then
  393. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  394. if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  395. echo $ac_n "(cached) $ac_c" 1>&4
  396. else
  397. echo 'void f(){}' > conftest.c
  398. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  399. ac_cv_prog_gcc_g=yes
  400. else
  401. ac_cv_prog_gcc_g=no
  402. fi
  403. rm -f conftest*
  404. fi
  405. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  406. if test $ac_cv_prog_gcc_g = yes; then
  407. CFLAGS="-g -O"
  408. else
  409. CFLAGS="-O"
  410. fi
  411. fi
  412. else
  413. GCC=
  414. test "${CFLAGS+set}" = set || CFLAGS="-g"
  415. fi
  416. ac_aux_dir=
  417. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  418. if test -f $ac_dir/install-sh; then
  419. ac_aux_dir=$ac_dir
  420. ac_install_sh="$ac_aux_dir/install-sh -c"
  421. break
  422. elif test -f $ac_dir/install.sh; then
  423. ac_aux_dir=$ac_dir
  424. ac_install_sh="$ac_aux_dir/install.sh -c"
  425. break
  426. fi
  427. done
  428. if test -z "$ac_aux_dir"; then
  429. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  430. fi
  431. ac_config_guess=$ac_aux_dir/config.guess
  432. ac_config_sub=$ac_aux_dir/config.sub
  433. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  434. # Find a good install program. We prefer a C program (faster),
  435. # so one script is as good as another. But avoid the broken or
  436. # incompatible versions:
  437. # SysV /etc/install, /usr/sbin/install
  438. # SunOS /usr/etc/install
  439. # IRIX /sbin/install
  440. # AIX /bin/install
  441. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  442. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  443. # ./install, which can be erroneously created by make from ./install.sh.
  444. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  445. if test -z "$INSTALL"; then
  446. if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  447. echo $ac_n "(cached) $ac_c" 1>&4
  448. else
  449. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  450. for ac_dir in $PATH; do
  451. case "$ac_dir" in
  452. ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  453. *)
  454. # OSF1 and SCO ODT 3.0 have their own names for install.
  455. for ac_prog in ginstall installbsd scoinst install; do
  456. if test -f $ac_dir/$ac_prog; then
  457. if test $ac_prog = install &&
  458. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  459. # AIX install. It has an incompatible calling convention.
  460. # OSF/1 installbsd also uses dspmsg, but is usable.
  461. :
  462. else
  463. ac_cv_path_install="$ac_dir/$ac_prog -c"
  464. break 2
  465. fi
  466. fi
  467. done
  468. ;;
  469. esac
  470. done
  471. IFS="$ac_save_ifs"
  472. # As a last resort, use the slow shell script.
  473. test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  474. fi
  475. INSTALL="$ac_cv_path_install"
  476. fi
  477. echo "$ac_t""$INSTALL" 1>&4
  478. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  479. # It thinks the first close brace ends the variable substitution.
  480. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  481. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  482. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  483. # On Suns, sometimes $CPP names a directory.
  484. if test -n "$CPP" && test -d "$CPP"; then
  485. CPP=
  486. fi
  487. if test -z "$CPP"; then
  488. if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  489. echo $ac_n "(cached) $ac_c" 1>&4
  490. else
  491. # This must be in double quotes, not single quotes, because CPP may get
  492. # substituted into the Makefile and "${CC-cc}" will confuse make.
  493. CPP="${CC-cc} -E"
  494. # On the NeXT, cc -E runs the code through the compiler's parser,
  495. # not just through cpp.
  496. cat > conftest.$ac_ext <<EOF
  497. #line 561 "configure"
  498. #include "confdefs.h"
  499. #include <assert.h>
  500. Syntax Error
  501. EOF
  502. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  503. ac_err=`grep -v '^ *+' conftest.out`
  504. if test -z "$ac_err"; then
  505. :
  506. else
  507. echo "$ac_err" >&5
  508. rm -rf conftest*
  509. CPP="${CC-cc} -E -traditional-cpp"
  510. cat > conftest.$ac_ext <<EOF
  511. #line 575 "configure"
  512. #include "confdefs.h"
  513. #include <assert.h>
  514. Syntax Error
  515. EOF
  516. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  517. ac_err=`grep -v '^ *+' conftest.out`
  518. if test -z "$ac_err"; then
  519. :
  520. else
  521. echo "$ac_err" >&5
  522. rm -rf conftest*
  523. CPP=/lib/cpp
  524. fi
  525. rm -f conftest*
  526. fi
  527. rm -f conftest*
  528. ac_cv_prog_CPP="$CPP"
  529. fi
  530. fi
  531. CPP="$ac_cv_prog_CPP"
  532. echo "$ac_t""$CPP" 1>&4
  533. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  534. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  535. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  536. echo $ac_n "(cached) $ac_c" 1>&4
  537. else
  538. cat > conftest.$ac_ext <<EOF
  539. #line 604 "configure"
  540. #include "confdefs.h"
  541. #include <minix/config.h>
  542. EOF
  543. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  544. ac_err=`grep -v '^ *+' conftest.out`
  545. if test -z "$ac_err"; then
  546. rm -rf conftest*
  547. eval "ac_cv_header_$ac_safe=yes"
  548. else
  549. echo "$ac_err" >&5
  550. rm -rf conftest*
  551. eval "ac_cv_header_$ac_safe=no"
  552. fi
  553. rm -f conftest*
  554. fi
  555. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  556. echo "$ac_t""yes" 1>&4
  557. MINIX=yes
  558. else
  559. echo "$ac_t""no" 1>&4
  560. MINIX=
  561. fi
  562. if test "$MINIX" = yes; then
  563. cat >> confdefs.h <<\EOF
  564. #define _POSIX_SOURCE 1
  565. EOF
  566. cat >> confdefs.h <<\EOF
  567. #define _POSIX_1_SOURCE 2
  568. EOF
  569. cat >> confdefs.h <<\EOF
  570. #define _MINIX 1
  571. EOF
  572. fi
  573. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  574. if test -d /etc/conf/kconfig.d &&
  575. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  576. then
  577. echo "$ac_t""yes" 1>&4
  578. ISC=yes # If later tests want to check for ISC.
  579. cat >> confdefs.h <<\EOF
  580. #define _POSIX_SOURCE 1
  581. EOF
  582. if test "$GCC" = yes; then
  583. CC="$CC -posix"
  584. else
  585. CC="$CC -Xp"
  586. fi
  587. else
  588. echo "$ac_t""no" 1>&4
  589. ISC=
  590. fi
  591. # If we cannot run a trivial program, we must be cross compiling.
  592. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  593. if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  594. echo $ac_n "(cached) $ac_c" 1>&4
  595. else
  596. if test "$cross_compiling" = yes; then
  597. ac_cv_cross=yes
  598. else
  599. cat > conftest.$ac_ext <<EOF
  600. #line 673 "configure"
  601. #include "confdefs.h"
  602. main(){return(0);}
  603. EOF
  604. eval $ac_link
  605. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  606. ac_cv_c_cross=no
  607. else
  608. ac_cv_c_cross=yes
  609. fi
  610. fi
  611. rm -fr conftest*
  612. fi
  613. cross_compiling=$ac_cv_c_cross
  614. echo "$ac_t""$ac_cv_c_cross" 1>&4
  615. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  616. if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  617. echo $ac_n "(cached) $ac_c" 1>&4
  618. else
  619. cat > conftest.$ac_ext <<EOF
  620. #line 694 "configure"
  621. #include "confdefs.h"
  622. #include <stdlib.h>
  623. #include <stdarg.h>
  624. #include <string.h>
  625. #include <float.h>
  626. EOF
  627. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  628. ac_err=`grep -v '^ *+' conftest.out`
  629. if test -z "$ac_err"; then
  630. rm -rf conftest*
  631. ac_cv_header_stdc=yes
  632. else
  633. echo "$ac_err" >&5
  634. rm -rf conftest*
  635. ac_cv_header_stdc=no
  636. fi
  637. rm -f conftest*
  638. if test $ac_cv_header_stdc = yes; then
  639. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  640. cat > conftest.$ac_ext <<EOF
  641. #line 716 "configure"
  642. #include "confdefs.h"
  643. #include <string.h>
  644. EOF
  645. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  646. egrep "memchr" >/dev/null 2>&1; then
  647. :
  648. else
  649. rm -rf conftest*
  650. ac_cv_header_stdc=no
  651. fi
  652. rm -f conftest*
  653. fi
  654. if test $ac_cv_header_stdc = yes; then
  655. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  656. cat > conftest.$ac_ext <<EOF
  657. #line 734 "configure"
  658. #include "confdefs.h"
  659. #include <stdlib.h>
  660. EOF
  661. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  662. egrep "free" >/dev/null 2>&1; then
  663. :
  664. else
  665. rm -rf conftest*
  666. ac_cv_header_stdc=no
  667. fi
  668. rm -f conftest*
  669. fi
  670. if test $ac_cv_header_stdc = yes; then
  671. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  672. if test "$cross_compiling" = yes; then
  673. ac_cv_header_stdc=no
  674. else
  675. cat > conftest.$ac_ext <<EOF
  676. #line 755 "configure"
  677. #include "confdefs.h"
  678. #include <ctype.h>
  679. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  680. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  681. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  682. int main () { int i; for (i = 0; i < 256; i++)
  683. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  684. exit (0); }
  685. EOF
  686. eval $ac_link
  687. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  688. :
  689. else
  690. ac_cv_header_stdc=no
  691. fi
  692. fi
  693. rm -fr conftest*
  694. fi
  695. fi
  696. echo "$ac_t""$ac_cv_header_stdc" 1>&4
  697. if test $ac_cv_header_stdc = yes; then
  698. cat >> confdefs.h <<\EOF
  699. #define STDC_HEADERS 1
  700. EOF
  701. fi
  702. for ac_hdr in string.h stdlib.h memory.h
  703. do
  704. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  705. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  706. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  707. echo $ac_n "(cached) $ac_c" 1>&4
  708. else
  709. cat > conftest.$ac_ext <<EOF
  710. #line 792 "configure"
  711. #include "confdefs.h"
  712. #include <$ac_hdr>
  713. EOF
  714. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  715. ac_err=`grep -v '^ *+' conftest.out`
  716. if test -z "$ac_err"; then
  717. rm -rf conftest*
  718. eval "ac_cv_header_$ac_safe=yes"
  719. else
  720. echo "$ac_err" >&5
  721. rm -rf conftest*
  722. eval "ac_cv_header_$ac_safe=no"
  723. fi
  724. rm -f conftest*
  725. fi
  726. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  727. echo "$ac_t""yes" 1>&4
  728. ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  729. cat >> confdefs.h <<EOF
  730. #define $ac_tr_hdr 1
  731. EOF
  732. else
  733. echo "$ac_t""no" 1>&4
  734. fi
  735. done
  736. echo $ac_n "checking for working const""... $ac_c" 1>&4
  737. if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  738. echo $ac_n "(cached) $ac_c" 1>&4
  739. else
  740. cat > conftest.$ac_ext <<EOF
  741. #line 826 "configure"
  742. #include "confdefs.h"
  743. int main() { return 0; }
  744. int t() {
  745. /* Ultrix mips cc rejects this. */
  746. typedef int charset[2]; const charset x;
  747. /* SunOS 4.1.1 cc rejects this. */
  748. char const *const *ccp;
  749. char **p;
  750. /* NEC SVR4.0.2 mips cc rejects this. */
  751. struct point {int x, y;};
  752. static struct point const zero;
  753. /* AIX XL C 1.02.0.0 rejects this.
  754. It does not let you subtract one const X* pointer from another in an arm
  755. of an if-expression whose if-part is not a constant expression */
  756. const char *g = "string";
  757. ccp = &g + (g ? g-g : 0);
  758. /* HPUX 7.0 cc rejects these. */
  759. ++ccp;
  760. p = (char**) ccp;
  761. ccp = (char const *const *) p;
  762. { /* SCO 3.2v4 cc rejects this. */
  763. char *t;
  764. char const *s = 0 ? (char *) 0 : (char const *) 0;
  765. *t++ = 0;
  766. }
  767. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  768. int x[] = {25, 17};
  769. const int *foo = &x[0];
  770. ++foo;
  771. }
  772. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  773. typedef const int *iptr;
  774. iptr p = 0;
  775. ++p;
  776. }
  777. { /* AIX XL C 1.02.0.0 rejects this saying
  778. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  779. struct s { int j; const int *ap[3]; };
  780. struct s *b; b->j = 5;
  781. }
  782. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  783. const int foo = 10;
  784. }
  785. ; return 0; }
  786. EOF
  787. if eval $ac_compile; then
  788. rm -rf conftest*
  789. ac_cv_c_const=yes
  790. else
  791. rm -rf conftest*
  792. ac_cv_c_const=no
  793. fi
  794. rm -f conftest*
  795. fi
  796. echo "$ac_t""$ac_cv_c_const" 1>&4
  797. if test $ac_cv_c_const = no; then
  798. cat >> confdefs.h <<\EOF
  799. #define const
  800. EOF
  801. fi
  802. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  803. # for constant arguments. Useless!
  804. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  805. if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  806. echo $ac_n "(cached) $ac_c" 1>&4
  807. else
  808. cat > conftest.$ac_ext <<EOF
  809. #line 902 "configure"
  810. #include "confdefs.h"
  811. #include <alloca.h>
  812. int main() { return 0; }
  813. int t() {
  814. char *p = alloca(2 * sizeof(int));
  815. ; return 0; }
  816. EOF
  817. if eval $ac_link; then
  818. rm -rf conftest*
  819. ac_cv_header_alloca_h=yes
  820. else
  821. rm -rf conftest*
  822. ac_cv_header_alloca_h=no
  823. fi
  824. rm -f conftest*
  825. fi
  826. echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  827. if test $ac_cv_header_alloca_h = yes; then
  828. cat >> confdefs.h <<\EOF
  829. #define HAVE_ALLOCA_H 1
  830. EOF
  831. fi
  832. echo $ac_n "checking for alloca""... $ac_c" 1>&4
  833. if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  834. echo $ac_n "(cached) $ac_c" 1>&4
  835. else
  836. cat > conftest.$ac_ext <<EOF
  837. #line 933 "configure"
  838. #include "confdefs.h"
  839. #ifdef __GNUC__
  840. # define alloca __builtin_alloca
  841. #else
  842. # if HAVE_ALLOCA_H
  843. # include <alloca.h>
  844. # else
  845. # ifdef _AIX
  846. #pragma alloca
  847. # else
  848. # ifndef alloca /* predefined by HP cc +Olibcalls */
  849. char *alloca ();
  850. # endif
  851. # endif
  852. # endif
  853. #endif
  854. int main() { return 0; }
  855. int t() {
  856. char *p = (char *) alloca(1);
  857. ; return 0; }
  858. EOF
  859. if eval $ac_link; then
  860. rm -rf conftest*
  861. ac_cv_func_alloca=yes
  862. else
  863. rm -rf conftest*
  864. ac_cv_func_alloca=no
  865. fi
  866. rm -f conftest*
  867. fi
  868. echo "$ac_t""$ac_cv_func_alloca" 1>&4
  869. if test $ac_cv_func_alloca = yes; then
  870. cat >> confdefs.h <<\EOF
  871. #define HAVE_ALLOCA 1
  872. EOF
  873. fi
  874. if test $ac_cv_func_alloca = no; then
  875. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  876. # that cause trouble. Some versions do not even contain alloca or
  877. # contain a buggy version. If you still want to use their alloca,
  878. # use ar to extract alloca.o from them instead of compiling alloca.c.
  879. ALLOCA=alloca.o
  880. cat >> confdefs.h <<\EOF
  881. #define C_ALLOCA 1
  882. EOF
  883. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  884. if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  885. echo $ac_n "(cached) $ac_c" 1>&4
  886. else
  887. cat > conftest.$ac_ext <<EOF
  888. #line 991 "configure"
  889. #include "confdefs.h"
  890. #if defined(CRAY) && ! defined(CRAY2)
  891. webecray
  892. #else
  893. wenotbecray
  894. #endif
  895. EOF
  896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  897. egrep "webecray" >/dev/null 2>&1; then
  898. rm -rf conftest*
  899. ac_cv_os_cray=yes
  900. else
  901. rm -rf conftest*
  902. ac_cv_os_cray=no
  903. fi
  904. rm -f conftest*
  905. fi
  906. echo "$ac_t""$ac_cv_os_cray" 1>&4
  907. if test $ac_cv_os_cray = yes; then
  908. echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  909. if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  910. echo $ac_n "(cached) $ac_c" 1>&4
  911. else
  912. cat > conftest.$ac_ext <<EOF
  913. #line 1018 "configure"
  914. #include "confdefs.h"
  915. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  916. /* Override any gcc2 internal prototype to avoid an error. */
  917. char _getb67();
  918. int main() { return 0; }
  919. int t() {
  920. /* The GNU C library defines this for functions which it implements
  921. to always fail with ENOSYS. Some functions are actually named
  922. something starting with __ and the normal name is an alias. */
  923. #if defined (__stub__getb67) || defined (__stub____getb67)
  924. choke me
  925. #else
  926. _getb67();
  927. #endif
  928. ; return 0; }
  929. EOF
  930. if eval $ac_link; then
  931. rm -rf conftest*
  932. eval "ac_cv_func__getb67=yes"
  933. else
  934. rm -rf conftest*
  935. eval "ac_cv_func__getb67=no"
  936. fi
  937. rm -f conftest*
  938. fi
  939. if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  940. echo "$ac_t""yes" 1>&4
  941. cat >> confdefs.h <<\EOF
  942. #define CRAY_STACKSEG_END _getb67
  943. EOF
  944. else
  945. echo "$ac_t""no" 1>&4
  946. echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  947. if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  948. echo $ac_n "(cached) $ac_c" 1>&4
  949. else
  950. cat > conftest.$ac_ext <<EOF
  951. #line 1061 "configure"
  952. #include "confdefs.h"
  953. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  954. /* Override any gcc2 internal prototype to avoid an error. */
  955. char GETB67();
  956. int main() { return 0; }
  957. int t() {
  958. /* The GNU C library defines this for functions which it implements
  959. to always fail with ENOSYS. Some functions are actually named
  960. something starting with __ and the normal name is an alias. */
  961. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  962. choke me
  963. #else
  964. GETB67();
  965. #endif
  966. ; return 0; }
  967. EOF
  968. if eval $ac_link; then
  969. rm -rf conftest*
  970. eval "ac_cv_func_GETB67=yes"
  971. else
  972. rm -rf conftest*
  973. eval "ac_cv_func_GETB67=no"
  974. fi
  975. rm -f conftest*
  976. fi
  977. if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  978. echo "$ac_t""yes" 1>&4
  979. cat >> confdefs.h <<\EOF
  980. #define CRAY_STACKSEG_END GETB67
  981. EOF
  982. else
  983. echo "$ac_t""no" 1>&4
  984. echo $ac_n "checking for getb67""... $ac_c" 1>&4
  985. if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  986. echo $ac_n "(cached) $ac_c" 1>&4
  987. else
  988. cat > conftest.$ac_ext <<EOF
  989. #line 1104 "configure"
  990. #include "confdefs.h"
  991. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  992. /* Override any gcc2 internal prototype to avoid an error. */
  993. char getb67();
  994. int main() { return 0; }
  995. int t() {
  996. /* The GNU C library defines this for functions which it implements
  997. to always fail with ENOSYS. Some functions are actually named
  998. something starting with __ and the normal name is an alias. */
  999. #if defined (__stub_getb67) || defined (__stub___getb67)
  1000. choke me
  1001. #else
  1002. getb67();
  1003. #endif
  1004. ; return 0; }
  1005. EOF
  1006. if eval $ac_link; then
  1007. rm -rf conftest*
  1008. eval "ac_cv_func_getb67=yes"
  1009. else
  1010. rm -rf conftest*
  1011. eval "ac_cv_func_getb67=no"
  1012. fi
  1013. rm -f conftest*
  1014. fi
  1015. if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1016. echo "$ac_t""yes" 1>&4
  1017. cat >> confdefs.h <<\EOF
  1018. #define CRAY_STACKSEG_END getb67
  1019. EOF
  1020. else
  1021. echo "$ac_t""no" 1>&4
  1022. fi
  1023. fi
  1024. fi
  1025. fi
  1026. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1027. if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1028. echo $ac_n "(cached) $ac_c" 1>&4
  1029. else
  1030. if test "$cross_compiling" = yes; then
  1031. ac_cv_c_stack_direction=0
  1032. else
  1033. cat > conftest.$ac_ext <<EOF
  1034. #line 1158 "configure"
  1035. #include "confdefs.h"
  1036. find_stack_direction ()
  1037. {
  1038. static char *addr = 0;
  1039. auto char dummy;
  1040. if (addr == 0)
  1041. {
  1042. addr = &dummy;
  1043. return find_stack_direction ();
  1044. }
  1045. else
  1046. return (&dummy > addr) ? 1 : -1;
  1047. }
  1048. main ()
  1049. {
  1050. exit (find_stack_direction() < 0);
  1051. }
  1052. EOF
  1053. eval $ac_link
  1054. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1055. ac_cv_c_stack_direction=1
  1056. else
  1057. ac_cv_c_stack_direction=-1
  1058. fi
  1059. fi
  1060. rm -fr conftest*
  1061. fi
  1062. echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1063. cat >> confdefs.h <<EOF
  1064. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1065. EOF
  1066. fi
  1067. for ac_func in strerror
  1068. do
  1069. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1070. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1071. echo $ac_n "(cached) $ac_c" 1>&4
  1072. else
  1073. cat > conftest.$ac_ext <<EOF
  1074. #line 1200 "configure"
  1075. #include "confdefs.h"
  1076. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1077. /* Override any gcc2 internal prototype to avoid an error. */
  1078. char $ac_func();
  1079. int main() { return 0; }
  1080. int t() {
  1081. /* The GNU C library defines this for functions which it implements
  1082. to always fail with ENOSYS. Some functions are actually named
  1083. something starting with __ and the normal name is an alias. */
  1084. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1085. choke me
  1086. #else
  1087. $ac_func();
  1088. #endif
  1089. ; return 0; }
  1090. EOF
  1091. if eval $ac_link; then
  1092. rm -rf conftest*
  1093. eval "ac_cv_func_$ac_func=yes"
  1094. else
  1095. rm -rf conftest*
  1096. eval "ac_cv_func_$ac_func=no"
  1097. fi
  1098. rm -f conftest*
  1099. fi
  1100. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1101. echo "$ac_t""yes" 1>&4
  1102. ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1103. cat >> confdefs.h <<EOF
  1104. #define $ac_tr_func 1
  1105. EOF
  1106. else
  1107. echo "$ac_t""no" 1>&4
  1108. fi
  1109. done
  1110. trap '' 1 2 15
  1111. if test -w $cache_file; then
  1112. echo "updating cache $cache_file"
  1113. cat > $cache_file <<\EOF
  1114. # This file is a shell script that caches the results of configure
  1115. # tests run on this system so they can be shared between configure
  1116. # scripts and configure runs. It is not useful on other systems.
  1117. # If it contains results you don't want to keep, you may remove or edit it.
  1118. #
  1119. # By default, configure uses ./config.cache as the cache file,
  1120. # creating it if it does not exist already. You can give configure
  1121. # the --cache-file=FILE option to use a different cache file; that is
  1122. # what configure does when it calls configure scripts in
  1123. # subdirectories, so they share the cache.
  1124. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1125. # config.status only pays attention to the cache file if you give it the
  1126. # --recheck option to rerun configure.
  1127. #
  1128. EOF
  1129. # Ultrix sh set writes to stderr and can't be redirected directly.
  1130. (set) 2>&1 |
  1131. sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1132. >> $cache_file
  1133. else
  1134. echo "not updating unwritable cache $cache_file"
  1135. fi
  1136. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1137. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1138. # Let make expand exec_prefix.
  1139. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1140. # Any assignment to VPATH causes Sun make to only execute
  1141. # the first set of double-colon rules, so remove it if not needed.
  1142. # If there is a colon in the path, we need to keep it.
  1143. if test "x$srcdir" = x.; then
  1144. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1145. fi
  1146. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1147. # Transform confdefs.h into DEFS.
  1148. # Protect against shell expansion while executing Makefile rules.
  1149. # Protect against Makefile macro expansion.
  1150. cat > conftest.defs <<\EOF
  1151. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1152. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  1153. s%\[%\\&%g
  1154. s%\]%\\&%g
  1155. s%\$%$$%g
  1156. EOF
  1157. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1158. rm -f conftest.defs
  1159. # Without the "./", some shells look in PATH for config.status.
  1160. : ${CONFIG_STATUS=./config.status}
  1161. echo creating $CONFIG_STATUS
  1162. rm -f $CONFIG_STATUS
  1163. cat > $CONFIG_STATUS <<EOF
  1164. #!/bin/sh
  1165. # Generated automatically by configure.
  1166. # Run this file to recreate the current configuration.
  1167. # This directory was configured as follows,
  1168. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1169. #
  1170. # $0 $ac_configure_args
  1171. #
  1172. # Compiler output produced by configure, useful for debugging
  1173. # configure, is in ./config.log if it exists.
  1174. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1175. for ac_option
  1176. do
  1177. case "\$ac_option" in
  1178. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1179. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1180. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1181. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1182. echo "$CONFIG_STATUS generated by autoconf version 2.1"
  1183. exit 0 ;;
  1184. -help | --help | --hel | --he | --h)
  1185. echo "\$ac_cs_usage"; exit 0 ;;
  1186. *) echo "\$ac_cs_usage"; exit 1 ;;
  1187. esac
  1188. done
  1189. ac_given_srcdir=$srcdir
  1190. ac_given_INSTALL="$INSTALL"
  1191. trap 'rm -f Makefile; exit 1' 1 2 15
  1192. # Protect against being on the right side of a sed subst in config.status.
  1193. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
  1194. s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1195. $ac_vpsub
  1196. $extrasub
  1197. s%@CFLAGS@%$CFLAGS%g
  1198. s%@CPPFLAGS@%$CPPFLAGS%g
  1199. s%@CXXFLAGS@%$CXXFLAGS%g
  1200. s%@DEFS@%$DEFS%g
  1201. s%@LDFLAGS@%$LDFLAGS%g
  1202. s%@LIBS@%$LIBS%g
  1203. s%@exec_prefix@%$exec_prefix%g
  1204. s%@prefix@%$prefix%g
  1205. s%@program_transform_name@%$program_transform_name%g
  1206. s%@CC@%$CC%g
  1207. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1208. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1209. s%@CPP@%$CPP%g
  1210. s%@ALLOCA@%$ALLOCA%g
  1211. CEOF
  1212. EOF
  1213. cat >> $CONFIG_STATUS <<EOF
  1214. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1215. EOF
  1216. cat >> $CONFIG_STATUS <<\EOF
  1217. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1218. # Support "outfile[:infile]", defaulting infile="outfile.in".
  1219. case "$ac_file" in
  1220. *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1221. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1222. *) ac_file_in="${ac_file}.in" ;;
  1223. esac
  1224. # Adjust relative srcdir, etc. for subdirectories.
  1225. # Remove last slash and all that follows it. Not all systems have dirname.
  1226. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1227. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1228. # The file is in a subdirectory.
  1229. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1230. ac_dir_suffix="/$ac_dir"
  1231. # A "../" for each directory in $ac_dir_suffix.
  1232. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1233. else
  1234. ac_dir_suffix= ac_dots=
  1235. fi
  1236. case "$ac_given_srcdir" in
  1237. .) srcdir=.
  1238. if test -z "$ac_dots"; then top_srcdir=.
  1239. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1240. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1241. *) # Relative path.
  1242. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1243. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1244. esac
  1245. case "$ac_given_INSTALL" in
  1246. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1247. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1248. esac
  1249. echo creating "$ac_file"
  1250. rm -f "$ac_file"
  1251. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1252. case "$ac_file" in
  1253. *Makefile*) ac_comsub="1i\\
  1254. # $configure_input" ;;
  1255. *) ac_comsub= ;;
  1256. esac
  1257. sed -e "$ac_comsub
  1258. s%@configure_input@%$configure_input%g
  1259. s%@srcdir@%$srcdir%g
  1260. s%@top_srcdir@%$top_srcdir%g
  1261. s%@INSTALL@%$INSTALL%g
  1262. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1263. fi; done
  1264. rm -f conftest.subs
  1265. exit 0
  1266. EOF
  1267. chmod +x $CONFIG_STATUS
  1268. rm -fr confdefs* $ac_clean_files
  1269. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS