DtHelp: make it build
Use configure's endian checks to determine whether to set LSB in il/. Add locale.h check, include to Helpos.c Both via including autotools_config.h.
This commit is contained in:
@@ -3,19 +3,8 @@ MAINTAINERCLEANFILES = Makefile.in
|
||||
noinst_LTLIBRARIES = libil.la
|
||||
|
||||
libil_la_CFLAGS = -I.. -DDTLIB -DCDE_INSTALLATION_TOP='"${prefix}"' \
|
||||
-DCDE_CONFIGURATION_TOP='"$(CDE_CONFIGURATION_TOP)"'
|
||||
|
||||
if BSD
|
||||
libil_la_CFLAGS += -DLSB_BIT_ORDER
|
||||
else
|
||||
if LINUX
|
||||
libil_la_CFLAGS += -DLSB_BIT_ORDER
|
||||
else
|
||||
if SUN
|
||||
libil_la_CFLAGS += -DLSB_BIT_ORDER
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
-DCDE_CONFIGURATION_TOP='"$(CDE_CONFIGURATION_TOP)"' \
|
||||
@DT_INCDIR@ @DTI_INCDIR@
|
||||
|
||||
libil_la_SOURCES = ilX.c ilbigray.c ilcodec.c \
|
||||
ilcontext.c ilconvert.c ilcrop.c \
|
||||
|
||||
@@ -43,6 +43,12 @@
|
||||
/* General internal definitions for Image Library (IL).
|
||||
*/
|
||||
|
||||
/* use autotools detection to determine endianess */
|
||||
#include <autotools_config.h>
|
||||
#ifndef WORDS_BIGENDIAN
|
||||
# define LSB_BIT_ORDER
|
||||
#endif
|
||||
|
||||
#include <stddef.h> /* for size_t declaration */
|
||||
#ifndef IL_H
|
||||
#include "il.h"
|
||||
|
||||
Reference in New Issue
Block a user