Testing out the PPD42 Air Quality Sensor, with an MSP430 Launchpad and graphing the data with GNUplot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.8 KiB

5 years ago
  1. #!/bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. # Taken from the GNOME package http://www.gnome.org
  4. srcdir=.
  5. PKG_NAME="rxtx library"
  6. DIE=0
  7. (autoconf --version) < /dev/null > /dev/null 2>&1 || {
  8. echo
  9. echo "**Error**: You must have "\`autoconf\'" installed to compile rxtx."
  10. echo "Download the appropriate package for your distribution,"
  11. echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
  12. DIE=1
  13. }
  14. # avoid libtool on Mac OS X codename Darwin Dmitry
  15. if test `uname` != "Darwin"; then
  16. (libtool --version) < /dev/null > /dev/null 2>&1 || {
  17. echo
  18. echo "**Error**: You must have "\`libtool\'" installed to compile rxtx."
  19. echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz"
  20. echo "(or a newer version if it is available)"
  21. DIE=1
  22. }
  23. fi
  24. (automake --version) < /dev/null > /dev/null 2>&1 || {
  25. echo
  26. echo "**Error**: You must have "\`automake\'" installed to compile rxtx."
  27. echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
  28. echo "(or a newer version if it is available)"
  29. DIE=1
  30. NO_AUTOMAKE=yes
  31. }
  32. # if no automake, don't bother testing for aclocal
  33. test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
  34. echo
  35. echo "**Error**: Missing "\`aclocal\'". The version of "\`automake\'
  36. echo "installed doesn't appear recent enough."
  37. echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
  38. echo "(or a newer version if it is available)"
  39. DIE=1
  40. }
  41. if test "$DIE" -eq 1; then
  42. exit 1
  43. fi
  44. #if test -z "$*"; then
  45. # echo "**Warning**: I am going to run "\`configure\'" with no arguments."
  46. # echo "If you wish to pass any to it, please specify them on the"
  47. # echo \`$0\'" command line."
  48. # echo
  49. #fi
  50. for j in `find $srcdir -name configure.in -print`
  51. do
  52. i=`dirname $j`
  53. if test -f $i/NO-AUTO-GEN; then
  54. echo skipping $i -- flagged as no auto-gen
  55. else
  56. macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $j`
  57. echo processing $i
  58. ## debug
  59. test -n "$macrodirs" && echo \`aclocal\' will also look in \`$macrodirs\'
  60. (cd $i; \
  61. aclocalinclude="$ACLOCAL_FLAGS"; \
  62. for k in $macrodirs; do \
  63. if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
  64. else echo "**Warning**: No such directory \`$k'. Ignored."; fi; \
  65. done; \
  66. libtoolize --copy --force; \
  67. aclocal $aclocalinclude; \
  68. autoheader; automake --add-missing --gnu; autoheader; autoconf)
  69. fi
  70. done
  71. #if test x$NOCONFIGURE = x; then
  72. #echo running $srcdir/configure --enable-maintainer-mode "$@"
  73. #$srcdir/configure --enable-maintainer-mode "$@" \
  74. #&& echo Now type \`make\' to compile the $PKG_NAME
  75. #else
  76. #echo Skipping configure process.
  77. #fi