home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / bin / sdl-config < prev   
Encoding:
Text File  |  2006-09-20  |  1.2 KB  |  60 lines

  1. #!/bin/sh
  2.  
  3. prefix=/home/riscos/env
  4. exec_prefix=${prefix}
  5. exec_prefix_set=no
  6.  
  7. #usage="\
  8. #Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
  9. usage="\
  10. Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
  11.  
  12. if test $# -eq 0; then
  13.       echo "${usage}" 1>&2
  14.       exit 1
  15. fi
  16.  
  17. while test $# -gt 0; do
  18.   case "$1" in
  19.   -*=*) optarg=`echo "$1" | LC_ALL="C" sed 's/[-_a-zA-Z0-9]*=//'` ;;
  20.   *) optarg= ;;
  21.   esac
  22.  
  23.   case $1 in
  24.     --prefix=*)
  25.       prefix=$optarg
  26.       if test $exec_prefix_set = no ; then
  27.         exec_prefix=$optarg
  28.       fi
  29.       ;;
  30.     --prefix)
  31.       echo $prefix
  32.       ;;
  33.     --exec-prefix=*)
  34.       exec_prefix=$optarg
  35.       exec_prefix_set=yes
  36.       ;;
  37.     --exec-prefix)
  38.       echo $exec_prefix
  39.       ;;
  40.     --version)
  41.       echo 1.2.11
  42.       ;;
  43.     --cflags)
  44.       echo -I${prefix}/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
  45.       ;;
  46. #    --libs)
  47. #      echo -L${exec_prefix}/lib  -lSDL  -lpthread
  48. #      ;;
  49. #    --static-libs)
  50.     --libs|--static-libs)
  51.       echo -L${exec_prefix}/lib  -lSDL  -lpthread
  52.       ;;
  53.     *)
  54.       echo "${usage}" 1>&2
  55.       exit 1
  56.       ;;
  57.   esac
  58.   shift
  59. done
  60.