Do not use STRINGIFY for LIBDIR but pass "LIBDIR" from build system

merge-requests/1/head
Niels Ole Salscheider 2015-06-11 07:59:30 +02:00 zatwierdzone przez m. allan noah
rodzic 35ef89dd0f
commit e47cb8d2b4
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -24,7 +24,7 @@ USB_LIBS = @USB_LIBS@
SCSI_LIBS = @SCSI_LIBS@
PTHREAD_LIBS = @PTHREAD_LIBS@
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="$(libdir)/sane"
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="\"$(libdir)/sane\""
V_MAJOR = @V_MAJOR@
V_MINOR = @V_MINOR@

Wyświetl plik

@ -1887,7 +1887,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="$(libdir)/sane"
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="\"$(libdir)/sane\""
AM_LDFLAGS = @STRICT_LDFLAGS@
# The -rpath option is added because we are creating _LTLIBRARIES based
# on configure substitution. This causes automake to not know the

Wyświetl plik

@ -430,7 +430,7 @@ load (struct backend *be)
if (path)
{
src_len = strlen (path) + strlen (STRINGIFY (LIBDIR)) + 1 + 1;
src_len = strlen (path) + strlen (LIBDIR) + 1 + 1;
src = malloc (src_len);
if (!src)
{
@ -438,11 +438,11 @@ load (struct backend *be)
return SANE_STATUS_NO_MEM;
}
orig_src = src;
snprintf (src, src_len, "%s:%s", path, STRINGIFY (LIBDIR));
snprintf (src, src_len, "%s:%s", path, LIBDIR);
}
else
{
src = STRINGIFY (LIBDIR);
src = LIBDIR;
src = strdup (src);
if (!src)
{