1
0

configure.ac 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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_AUX_DIR([config])
  29. AC_CONFIG_MACRO_DIR([../utils/m4])
  30. AM_INIT_AUTOMAKE([subdir-objects foreign no-dist])
  31. # Checks for programs.
  32. AC_PROG_CC
  33. # Checks for libraries.
  34. # Checks for header files.
  35. AC_HEADER_STDC
  36. AC_CHECK_HEADERS([stdlib.h string.h unistd.h fcntl.h])
  37. #check for HADOOP_CONF_DIR
  38. if test "$with_confdir" != ""
  39. then
  40. AC_DEFINE_UNQUOTED(HADOOP_CONF_DIR, ["$with_confdir"], [Location of Hadoop configuration])
  41. fi
  42. # Checks for typedefs, structures, and compiler characteristics.
  43. AC_C_CONST
  44. AC_TYPE_PID_T
  45. AC_TYPE_MODE_T
  46. AC_TYPE_SIZE_T
  47. # Checks for library functions.
  48. AC_FUNC_MALLOC
  49. AC_FUNC_REALLOC
  50. AC_FUNC_CHOWN
  51. AC_CHECK_FUNCS([strerror memset mkdir rmdir strdup])
  52. AC_CONFIG_FILES([Makefile])
  53. AC_OUTPUT
  54. AC_HEADER_STDBOOL
  55. AC_PROG_MAKE_SET