Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3c007c3d
Commit
3c007c3d
authored
Aug 01, 2003
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- portability fixes: put string tests in double quotes (BUG#974).
Thanks to Alex Kiernan for the hint.
parent
216ca1e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
acinclude.m4
acinclude.m4
+16
-16
No files found.
acinclude.m4
View file @
3c007c3d
...
@@ -50,7 +50,7 @@ mysql_cv_btype_last_arg_accept=none
...
@@ -50,7 +50,7 @@ mysql_cv_btype_last_arg_accept=none
],
],
[int a = accept(1, (struct sockaddr *) 0, (socklen_t *) 0); return (a != 0);],
[int a = accept(1, (struct sockaddr *) 0, (socklen_t *) 0); return (a != 0);],
mysql_cv_btype_last_arg_accept=socklen_t)]
mysql_cv_btype_last_arg_accept=socklen_t)]
if test
$mysql_cv_btype_last_arg_accept = none
; then
if test
"$mysql_cv_btype_last_arg_accept" = "none"
; then
[AC_TRY_COMPILE([#if defined(inline)
[AC_TRY_COMPILE([#if defined(inline)
#undef inline
#undef inline
#endif
#endif
...
@@ -61,7 +61,7 @@ if test $mysql_cv_btype_last_arg_accept = none; then
...
@@ -61,7 +61,7 @@ if test $mysql_cv_btype_last_arg_accept = none; then
[int a = accept(1, (struct sockaddr *) 0, (size_t *) 0); return (a != 0);],
[int a = accept(1, (struct sockaddr *) 0, (size_t *) 0); return (a != 0);],
mysql_cv_btype_last_arg_accept=size_t)]
mysql_cv_btype_last_arg_accept=size_t)]
fi
fi
if test
$mysql_cv_btype_last_arg_accept = none
; then
if test
"$mysql_cv_btype_last_arg_accept" = "none"
; then
mysql_cv_btype_last_arg_accept=int
mysql_cv_btype_last_arg_accept=int
fi)
fi)
AC_LANG_RESTORE
AC_LANG_RESTORE
...
@@ -353,11 +353,11 @@ AC_CACHE_VAL(mysql_cv_termcap_lib,
...
@@ -353,11 +353,11 @@ AC_CACHE_VAL(mysql_cv_termcap_lib,
[AC_CHECK_LIB(termcap, tgetent, mysql_cv_termcap_lib=libtermcap,
[AC_CHECK_LIB(termcap, tgetent, mysql_cv_termcap_lib=libtermcap,
mysql_cv_termcap_lib=NOT_FOUND)])])])
mysql_cv_termcap_lib=NOT_FOUND)])])])
AC_MSG_CHECKING(for termcap functions library)
AC_MSG_CHECKING(for termcap functions library)
if test
$mysql_cv_termcap_lib = NOT_FOUND
; then
if test
"$mysql_cv_termcap_lib" = "NOT_FOUND"
; then
AC_MSG_ERROR([No curses/termcap library found])
AC_MSG_ERROR([No curses/termcap library found])
elif test
$mysql_cv_termcap_lib = libtermcap
; then
elif test
"$mysql_cv_termcap_lib" = "libtermcap"
; then
TERMCAP_LIB=-ltermcap
TERMCAP_LIB=-ltermcap
elif test
$mysql_cv_termcap_lib = libncurses
; then
elif test
"$mysql_cv_termcap_lib" = "libncurses"
; then
TERMCAP_LIB=-lncurses
TERMCAP_LIB=-lncurses
else
else
TERMCAP_LIB=-lcurses
TERMCAP_LIB=-lcurses
...
@@ -413,7 +413,7 @@ AC_CACHE_VAL(mysql_cv_can_redecl_getpw,
...
@@ -413,7 +413,7 @@ AC_CACHE_VAL(mysql_cv_can_redecl_getpw,
extern struct passwd *getpwent();], [struct passwd *z; z = getpwent();],
extern struct passwd *getpwent();], [struct passwd *z; z = getpwent();],
mysql_cv_can_redecl_getpw=yes,mysql_cv_can_redecl_getpw=no)])
mysql_cv_can_redecl_getpw=yes,mysql_cv_can_redecl_getpw=no)])
AC_MSG_RESULT($mysql_cv_can_redecl_getpw)
AC_MSG_RESULT($mysql_cv_can_redecl_getpw)
if test
$mysql_cv_can_redecl_getpw = no
; then
if test
"$mysql_cv_can_redecl_getpw" = "no"
; then
AC_DEFINE(HAVE_GETPW_DECLS)
AC_DEFINE(HAVE_GETPW_DECLS)
fi
fi
])
])
...
@@ -425,7 +425,7 @@ AC_CACHE_VAL(mysql_cv_tiocgwinsz_in_ioctl,
...
@@ -425,7 +425,7 @@ AC_CACHE_VAL(mysql_cv_tiocgwinsz_in_ioctl,
#include <sys/ioctl.h>], [int x = TIOCGWINSZ;],
#include <sys/ioctl.h>], [int x = TIOCGWINSZ;],
mysql_cv_tiocgwinsz_in_ioctl=yes,mysql_cv_tiocgwinsz_in_ioctl=no)])
mysql_cv_tiocgwinsz_in_ioctl=yes,mysql_cv_tiocgwinsz_in_ioctl=no)])
AC_MSG_RESULT($mysql_cv_tiocgwinsz_in_ioctl)
AC_MSG_RESULT($mysql_cv_tiocgwinsz_in_ioctl)
if test
$mysql_cv_tiocgwinsz_in_ioctl = yes
; then
if test
"$mysql_cv_tiocgwinsz_in_ioctl" = "yes"
; then
AC_DEFINE(GWINSZ_IN_SYS_IOCTL)
AC_DEFINE(GWINSZ_IN_SYS_IOCTL)
fi
fi
])
])
...
@@ -437,7 +437,7 @@ AC_CACHE_VAL(mysql_cv_fionread_in_ioctl,
...
@@ -437,7 +437,7 @@ AC_CACHE_VAL(mysql_cv_fionread_in_ioctl,
#include <sys/ioctl.h>], [int x = FIONREAD;],
#include <sys/ioctl.h>], [int x = FIONREAD;],
mysql_cv_fionread_in_ioctl=yes,mysql_cv_fionread_in_ioctl=no)])
mysql_cv_fionread_in_ioctl=yes,mysql_cv_fionread_in_ioctl=no)])
AC_MSG_RESULT($mysql_cv_fionread_in_ioctl)
AC_MSG_RESULT($mysql_cv_fionread_in_ioctl)
if test
$mysql_cv_fionread_in_ioctl = yes
; then
if test
"$mysql_cv_fionread_in_ioctl" = "yes"
; then
AC_DEFINE(FIONREAD_IN_SYS_IOCTL)
AC_DEFINE(FIONREAD_IN_SYS_IOCTL)
fi
fi
])
])
...
@@ -449,7 +449,7 @@ AC_CACHE_VAL(mysql_cv_tiocstat_in_ioctl,
...
@@ -449,7 +449,7 @@ AC_CACHE_VAL(mysql_cv_tiocstat_in_ioctl,
#include <sys/ioctl.h>], [int x = TIOCSTAT;],
#include <sys/ioctl.h>], [int x = TIOCSTAT;],
mysql_cv_tiocstat_in_ioctl=yes,mysql_cv_tiocstat_in_ioctl=no)])
mysql_cv_tiocstat_in_ioctl=yes,mysql_cv_tiocstat_in_ioctl=no)])
AC_MSG_RESULT($mysql_cv_tiocstat_in_ioctl)
AC_MSG_RESULT($mysql_cv_tiocstat_in_ioctl)
if test
$mysql_cv_tiocstat_in_ioctl = yes
; then
if test
"$mysql_cv_tiocstat_in_ioctl" = "yes"
; then
AC_DEFINE(TIOCSTAT_IN_SYS_IOCTL)
AC_DEFINE(TIOCSTAT_IN_SYS_IOCTL)
fi
fi
])
])
...
@@ -482,7 +482,7 @@ AC_CACHE_VAL(mysql_cv_dirent_has_dino,
...
@@ -482,7 +482,7 @@ AC_CACHE_VAL(mysql_cv_dirent_has_dino,
struct dirent d; int z; z = d.d_ino;
struct dirent d; int z; z = d.d_ino;
], mysql_cv_dirent_has_dino=yes, mysql_cv_dirent_has_dino=no)])
], mysql_cv_dirent_has_dino=yes, mysql_cv_dirent_has_dino=no)])
AC_MSG_RESULT($mysql_cv_dirent_has_dino)
AC_MSG_RESULT($mysql_cv_dirent_has_dino)
if test
$mysql_cv_dirent_has_dino = yes
; then
if test
"$mysql_cv_dirent_has_dino" = "yes"
; then
AC_DEFINE(STRUCT_DIRENT_HAS_D_INO)
AC_DEFINE(STRUCT_DIRENT_HAS_D_INO)
fi
fi
])
])
...
@@ -501,7 +501,7 @@ extern "C"
...
@@ -501,7 +501,7 @@ extern "C"
void (*signal ()) ();],
void (*signal ()) ();],
[int i;], mysql_cv_void_sighandler=yes, mysql_cv_void_sighandler=no)])dnl
[int i;], mysql_cv_void_sighandler=yes, mysql_cv_void_sighandler=no)])dnl
AC_MSG_RESULT($mysql_cv_void_sighandler)
AC_MSG_RESULT($mysql_cv_void_sighandler)
if test
$mysql_cv_void_sighandler = yes
; then
if test
"$mysql_cv_void_sighandler" = "yes"
; then
AC_DEFINE(VOID_SIGHANDLER)
AC_DEFINE(VOID_SIGHANDLER)
fi
fi
])
])
...
@@ -560,7 +560,7 @@ then
...
@@ -560,7 +560,7 @@ then
AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h,
AC_CACHE_CHECK([for working alloca.h], ac_cv_header_alloca_h,
[AC_TRY_LINK([#include <alloca.h>], [char *p = alloca(2 * sizeof(int));],
[AC_TRY_LINK([#include <alloca.h>], [char *p = alloca(2 * sizeof(int));],
ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)])
ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)])
if test
$ac_cv_header_alloca_h = yes
if test
"$ac_cv_header_alloca_h" = "yes"
then
then
AC_DEFINE(HAVE_ALLOCA)
AC_DEFINE(HAVE_ALLOCA)
fi
fi
...
@@ -584,11 +584,11 @@ then
...
@@ -584,11 +584,11 @@ then
#endif
#endif
], [char *p = (char *) alloca(1);],
], [char *p = (char *) alloca(1);],
ac_cv_func_alloca_works=yes, ac_cv_func_alloca_works=no)])
ac_cv_func_alloca_works=yes, ac_cv_func_alloca_works=no)])
if test
$ac_cv_func_alloca_works = yes
; then
if test
"$ac_cv_func_alloca_works" = "yes"
; then
AC_DEFINE(HAVE_ALLOCA)
AC_DEFINE(HAVE_ALLOCA)
fi
fi
if test
$ac_cv_func_alloca_works = no
; then
if test
"$ac_cv_func_alloca_works" = "no"
; then
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
# that cause trouble. Some versions do not even contain alloca or
# that cause trouble. Some versions do not even contain alloca or
# contain a buggy version. If you still want to use their alloca,
# contain a buggy version. If you still want to use their alloca,
...
@@ -604,7 +604,7 @@ then
...
@@ -604,7 +604,7 @@ then
wenotbecray
wenotbecray
#endif
#endif
], ac_cv_os_cray=yes, ac_cv_os_cray=no)])
], ac_cv_os_cray=yes, ac_cv_os_cray=no)])
if test
$ac_cv_os_cray = yes
; then
if test
"$ac_cv_os_cray" = "yes"
; then
for ac_func in _getb67 GETB67 getb67; do
for ac_func in _getb67 GETB67 getb67; do
AC_CHECK_FUNC($ac_func, [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func)
AC_CHECK_FUNC($ac_func, [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func)
break])
break])
...
@@ -812,7 +812,7 @@ AC_MSG_CHECKING(for OpenSSL)
...
@@ -812,7 +812,7 @@ AC_MSG_CHECKING(for OpenSSL)
case "$CLIENT_EXTRA_LDFLAGS $MYSQLD_EXTRA_LDFLAGS" in
case "$CLIENT_EXTRA_LDFLAGS $MYSQLD_EXTRA_LDFLAGS" in
*-all-static*) using_static="yes" ;;
*-all-static*) using_static="yes" ;;
esac
esac
if test
$using_static
= "yes"
if test
"$using_static"
= "yes"
then
then
echo "You can't use the --all-static link option when using openssl."
echo "You can't use the --all-static link option when using openssl."
exit 1
exit 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment