Bilding sysbench 0.4.12 on RHEL5

Here is what I got and what I did to compile sysbench 0.4.12 on my RHEL5 box. My system is running RHEL 5.4 x86_64 (kernel 2.6.18-164.el5).

The first step is to download the source code from the sysbench site, and run the normal commands as usual.
$ tar zxvf sysbench-0.4.12.tar.gz
$ cd tar zxvf sysbench-0.4.12
$ ./configure
$ make
Then I got the following error:
...
../libtool: line 838: X--tag=CC: command not found
../libtool: line 871: libtool: ignoring unknown tag : command not found
../libtool: line 838: X--mode=link: command not found
../libtool: line 1004: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1005: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2231: X-g: command not found
../libtool: line 2231: X-O2: command not found
../libtool: line 2231: X-rdynamic: command not found
../libtool: line 1951: X-L/usr/lib64/mysql: No such file or directory
../libtool: line 1951: X-L/usr/lib64: No such file or directory
../libtool: line 2400: Xsysbench: command not found
...
As you see, there are many libtool errors, so I ran the autoreconf command to generate all build related files.
$ touch NEWS AUTHORS
$ autoreconf -ifv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
Putting files in AC_CONFIG_AUX_DIR, `config'.
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
Ok. Let's re-run the commands.
$ ./configure
$ make
The errors are gone now. Next step is to install the compiled programs with the 'make install' command.
$ sudo make install
The last step is to run the sysbench command to make sure if it works ok.
$ sysbench --test=cpu run
sysbench 0.4.12: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 10000


Test execution summary:
total time: 9.5088s
total number of events: 10000
total time taken by event execution: 9.5048
per-request statistics:
min: 0.95ms
avg: 0.95ms
max: 1.20ms
approx. 95 percentile: 0.95ms

Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 9.5048/0.00

Good Bye, Folks!

As you may have heard, Fujitsu has completely discontinued Data Center Products and Solutions business in North America on April 1st, 2021. ...