Branch: Tag:

1998-02-27

1998-02-27 08:41:45 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

lots of changes

Rev: src/acconfig.h:1.16
Rev: src/array.c:1.30
Rev: src/array.h:1.11
Rev: src/builtin_functions.c:1.74
Rev: src/compilation.h:1.7
Rev: src/configure.in:1.160
Rev: src/dynamic_load.c:1.24
Rev: src/interpret.c:1.69
Rev: src/interpret.h:1.19
Rev: src/language.yacc:1.61
Rev: src/las.c:1.53
Rev: src/main.c:1.42
Rev: src/modules/Makefile.in:1.15
Rev: src/modules/dynamic_module_makefile.in:1.31
Rev: src/modules/spider/dumudp.c:1.34
Rev: src/modules/static_module_makefile.in:1.25
Rev: src/modules/system/system.c:1.42
Rev: src/program.c:1.64
Rev: src/program.h:1.33

1: - AC_REVISION("$Id: configure.in,v 1.159 1998/02/20 01:05:34 hubbe Exp $") + AC_REVISION("$Id: configure.in,v 1.160 1998/02/27 08:39:15 hubbe Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
99:   AC_ARG_WITH(mysql, [ --without-mysql no support for the Mysql database],[],[with_mysql=yes])   AC_ARG_WITH(dmalloc, [ --with-dmalloc enable memory-leak tests],[AC_DEFINE(DEBUG_MALLOC)],[])   AC_ARG_WITH(profiling, [ --with-profiling add code used to profile pike code ],[AC_DEFINE(PROFILING)],[]) + AC_ARG_WITH(poll, [ --with-poll use poll instead of select],[AC_DEFINE(HAVE_AND_USE_POLL)],[]) + AC_ARG_WITH(max-fd, [ --with-max-fd=X set how many filedescriptors can be used at once],[pike_cv_max_open_fd=$withval],[])      #   # Allow --with(out)-debug to toggle both cdebug and rtldebug, but
950:    strtok \    strtol \    time \ -  GetSystemTimeAsFileTime \ +     times \    vfprintf \    vsprintf \
973:    initgroups setgroups   )    + if test x$pike_cv_sys_os = xWindows_NT ; then +  AC_DEFINE(HAVE_LOADLIBRARY) +  AC_DEFINE(HAVE_FREELIBRARY) +  AC_DEFINE(HAVE_GETPROCADDRESS) +  AC_DEFINE(DL_EXPORT, _dlspec(export)) + else +  AC_DEFINE(DL_EXPORT, []) + fi +    if test $ac_cv_func_crypt$ac_cv_func__crypt = nono ; then    AC_CHECK_LIB(crypt,crypt,[LIBS="${LIBS} -lcrypt" ; AC_DEFINE(HAVE_CRYPT)],   [
991:   AC_STRUCT_TM      ############################################################################# - AC_MSG_CHECKING(working strcoll) - AC_CACHE_VAL(pike_cv_func_strcoll, - [ - AC_TRY_RUN([ - #include <string.h> - #include <locale.h> - int main() - { -  setlocale(LC_CTYPE, "ISO-8859-1"); -  exit(strcoll("abc", "def") >= 0 || -  strcoll("ABC", "DEF") >= 0 || -  strcoll("ABC", "ABCD") >= 0 || -  strcoll("ABCD", "ABC") <= 0 || -  strcoll("*^#", "*^#") != 0 || -  strcoll("123", "456") >= 0); - } - ],pike_cv_func_strcoll=yes,pike_cv_func_strcoll=no,pike_cv_func_strcoll=no) - ]) +     - if test $pike_cv_func_strcoll = yes; then -  AC_DEFINE(HAVE_STRCOLL) - fi -  - AC_MSG_RESULT($pike_cv_func_strcoll) - ############################################################################# -  +    AC_MSG_CHECKING(extern int timezone)      AC_CACHE_VAL(pike_cv_has_external_timezone,[
1312:    exit(0);   }])    + ############################################################################# + MY_CHECK_FUNCTION(GetSystemTimeAsFileTime, + [ + #include <windows.h> + #include <winbase.h> +  + int main() + { +  FILETIME f; +  GetSystemTimeAsFileTime(&f); +  exit(0); + } + ]) + ############################################################################# + MY_CHECK_FUNCTION(gethostname, + [ + #ifdef HAVE_UNISTD_H + #include <unistd.h> + #endif + #ifdef HAVE_WINSOCK_H + #include <winsock.h> + #endif +  + int main(int argc, char **argv) + { +  char buffer[10000]; +  char *x=gethostname(buffer,sizeof(buffer)); +  exit(0); + } + ]) + ############################################################################# + MY_CHECK_FUNCTION(strcoll, + [ + #include <string.h> + #include <locale.h> + int main() + { +  setlocale(LC_CTYPE, "ISO-8859-1"); +  exit(strcoll("abc", "def") >= 0 || +  strcoll("ABC", "DEF") >= 0 || +  strcoll("ABC", "ABCD") >= 0 || +  strcoll("ABCD", "ABC") <= 0 || +  strcoll("*^#", "*^#") != 0 || +  strcoll("123", "456") >= 0); + } + ]) +    ########################################################################      MY_CHECK_FUNCTION(memmem,
1810:    OpenBSD*) LDSHARED="ld -Bshareable";;    SCO_SV*) LDSHARED="cc -G -KPIC -Wl,-Bexport";;    UNIX_SV) LDSHARED="ld -G";; +  Windows_NT*) LDSHARED="$CC -shared";;    *) LDSHARED="ld";;    esac   fi
1827:    FreeBSD*) CCSHARED="-fpic";;    SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;    Solaris*) CCSHARED="-KPIC -Bdynamic";; +  Windows_NT*) CCSHARED="-shared" ;;    esac    fi   fi
1839:   # the pike executable -- this is only needed for a few systems   if test -z "$LINKFORSHARED"   then +  LINKFORSHARED=""    if test "$GCC" = yes ; then    case $pike_cv_sys_os in    AIX*) LINKFORSHARED="-Wl,-bexpall -Wl,-brtl";;
1939:   AC_SUBST(ac_configure_args)      if test x$ac_cv_func_dlopen$ac_cv_func_dld_link = xnono ; then +  if test x$pike_cv_sys_os != xWindows_NT ; then    with_dynamic_modules=no    fi -  + fi      if test x$with_dynamic_modules = xyes ; then    dmmsrc="modules/dynamic_module_makefile.in"