forked from LLNL/lustre-tools-llnl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
65 lines (52 loc) · 1.75 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# This file is part of lustre-tools-llnl.
#
# SPDX-License-Identifier: GPL-2.0
# See [LICENSE-GPL-2.0](https://github.com/LLNL/lustre-tools-llnl/LICENSE-GPL-2.0)
#
# Copyright (c) 2011, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
# LLNL-CODE-468512
AC_INIT([lustre-tools-llnl], [1.8.22])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([src/lpurge.c])
AC_CONFIG_HEADER([config.h])
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
# Check for system capabilities
AC_SYS_LARGEFILE
case "$target_cpu" in
i[[3456]]86*)
# need large file support on 32-bit systems
AC_DEFINE([_LARGEFILE64_SOURCE], [1], [Support large file sizes])
;;
*)
;;
esac
# Automake support
AM_INIT_AUTOMAKE([foreign no-define])
AM_MAINTAINER_MODE
AC_MSG_CHECKING([whether to configure just enough for make dist])
AC_ARG_ENABLE([dist],
AC_HELP_STRING([--enable-dist],
[only configure enough for make dist]),
[], [enable_dist="no"])
AC_MSG_RESULT([$enable_dist])
AS_IF([test "x$enable_dist" = "xno"], [
# Checks for programs.
AC_PROG_CC
# Check for headers
lustre_user=no
AC_CHECK_HEADERS([linux/lustre/lustre_user.h], [lustre_user=linux], [])
AC_CHECK_HEADERS([lustre/lustre_user.h], [lustre_user=lustre], [])
AS_IF([test "x$lustre_user" = "xno"],
[AC_MSG_ERROR([lustre header not found])])
]) dnl enable_dist
AC_CONFIG_FILES([lustre-tools-llnl.spec
Makefile
doc/Makefile
doc/man/Makefile
src/Makefile
scripts/Makefile])
AC_OUTPUT