Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3086 in orxonox.OLD for orxonox/branches/images/configure


Ignore:
Timestamp:
Dec 4, 2004, 6:05:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/images: ability to readIn jpg-files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/configure

    r3084 r3086  
    57975797
    57985798
    5799 
     5799## checking for libjpeg
     5800
     5801for ac_header in jpeglib.h
     5802do
     5803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5804if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5805  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5807if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5808  echo $ECHO_N "(cached) $ECHO_C" >&6
     5809fi
     5810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5812else
     5813  # Is the header compilable?
     5814echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5816cat >conftest.$ac_ext <<_ACEOF
     5817/* confdefs.h.  */
     5818_ACEOF
     5819cat confdefs.h >>conftest.$ac_ext
     5820cat >>conftest.$ac_ext <<_ACEOF
     5821/* end confdefs.h.  */
     5822$ac_includes_default
     5823#include <$ac_header>
     5824_ACEOF
     5825rm -f conftest.$ac_objext
     5826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5827  (eval $ac_compile) 2>conftest.er1
     5828  ac_status=$?
     5829  grep -v '^ *+' conftest.er1 >conftest.err
     5830  rm -f conftest.er1
     5831  cat conftest.err >&5
     5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5833  (exit $ac_status); } &&
     5834         { ac_try='test -z "$ac_c_werror_flag"
     5835                         || test ! -s conftest.err'
     5836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5837  (eval $ac_try) 2>&5
     5838  ac_status=$?
     5839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5840  (exit $ac_status); }; } &&
     5841         { ac_try='test -s conftest.$ac_objext'
     5842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5843  (eval $ac_try) 2>&5
     5844  ac_status=$?
     5845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5846  (exit $ac_status); }; }; then
     5847  ac_header_compiler=yes
     5848else
     5849  echo "$as_me: failed program was:" >&5
     5850sed 's/^/| /' conftest.$ac_ext >&5
     5851
     5852ac_header_compiler=no
     5853fi
     5854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5856echo "${ECHO_T}$ac_header_compiler" >&6
     5857
     5858# Is the header present?
     5859echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5861cat >conftest.$ac_ext <<_ACEOF
     5862/* confdefs.h.  */
     5863_ACEOF
     5864cat confdefs.h >>conftest.$ac_ext
     5865cat >>conftest.$ac_ext <<_ACEOF
     5866/* end confdefs.h.  */
     5867#include <$ac_header>
     5868_ACEOF
     5869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5871  ac_status=$?
     5872  grep -v '^ *+' conftest.er1 >conftest.err
     5873  rm -f conftest.er1
     5874  cat conftest.err >&5
     5875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5876  (exit $ac_status); } >/dev/null; then
     5877  if test -s conftest.err; then
     5878    ac_cpp_err=$ac_c_preproc_warn_flag
     5879    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5880  else
     5881    ac_cpp_err=
     5882  fi
     5883else
     5884  ac_cpp_err=yes
     5885fi
     5886if test -z "$ac_cpp_err"; then
     5887  ac_header_preproc=yes
     5888else
     5889  echo "$as_me: failed program was:" >&5
     5890sed 's/^/| /' conftest.$ac_ext >&5
     5891
     5892  ac_header_preproc=no
     5893fi
     5894rm -f conftest.err conftest.$ac_ext
     5895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5896echo "${ECHO_T}$ac_header_preproc" >&6
     5897
     5898# So?  What about this header?
     5899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5900  yes:no: )
     5901    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5903    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5905    ac_header_preproc=yes
     5906    ;;
     5907  no:yes:* )
     5908    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5910    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5911echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5912    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5914    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5915echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5916    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5918    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5920    (
     5921      cat <<\_ASBOX
     5922## ------------------------------------------- ##
     5923## Report this to orxonox-dev@mail.datacore.ch ##
     5924## ------------------------------------------- ##
     5925_ASBOX
     5926    ) |
     5927      sed "s/^/$as_me: WARNING:     /" >&2
     5928    ;;
     5929esac
     5930echo "$as_me:$LINENO: checking for $ac_header" >&5
     5931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5932if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5933  echo $ECHO_N "(cached) $ECHO_C" >&6
     5934else
     5935  eval "$as_ac_Header=\$ac_header_preproc"
     5936fi
     5937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5939
     5940fi
     5941if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5942  cat >>confdefs.h <<_ACEOF
     5943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5944_ACEOF
     5945
     5946else
     5947  { { echo "$as_me:$LINENO: error: cannot find jpeg headers" >&5
     5948echo "$as_me: error: cannot find jpeg headers" >&2;}
     5949   { (exit 1); exit 1; }; }
     5950fi
     5951
     5952done
     5953
     5954
     5955echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
     5956echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
     5957if test "${ac_cv_lib_jpeg_main+set}" = set; then
     5958  echo $ECHO_N "(cached) $ECHO_C" >&6
     5959else
     5960  ac_check_lib_save_LIBS=$LIBS
     5961LIBS="-ljpeg  $LIBS"
     5962cat >conftest.$ac_ext <<_ACEOF
     5963/* confdefs.h.  */
     5964_ACEOF
     5965cat confdefs.h >>conftest.$ac_ext
     5966cat >>conftest.$ac_ext <<_ACEOF
     5967/* end confdefs.h.  */
     5968
     5969
     5970int
     5971main ()
     5972{
     5973main ();
     5974  ;
     5975  return 0;
     5976}
     5977_ACEOF
     5978rm -f conftest.$ac_objext conftest$ac_exeext
     5979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5980  (eval $ac_link) 2>conftest.er1
     5981  ac_status=$?
     5982  grep -v '^ *+' conftest.er1 >conftest.err
     5983  rm -f conftest.er1
     5984  cat conftest.err >&5
     5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5986  (exit $ac_status); } &&
     5987         { ac_try='test -z "$ac_c_werror_flag"
     5988                         || test ! -s conftest.err'
     5989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5990  (eval $ac_try) 2>&5
     5991  ac_status=$?
     5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5993  (exit $ac_status); }; } &&
     5994         { ac_try='test -s conftest$ac_exeext'
     5995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5996  (eval $ac_try) 2>&5
     5997  ac_status=$?
     5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5999  (exit $ac_status); }; }; then
     6000  ac_cv_lib_jpeg_main=yes
     6001else
     6002  echo "$as_me: failed program was:" >&5
     6003sed 's/^/| /' conftest.$ac_ext >&5
     6004
     6005ac_cv_lib_jpeg_main=no
     6006fi
     6007rm -f conftest.err conftest.$ac_objext \
     6008      conftest$ac_exeext conftest.$ac_ext
     6009LIBS=$ac_check_lib_save_LIBS
     6010fi
     6011echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
     6012echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
     6013if test $ac_cv_lib_jpeg_main = yes; then
     6014  FOUND_jpeg=yes
     6015fi
     6016
     6017    if test "$FOUND_jpeg" = "yes" ; then
     6018      LIBS="$LIBS -ljpeg"
     6019    else
     6020         echo "------------------"
     6021         echo "jpeg library not found."
     6022         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
     6023         echo "------------------"
     6024         exit -1
     6025    fi
    58006026
    58016027
Note: See TracChangeset for help on using the changeset viewer.