pike.git / src / modules / Mysql / configure.in

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $Id: configure.in,v 1.58 2008/05/14 14:34:09 marcus Exp $ + # $Id: configure.in,v 1.59 2008/05/14 15:03:23 marcus Exp $   #   # Configure script for the mysql-module   #   # Henrik Grubbström   #      #   # NOTE:   # Prior to 3.20.0 After 3.20.0   # -------------------------------------------------------------------
pike.git/src/modules/Mysql/configure.in:38:       AC_MSG_CHECKING(for Mysql directory prefix)    AC_CACHE_VAL(pike_cv_mysql_lib_dir_prefix, [    pike_cv_mysql_lib_dir_prefix=no    for dir_prefix in $with_mysql \    `echo "${with_site_prefixes}"|sed -e 's/:/ /g'` \    `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$with_root$ac_default_prefix@g"` \    $with_root/usr/local $with_root/sw/local $with_root/sw \    $with_root/usr/gnu $with_root/opt/gnu $with_root/sw/gnu \    $with_root/usr/freeware $with_root/usr/pkg \ +  $with_root/opt/csw $with_root/opt/csw/mysql5 $with_root/opt/csw/mysql4 \    $with_root/usr/sfw $with_root/opt/sfw \ -  $with_root/opt/csw /opt/csw/mysql5 /opt/csw/mysql4 \ +     $with_root/usr $with_root    do    if test -d "$dir_prefix/."; then :; else continue; fi       for subdir in mysql .; do    if test -d "$dir_prefix/$subdir/."; then :; else continue; fi -  for libdir in "lib$with_abi" "lib/$with_abi" "lib"; do -  if test -d "$dir_prefix/$subdir/$libdir/mysql/."; then +  for libdir in $pike_cv_abi_suffixes; do +  if test -d "$dir_prefix/$subdir/lib$libdir/mysql/." || test -d "$dir_prefix/$subdir/lib/mysql$libdir/."; then    pike_cv_mysql_lib_dir_prefix="$dir_prefix/$subdir"    break 3    fi    done    done    done    ])    AC_MSG_RESULT($pike_cv_mysql_lib_dir_prefix)       if test "x$pike_cv_mysql_lib_dir_prefix" = "xno"; then :; else       AC_MSG_CHECKING(for Mysql lib directory)    AC_CACHE_VAL(pike_cv_mysql_lib_dir, [    pike_cv_mysql_lib_dir="no" -  for libdir in "lib$with_abi" "lib/$with_abi" "lib"; do -  if test -d "$pike_cv_mysql_lib_dir_prefix/$libdir/mysql/."; then -  pike_cv_mysql_lib_dir="$pike_cv_mysql_lib_dir_prefix/$libdir/mysql" +  for libdir in $pike_cv_abi_suffixes; do +  if test -d "$pike_cv_mysql_lib_dir_prefix/lib$libdir/mysql/."; then +  pike_cv_mysql_lib_dir="$pike_cv_mysql_lib_dir_prefix/lib$libdir/mysql"    break -  +  else +  if test -d "$pike_cv_mysql_lib_dir_prefix/lib/mysql$libdir/."; then +  pike_cv_mysql_lib_dir="$pike_cv_mysql_lib_dir_prefix/lib/mysql$libdir" +  break    fi -  +  fi    done    ])    AC_MSG_RESULT($pike_cv_mysql_lib_dir)    if test "x$pike_cv_mysql_lib_dir" = "xno"; then :; else    echo Adding $pike_cv_mysql_lib_dir to the library search path.    LDFLAGS="${LDFLAGS} -R$pike_cv_mysql_lib_dir -L$pike_cv_mysql_lib_dir"    fi       AC_MSG_CHECKING(for Mysql include-directory)    AC_CACHE_VAL(pike_cv_mysql_include_dir, [