Ignore:
Timestamp:
Nov 22, 2009, 1:41:45 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added preliminary OSX support (by support I mean it barely compiles)
  • Moved client's send commands to client.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r3916 r3996  
    1313AM_PROG_CC_C_O
    1414AC_PROG_CPP
     15
     16AC_CANONICAL_HOST
     17
     18if test "$host_os" == "darwin10.2.0"; then
     19    case x${target} in
     20     x*86*darwin*)
     21      MACOSX_SDK="${MACOSX_SDK:-/Developer/SDKs/MacOSX10.6.sdk}"
     22      GCC_VERSION="${GCC_VERSION:-4.0}"
     23      ARCH="${ARCH:--arch i386}"
     24      MACOSX_SDK_CFLAGS="${MACOSX_SDK_CFLAGS:--isysroot ${MACOSX_SDK}}"
     25      MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CXXFLAGS:-${MACOSX_SDK_CFLAGS}}"
     26      ;;
     27    esac
     28    CC="${CC:-gcc-${GCC_VERSION}}"
     29    CXX="${CXX:-g++-${GCC_VERSION}}"
     30    MACOSX_SDK_FRAMEWORKS="${MACOSX_SDK_FRAMEWORKS:--F${MACOSX_SDK}/System/Library/Frameworks}"
     31    CPPFLAGS="${CPPFLAGS} ${ARCH} ${MACOSX_SDK_FRAMEWORKS}"
     32    CFLAGS="${CFLAGS} ${MACOSX_SDK_CFLAGS}"
     33    CXXFLAGS="${CXXFLAGS} ${MACOSX_SDK_CXXFLAGS}"
     34    OBJCFLAGS="${OBJCFLAGS} ${MACOSX_SDK_CFLAGS}"
     35    LDFLAGS="${ARCH} ${MACOSX_SDK_LDFLAGS} ${LDFLAGS}"
     36fi
     37
    1538
    1639dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
     
    3861AC_CHECK_HEADERS(stdio.h pty.h sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h sys/wait.h linux/kdev_t.h linux/major.h security/pam_appl.h security/pam_misc.h)
    3962
     63if test $host_os != "darwin10.2.0"; then
    4064AC_CHECK_LIB(pam, pam_authenticate,
    4165 [PAM_LIBS="${PAM_LIBS} -lpam"
    4266  AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])])
    4367AC_SUBST(PAM_LIBS)
     68else
     69AC_MSG_RESULT(Disabling lock support on OSX)
     70fi
    4471
    4572AC_CHECK_LIB(caca, caca_clear_dirty_rect_list,
     
    6895AC_DEFINE(_GNU_SOURCE, 1, [Use GNU extentions])
    6996
     97
    7098# Optimizations
    7199CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
Note: See TracChangeset for help on using the changeset viewer.