autogen.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. # (or use sh -x to see what is going on)
  3. #
  4. # /*
  5. # * This program is free software: you can redistribute it and/or modify
  6. # * it under the terms of the GNU General Public License as published by
  7. # * the Free Software Foundation, either version 3 of the License, or
  8. # * (at your option) any later version.
  9. # *
  10. # * This program is distributed in the hope that it will be useful,
  11. # * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # * GNU General Public License for more details.
  14. # *
  15. # * You should have received a copy of the GNU General Public License
  16. # * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # *
  18. # * SPDX-License-Identifier: GPL-3.0+
  19. # * License-Filename: LICENSE
  20. # *
  21. # *
  22. # */
  23. #
  24. # sparse llvm c compiler CC=sparsec
  25. # llvm-clang compiler CC=clang
  26. #
  27. # If environment variable DRYRUN is set, no configuring will be done -
  28. # (e.g. in bash) DRYRUN=1 ./autogen.sh
  29. # will not do any configuring but will emit the programs that would be run.
  30. #
  31. # This is basically:
  32. # aclocal -I m4
  33. # autoheader
  34. # autoconf
  35. # automake --copy --add-missing --force-missing --include-deps --foreign
  36. #
  37. # or: autoreconf -fvim
  38. #
  39. # libtool version 2.2, 2.4 tested http://ftp.gnu.org/gnu/libtool
  40. #
  41. rm -f -r -d m4
  42. rm -f -r -d autom4te.cache
  43. rm -f ./configure
  44. rm -f ./Makefile
  45. rm -f ./Makefile.in
  46. mkdir m4
  47. aclocal
  48. autoheader
  49. libtoolize --force --copy
  50. automake --add-missing --copy --foreign
  51. autoconf
  52. ./configure
  53. make clean
  54. # end.