Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5276 in orxonox.OLD for trunk/configure


Ignore:
Timestamp:
Oct 4, 2005, 6:50:52 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: configure.ac now has a new way to check for stuff. this should proove more usefull when using osX too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r5273 r5276  
    312312#endif"
    313313
    314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
     314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
    315315ac_subst_files=''
    316316
     
    43254325    MWINDOWS="-mwindows"
    43264326
    4327 
    4328 
     4327#--------#
     4328# MIN-GW #
     4329#--------#
    43294330# checking for mingw32
    43304331    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
     
    43944395    fi
    43954396
    4396 #-----------#
    4397 # SDL(win) #
    4398 #-----------#
    4399 # checking for SDL-headers
    4400     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4397#---------------#
     4398# open-GL (win) #
     4399#---------------#
     4400# checking gl header
     4401   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    44014402
    44024403
     
    44714472
    44724473
    4473 for ac_header in SDL/SDL.h
     4474for ac_header in GL/gl.h
    44744475do
    44754476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    46174618
    46184619else
    4619   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    4620 echo "$as_me: error: cannot find SDL headers" >&2;}
     4620  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     4621echo "$as_me: error: cannot find opengl headers" >&2;}
    46214622   { (exit 1); exit 1; }; }
    46224623fi
     
    46244625done
    46254626
    4626 
    4627 #checking for libSDL
    4628     echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
    4629 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
    4630 if test "${ac_cv_lib_sdlmain_main+set}" = set; then
     4627#   checking for Windows openGl library
     4628    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
     4629echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
     4630if test "${ac_cv_lib_opengl32_main+set}" = set; then
    46314631  echo $ECHO_N "(cached) $ECHO_C" >&6
    46324632else
    46334633  ac_check_lib_save_LIBS=$LIBS
    4634 LIBS="-lsdlmain  $LIBS"
     4634LIBS="-lopengl32  $LIBS"
    46354635cat >conftest.$ac_ext <<_ACEOF
    46364636/* confdefs.h.  */
     
    46714671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    46724672  (exit $ac_status); }; }; then
    4673   ac_cv_lib_sdlmain_main=yes
     4673  ac_cv_lib_opengl32_main=yes
    46744674else
    46754675  echo "$as_me: failed program was:" >&5
    46764676sed 's/^/| /' conftest.$ac_ext >&5
    46774677
    4678 ac_cv_lib_sdlmain_main=no
     4678ac_cv_lib_opengl32_main=no
    46794679fi
    46804680rm -f conftest.err conftest.$ac_objext \
     
    46824682LIBS=$ac_check_lib_save_LIBS
    46834683fi
    4684 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
    4685 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
    4686 if test $ac_cv_lib_sdlmain_main = yes; then
    4687   FOUND_sdlmain=yes
    4688 fi
    4689 
    4690     if test x$FOUND_sdlmain = xyes ; then
    4691        LIBS="$LIBS -lsdlmain"
    4692     else
    4693         echo "------------------"
    4694         echo "SDL library not found."
    4695         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    4696         echo "------------------"
    4697         exit 1
     4684echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
     4685echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
     4686if test $ac_cv_lib_opengl32_main = yes; then
     4687  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
     4688fi
     4689
     4690    if test x$FOUND_GL != xyes ; then
     4691         echo "------------------"
     4692         echo "opengl not found."
     4693         echo "please install the opengl package which can be found at http://www.opengl.org"
     4694         echo "------------------"
     4695         exit -1
    46984696    fi
    4699     echo "$as_me:$LINENO: checking for main in -lsdl" >&5
    4700 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
    4701 if test "${ac_cv_lib_sdl_main+set}" = set; then
    4702   echo $ECHO_N "(cached) $ECHO_C" >&6
    4703 else
    4704   ac_check_lib_save_LIBS=$LIBS
    4705 LIBS="-lsdl  $LIBS"
    4706 cat >conftest.$ac_ext <<_ACEOF
    4707 /* confdefs.h.  */
    4708 _ACEOF
    4709 cat confdefs.h >>conftest.$ac_ext
    4710 cat >>conftest.$ac_ext <<_ACEOF
    4711 /* end confdefs.h.  */
    4712 
    4713 
    4714 int
    4715 main ()
    4716 {
    4717 main ();
    4718   ;
    4719   return 0;
    4720 }
    4721 _ACEOF
    4722 rm -f conftest.$ac_objext conftest$ac_exeext
    4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4724   (eval $ac_link) 2>conftest.er1
    4725   ac_status=$?
    4726   grep -v '^ *+' conftest.er1 >conftest.err
    4727   rm -f conftest.er1
    4728   cat conftest.err >&5
    4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4730   (exit $ac_status); } &&
    4731          { ac_try='test -z "$ac_c_werror_flag"
    4732                          || test ! -s conftest.err'
    4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4734   (eval $ac_try) 2>&5
    4735   ac_status=$?
    4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4737   (exit $ac_status); }; } &&
    4738          { ac_try='test -s conftest$ac_exeext'
    4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4740   (eval $ac_try) 2>&5
    4741   ac_status=$?
    4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4743   (exit $ac_status); }; }; then
    4744   ac_cv_lib_sdl_main=yes
    4745 else
    4746   echo "$as_me: failed program was:" >&5
    4747 sed 's/^/| /' conftest.$ac_ext >&5
    4748 
    4749 ac_cv_lib_sdl_main=no
    4750 fi
    4751 rm -f conftest.err conftest.$ac_objext \
    4752       conftest$ac_exeext conftest.$ac_ext
    4753 LIBS=$ac_check_lib_save_LIBS
    4754 fi
    4755 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
    4756 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
    4757 if test $ac_cv_lib_sdl_main = yes; then
    4758   FOUND_sdl=yes
    4759 fi
    4760 
    4761     if test x$FOUND_sdl = xyes ; then
    4762        LIBS="$LIBS -lsdl"
    4763     else
    4764         echo "------------------"
    4765         echo "SDL library not found."
    4766         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    4767         echo "------------------"
    4768         exit -1
    4769     fi
    4770 
    4771 #---------------#
    4772 # open-GL (win) #
    4773 #---------------#
    4774 # checking gl header
    4775 
    4776 for ac_header in GL/gl.h
     4697
     4698# cheking for GLU-header
     4699
     4700for ac_header in GL/glu.h
    47774701do
    47784702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    49274851done
    49284852
    4929 #   checking for Windows openGl library
    4930     echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
    4931 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
    4932 if test "${ac_cv_lib_opengl32_main+set}" = set; then
     4853
     4854# checking for libGLU
     4855    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
     4856echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
     4857if test "${ac_cv_lib_glu32_main+set}" = set; then
    49334858  echo $ECHO_N "(cached) $ECHO_C" >&6
    49344859else
    49354860  ac_check_lib_save_LIBS=$LIBS
    4936 LIBS="-lopengl32  $LIBS"
     4861LIBS="-lglu32  $LIBS"
    49374862cat >conftest.$ac_ext <<_ACEOF
    49384863/* confdefs.h.  */
     
    49734898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    49744899  (exit $ac_status); }; }; then
    4975   ac_cv_lib_opengl32_main=yes
     4900  ac_cv_lib_glu32_main=yes
    49764901else
    49774902  echo "$as_me: failed program was:" >&5
    49784903sed 's/^/| /' conftest.$ac_ext >&5
    49794904
    4980 ac_cv_lib_opengl32_main=no
     4905ac_cv_lib_glu32_main=no
    49814906fi
    49824907rm -f conftest.err conftest.$ac_objext \
     
    49844909LIBS=$ac_check_lib_save_LIBS
    49854910fi
    4986 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
    4987 echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
    4988 if test $ac_cv_lib_opengl32_main = yes; then
    4989   FOUND_opengl32=yes
    4990 else
    4991   "gl/gl.h"
    4992 fi
    4993 
    4994     if test x$FOUND_opengl32 = xyes ; then
    4995         LIBS="$LIBS -lopengl32"
    4996     else
     4911echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
     4912echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
     4913if test $ac_cv_lib_glu32_main = yes; then
     4914  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
     4915fi
     4916
     4917    if test x$FOUND_GLU != xyes ; then
    49974918         echo "------------------"
    4998          echo "opengl not found."
    4999          echo "please install the opengl package which can be found at http://www.opengl.org"
     4919         echo "GLU library not found."
     4920         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    50004921         echo "------------------"
    50014922         exit -1
    50024923    fi
    50034924
    5004 # cheking for GLU-header
    5005 
    5006 for ac_header in GL/glu.h
     4925# checking glew header
     4926
     4927for ac_header in GL/glew.h
    50074928do
    50084929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    51505071
    51515072else
    5152   { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
    5153 echo "$as_me: error: cannot find opengl headers" >&2;}
     5073  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
     5074echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
    51545075   { (exit 1); exit 1; }; }
    51555076fi
     
    51575078done
    51585079
    5159 
    5160 # checking for libGLU
    5161     echo "$as_me:$LINENO: checking for main in -lglu32" >&5
    5162 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
    5163 if test "${ac_cv_lib_glu32_main+set}" = set; then
     5080#   checking for Windows glew library
     5081    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
     5082echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
     5083if test "${ac_cv_lib_glew32_main+set}" = set; then
    51645084  echo $ECHO_N "(cached) $ECHO_C" >&6
    51655085else
    51665086  ac_check_lib_save_LIBS=$LIBS
    5167 LIBS="-lglu32  $LIBS"
     5087LIBS="-lglew32  $LIBS"
    51685088cat >conftest.$ac_ext <<_ACEOF
    51695089/* confdefs.h.  */
     
    52045124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    52055125  (exit $ac_status); }; }; then
    5206   ac_cv_lib_glu32_main=yes
     5126  ac_cv_lib_glew32_main=yes
    52075127else
    52085128  echo "$as_me: failed program was:" >&5
    52095129sed 's/^/| /' conftest.$ac_ext >&5
    52105130
    5211 ac_cv_lib_glu32_main=no
     5131ac_cv_lib_glew32_main=no
    52125132fi
    52135133rm -f conftest.err conftest.$ac_objext \
     
    52155135LIBS=$ac_check_lib_save_LIBS
    52165136fi
    5217 echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
    5218 echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
    5219 if test $ac_cv_lib_glu32_main = yes; then
    5220   FOUND_glu32=yes
    5221 fi
    5222 
    5223     if test x$FOUND_glu32 = xyes ; then
    5224         LIBS="$LIBS -lGLU32"
    5225     else
     5137echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
     5138echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
     5139if test $ac_cv_lib_glew32_main = yes; then
     5140  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
     5141fi
     5142
     5143    if test x$FOUND_GLEW != xyes ; then
    52265144         echo "------------------"
    5227          echo "GLU library not found."
    5228          echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     5145         echo "opengl extension wrangler not found."
     5146         echo "please install the glew package which can be found at http://glew.sourceforge.net"
    52295147         echo "------------------"
    52305148         exit -1
    52315149    fi
    52325150
    5233 # checking glew header
    5234 
    5235 for ac_header in GL/glew.h
     5151#--------#
     5152# openAL #
     5153#--------#
     5154# checking for openAL-headers
     5155
     5156for ac_header in AL/al.h
    52365157do
    52375158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    53795300
    53805301else
    5381   { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
    5382 echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
     5302  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
     5303echo "$as_me: error: cannot find openAL header." >&2;}
    53835304   { (exit 1); exit 1; }; }
    53845305fi
     
    53865307done
    53875308
    5388 #   checking for Windows glew library
    5389     echo "$as_me:$LINENO: checking for main in -lglew32" >&5
    5390 echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
    5391 if test "${ac_cv_lib_glew32_main+set}" = set; then
     5309# checking for openAL-lib
     5310  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
     5311echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
     5312if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
    53925313  echo $ECHO_N "(cached) $ECHO_C" >&6
    53935314else
    53945315  ac_check_lib_save_LIBS=$LIBS
    5395 LIBS="-lglew32  $LIBS"
     5316LIBS="-lOpenAL32  $LIBS"
    53965317cat >conftest.$ac_ext <<_ACEOF
    53975318/* confdefs.h.  */
     
    54325353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    54335354  (exit $ac_status); }; }; then
    5434   ac_cv_lib_glew32_main=yes
     5355  ac_cv_lib_OpenAL32_main=yes
    54355356else
    54365357  echo "$as_me: failed program was:" >&5
    54375358sed 's/^/| /' conftest.$ac_ext >&5
    54385359
    5439 ac_cv_lib_glew32_main=no
     5360ac_cv_lib_OpenAL32_main=no
    54405361fi
    54415362rm -f conftest.err conftest.$ac_objext \
     
    54435364LIBS=$ac_check_lib_save_LIBS
    54445365fi
    5445 echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
    5446 echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
    5447 if test $ac_cv_lib_glew32_main = yes; then
    5448   FOUND_glew32=yes
    5449 fi
    5450 
    5451     if test x$FOUND_glew32 = xyes ; then
    5452         LIBS="$LIBS -lglew32"
    5453     else
    5454          echo "------------------"
    5455          echo "opengl extension wrangler not found."
    5456          echo "please install the glew package which can be found at http://glew.sourceforge.net"
    5457          echo "------------------"
    5458          exit -1
    5459     fi
    5460 
    5461 #--------#
    5462 # openAL #
    5463 #--------#
    5464 # checking for openAL-headers
    5465 
    5466 for ac_header in AL/al.h
     5366echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
     5367echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
     5368if test $ac_cv_lib_OpenAL32_main = yes; then
     5369  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
     5370fi
     5371
     5372  echo "$as_me:$LINENO: checking for main in -lALut" >&5
     5373echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
     5374if test "${ac_cv_lib_ALut_main+set}" = set; then
     5375  echo $ECHO_N "(cached) $ECHO_C" >&6
     5376else
     5377  ac_check_lib_save_LIBS=$LIBS
     5378LIBS="-lALut  $LIBS"
     5379cat >conftest.$ac_ext <<_ACEOF
     5380/* confdefs.h.  */
     5381_ACEOF
     5382cat confdefs.h >>conftest.$ac_ext
     5383cat >>conftest.$ac_ext <<_ACEOF
     5384/* end confdefs.h.  */
     5385
     5386
     5387int
     5388main ()
     5389{
     5390main ();
     5391  ;
     5392  return 0;
     5393}
     5394_ACEOF
     5395rm -f conftest.$ac_objext conftest$ac_exeext
     5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5397  (eval $ac_link) 2>conftest.er1
     5398  ac_status=$?
     5399  grep -v '^ *+' conftest.er1 >conftest.err
     5400  rm -f conftest.er1
     5401  cat conftest.err >&5
     5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5403  (exit $ac_status); } &&
     5404         { ac_try='test -z "$ac_c_werror_flag"
     5405                         || test ! -s conftest.err'
     5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5407  (eval $ac_try) 2>&5
     5408  ac_status=$?
     5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5410  (exit $ac_status); }; } &&
     5411         { ac_try='test -s conftest$ac_exeext'
     5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5413  (eval $ac_try) 2>&5
     5414  ac_status=$?
     5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5416  (exit $ac_status); }; }; then
     5417  ac_cv_lib_ALut_main=yes
     5418else
     5419  echo "$as_me: failed program was:" >&5
     5420sed 's/^/| /' conftest.$ac_ext >&5
     5421
     5422ac_cv_lib_ALut_main=no
     5423fi
     5424rm -f conftest.err conftest.$ac_objext \
     5425      conftest$ac_exeext conftest.$ac_ext
     5426LIBS=$ac_check_lib_save_LIBS
     5427fi
     5428echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
     5429echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
     5430if test $ac_cv_lib_ALut_main = yes; then
     5431  FOUND_ALUT=yes; LIBS="$LIBS -lALut"
     5432fi
     5433
     5434     if test x$FOUND_OPENAL != xyes ; then
     5435        echo "------------------"
     5436        echo "openal library not found."
     5437        echo "please install the openal library, which can be found at http://www.openal.org"
     5438        echo "------------------"
     5439        exit -1
     5440     fi
     5441
     5442
     5443#-----------#
     5444# SDL(win) #
     5445#-----------#
     5446# checking for SDL-headers
     5447
     5448for ac_header in SDL/SDL.h
    54675449do
    54685450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    56105592
    56115593else
    5612   { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
    5613 echo "$as_me: error: cannot find openAL header." >&2;}
     5594  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     5595echo "$as_me: error: cannot find SDL headers" >&2;}
    56145596   { (exit 1); exit 1; }; }
    56155597fi
     
    56175599done
    56185600
    5619 # checking for openAL-lib
    5620   echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
    5621 echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
    5622 if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
     5601
     5602#checking for libSDL
     5603    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
     5604echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
     5605if test "${ac_cv_lib_sdlmain_main+set}" = set; then
    56235606  echo $ECHO_N "(cached) $ECHO_C" >&6
    56245607else
    56255608  ac_check_lib_save_LIBS=$LIBS
    5626 LIBS="-lOpenAL32  $LIBS"
     5609LIBS="-lsdlmain  $LIBS"
    56275610cat >conftest.$ac_ext <<_ACEOF
    56285611/* confdefs.h.  */
     
    56635646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    56645647  (exit $ac_status); }; }; then
    5665   ac_cv_lib_OpenAL32_main=yes
     5648  ac_cv_lib_sdlmain_main=yes
    56665649else
    56675650  echo "$as_me: failed program was:" >&5
    56685651sed 's/^/| /' conftest.$ac_ext >&5
    56695652
    5670 ac_cv_lib_OpenAL32_main=no
     5653ac_cv_lib_sdlmain_main=no
    56715654fi
    56725655rm -f conftest.err conftest.$ac_objext \
     
    56745657LIBS=$ac_check_lib_save_LIBS
    56755658fi
    5676 echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
    5677 echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
    5678 if test $ac_cv_lib_OpenAL32_main = yes; then
    5679   FOUND_openal=yes
    5680 fi
    5681 
    5682   echo "$as_me:$LINENO: checking for main in -lALut" >&5
    5683 echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
    5684 if test "${ac_cv_lib_ALut_main+set}" = set; then
     5659echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
     5660echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
     5661if test $ac_cv_lib_sdlmain_main = yes; then
     5662  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
     5663fi
     5664
     5665    if test x$FOUND_sdlmain != xyes ; then
     5666        echo "------------------"
     5667        echo "SDL library not found."
     5668        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     5669        echo "------------------"
     5670        exit 1
     5671    fi
     5672    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
     5673echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
     5674if test "${ac_cv_lib_sdl_main+set}" = set; then
    56855675  echo $ECHO_N "(cached) $ECHO_C" >&6
    56865676else
    56875677  ac_check_lib_save_LIBS=$LIBS
    5688 LIBS="-lALut  $LIBS"
     5678LIBS="-lsdl  $LIBS"
    56895679cat >conftest.$ac_ext <<_ACEOF
    56905680/* confdefs.h.  */
     
    57255715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    57265716  (exit $ac_status); }; }; then
    5727   ac_cv_lib_ALut_main=yes
     5717  ac_cv_lib_sdl_main=yes
    57285718else
    57295719  echo "$as_me: failed program was:" >&5
    57305720sed 's/^/| /' conftest.$ac_ext >&5
    57315721
    5732 ac_cv_lib_ALut_main=no
     5722ac_cv_lib_sdl_main=no
    57335723fi
    57345724rm -f conftest.err conftest.$ac_objext \
     
    57365726LIBS=$ac_check_lib_save_LIBS
    57375727fi
    5738 echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
    5739 echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
    5740 if test $ac_cv_lib_ALut_main = yes; then
    5741   FOUND_ALut=yes
    5742 fi
    5743 
    5744      if test x$FOUND_openal = xyes ; then
    5745       if test x$FOUND_ALut = xyes ; then
    5746        LIBS="$LIBS -lALut -lOpenAL32"
    5747      else
     5728echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
     5729echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
     5730if test $ac_cv_lib_sdl_main = yes; then
     5731  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
     5732fi
     5733
     5734    if test x$FOUND_SDL != xyes ; then
    57485735        echo "------------------"
    5749         echo "openal library not found."
    5750         echo "please install the openal library, which can be found at http://www.openal.org"
     5736        echo "SDL library not found."
     5737        echo "please install the SDL library, which can be found at http://www.libsdl.org"
    57515738        echo "------------------"
    57525739        exit -1
    5753       fi
    5754      fi
    5755     ;;
     5740    fi
     5741
     5742  ;;
    57565743
    57575744#########
     
    59885975echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
    59895976if test $ac_cv_lib_GL_main = yes; then
    5990   FOUND_GL=yes
    5991 fi
    5992 
    5993    if test x$FOUND_GL = xyes ; then
    5994      LIBS="$LIBS -lGL"
    5995    else
     5977  FOUND_GL=yes; LIBS="$LIBS -lGL"
     5978fi
     5979
     5980   if test x$FOUND_GL != xyes ; then
    59965981         echo "------------------"
    59975982         echo "opengl not found."
     
    61566141done
    61576142
    6158 
    6159 #    AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)
    6160 #    if test x$FOUND_GLU = xyes ; then
     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
    61616147      LIBS="$LIBS -lGLU"
    61626148#    else
     
    66146600echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
    66156601if test $ac_cv_lib_openal_main = yes; then
    6616   FOUND_openal=yes
    6617 fi
    6618 
    6619      if test x$FOUND_openal = xyes ; then
     6602  FOUND_OPENAL=yes
     6603fi
     6604
     6605     if test x$FOUND_OPENAL = xyes ; then
    66206606       LIBS="$LIBS -lopenal"
    66216607     else
     
    68406826echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
    68416827if test $ac_cv_lib_alut_main = yes; then
    6842   FOUND_alut=yes
     6828  FOUND_ALUT=yes
    68436829fi
    68446830
     
    68466832       LIBS="-lalut $LIBS"
    68476833     fi
    6848 
     6834#-----#
     6835# SDL #
     6836#-----#
    68496837# checking for SDL
    68506838  echo "$as_me:$LINENO: checking for SDL-version" >&5
     
    72227210fi
    72237211
    7224     if test x$FOUND_SDL = xyes ; then
    7225      echo `sdl-config --libs`
    7226     else
     7212    if test x$FOUND_SDL != xyes ; then
    72277213        echo "------------------"
    72287214        echo "SDL library not found."
     
    79657951echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
    79667952if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
    7967   FOUND_SDL_ttf=yes
    7968 fi
    7969 
    7970      if test x$FOUND_SDL_ttf = xyes ; then
    7971        LIBS="$LIBS -lSDL_ttf"
    7972      else
     7953  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
     7954fi
     7955
     7956     if test x$FOUND_SDL_ttf != xyes ; then
    79737957        echo "------------------"
    79747958        echo "SDL_ttf library not found."
     
    83478331echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
    83488332if test $ac_cv_lib_SDL_image_main = yes; then
    8349   FOUND_SDL_image=yes
    8350 fi
    8351 
    8352    if test x$FOUND_SDL_image = xyes ; then
    8353      LIBS="$LIBS -lSDL_image"
    8354    else
     8333  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
     8334fi
     8335
     8336   if test x$FOUND_SDL_image != xyes ; then
    83558337      echo "------------------"
    83568338      echo "SDL_image library not found."
     
    85788560echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
    85798561if test $ac_cv_lib_ogg_main = yes; then
    8580   FOUND_ogg=yes
    8581 fi
    8582 
    8583      if test x$FOUND_ogg = xyes ; then
    8584        LIBS="$LIBS -logg"
    8585      else
     8562  FOUND_ogg=yes; LIBS="$LIBS -logg"
     8563fi
     8564
     8565     if test x$FOUND_ogg != xyes ; then
    85868566        echo "------------------"
    85878567        echo "ogg library not found."
     
    86548634echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
    86558635if test $ac_cv_lib_vorbis_main = yes; then
    8656   FOUND_vorbis=yes
    8657 fi
    8658 
    8659      if test x$FOUND_vorbis = xyes ; then
    8660        LIBS="$LIBS -lvorbis"
    8661      else
     8636  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
     8637fi
     8638
     8639     if test x$FOUND_vorbis != xyes ; then
    86628640        echo "------------------"
    86638641        echo "vorbis library not found."
     
    88858863echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
    88868864if test $ac_cv_lib_vorbisfile_main = yes; then
    8887   FOUND_vorbisfile=yes
    8888 fi
    8889 
    8890      if test x$FOUND_vorbisfile = xyes ; then
    8891        LIBS="$LIBS -lvorbisfile"
    8892      else
     8865  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
     8866fi
     8867
     8868     if test x$FOUND_vorbisfile != xyes ; then
    88938869        echo "------------------"
    88948870        echo "vorbisfile library not found."
     
    88988874     fi
    88998875
    8900 #-----#
    8901 # GTK #
    8902 #-----#
    8903 if test x$def_gtk = xyes; then
    8904         #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
    8905         echo "$as_me:$LINENO: checking for gtk2.0" >&5
    8906 echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
    8907         if `$PKG_CONFIG --exists gtk+-2.0`; then
    8908                 echo "yes"
    8909                 have_gtk2=yes
    8910                 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
    8911                 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
    8912 
    8913 cat >>confdefs.h <<_ACEOF
    8914 #define HAVE_GTK2 1
    8915 _ACEOF
    8916 
    8917                 if test $DEBUG -ge 3; then
    8918                  echo "cflags: $GTK2_CFLAGS"
    8919                  echo "libs: $GTK2_LIBS"
    8920                 fi
    8921         else
    8922                 echo "no"
    8923         fi
    8924 
    8925 fi
    8926 
    8927 
    8928 
    8929 
    8930 if test x$have_gtk2 = xyes; then
    8931   HAVE_GTK2_TRUE=
    8932   HAVE_GTK2_FALSE='#'
    8933 else
    8934   HAVE_GTK2_TRUE='#'
    8935   HAVE_GTK2_FALSE=
    8936 fi
    8937 
    89388876
    89398877#---------#
     
    89418879#---------#
    89428880if test x$def_curl = xyes; then
    8943 
    89448881
    89458882for ac_header in curl/curl.h
     
    90879024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    90889025_ACEOF
    9089  curlHeader="yes"
    9090 else
    9091   curlHeader="no"
     9026 curlHeader=yes
     9027else
     9028  curlHeader=no
    90929029fi
    90939030
     
    92469183echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
    92479184if test $ac_cv_lib_efence_main = yes; then
    9248   FOUND_efence=yes
    9249 fi
    9250 
    9251    if test x$FOUND_efence = xyes ; then
    9252       LIBS="$LIBS -lefence"
     9185  FOUND_efence=yes; LIBS="$LIBS -lefence"
     9186fi
     9187
     9188   if test x$FOUND_efence != xyes ; then
     9189     echo "efence was requested, but is not installed!! going on"
    92539190   fi
    92549191
    92559192fi
     9193
     9194#-----#
     9195# GTK #
     9196#-----#
     9197if test x$def_gtk = xyes; then
     9198#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     9199        echo "$as_me:$LINENO: checking for gtk2.0" >&5
     9200echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
     9201        if `$PKG_CONFIG --exists gtk+-2.0`; then
     9202                echo "yes"
     9203                have_gtk2=yes
     9204                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
     9205                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
     9206
     9207cat >>confdefs.h <<_ACEOF
     9208#define HAVE_GTK2 1
     9209_ACEOF
     9210
     9211                if test $DEBUG -ge 3; then
     9212                 echo "cflags: $GTK2_CFLAGS"
     9213                 echo "libs: $GTK2_LIBS"
     9214                fi
     9215        else
     9216                echo "no"
     9217        fi
     9218
     9219fi
     9220
     9221
     9222
     9223
     9224if test x$have_gtk2 = xyes; then
     9225  HAVE_GTK2_TRUE=
     9226  HAVE_GTK2_FALSE='#'
     9227else
     9228  HAVE_GTK2_TRUE='#'
     9229  HAVE_GTK2_FALSE=
     9230fi
     9231
     9232
    92569233
    92579234# FIXME: Replace `main' with a function in `-lm':
     
    1028010257   { (exit 1); exit 1; }; }
    1028110258fi
     10259if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
     10260  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
     10261Usually this means the macro was only invoked conditionally." >&5
     10262echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
     10263Usually this means the macro was only invoked conditionally." >&2;}
     10264   { (exit 1); exit 1; }; }
     10265fi
    1028210266if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
    1028310267  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
    1028410268Usually this means the macro was only invoked conditionally." >&5
    1028510269echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
    10286 Usually this means the macro was only invoked conditionally." >&2;}
    10287    { (exit 1); exit 1; }; }
    10288 fi
    10289 if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
    10290   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
    10291 Usually this means the macro was only invoked conditionally." >&5
    10292 echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
    1029310270Usually this means the macro was only invoked conditionally." >&2;}
    1029410271   { (exit 1); exit 1; }; }
     
    1091310890s,@PKG_CONFIG@,$PKG_CONFIG,;t t
    1091410891s,@MSBITFIELDS@,$MSBITFIELDS,;t t
     10892s,@CURL_LIBS@,$CURL_LIBS,;t t
     10893s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
     10894s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
     10895s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
    1091510896s,@GTK2_LIBS@,$GTK2_LIBS,;t t
    1091610897s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
    1091710898s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
    1091810899s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
    10919 s,@CURL_LIBS@,$CURL_LIBS,;t t
    10920 s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
    10921 s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
    10922 s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
    1092310900s,@LIBOBJS@,$LIBOBJS,;t t
    1092410901s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Note: See TracChangeset for help on using the changeset viewer.