ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

318 lines
9.3 KiB

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf.
  4. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  17. # [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  18. # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  19. # --with-PACKAGE unless this script has special code to handle it.
  20. ##---------------------------------------------------------------##
  21. ## NOTE: Modifications marked "JBV" were made by Jon B. Volkoff, ##
  22. ## 11/1995 (eidetics@cerf.net). ##
  23. ##---------------------------------------------------------------##
  24. for arg
  25. do
  26. # Handle --exec-prefix with a space before the argument.
  27. if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  28. # Handle --host with a space before the argument.
  29. elif test x$next_host = xyes; then next_host=
  30. # Handle --prefix with a space before the argument.
  31. elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  32. # Handle --srcdir with a space before the argument.
  33. elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  34. else
  35. case $arg in
  36. # For backward compatibility, also recognize exact --exec_prefix.
  37. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  38. exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  39. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  40. next_exec_prefix=yes ;;
  41. -gas | --gas | --ga | --g) ;;
  42. -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  43. -host | --host | --hos | --ho | --h)
  44. next_host=yes ;;
  45. -nfp | --nfp | --nf) ;;
  46. -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  47. no_create=1 ;;
  48. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  49. prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  50. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  51. next_prefix=yes ;;
  52. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  53. srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  54. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  55. next_srcdir=yes ;;
  56. -with-* | --with-*)
  57. package=`echo $arg|sed 's/-*with-//'`
  58. # Delete all the valid chars; see if any are left.
  59. if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  60. echo "configure: $package: invalid package name" >&2; exit 1
  61. fi
  62. eval "with_`echo $package|sed s/-/_/g`=1" ;;
  63. *) ;;
  64. esac
  65. fi
  66. done
  67. trap 'rm -f conftest* core; exit 1' 1 3 15
  68. rm -f conftest*
  69. compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  70. # A filename unique to this package, relative to the directory that
  71. # configure is in, which we can look for to find out if srcdir is correct.
  72. unique_file=bwb_cmd.c
  73. # Find the source files, if location was not specified.
  74. if test -z "$srcdir"; then
  75. srcdirdefaulted=yes
  76. # Try the directory containing this script, then `..'.
  77. prog=$0
  78. confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  79. test "X$confdir" = "X$prog" && confdir=.
  80. srcdir=$confdir
  81. if test ! -r $srcdir/$unique_file; then
  82. srcdir=..
  83. fi
  84. fi
  85. if test ! -r $srcdir/$unique_file; then
  86. if test x$srcdirdefaulted = xyes; then
  87. echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  88. else
  89. echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  90. fi
  91. exit 1
  92. fi
  93. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  94. # But we can't avoid them for `..', to make subdirectories work.
  95. case $srcdir in
  96. .|/*|~*) ;;
  97. *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  98. esac
  99. if test -z "$CC"; then
  100. echo checking for gcc
  101. saveifs="$IFS"; IFS="${IFS}:"
  102. for dir in $PATH; do
  103. test -z "$dir" && dir=.
  104. if test -f $dir/gcc; then
  105. CC="gcc"
  106. break
  107. fi
  108. done
  109. IFS="$saveifs"
  110. fi
  111. test -z "$CC" && CC="cc"
  112. # Find out if we are using GNU C, under whatever name.
  113. cat > conftest.c <<EOF
  114. #ifdef __GNUC__
  115. yes
  116. #endif
  117. EOF
  118. ${CC-cc} -E conftest.c > conftest.out 2>&1
  119. if egrep yes conftest.out >/dev/null 2>&1; then
  120. GCC=1 # For later tests.
  121. fi
  122. rm -f conftest*
  123. echo checking how to run the C preprocessor
  124. if test -z "$CPP"; then
  125. CPP='${CC-cc} -E'
  126. cat > conftest.c <<EOF
  127. #include <stdio.h>
  128. EOF
  129. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  130. if test -z "$err"; then
  131. :
  132. else
  133. CPP=/lib/cpp
  134. fi
  135. rm -f conftest*
  136. fi
  137. # Make sure to not get the incompatible SysV /etc/install and
  138. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  139. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  140. # or the AFS install, which mishandles nonexistent args. (Sigh.)
  141. if test -z "$INSTALL"; then
  142. echo checking for install
  143. saveifs="$IFS"; IFS="${IFS}:"
  144. for dir in $PATH; do
  145. test -z "$dir" && dir=.
  146. case $dir in
  147. /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  148. *)
  149. if test -f $dir/install; then
  150. if grep dspmsg $dir/install >/dev/null 2>&1; then
  151. : # AIX
  152. else
  153. INSTALL="$dir/install -c"
  154. INSTALL_PROGRAM='$(INSTALL)'
  155. INSTALL_DATA='$(INSTALL) -m 644'
  156. break
  157. fi
  158. fi
  159. ;;
  160. esac
  161. done
  162. IFS="$saveifs"
  163. fi
  164. INSTALL=${INSTALL-cp}
  165. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  166. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  167. echo checking for size_t in sys/types.h
  168. echo '#include <sys/types.h>' > conftest.c
  169. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  170. if egrep "size_t" conftest.out >/dev/null 2>&1; then
  171. :
  172. else
  173. DEFS="$DEFS -Dsize_t=unsigned"
  174. fi
  175. rm -f conftest*
  176. echo checking for string.h
  177. cat > conftest.c <<EOF
  178. #include <string.h>
  179. EOF
  180. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  181. if test -z "$err"; then
  182. DEFS="$DEFS -DHAVE_STRING=1"
  183. fi
  184. rm -f conftest*
  185. echo checking for stdlib.h
  186. cat > conftest.c <<EOF
  187. #include <stdlib.h>
  188. EOF
  189. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  190. if test -z "$err"; then
  191. DEFS="$DEFS -DHAVE_STDLIB=1"
  192. fi
  193. rm -f conftest*
  194. # unistd.h checking added by JBV
  195. echo checking for unistd.h
  196. cat > conftest.c <<EOF
  197. #include <unistd.h>
  198. EOF
  199. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  200. if test -z "$err"; then
  201. DEFS="$DEFS -DHAVE_UNISTD=1"
  202. fi
  203. rm -f conftest*
  204. echo checking for raise
  205. cat > conftest.c <<EOF
  206. #include <sys/types.h>
  207. #include <signal.h>
  208. main() { exit(0); }
  209. t() { raise(1); }
  210. EOF
  211. if eval $compile; then
  212. DEFS="$DEFS -DHAVE_RAISE=1"
  213. fi
  214. rm -f conftest*
  215. if test -n "$prefix"; then
  216. test -z "$exec_prefix" && exec_prefix='${prefix}'
  217. prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
  218. fi
  219. if test -n "$exec_prefix"; then
  220. prsub="$prsub
  221. s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%\
  222. exec_prefix\\1=\\2$exec_prefix%"
  223. fi
  224. trap 'rm -f config.status; exit 1' 1 3 15
  225. echo creating config.status
  226. rm -f config.status
  227. cat > config.status <<EOF
  228. #!/bin/sh
  229. # Generated automatically by configure.
  230. # Run this file to recreate the current configuration.
  231. # This directory was configured as follows,
  232. # on host `(hostname || uname -n) 2>/dev/null`:
  233. #
  234. # $0 $*
  235. for arg
  236. do
  237. case "\$arg" in
  238. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  239. exec /bin/sh $0 $* ;;
  240. *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  241. esac
  242. done
  243. trap 'rm -f Makefile; exit 1' 1 3 15
  244. CC='$CC'
  245. CPP='$CPP'
  246. INSTALL='$INSTALL'
  247. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  248. INSTALL_DATA='$INSTALL_DATA'
  249. LIBS='$LIBS'
  250. srcdir='$srcdir'
  251. DEFS='$DEFS'
  252. prefix='$prefix'
  253. exec_prefix='$exec_prefix'
  254. prsub='$prsub'
  255. EOF
  256. cat >> config.status <<\EOF
  257. top_srcdir=$srcdir
  258. for file in .. Makefile; do if [ "x$file" != "x.." ]; then
  259. srcdir=$top_srcdir
  260. # Remove last slash and all that follows it. Not all systems have dirname.
  261. dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  262. if test "$dir" != "$file"; then
  263. test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  264. test ! -d $dir && mkdir $dir
  265. fi
  266. echo creating $file
  267. rm -f $file
  268. echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  269. sed -e "
  270. $prsub
  271. s%@CC@%$CC%g
  272. s%@CPP@%$CPP%g
  273. s%@INSTALL@%$INSTALL%g
  274. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  275. s%@INSTALL_DATA@%$INSTALL_DATA%g
  276. s%@LIBS@%$LIBS%g
  277. s%@srcdir@%$srcdir%g
  278. s%@DEFS@%$DEFS%
  279. " $top_srcdir/${file}.in >> $file
  280. fi; done
  281. EOF
  282. chmod +x config.status
  283. test -n "$no_create" || ./config.status