]> git.sur5r.net Git - bacula/bacula/commitdiff
Make new configure per Marco's request
authorKern Sibbald <kern@sibbald.com>
Wed, 21 Oct 2009 12:24:47 +0000 (14:24 +0200)
committerKern Sibbald <kern@sibbald.com>
Wed, 21 Oct 2009 12:24:47 +0000 (14:24 +0200)
bacula/configure

index 0d5a6cef400ad106f93ab55c86ad79cbb22982aa..8f2a04e19df303704948c509fa548d5aa39dc3dc 100755 (executable)
@@ -18322,13 +18322,29 @@ _ACEOF
 
 
 
+os_name=`uname -s 2>/dev/null`
 if test x${prefix} = xNONE ; then
    if test `eval echo ${sysconfdir}` = NONE/etc ; then
       sysconfdir=/etc/bacula
    fi
 
    if test `eval echo ${libdir}` = NONE/lib ; then
-      libdir=/usr/lib
+      case ${os_name} in
+      Linux)
+         os_processor=`uname -p 2>/dev/null`
+         case ${os_processor} in
+         x86_64)
+            libdir=/usr/lib64
+            ;;
+         *)
+            libdir=/usr/lib
+            ;;
+         esac
+         ;;
+      *)
+         libdir=/usr/lib
+         ;;
+      esac
    fi
 
    if test `eval echo ${includedir}` = NONE/include ; then