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.
 
 
 
 
 
 

42 lines
1.0 KiB

  1. #!/bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. test -n "$srcdir" || srcdir=$(dirname "$0")
  4. test -n "$srcdir" || srcdir=.
  5. olddir=$(pwd)
  6. cd $srcdir
  7. (test -f configure.ac) || {
  8. echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***"
  9. exit 1
  10. }
  11. # shellcheck disable=SC2016
  12. PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
  13. if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
  14. echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
  15. echo "*** If you wish to pass any to it, please specify them on the" >&2
  16. echo "*** '$0' command line." >&2
  17. echo "" >&2
  18. fi
  19. mkdir -p m4
  20. glib-gettextize --force --copy || exit 1
  21. gtkdocize --copy || exit 1
  22. intltoolize --force --copy --automake || exit 1
  23. autoreconf --verbose --force --install || exit 1
  24. cd "$olddir"
  25. if [ "$NOCONFIGURE" = "" ]; then
  26. $srcdir/configure "$@" || exit 1
  27. if [ "$1" = "--help" ]; then exit 0 else
  28. echo "Now type 'make' to compile $PKG_NAME" || exit 1
  29. fi
  30. else
  31. echo "Skipping configure process."
  32. fi