Ignore:
Timestamp:
Sep 19, 2011, 1:32:18 AM (8 years ago)
Author:
sam
Message:

osx: link with the proper OpenGL libraries on OS X.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r958 r960  
    103103 [MAKE_FSELF=no])
    104104AM_CONDITIONAL(USE_MAKE_FSELF, test "${MAKE_FSELF}" != "no")
     105
     106
     107LIBS_save="$LIBS"
     108LIBS="$LIBS -Wl,-framework -Wl,OpenGL"
     109AC_MSG_CHECKING(for -framework OpenGL)
     110AC_TRY_LINK([], [],
     111 [ac_cv_my_have_cocoa="yes"
     112  AC_MSG_RESULT(yes)
     113  GL_LIBS="${GL_LIBS} -framework OpenGL"
     114  CXXFLAGS="${CXXFLAGS} -ObjC++"],
     115 [AC_MSG_RESULT(no)])
     116LIBS="$LIBS_save"
    105117
    106118
     
    233245
    234246
    235 dnl Use Cocoa?
    236 ac_cv_my_have_cocoa="no"
    237 LIBS_save="$LIBS"
    238 LIBS="$LIBS -Wl,-framework -Wl,Cocoa"
    239 AC_MSG_CHECKING(for -framework Cocoa)
    240 AC_TRY_LINK([], [],
    241  [ac_cv_my_have_cocoa="yes"
    242   AC_MSG_RESULT(yes)
    243   CXXFLAGS="${CXXFLAGS} -ObjC++"],
    244  [AC_MSG_RESULT(no)])
    245 LIBS="$LIBS_save"
    246 AM_CONDITIONAL(USE_COCOA, test "${ac_cv_my_have_cocoa}" != "no")
    247 
    248 
    249247dnl Use EGL?
    250248ac_cv_my_have_egl="no"
Note: See TracChangeset for help on using the changeset viewer.