sdl-config.in
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:2k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. #!/bin/sh
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. exec_prefix_set=no
  5. usage="
  6. Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
  7. if test $# -eq 0; then
  8.       echo "${usage}" 1>&2
  9.       exit 1
  10. fi
  11. while test $# -gt 0; do
  12.   case "$1" in
  13.   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  14.   *) optarg= ;;
  15.   esac
  16.   case $1 in
  17.     --prefix=*)
  18.       prefix=$optarg
  19.       if test $exec_prefix_set = no ; then
  20.         exec_prefix=$optarg
  21.       fi
  22.       ;;
  23.     --prefix)
  24.       echo $prefix
  25.       ;;
  26.     --exec-prefix=*)
  27.       exec_prefix=$optarg
  28.       exec_prefix_set=yes
  29.       ;;
  30.     --exec-prefix)
  31.       echo $exec_prefix
  32.       ;;
  33.     --version)
  34.       echo @SDL_VERSION@
  35.       ;;
  36.     --cflags)
  37.       if test @includedir@ != /usr/include ; then
  38.           # Handle oddities in Win32 path handling (assumes prefix)
  39.           prefix=`echo ${prefix} | sed 's,^//([A-Z]),1:,'`
  40.           includes=-I@includedir@
  41.       fi
  42.       echo $includes -I@includedir@/SDL @SDL_CFLAGS@
  43.       ;;
  44. @ENABLE_SHARED_TRUE@    --libs)
  45. @ENABLE_SHARED_TRUE@      libdirs="-L@libdir@ @SDL_RLD_FLAGS@"
  46. @ENABLE_SHARED_TRUE@      echo $libdirs @SDL_LIBS@ @SHARED_SYSTEM_LIBS@
  47. @ENABLE_SHARED_TRUE@      ;;
  48. @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
  49. @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)
  50. @ENABLE_STATIC_TRUE@      libdirs="-L@libdir@ @SDL_RLD_FLAGS@"
  51. @ENABLE_STATIC_TRUE@      echo $libdirs @SDL_LIBS@ @STATIC_SYSTEM_LIBS@
  52. @ENABLE_STATIC_TRUE@      ;;
  53.     *)
  54.       echo "${usage}" 1>&2
  55.       exit 1
  56.       ;;
  57.   esac
  58.   shift
  59. done