configure.ac 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # -*- Autoconf -*-
  18. # Process this file with autoconf to produce a configure script.
  19. AC_PREREQ(2.59)
  20. AC_INIT(linux-task-controller, 1.0.0, mapreduce-dev@hadoop.apache.org)
  21. AC_GNU_SOURCE
  22. AC_SYS_LARGEFILE
  23. AM_INIT_AUTOMAKE([subdir-objects foreign no-dist])
  24. AC_CONFIG_SRCDIR([impl/task-controller.c])
  25. AC_CONFIG_FILES([Makefile])
  26. AC_PREFIX_DEFAULT(`pwd`/../install)
  27. CHECK_INSTALL_CFLAG
  28. HADOOP_UTILS_SETUP
  29. # Checks for programs.
  30. AC_PROG_CC
  31. AM_PROG_CC_C_O
  32. AC_PROG_LIBTOOL
  33. # Checks for libraries.
  34. # Checks for header files.
  35. AC_LANG(C)
  36. AC_CHECK_HEADERS([unistd.h])
  37. # Checks for typedefs, structures, and compiler characteristics.
  38. AC_HEADER_STDBOOL
  39. AC_C_CONST
  40. AC_TYPE_OFF_T
  41. AC_TYPE_SIZE_T
  42. AC_FUNC_STRERROR_R
  43. # Checks for library functions.
  44. AC_CHECK_FUNCS([mkdir uname])
  45. AC_OUTPUT