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.
 
 
 
 
 
 

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