Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5277 in orxonox.OLD for trunk


Ignore:
Timestamp:
Oct 4, 2005, 7:25:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more variable configure

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r5276 r5277  
    57595759fi
    57605760
     5761#--------#
     5762# openGL #
     5763#--------#
     5764ac_save_LDFLAGS="${LDFLAGS}"
     5765
    57615766# checking gl header
    57625767
     
    59755980echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
    59765981if test $ac_cv_lib_GL_main = yes; then
    5977   FOUND_GL=yes; LIBS="$LIBS -lGL"
     5982  FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL"
    59785983fi
    59795984
     
    61416146done
    61426147
    6143 ### FIXME ###
    6144 #    AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
    6145 #    if test x$FOUND_GLU != xyes ; then
    6146       FOUND_GLU=yes
    6147       LIBS="$LIBS -lGLU"
    6148 #    else
    6149 #         echo "------------------"
    6150 #         echo "GLU library not found."
    6151 #         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    6152 #         echo "------------------"
    6153 #         exit -1
    6154 #    fi
     6148    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
     6149echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
     6150if test "${ac_cv_lib_GLU_main+set}" = set; then
     6151  echo $ECHO_N "(cached) $ECHO_C" >&6
     6152else
     6153  ac_check_lib_save_LIBS=$LIBS
     6154LIBS="-lGLU  $LIBS"
     6155cat >conftest.$ac_ext <<_ACEOF
     6156/* confdefs.h.  */
     6157_ACEOF
     6158cat confdefs.h >>conftest.$ac_ext
     6159cat >>conftest.$ac_ext <<_ACEOF
     6160/* end confdefs.h.  */
     6161
     6162
     6163int
     6164main ()
     6165{
     6166main ();
     6167  ;
     6168  return 0;
     6169}
     6170_ACEOF
     6171rm -f conftest.$ac_objext conftest$ac_exeext
     6172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6173  (eval $ac_link) 2>conftest.er1
     6174  ac_status=$?
     6175  grep -v '^ *+' conftest.er1 >conftest.err
     6176  rm -f conftest.er1
     6177  cat conftest.err >&5
     6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6179  (exit $ac_status); } &&
     6180         { ac_try='test -z "$ac_c_werror_flag"
     6181                         || test ! -s conftest.err'
     6182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6183  (eval $ac_try) 2>&5
     6184  ac_status=$?
     6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6186  (exit $ac_status); }; } &&
     6187         { ac_try='test -s conftest$ac_exeext'
     6188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6189  (eval $ac_try) 2>&5
     6190  ac_status=$?
     6191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6192  (exit $ac_status); }; }; then
     6193  ac_cv_lib_GLU_main=yes
     6194else
     6195  echo "$as_me: failed program was:" >&5
     6196sed 's/^/| /' conftest.$ac_ext >&5
     6197
     6198ac_cv_lib_GLU_main=no
     6199fi
     6200rm -f conftest.err conftest.$ac_objext \
     6201      conftest$ac_exeext conftest.$ac_ext
     6202LIBS=$ac_check_lib_save_LIBS
     6203fi
     6204echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
     6205echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
     6206if test $ac_cv_lib_GLU_main = yes; then
     6207  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
     6208fi
     6209
     6210    if test x$FOUND_GLU != xyes ; then
     6211         echo "------------------"
     6212         echo "GLU library not found."
     6213         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     6214         echo "------------------"
     6215         exit -1
     6216    fi
    61556217
    61566218# checking for GLEW-headers
     
    63696431echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
    63706432if test $ac_cv_lib_GLEW_main = yes; then
    6371   FOUND_GLEW=yes
    6372 fi
    6373 
    6374    if test x$FOUND_GLEW = xyes ; then
    6375      LIBS="$LIBS -lGLEW"
    6376    else
     6433  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
     6434fi
     6435
     6436   if test x$FOUND_GLEW != xyes ; then
    63776437         echo "------------------"
    63786438         echo "glew not found."
     
    63816441         exit -1
    63826442   fi
     6443## resetting LD-flags as before GL
     6444LDFLAGS="${ac_save_LDFLAGS}"
    63836445
    63846446#--------#
     
    66006662echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
    66016663if test $ac_cv_lib_openal_main = yes; then
    6602   FOUND_OPENAL=yes
    6603 fi
    6604 
    6605      if test x$FOUND_OPENAL = xyes ; then
    6606        LIBS="$LIBS -lopenal"
    6607      else
     6664  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
     6665fi
     6666
     6667     if test x$FOUND_OPENAL != xyes ; then
    66086668        echo "------------------"
    66096669        echo "openal library not found."
     
    68266886echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
    68276887if test $ac_cv_lib_alut_main = yes; then
    6828   FOUND_ALUT=yes
    6829 fi
    6830 
    6831      if test x$FOUND_alut = xyes ; then
    6832        LIBS="-lalut $LIBS"
    6833      fi
     6888  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
     6889fi
     6890
     6891
    68346892#-----#
    68356893# SDL #
  • trunk/configure.ac

    r5276 r5277  
    371371fi
    372372
     373#--------#
     374# openGL #
     375#--------#
     376ac_save_LDFLAGS="${LDFLAGS}"
     377
    373378# checking gl header
    374379   AC_CHECK_HEADERS([GL/gl.h] ,,
     
    376381
    377382#  checking for Unix GL
    378    AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"])
     383   AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL"])
    379384   if test x$FOUND_GL != xyes ; then
    380385         echo "------------------"
     
    388393    AC_CHECK_HEADERS([GL/glu.h] ,,
    389394      [AC_MSG_ERROR([cannot find opengl headers]) ])
    390 ### FIXME ### THIS CHECK SHOULD WORK EVERYWHERE !!
    391 #    AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
    392 #    if test x$FOUND_GLU != xyes ; then
    393       FOUND_GLU=yes
    394       LIBS="$LIBS -lGLU"
    395 #    else
    396 #         echo "------------------"
    397 #         echo "GLU library not found."
    398 #         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    399 #         echo "------------------"
    400 #         exit -1
    401 #    fi
     395    AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"])
     396    if test x$FOUND_GLU != xyes ; then
     397         echo "------------------"
     398         echo "GLU library not found."
     399         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     400         echo "------------------"
     401         exit -1
     402    fi
    402403
    403404# checking for GLEW-headers
     
    413414         exit -1
    414415   fi
     416## resetting LD-flags as before GL
     417LDFLAGS="${ac_save_LDFLAGS}"
    415418
    416419#--------#
Note: See TracChangeset for help on using the changeset viewer.