#
#       portability.patch
#
#       configure.in
#       portability fix: ("type -path" is bash only)
#
--- openca-base-1.1.0/configure.in.old  2010-02-24 19:12:22.000000000 -0800
+++ openca-base-1.1.0/configure.in      2010-07-18 17:57:27.760968006 -0700
@@ -806,7 +813,7 @@
        if [[ x${openssl_prefix} != x ]]; then
                openssl_path=${openssl_prefix}/bin
        else
-               openssl_path=`type -path openssl`
+               openssl_path=`which openssl | grep -v "no openssl in"`
                if ! [[ -z "${openssl_path}" ]] ; then
                        openssl_path=`dirname "${openssl_path}"`
                        openssl_prefix=`dirname "${openssl_path}"`
@@ -933,12 +940,12 @@
        
        o=`$PERL -MDBI -e 1 2>/dev/null || echo "ERROR"`
        if [[ "x$o" = "x" ]] ; then
-               if ! [[ -z `type -path mysql_config` ]] ; then
+               if ! [[ -z `which mysql_config | grep -v "no mysql_config in"` 
]] ; then
                        enable_mysql=yes
                fi
                AC_SUBST(enable_mysql)
 
-               if ! [[ -z `type -path pg_config` ]] ; then
+               if ! [[ -z `which pg_config | grep -v "no mysql_config in"` ]] 
; then
                        enable_pg=yes
                fi
                AC_SUBST(enable_pg)

-- 
Tim Rice                                Multitalents    (707) 887-1469
t...@multitalents.net
#
#       portability.patch
#
#       configure.in
#       portability fix: ("type -path" is bash only)
#
--- openca-base-1.1.0/configure.in.old  2010-02-24 19:12:22.000000000 -0800
+++ openca-base-1.1.0/configure.in      2010-07-18 17:57:27.760968006 -0700
@@ -806,7 +813,7 @@
        if [[ x${openssl_prefix} != x ]]; then
                openssl_path=${openssl_prefix}/bin
        else
-               openssl_path=`type -path openssl`
+               openssl_path=`which openssl | grep -v "no openssl in"`
                if ! [[ -z "${openssl_path}" ]] ; then
                        openssl_path=`dirname "${openssl_path}"`
                        openssl_prefix=`dirname "${openssl_path}"`
@@ -933,12 +940,12 @@
        
        o=`$PERL -MDBI -e 1 2>/dev/null || echo "ERROR"`
        if [[ "x$o" = "x" ]] ; then
-               if ! [[ -z `type -path mysql_config` ]] ; then
+               if ! [[ -z `which mysql_config | grep -v "no mysql_config in"` 
]] ; then
                        enable_mysql=yes
                fi
                AC_SUBST(enable_mysql)
 
-               if ! [[ -z `type -path pg_config` ]] ; then
+               if ! [[ -z `which pg_config | grep -v "no mysql_config in"` ]] 
; then
                        enable_pg=yes
                fi
                AC_SUBST(enable_pg)
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
OpenCA-Devel mailing list
OpenCA-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to