Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files.
[gnulib.git] / m4 / canonicalize.m4
1 #serial 6
2
3 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # Written by Jim Meyering.
9
10 AC_DEFUN([AC_FUNC_CANONICALIZE_FILE_NAME],
11   [
12     AC_LIBSOURCES([canonicalize.c, canonicalize.h, stat-macros.h])
13     AC_LIBOBJ([canonicalize])
14
15     AC_REQUIRE([AC_HEADER_STDC])
16     AC_CHECK_HEADERS(string.h sys/param.h stddef.h)
17     AC_CHECK_FUNCS(resolvepath canonicalize_file_name)
18     AC_REQUIRE([AC_HEADER_STAT])
19   ])