Cleanup configure scripts

This commit is contained in:
Andy Cedilnik 2002-09-27 14:12:33 -04:00
parent c751d2ebff
commit fa1418fbd7
3 changed files with 92 additions and 515 deletions

View File

@ -100,18 +100,8 @@ SET (CMAKE_BUILD_TOOL make CACHE INTERNAL
SET (CMAKE_ANSI_CFLAGS "@CMAKE_ANSI_CFLAGS@" CACHE INTERNAL SET (CMAKE_ANSI_CFLAGS "@CMAKE_ANSI_CFLAGS@" CACHE INTERNAL
"What flags are required by the c++ compiler to make it ansi.") "What flags are required by the c++ compiler to make it ansi.")
SET (CMAKE_SIZEOF_INT @CMAKE_SIZEOF_INT@ CACHE INTERNAL "Size of int data type")
SET (CMAKE_SIZEOF_LONG @CMAKE_SIZEOF_LONG@ CACHE INTERNAL "Size of long data type")
SET (CMAKE_SIZEOF_VOID_P @CMAKE_SIZEOF_VOID_P@ CACHE INTERNAL "Size of void* data type")
SET (CMAKE_SIZEOF_CHAR @CMAKE_SIZEOF_CHAR@ CACHE INTERNAL "Size of char data type")
SET (CMAKE_SIZEOF_SHORT @CMAKE_SIZEOF_SHORT@ CACHE INTERNAL "Size of short data type")
SET (CMAKE_SIZEOF_FLOAT @CMAKE_SIZEOF_FLOAT@ CACHE INTERNAL "Size of float data type")
SET (CMAKE_SIZEOF_DOUBLE @CMAKE_SIZEOF_DOUBLE@ CACHE INTERNAL "Size of double data type")
FIND_PROGRAM(CMAKE_MAKE_PROGRAM NAMES gmake make ) FIND_PROGRAM(CMAKE_MAKE_PROGRAM NAMES gmake make )
IF(CMAKE_SYSTEM MATCHES "HP-UX.*") IF(CMAKE_SYSTEM MATCHES "HP-UX.*")
SET (CMAKE_C_SHLIB_LINK_FLAGS "-Wl,+s" CACHE INTERNAL "shared link flags for cc") SET (CMAKE_C_SHLIB_LINK_FLAGS "-Wl,+s" CACHE INTERNAL "shared link flags for cc")
SET (CMAKE_C_SHLIB_RUNTIME_FLAG "-Wl,+b," CACHE INTERNAL "runtime directory flag for cc") SET (CMAKE_C_SHLIB_RUNTIME_FLAG "-Wl,+b," CACHE INTERNAL "runtime directory flag for cc")

File diff suppressed because it is too large Load Diff

View File

@ -20,28 +20,6 @@ CFLAGS=$save_CFLAGS
AC_PROG_RANLIB AC_PROG_RANLIB
AC_PROG_INSTALL AC_PROG_INSTALL
AC_CHECK_SIZEOF(int, 4)
CMAKE_SIZEOF_INT=$ac_cv_sizeof_int
AC_SUBST(CMAKE_SIZEOF_INT)
AC_CHECK_SIZEOF(long, 4)
CMAKE_SIZEOF_LONG=$ac_cv_sizeof_long
AC_SUBST(CMAKE_SIZEOF_LONG)
AC_CHECK_SIZEOF(void *, 4)
CMAKE_SIZEOF_VOID_P=$ac_cv_sizeof_void_p
AC_SUBST(CMAKE_SIZEOF_VOID_P)
AC_CHECK_SIZEOF(char, 1)
CMAKE_SIZEOF_CHAR=$ac_cv_sizeof_char
AC_SUBST(CMAKE_SIZEOF_CHAR)
AC_CHECK_SIZEOF(short, 2)
CMAKE_SIZEOF_SHORT=$ac_cv_sizeof_short
AC_SUBST(CMAKE_SIZEOF_SHORT)
AC_CHECK_SIZEOF(float, 4)
CMAKE_SIZEOF_FLOAT=$ac_cv_sizeof_float
AC_SUBST(CMAKE_SIZEOF_FLOAT)
AC_CHECK_SIZEOF(double, 8)
CMAKE_SIZEOF_DOUBLE=$ac_cv_sizeof_double
AC_SUBST(CMAKE_SIZEOF_DOUBLE)
# check for X11 support # check for X11 support
AC_PATH_XTRA AC_PATH_XTRA
CMAKE_HAS_X=0 CMAKE_HAS_X=0
@ -58,13 +36,6 @@ fi
AC_SUBST(CMAKE_WORDS_BIGENDIAN) AC_SUBST(CMAKE_WORDS_BIGENDIAN)
# some stuff Tcl uses
#
AC_CHECK_HEADER(limits.h, HAVE_LIMITS_H=-DHAVE_LIMITS_H,HAVE_LIMITS_H="")
AC_SUBST(CMAKE_HAVE_LIMITS_H)
AC_HAVE_HEADERS(unistd.h, HAVE_UNISTD_H=-DHAVE_UNISTD_H,HAVE_UNISTD_H="")
AC_SUBST(CMAKE_HAVE_UNISTD_H)
# Step 1: set the variable "system" to hold the name and version number # Step 1: set the variable "system" to hold the name and version number
# for the system. This can usually be done via the "uname" command, but # for the system. This can usually be done via the "uname" command, but
# there are a few systems, like Next, where this doesn't work. # there are a few systems, like Next, where this doesn't work.