Thanks for the quick response, Jeff!
My install of CentOS did not have libapreq2 installed. I just now did the following to install it:
yum install libapreq2
When I re-run ./configure, I still get:
checking for apreq2-config... no
I've confirmed that installing the library does not install anything that looks like apreq2-config:
$ repoquery --list libapreq2
/etc/httpd/conf.d/apreq.conf
/usr/lib64/httpd/modules/mod_apreq2.so
/usr/lib64/libapreq2.so.3
/usr/lib64/libapreq2.so.3.6.1
/usr/share/doc/libapreq2-2.09
/usr/share/doc/libapreq2-2.09/CHANGES
/usr/share/doc/libapreq2-2.09/LICENSE
/usr/share/doc/libapreq2-2.09/NOTICE
/usr/share/doc/libapreq2-2.09/README
/etc/httpd/conf.d/apreq.conf
/usr/lib/httpd/modules/mod_apreq2.so
/usr/lib/libapreq2.so.3
/usr/lib/libapreq2.so.3.6.1
/usr/share/doc/libapreq2-2.09
/usr/share/doc/libapreq2-2.09/CHANGES
/usr/share/doc/libapreq2-2.09/LICENSE
/usr/share/doc/libapreq2-2.09/NOTICE
/usr/share/doc/libapreq2-2.09/README
(two copies of some things because both the 32-bit and 64-bit version of the package show up...)
Running ./configure with no additional options does not work. It doesn't detect the system libapreq2, tries to rebuilt it, and fails.
I got a little farther with this:
./configure --with-apache2-apxs=/usr/sbin/apxs --with-apreq2-config=./libapreq2/apreq2-config
Configure now detects the apreq2-config script, and make doesn't try to build the library. But...
$ make
Configuring libapreq2
touch .apreq-config
Compiling mod_R
/usr/sbin/apxs -I/usr/include/R -I/home/harlan/rapache-1.1.14/libapreq2/include -I/usr/include/apr-1 -c mod_R.c -Wl,-rpath,/usr/lib64/R/lib -L/usr/lib64/R/lib -lR -L/home/harlan/rapache-1.1.14/libapreq2/library/.libs -lapreq2
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/R -I/home/harlan/rapache-1.1.14/libapreq2/include -I/usr/include/apr-1 -c -o mod_R.lo mod_R.c && touch mod_R.slo
mod_R.c: In function 'AP_hook_request_handler':
mod_R.c:533: warning: 'ret' may be used uninitialized in this function
mod_R.c: In function 'RApache_setCookie':
mod_R.c:1696: warning: 'tmpExpires' may be used uninitialized in this function
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_R.la -rpath /usr/lib64/httpd/modules -module -avoid-version mod_R.lo -Wl,-rpath,/usr/lib64/R/lib -L/usr/lib64/R/lib -lR -L/home/harlan/rapache-1.1.14/libapreq2/library/.libs -lapreq2
/usr/bin/ld: cannot find -lapreq2
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_R.so] Error 1
That's odd. The libraries are in the usual spots:
$ ls -l /usr/lib/libapreq2*
lrwxrwxrwx 1 root root 18 Mar 21 11:31 /usr/lib/libapreq2.so.3 -> libapreq2.so.3.6.1
-rwxr-xr-x 1 root root 49768 Jun 17 2008 /usr/lib/libapreq2.so.3.6.1
$ ls -l /usr/lib64/libapreq2*
lrwxrwxrwx 1 root root 18 Mar 21 11:31 /usr/lib64/libapreq2.so.3 -> libapreq2.so.3.6.1
-rwxr-xr-x 1 root root 53072 Jun 17 2008 /usr/lib64/libapreq2.so.3.6.1
Why can't it find them?
-Harlan