--- bin/gnump3d2.orig	Fri May  2 18:56:50 2003
+++ bin/gnump3d2	Sat May  3 00:11:54 2003
@@ -2457,9 +2457,9 @@
   {
       $CONFIG_FILE = $ENV{"HOME"} . "/.gnump3drc";
   }
-  elsif ( -e "/etc/gnump3d/gnump3d.conf" )
+  elsif ( -e "%%PREFIX%%/etc/gnump3d/gnump3d.conf" )
   {
-      $CONFIG_FILE = "/etc/gnump3d/gnump3d.conf";
+      $CONFIG_FILE = "%%PREFIX%%/etc/gnump3d/gnump3d.conf";
   }
   elsif ( -e "gnump3d.conf" )
   {
@@ -2599,8 +2599,8 @@
   $PORT          = getConfig( "port", 8888 );
   $bind_address  = getConfig( "binding_host", "" );
   $host          = getConfig( "hostname", "localhost" );
-  $theme_dir     = getConfig( "theme_directory", "/usr/share/gnump3d" );
-  $plugin_dir    = getConfig( "plugin_directory",  "/usr/lib/perl5/gnump3d/plugins" );
+  $theme_dir     = getConfig( "theme_directory", "%%PREFIX%%/share/gnump3d" );
+  $plugin_dir    = getConfig( "plugin_directory",  "%%PERL_SITELIBDIR%%/gnump3d/plugins" );
   $always_stream = getConfig( "always_stream", 1 );
   $access_log    = getConfig( "logfile", "/var/log/gnump3d/access.log" );
   $error_log     = getConfig( "errorlog", "/var/log/gnump3d/error.log" );
@@ -2608,10 +2608,10 @@
   $client_host   = getConfig( "use_client_host", 1 );
   $default_theme = getConfig( "theme", "default" );
   $TIMEOUT       = getConfig( "read_time", 10 );
-  $STATSPROG     = getConfig( "stats_program", "/usr/bin/gnump3d-top" );
+  $STATSPROG     = getConfig( "stats_program", "%%PREFIX%%/bin/gnump3d-top" );
   $STATSARGS     = getConfig( "stats_arguments", "" );
   $play_rec      = getConfig( "play_recursively_text",  "Play" );
-  $mime_file     = getConfig( "mime_file",  "/etc/gnump3d/mime.types" );
+  $mime_file     = getConfig( "mime_file",  "%%PREFIX%%/etc/gnump3d/mime.types" );
   $enable_browse = getConfig( "enable_browsing", 1 );
   $sort_order    = getConfig( "sort_order", '$SONGNAME' );
 
