Hi all I am having problems building R + x11 support on the following system: # uname -a Linux 2.6.16.60-0.27-bigsmp #1 SMP Mon Jul 28 13:06:32 UTC 2008 i686 i686 i386 GNU/Linux # cat /etc/SuSE-release SUSE Linux Enterprise Server 10 (i586) VERSION = 10 PATCHLEVEL = 2 I am using the source download of R-2.9.1. My configure line is as follows: ./configure --with-x --with-gnu-ld gnu binutils versions: # gcc --version gcc (GCC) 4.1.2 20070115 (SUSE Linux) # ld --version GNU ld version 2.16.91.0.5 20051219 (SUSE Linux) Anyways, the problem seems to be (from config.log): configure:40036: checking for X configure:40279: result: libraries /usr/X11R6/lib, headers /usr/X11R6/include configure:40301: checking whether -R must be followed by a space configure:40335: gcc -std=gnu99 -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib conftest. c -ldl -lm -R/usr/X11R6/lib >&5 gcc: unrecognized option '-R/usr/X11R6/lib' configure:40341: $? = 0 configure: failed program was ... configure:40384: gcc -std=gnu99 -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib conftest. c -ldl -lm -R /usr/X11R6/lib >&5 gcc: unrecognized option '-R' /usr/X11R6/lib: file not recognized: Is a directory collect2: ld returned 1 exit status R is eventually built, but capabilities()[["X11"]] returns FALSE. The issue may be that when I try (from the command line), this fails: # gcc -std=gnu99 -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib conftest.c -ldl -lm -R /usr/X11R6/lib/ But this works: # gcc -std=gnu99 -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib conftest.c -ldl -lm -Wl,-R /usr/X11R6/lib/ So essentially I guess I am asking in a long-winded way, how can I modify the above behaviour so it passes the correct information to the linker? (PS I have also tried --with-gnu-ld, and got the same result). Cheers -- Rory [[alternative HTML version deleted]]