Subject: pppd: make the self made configure cross aware From: Juergen Beisert Give us a chance to setup targets Kernel and arch. Signed-off-by: Juergen Beisert --- configure | 10 ++++++++++ pppd/plugins/Makefile.linux | 3 +-- pppd/plugins/pppoatm/Makefile.linux | 1 - 3 files changed, 11 insertions(+), 3 deletions(-) Index: configure =================================================================== --- configure.orig +++ configure @@ -14,6 +14,16 @@ SYSCONF=/etc # fi state="unknown" +if [ -n $TARGET_OS ]; then + system=$TARGET_OS +fi +if [ -n $TARGET_OS_VER ]; then + release=$TARGET_OS_VER +fi +if [ -n $TARGET_OS_ARCH ]; then + arch=$TARGET_OS_ARCH +fi + case $system in Linux) makext="linux"; Index: pppd/plugins/Makefile.linux =================================================================== --- pppd/plugins/Makefile.linux.orig +++ pppd/plugins/Makefile.linux @@ -1,4 +1,3 @@ -CC = gcc COPTS = -O2 -g CFLAGS = $(COPTS) -I.. -I../../include -fPIC LDFLAGS = -shared @@ -37,5 +36,5 @@ clean: for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done depend: - $(CPP) -M $(CFLAGS) *.c >.depend + $(CC) -M $(CFLAGS) *.c >.depend for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done Index: pppd/plugins/pppoatm/Makefile.linux =================================================================== --- pppd/plugins/pppoatm/Makefile.linux.orig +++ pppd/plugins/pppoatm/Makefile.linux @@ -1,4 +1,3 @@ -CC = gcc COPTS = -O2 -g CFLAGS = $(COPTS) -I../.. -I../../../include -fPIC LDFLAGS = -shared