#
# old_revision [ce6d651736a165abb410e1c58a7af8ebac9dbbe1]
#
# patch "pf/installer.pl"
#  from [b786df3c4c2200854439edbad286f7393b019f5d]
#    to [79d3fd5fa9b4eef58f24261efe6bef50844c44f7]
#
============================================================
--- pf/installer.pl	b786df3c4c2200854439edbad286f7393b019f5d
+++ pf/installer.pl	79d3fd5fa9b4eef58f24261efe6bef50844c44f7
@@ -307,7 +307,18 @@ if ( !( -e "$conf_dir/templates/httpd.co
 # TODO cleanup commented stuff regarding the packaging of jpgraph in an rpm
 if ( !( -e "$conf_dir/templates/httpd.conf" ) ) {
     print "$conf_dir/templates/httpd.conf symlink does not yet exist\n";
-    if ( `httpd -v` =~ /Apache\/2\.[2-9]\./ ) {
+    # TODO: Its wrong to assume the apache executable is named "httpd".
+    #       This quick fix also tries the exe name "apache2".
+    my $output = `httpd -v`;
+    if ( $? == -1 ) {
+	# Exitcode "-1" indicate command not found (txt err see $!)
+	# Thus, trying another exe name
+	$output = `apache2 -v`;
+	if ( $? == -1 ) {
+	    print "WARNING: Cannot find the apache executable in your path\n";
+	}
+    }
+    if ( $output =~ /Apache\/2\.[2-9]\./ ) {
         print "creating symlink to httpd.conf.apache22\n";
         `ln -s $conf_dir/templates/httpd.conf.apache22 $conf_dir/templates/httpd.conf`;
     } else {
