configure.ac 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one
  5. # or more contributor license agreements. See the NOTICE file
  6. # distributed with this work for additional information
  7. # regarding copyright ownership. The ASF licenses this file
  8. # to you under the Apache License, Version 2.0 (the
  9. # "License"); you may not use this file except in compliance
  10. # with the License. You may obtain a copy of the License at
  11. #
  12. # http://www.apache.org/licenses/LICENSE-2.0
  13. #
  14. # Unless required by applicable law or agreed to in writing, software
  15. # distributed under the License is distributed on an "AS IS" BASIS,
  16. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. # See the License for the specific language governing permissions and
  18. # limitations under the License.
  19. #
  20. AC_PREREQ(2.59)
  21. AC_INIT([task-controller],[0.1])
  22. #changing default prefix value to empty string, so that binary does not
  23. #gets installed within system
  24. AC_PREFIX_DEFAULT(.)
  25. #add new argument called -with-confdir
  26. AC_ARG_WITH(confdir,[--with-confdir path to hadoop conf dir])
  27. AC_CONFIG_SRCDIR([task-controller.h])
  28. AC_CONFIG_HEADER([configuration.h])
  29. # Checks for programs.
  30. AC_PROG_CC
  31. # Checks for libraries.
  32. # Checks for header files.
  33. AC_HEADER_STDC
  34. AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
  35. #check for HADOOP_CONF_DIR
  36. if test "$with_confdir" != ""
  37. then
  38. AC_DEFINE_UNQUOTED(HADOOP_CONF_DIR,"$with_confdir")
  39. fi
  40. # Checks for typedefs, structures, and compiler characteristics.
  41. AC_C_CONST
  42. AC_TYPE_PID_T
  43. # Checks for library functions.
  44. AC_FUNC_MALLOC
  45. AC_FUNC_REALLOC
  46. AC_CHECK_FUNCS([strerror])
  47. AC_CONFIG_FILES([Makefile])
  48. AC_OUTPUT