From f52f500995d053e1d6887e2d2cb0d221ba5deaf4 Mon Sep 17 00:00:00 2001 From: Kevin Lyda Date: Sat, 25 Jan 2014 15:56:40 +0000 Subject: [PATCH] Autoconf portability tweaks. Use MKDIR_P and LN_S rather than their usual expansions. --- Makefile.am | 5 +++-- configure.ac | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8f25c28..3fde692 100644 --- a/Makefile.am +++ b/Makefile.am @@ -162,5 +162,6 @@ dist-hook: rm -vf `find $(top_distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'` install-data-hook: - mkdir -p $(DESTDIR)$(includedir)/google - ln -sf ../protobuf-c $(DESTDIR)$(includedir)/google/ + $(MKDIR_P) $(DESTDIR)$(includedir)/google/protobuf-c + cd $(DESTDIR)$(includedir)/google/protobuf-c && rm -vf protobuf-c.h + cd $(DESTDIR)$(includedir)/google/protobuf-c && $(LN_S) ../../protobuf-c/protobuf-c.h protobuf-c.h diff --git a/configure.ac b/configure.ac index f217056..6a4176b 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,8 @@ AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules subdir-objects]) AC_PROG_CC_STDC AC_PROG_CXX +AC_PROG_LN_S +AC_PROG_MKDIR_P AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE AC_CONFIG_MACRO_DIR([m4])