diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2006-06-02 04:07:49 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2006-06-02 04:07:49 +0000 |
commit | a3b60c41167d57ce0953c2cc1e3cd208e4ae7e26 (patch) | |
tree | 82b491680bc51699c9502e0a0c5be44b63c6a4cd /common | |
parent | 9e85b831ea79f86fff1dba1e07004ac0fb6d3a20 (diff) | |
download | tigervnc-a3b60c41167d57ce0953c2cc1e3cd208e4ae7e26.tar.gz tigervnc-a3b60c41167d57ce0953c2cc1e3cd208e4ae7e26.zip |
Updated build scripts in unix/ for new directory layout.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@617 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rwxr-xr-x | common/configure | 116 | ||||
-rw-r--r-- | common/configure.in | 13 |
2 files changed, 3 insertions, 126 deletions
diff --git a/common/configure b/common/configure index ac0e498c..10a9c029 100755 --- a/common/configure +++ b/common/configure @@ -1251,119 +1251,10 @@ fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:1264: checking for gethostbyname" >&5 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1269 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char gethostbyname(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gethostbyname(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) -choke me -#else -gethostbyname(); -#endif - -; return 0; } -EOF -if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_gethostbyname=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_gethostbyname=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then - echo "$ac_t""yes" 1>&6 - INET_LIB_REQ= -else - echo "$ac_t""no" 1>&6 -INET_LIB_REQ=yes -fi - -if test "$INET_LIB_REQ" = yes; then - echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6 -echo "configure:1314: checking for gethostbyname in -lbsd" >&5 -ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lbsd $LIBS" -cat > conftest.$ac_ext <<EOF -#line 1322 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gethostbyname(); - -int main() { -gethostbyname() -; return 0; } -EOF -if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - INET_LIB=-lbsd -else - echo "$ac_t""no" 1>&6 -INET_LIB= -fi - -fi -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - - echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:1365: checking for socklen_t" >&5 +echo "configure:1256: checking for socklen_t" >&5 cat > conftest.$ac_ext <<EOF -#line 1367 "configure" +#line 1258 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/socket.h> @@ -1372,7 +1263,7 @@ socklen_t x; accept(0, 0, &x); ; return 0; } EOF -if { (eval echo configure:1376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t' @@ -1556,7 +1447,6 @@ s%@JPEG_LIB@%$JPEG_LIB%g s%@VSNPRINTF_DEFINE@%$VSNPRINTF_DEFINE%g s%@STRCASECMP_DEFINE@%$STRCASECMP_DEFINE%g s%@STRNCASECMP_DEFINE@%$STRNCASECMP_DEFINE%g -s%@INET_LIB@%$INET_LIB%g s%@SOCKLEN_T_DEFINE@%$SOCKLEN_T_DEFINE%g CEOF diff --git a/common/configure.in b/common/configure.in index 9470cc4a..576eac7a 100644 --- a/common/configure.in +++ b/common/configure.in @@ -95,19 +95,6 @@ AC_CHECK_FUNC(strncasecmp,STRNCASECMP_DEFINE='-DHAVE_STRNCASECMP', STRNCASECMP_DEFINE=) AC_SUBST(STRNCASECMP_DEFINE) -dnl Under Lynx/OS 2.3, we have to link with -lbsd to resolve -dnl gethostbyname, inet_addr, htons etc. Check if it's necessary. -dnl NOTE: Did not want to use AC_SEARCH_LIBS which would add -dnl -lbsd to LIBS. We set INET_LIB instead. -AC_LANG_SAVE -AC_LANG_C -AC_CHECK_FUNC(gethostbyname,INET_LIB_REQ=,INET_LIB_REQ=yes) -if test "$INET_LIB_REQ" = yes; then - AC_CHECK_LIB(bsd,gethostbyname,INET_LIB=-lbsd,INET_LIB=) -fi -AC_LANG_RESTORE -AC_SUBST(INET_LIB) - AC_MSG_CHECKING(for socklen_t) AC_TRY_COMPILE( [#include <sys/types.h> |