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.

49 lines
1.6 KiB

  1. #!/bin/sh
  2. # Copyright (c) 2005-2007 MySQL AB
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Library General Public
  6. # License as published by the Free Software Foundation; version 2
  7. # of the License.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Library General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with this library; if not, write to the Free
  16. # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  17. # MA 02110-1301, USA
  18. # Create MySQL autotools infrastructure
  19. die() { echo "$@"; exit 1; }
  20. # Handle "glibtoolize" (e.g., for native OS X autotools) as another
  21. # name for "libtoolize". Use the first one, either name, found in PATH.
  22. LIBTOOLIZE=libtoolize # Default
  23. IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
  24. for dir in $PATH
  25. do
  26. if test -x $dir/glibtoolize
  27. then
  28. LIBTOOLIZE=glibtoolize
  29. break
  30. elif test -x $dir/libtoolize
  31. then
  32. break
  33. fi
  34. done
  35. IFS="$save_ifs"
  36. aclocal || die "Can't execute aclocal"
  37. autoheader || die "Can't execute autoheader"
  38. # --force means overwrite ltmain.sh script if it already exists
  39. $LIBTOOLIZE --automake --force --copy || die "Can't execute libtoolize"
  40. # --add-missing instructs automake to install missing auxiliary files
  41. # and --force to overwrite them if they already exist
  42. automake --add-missing --force --copy || die "Can't execute automake"
  43. autoconf || die "Can't execute autoconf"