Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4201 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 16, 2005, 11:59:51 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/openAL: check in configure.ac for:
ogg
vorbis
vorbisfile
@simon: you can start your work now. (I hope this can still be compiled on osX and Windows

Location:
orxonox/branches/openAL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/openAL/config.h.in

    r4194 r4201  
    3737/* Define to 1 if you have the <memory.h> header file. */
    3838#undef HAVE_MEMORY_H
     39
     40/* Define to 1 if you have the <ogg/ogg.h> header file. */
     41#undef HAVE_OGG_OGG_H
    3942
    4043/* Define to 1 if you have the <OpenGL/glu.h> header file. */
     
    8083#undef HAVE_UNISTD_H
    8184
     85/* Define to 1 if you have the <vorbis/vorbisfile.h> header file. */
     86#undef HAVE_VORBIS_VORBISFILE_H
     87
    8288/* Define to 1 if the system has the type `_Bool'. */
    8389#undef HAVE__BOOL
  • orxonox/branches/openAL/configure

    r4194 r4201  
    64136413done
    64146414
    6415 #fi
    64166415# checking for openAL-lib
    64176416  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
     
    64836482        echo "openal library not found."
    64846483        echo "please install the openal library, which can be found at http://www.openal.org"
     6484        echo "------------------"
     6485        exit -1
     6486     fi
     6487
     6488#-----#
     6489# ogg #
     6490#-----#
     6491# checking for ogg-headers
     6492
     6493for ac_header in ogg/ogg.h
     6494do
     6495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6496if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6497  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6499if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6500  echo $ECHO_N "(cached) $ECHO_C" >&6
     6501fi
     6502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6504else
     6505  # Is the header compilable?
     6506echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6508cat >conftest.$ac_ext <<_ACEOF
     6509/* confdefs.h.  */
     6510_ACEOF
     6511cat confdefs.h >>conftest.$ac_ext
     6512cat >>conftest.$ac_ext <<_ACEOF
     6513/* end confdefs.h.  */
     6514$ac_includes_default
     6515#include <$ac_header>
     6516_ACEOF
     6517rm -f conftest.$ac_objext
     6518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6519  (eval $ac_compile) 2>conftest.er1
     6520  ac_status=$?
     6521  grep -v '^ *+' conftest.er1 >conftest.err
     6522  rm -f conftest.er1
     6523  cat conftest.err >&5
     6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6525  (exit $ac_status); } &&
     6526         { ac_try='test -z "$ac_c_werror_flag"
     6527                         || test ! -s conftest.err'
     6528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6529  (eval $ac_try) 2>&5
     6530  ac_status=$?
     6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6532  (exit $ac_status); }; } &&
     6533         { ac_try='test -s conftest.$ac_objext'
     6534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6535  (eval $ac_try) 2>&5
     6536  ac_status=$?
     6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6538  (exit $ac_status); }; }; then
     6539  ac_header_compiler=yes
     6540else
     6541  echo "$as_me: failed program was:" >&5
     6542sed 's/^/| /' conftest.$ac_ext >&5
     6543
     6544ac_header_compiler=no
     6545fi
     6546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6548echo "${ECHO_T}$ac_header_compiler" >&6
     6549
     6550# Is the header present?
     6551echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6553cat >conftest.$ac_ext <<_ACEOF
     6554/* confdefs.h.  */
     6555_ACEOF
     6556cat confdefs.h >>conftest.$ac_ext
     6557cat >>conftest.$ac_ext <<_ACEOF
     6558/* end confdefs.h.  */
     6559#include <$ac_header>
     6560_ACEOF
     6561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6562  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6563  ac_status=$?
     6564  grep -v '^ *+' conftest.er1 >conftest.err
     6565  rm -f conftest.er1
     6566  cat conftest.err >&5
     6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6568  (exit $ac_status); } >/dev/null; then
     6569  if test -s conftest.err; then
     6570    ac_cpp_err=$ac_c_preproc_warn_flag
     6571    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6572  else
     6573    ac_cpp_err=
     6574  fi
     6575else
     6576  ac_cpp_err=yes
     6577fi
     6578if test -z "$ac_cpp_err"; then
     6579  ac_header_preproc=yes
     6580else
     6581  echo "$as_me: failed program was:" >&5
     6582sed 's/^/| /' conftest.$ac_ext >&5
     6583
     6584  ac_header_preproc=no
     6585fi
     6586rm -f conftest.err conftest.$ac_ext
     6587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6588echo "${ECHO_T}$ac_header_preproc" >&6
     6589
     6590# So?  What about this header?
     6591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6592  yes:no: )
     6593    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6595    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6597    ac_header_preproc=yes
     6598    ;;
     6599  no:yes:* )
     6600    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6602    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6603echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6604    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6606    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6607echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6610    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6612    (
     6613      cat <<\_ASBOX
     6614## ---------------------------------------------- ##
     6615## Report this to orxonox-dev at mail.datacore.ch ##
     6616## ---------------------------------------------- ##
     6617_ASBOX
     6618    ) |
     6619      sed "s/^/$as_me: WARNING:     /" >&2
     6620    ;;
     6621esac
     6622echo "$as_me:$LINENO: checking for $ac_header" >&5
     6623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6624if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6625  echo $ECHO_N "(cached) $ECHO_C" >&6
     6626else
     6627  eval "$as_ac_Header=\$ac_header_preproc"
     6628fi
     6629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6631
     6632fi
     6633if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6634  cat >>confdefs.h <<_ACEOF
     6635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6636_ACEOF
     6637
     6638else
     6639  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
     6640echo "$as_me: error: cannot find ogg header." >&2;}
     6641   { (exit 1); exit 1; }; }
     6642fi
     6643
     6644done
     6645
     6646# checking for ogg-lib
     6647  echo "$as_me:$LINENO: checking for main in -logg" >&5
     6648echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
     6649if test "${ac_cv_lib_ogg_main+set}" = set; then
     6650  echo $ECHO_N "(cached) $ECHO_C" >&6
     6651else
     6652  ac_check_lib_save_LIBS=$LIBS
     6653LIBS="-logg  $LIBS"
     6654cat >conftest.$ac_ext <<_ACEOF
     6655/* confdefs.h.  */
     6656_ACEOF
     6657cat confdefs.h >>conftest.$ac_ext
     6658cat >>conftest.$ac_ext <<_ACEOF
     6659/* end confdefs.h.  */
     6660
     6661
     6662int
     6663main ()
     6664{
     6665main ();
     6666  ;
     6667  return 0;
     6668}
     6669_ACEOF
     6670rm -f conftest.$ac_objext conftest$ac_exeext
     6671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6672  (eval $ac_link) 2>conftest.er1
     6673  ac_status=$?
     6674  grep -v '^ *+' conftest.er1 >conftest.err
     6675  rm -f conftest.er1
     6676  cat conftest.err >&5
     6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6678  (exit $ac_status); } &&
     6679         { ac_try='test -z "$ac_c_werror_flag"
     6680                         || test ! -s conftest.err'
     6681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6682  (eval $ac_try) 2>&5
     6683  ac_status=$?
     6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6685  (exit $ac_status); }; } &&
     6686         { ac_try='test -s conftest$ac_exeext'
     6687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6688  (eval $ac_try) 2>&5
     6689  ac_status=$?
     6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6691  (exit $ac_status); }; }; then
     6692  ac_cv_lib_ogg_main=yes
     6693else
     6694  echo "$as_me: failed program was:" >&5
     6695sed 's/^/| /' conftest.$ac_ext >&5
     6696
     6697ac_cv_lib_ogg_main=no
     6698fi
     6699rm -f conftest.err conftest.$ac_objext \
     6700      conftest$ac_exeext conftest.$ac_ext
     6701LIBS=$ac_check_lib_save_LIBS
     6702fi
     6703echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
     6704echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
     6705if test $ac_cv_lib_ogg_main = yes; then
     6706  FOUND_ogg=yes
     6707fi
     6708
     6709     if test x$FOUND_ogg = xyes ; then
     6710       LIBS="$LIBS -logg"
     6711     else
     6712        echo "------------------"
     6713        echo "ogg library not found."
     6714        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     6715        echo "------------------"
     6716        exit -1
     6717     fi
     6718
     6719#--------#
     6720# vorbis #
     6721#--------#
     6722# checking for vorbis-lib
     6723  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
     6724echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
     6725if test "${ac_cv_lib_vorbis_main+set}" = set; then
     6726  echo $ECHO_N "(cached) $ECHO_C" >&6
     6727else
     6728  ac_check_lib_save_LIBS=$LIBS
     6729LIBS="-lvorbis  $LIBS"
     6730cat >conftest.$ac_ext <<_ACEOF
     6731/* confdefs.h.  */
     6732_ACEOF
     6733cat confdefs.h >>conftest.$ac_ext
     6734cat >>conftest.$ac_ext <<_ACEOF
     6735/* end confdefs.h.  */
     6736
     6737
     6738int
     6739main ()
     6740{
     6741main ();
     6742  ;
     6743  return 0;
     6744}
     6745_ACEOF
     6746rm -f conftest.$ac_objext conftest$ac_exeext
     6747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6748  (eval $ac_link) 2>conftest.er1
     6749  ac_status=$?
     6750  grep -v '^ *+' conftest.er1 >conftest.err
     6751  rm -f conftest.er1
     6752  cat conftest.err >&5
     6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6754  (exit $ac_status); } &&
     6755         { ac_try='test -z "$ac_c_werror_flag"
     6756                         || test ! -s conftest.err'
     6757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6758  (eval $ac_try) 2>&5
     6759  ac_status=$?
     6760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6761  (exit $ac_status); }; } &&
     6762         { ac_try='test -s conftest$ac_exeext'
     6763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6764  (eval $ac_try) 2>&5
     6765  ac_status=$?
     6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6767  (exit $ac_status); }; }; then
     6768  ac_cv_lib_vorbis_main=yes
     6769else
     6770  echo "$as_me: failed program was:" >&5
     6771sed 's/^/| /' conftest.$ac_ext >&5
     6772
     6773ac_cv_lib_vorbis_main=no
     6774fi
     6775rm -f conftest.err conftest.$ac_objext \
     6776      conftest$ac_exeext conftest.$ac_ext
     6777LIBS=$ac_check_lib_save_LIBS
     6778fi
     6779echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
     6780echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
     6781if test $ac_cv_lib_vorbis_main = yes; then
     6782  FOUND_vorbis=yes
     6783fi
     6784
     6785     if test x$FOUND_vorbis = xyes ; then
     6786       LIBS="$LIBS -lvorbis"
     6787     else
     6788        echo "------------------"
     6789        echo "vorbis library not found."
     6790        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     6791        echo "------------------"
     6792        exit -1
     6793     fi
     6794
     6795#------------#
     6796# vorbisfile #
     6797#------------#
     6798# checking for vorbis-headers
     6799
     6800for ac_header in vorbis/vorbisfile.h
     6801do
     6802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6803if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6804  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6806if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6807  echo $ECHO_N "(cached) $ECHO_C" >&6
     6808fi
     6809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6811else
     6812  # Is the header compilable?
     6813echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6815cat >conftest.$ac_ext <<_ACEOF
     6816/* confdefs.h.  */
     6817_ACEOF
     6818cat confdefs.h >>conftest.$ac_ext
     6819cat >>conftest.$ac_ext <<_ACEOF
     6820/* end confdefs.h.  */
     6821$ac_includes_default
     6822#include <$ac_header>
     6823_ACEOF
     6824rm -f conftest.$ac_objext
     6825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6826  (eval $ac_compile) 2>conftest.er1
     6827  ac_status=$?
     6828  grep -v '^ *+' conftest.er1 >conftest.err
     6829  rm -f conftest.er1
     6830  cat conftest.err >&5
     6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6832  (exit $ac_status); } &&
     6833         { ac_try='test -z "$ac_c_werror_flag"
     6834                         || test ! -s conftest.err'
     6835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6836  (eval $ac_try) 2>&5
     6837  ac_status=$?
     6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6839  (exit $ac_status); }; } &&
     6840         { ac_try='test -s conftest.$ac_objext'
     6841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6842  (eval $ac_try) 2>&5
     6843  ac_status=$?
     6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6845  (exit $ac_status); }; }; then
     6846  ac_header_compiler=yes
     6847else
     6848  echo "$as_me: failed program was:" >&5
     6849sed 's/^/| /' conftest.$ac_ext >&5
     6850
     6851ac_header_compiler=no
     6852fi
     6853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6855echo "${ECHO_T}$ac_header_compiler" >&6
     6856
     6857# Is the header present?
     6858echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6860cat >conftest.$ac_ext <<_ACEOF
     6861/* confdefs.h.  */
     6862_ACEOF
     6863cat confdefs.h >>conftest.$ac_ext
     6864cat >>conftest.$ac_ext <<_ACEOF
     6865/* end confdefs.h.  */
     6866#include <$ac_header>
     6867_ACEOF
     6868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6869  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6870  ac_status=$?
     6871  grep -v '^ *+' conftest.er1 >conftest.err
     6872  rm -f conftest.er1
     6873  cat conftest.err >&5
     6874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6875  (exit $ac_status); } >/dev/null; then
     6876  if test -s conftest.err; then
     6877    ac_cpp_err=$ac_c_preproc_warn_flag
     6878    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6879  else
     6880    ac_cpp_err=
     6881  fi
     6882else
     6883  ac_cpp_err=yes
     6884fi
     6885if test -z "$ac_cpp_err"; then
     6886  ac_header_preproc=yes
     6887else
     6888  echo "$as_me: failed program was:" >&5
     6889sed 's/^/| /' conftest.$ac_ext >&5
     6890
     6891  ac_header_preproc=no
     6892fi
     6893rm -f conftest.err conftest.$ac_ext
     6894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6895echo "${ECHO_T}$ac_header_preproc" >&6
     6896
     6897# So?  What about this header?
     6898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6899  yes:no: )
     6900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6904    ac_header_preproc=yes
     6905    ;;
     6906  no:yes:* )
     6907    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6909    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6910echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6911    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6913    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6914echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6917    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6919    (
     6920      cat <<\_ASBOX
     6921## ---------------------------------------------- ##
     6922## Report this to orxonox-dev at mail.datacore.ch ##
     6923## ---------------------------------------------- ##
     6924_ASBOX
     6925    ) |
     6926      sed "s/^/$as_me: WARNING:     /" >&2
     6927    ;;
     6928esac
     6929echo "$as_me:$LINENO: checking for $ac_header" >&5
     6930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6931if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6932  echo $ECHO_N "(cached) $ECHO_C" >&6
     6933else
     6934  eval "$as_ac_Header=\$ac_header_preproc"
     6935fi
     6936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6938
     6939fi
     6940if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6941  cat >>confdefs.h <<_ACEOF
     6942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6943_ACEOF
     6944
     6945else
     6946  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
     6947echo "$as_me: error: cannot find vorbisfile header." >&2;}
     6948   { (exit 1); exit 1; }; }
     6949fi
     6950
     6951done
     6952
     6953# checking for vorbisfile-lib
     6954  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
     6955echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
     6956if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
     6957  echo $ECHO_N "(cached) $ECHO_C" >&6
     6958else
     6959  ac_check_lib_save_LIBS=$LIBS
     6960LIBS="-lvorbisfile  $LIBS"
     6961cat >conftest.$ac_ext <<_ACEOF
     6962/* confdefs.h.  */
     6963_ACEOF
     6964cat confdefs.h >>conftest.$ac_ext
     6965cat >>conftest.$ac_ext <<_ACEOF
     6966/* end confdefs.h.  */
     6967
     6968
     6969int
     6970main ()
     6971{
     6972main ();
     6973  ;
     6974  return 0;
     6975}
     6976_ACEOF
     6977rm -f conftest.$ac_objext conftest$ac_exeext
     6978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6979  (eval $ac_link) 2>conftest.er1
     6980  ac_status=$?
     6981  grep -v '^ *+' conftest.er1 >conftest.err
     6982  rm -f conftest.er1
     6983  cat conftest.err >&5
     6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6985  (exit $ac_status); } &&
     6986         { ac_try='test -z "$ac_c_werror_flag"
     6987                         || test ! -s conftest.err'
     6988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6989  (eval $ac_try) 2>&5
     6990  ac_status=$?
     6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6992  (exit $ac_status); }; } &&
     6993         { ac_try='test -s conftest$ac_exeext'
     6994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6995  (eval $ac_try) 2>&5
     6996  ac_status=$?
     6997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6998  (exit $ac_status); }; }; then
     6999  ac_cv_lib_vorbisfile_main=yes
     7000else
     7001  echo "$as_me: failed program was:" >&5
     7002sed 's/^/| /' conftest.$ac_ext >&5
     7003
     7004ac_cv_lib_vorbisfile_main=no
     7005fi
     7006rm -f conftest.err conftest.$ac_objext \
     7007      conftest$ac_exeext conftest.$ac_ext
     7008LIBS=$ac_check_lib_save_LIBS
     7009fi
     7010echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
     7011echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
     7012if test $ac_cv_lib_vorbisfile_main = yes; then
     7013  FOUND_vorbisfile=yes
     7014fi
     7015
     7016     if test x$FOUND_vorbisfile = xyes ; then
     7017       LIBS="$LIBS -lvorbisfile"
     7018     else
     7019        echo "------------------"
     7020        echo "vorbisfile library not found."
     7021        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
    64857022        echo "------------------"
    64867023        exit -1
  • orxonox/branches/openAL/configure.ac

    r4194 r4201  
    408408  AC_CHECK_HEADERS([AL/al.h] ,,
    409409      [AC_MSG_ERROR([cannot find openAL header.])])
    410 #fi
    411410# checking for openAL-lib
    412411  AC_CHECK_LIB([openal], [main], [FOUND_openal=yes])
     
    419418        echo "------------------"
    420419        exit -1
    421      fi   
     420     fi
     421
     422#-----#
     423# ogg #
     424#-----#
     425# checking for ogg-headers
     426  AC_CHECK_HEADERS([ogg/ogg.h] ,,
     427      [AC_MSG_ERROR([cannot find ogg header.])])
     428# checking for ogg-lib
     429  AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
     430     if test x$FOUND_ogg = xyes ; then
     431       LIBS="$LIBS -logg"
     432     else
     433        echo "------------------"
     434        echo "ogg library not found."
     435        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     436        echo "------------------"
     437        exit -1
     438     fi
     439
     440#--------#
     441# vorbis #
     442#--------#
     443# checking for vorbis-lib
     444  AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
     445     if test x$FOUND_vorbis = xyes ; then
     446       LIBS="$LIBS -lvorbis"
     447     else
     448        echo "------------------"
     449        echo "vorbis library not found."
     450        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     451        echo "------------------"
     452        exit -1
     453     fi
     454
     455#------------#
     456# vorbisfile #
     457#------------#
     458# checking for vorbis-headers
     459  AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
     460      [AC_MSG_ERROR([cannot find vorbisfile header.])])
     461# checking for vorbisfile-lib
     462  AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
     463     if test x$FOUND_vorbisfile = xyes ; then
     464       LIBS="$LIBS -lvorbisfile"
     465     else
     466        echo "------------------"
     467        echo "vorbisfile library not found."
     468        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
     469        echo "------------------"
     470        exit -1
     471     fi
    422472
    423473#---------#
Note: See TracChangeset for help on using the changeset viewer.