diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-10-14 03:17:19 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-10-14 03:17:19 +0200 |
commit | b57628e6519b5a031bbba970c70fb8c2ac204640 (patch) | |
tree | f06acd567dde5dcdb05bc729577c0f9137d994bb /config/configure.in | |
parent | 3086c6ce36ddb10246e50d3a093879877b398ba1 (diff) | |
download | erlang-slang-fork-b57628e6519b5a031bbba970c70fb8c2ac204640.tar.gz |
replaced half autoconf build system with a simpler GNU make and Emake based one
new build system adheres to common usage of make command line and
environment variables
Diffstat (limited to 'config/configure.in')
-rw-r--r-- | config/configure.in | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/config/configure.in b/config/configure.in deleted file mode 100644 index bcf3280..0000000 --- a/config/configure.in +++ /dev/null @@ -1,89 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. - -dnl while debugging configure.in -dnl it's good to disable the cache - -dnl define([AC_CACHE_LOAD], )dnl -dnl define([AC_CACHE_SAVE], )dnl - -AC_INIT(../src/slang.erl) - -AC_CONFIG_AUX_DIR(`pwd`) - -dnl work out who the cpu, vendor and OS are -AC_CANONICAL_SYSTEM -AC_DEFINE_UNQUOTED(CPU_VENDOR_OS, "$target") - -dnl =============================================================== -dnl Checks for programs. -dnl =============================================================== - - - - -AC_ARG_WITH(slang-include, [ --with-slang-include=DIR installed slang library], - SLANG_INCLUDE=$withval, - if test "x$SLANG_INCLUDE" = x; then - SLANG_INCLUDE=/usr/include/slang - fi - echo using $SLANG_INCLUDE - ) - -AC_SUBST(SLANG_INCLUDE) - -case "$target_os" in - *cygwin*) - : - dnl fix this later - ;; - linux*) - AC_DEFINE(LINUX) - LD_SHARED="ld -shared" - ;; - *bsd*) - AC_DEFINE(BSD) - LD_SHARED="ld -Bshareable" - ;; - *solaris*) - AC_DEFINE(SOLARIS) - LD_SHARED="ld -G" - ;; - *) - LD_SHARED="ld -shared" - ;; -esac - -AC_SUBST(LD_SHARED) - - -AC_DEFUN(BT_REQUIRE_PATH_PROG, -[ - AC_PATH_PROG($1, $2, no, $3) - case [$]$1 in - /*) - # Ok - ;; - no) - # Not found - AC_MSG_ERROR("$1 not found in path!") - ;; - *) - # Not an absoluet path - AC_MSG_ERROR("Could not find absolute path to $1") - ;; - esac -])dnl - - -BT_REQUIRE_PATH_PROG(ERL, erl) -BT_REQUIRE_PATH_PROG(ERLC, erlc) - -echo ERL $ERL - -ERLDIR=`awk -F= '/ROOTDIR=/ { print [$]2; exit; }' $ERL` -AC_SUBST(ERLDIR) - - -AC_OUTPUT(../include.mk) - - |