Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 6, 2004, 1:11:56 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/images: test for jpeg and png libs in configure.ac and material.cc/h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/configure

    r3108 r3110  
    54965496 osX="yes"
    54975497
     5498 CPPFLAGS="-I/sw/include $CPPFLAGS"
    54985499# checking gl header
    54995500
     
    58255826       LIBS="$LIBS $SDL_LIBS"
    58265827
    5827        def_sdl_image=no;
    58285828    ;;
    58295829
     
    62136213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    62146214_ACEOF
    6215 
    6216 else
    6217   { { echo "$as_me:$LINENO: error: cannot find jpeg headers" >&5
    6218 echo "$as_me: error: cannot find jpeg headers" >&2;}
    6219    { (exit 1); exit 1; }; }
     6215 jpegHeader="yes"
     6216else
     6217  jpegHeader="no"
    62206218fi
    62216219
    62226220done
    62236221
    6224 
    6225  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
     6222 if test $jpegHeader = "no"; then
     6223        echo " not including jpeg."
     6224 else
     6225  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
    62266226echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
    62276227if test "${ac_cv_lib_jpeg_main+set}" = set; then
     
    62946294         exit -1
    62956295    fi
    6296 
     6296 fi
    62976297
    62986298 ## checking for libpng
     
    64426442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    64436443_ACEOF
    6444 
    6445 else
    6446   { { echo "$as_me:$LINENO: error: cannot find jpeg headers" >&5
    6447 echo "$as_me: error: cannot find jpeg headers" >&2;}
    6448    { (exit 1); exit 1; }; }
     6444 pngHeader="yes"
     6445else
     6446  pngHeader="no"
    64496447fi
    64506448
    64516449done
    64526450
    6453 
    6454  echo "$as_me:$LINENO: checking for main in -lpng" >&5
     6451 if test $pngHeader = "no"; then
     6452        echo " not including png."
     6453 else
     6454  echo "$as_me:$LINENO: checking for main in -lpng" >&5
    64556455echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
    64566456if test "${ac_cv_lib_png_main+set}" = set; then
     
    65236523         exit -1
    65246524    fi
     6525 fi
    65256526fi
    65266527
Note: See TracChangeset for help on using the changeset viewer.