ode-config.in 901 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/sh
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. exec_prefix_set=no
  5. usage="\
  6. Usage: ode-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--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 @ODE_VERSION@
  35. ;;
  36. --cflags)
  37. echo -I@includedir@
  38. ;;
  39. --libs)
  40. echo -L@libdir@ -lode
  41. ;;
  42. *)
  43. echo "${usage}" 1>&2
  44. exit 1
  45. ;;
  46. esac
  47. shift
  48. done