Show
Ignore:
Timestamp:
06/10/06 23:21:00 (3 years ago)
Author:
gnue
Message:

change configure
change comments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/configure.in

    r40 r56  
    1212AC_PROG_LEX 
    1313 
     14AC_CHECK_TOOL(AR, ar) 
     15AC_CHECK_TOOL(RANLIB, ranlib, :) 
    1416 
    1517# 
     
    2931SAVE_LIBS="$LIBS" 
    3032LIBS="$LIBS -liconv" 
     33result='no' 
     34AC_MSG_CHECKING(checking for libiconv) 
    3135AC_TRY_LINK([ 
    3236    #include <stdlib.h> 
     
    3741    iconv_close(cd); 
    3842    ], 
    39     AC_DEFINE(HAVE_LIBICONV), 
     43    AC_DEFINE(HAVE_LIBICONV) 
     44    result='yes', 
    4045    LIBS="$SAVE_LIBS") 
     46AC_MSG_RESULT($result) 
    4147 
     48 
     49HAVE_DLOPEN='no' 
     50AC_MSG_CHECKING(checking for dlopen) 
    4251AC_TRY_LINK([ 
    4352    #include <dlfcn.h> 
     
    6776        LIBDL=" -ldl") 
    6877    LIBS="$SAVE_LIBS") 
     78AC_MSG_RESULT($HAVE_DLOPEN) 
    6979 
    7080 
    7181# Checks for header files. 
    7282AC_HEADER_STDC 
    73 AC_CHECK_HEADERS([inttypes.h memory.h stdint.h stdlib.h string.h unistd.h]) 
     83AC_CHECK_HEADERS([inttypes.h memory.h stdint.h stdlib.h string.h unistd.h termios.h endian.h machine/endian.h]) 
    7484 
    7585# Checks for typedefs, structures, and compiler characteristics. 
     
    8393AC_FUNC_REALLOC 
    8494AC_FUNC_VPRINTF 
    85 AC_CHECK_FUNCS([getcwd memchr memmove memset regcomp strcasecmp strchr strdup strncasecmp]) 
     95AC_CHECK_FUNCS([getcwd memchr memmove memset regcomp strcasecmp strchr strdup strncasecmp mmap chdir getpwnam]) 
    8696 
    8797 
     
    100110    NEWT_LDFLAGS='-Wl,--export-all-symbols,--out-implib=$(LDIMPORT)' 
    101111    LIBNEWT_LDSHARED='$(CC) -shared' 
    102     LIBREGEX='$(libdir)/libregex.a' 
     112    LIBREGEX='$(LIBREGEX)' 
    103113    DLEXT='dll' 
    104114    ;; 
     
    149159AC_DEFINE_UNQUOTED(__DYLIBSUFFIX__, ".$DLEXT") 
    150160 
    151  
    152 AC_SUBST(LIBREGEX) 
    153161AC_SUBST(NEWT_LDIMPORT) 
    154162AC_SUBST(NEWT_LDFLAGS) 
     
    158166AC_SUBST(MAKE_EXT) 
    159167 
     168AC_SUBST(LIBREGEX) 
    160169 
    161170AC_CONFIG_FILES([Makefile