MySQL++

Check-in [a8184428f3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed the redundant library removal bit on config/mysql_loc.m4. If triggered, it causes bare -L flags to be put into Makefile.in, which isn't likely to work out well. I don't recall this being *required* anywhere; it looks like overzealous cleanup.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:a8184428f3833448ee11ae8669f1234905a06e5f2d10e2d26a1cacb066dfc623
User & Date: tangent 2017-11-23 00:51:46
Context
2017-11-23
01:06
Added some SSQLSv2 testing files present in previous svn repo but not in tarballs, thus not restored in Fossil conversion, which prevented dtest from running to completion. Since SSQLSv2 has never been completed, this is purely annoying rather than actually important. check-in: 143985738d user: tangent tags: trunk
00:51
Removed the redundant library removal bit on config/mysql_loc.m4. If triggered, it causes bare -L flags to be put into Makefile.in, which isn't likely to work out well. I don't recall this being *required* anywhere; it looks like overzealous cleanup. check-in: a8184428f3 user: tangent tags: trunk
00:45
If the C API library is in one of the linker's default paths and the first directory the mysql_loc macro searched for the library doesn't exist, it would use that in the -L flag since the link succeeded with that first try. Some linkers (e.g. current macOS) then complain about a bogus -L flag, even though the link succeeds. We now skip the test for directories that don't exist, so that we exit that loop in such cases with one of the bog standard directories like /usr/lib, which exists everywhere. check-in: f2533e5ac5 user: tangent tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to config/mysql_loc.m4.

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	fi

	case "$MYSQL_C_LIB_DIR" in
		/* ) ;;
		* )  AC_MSG_ERROR([The MySQL library directory ($MYSQL_C_LIB_DIR) must be an absolute path.]) ;;
	esac

	if  test "$MYSQL_C_LIB_DIR" = "/usr/lib" || \
		test "$MYSQL_C_LIB_DIR" = "/usr/lib64"
	then
		# Remove redundant lib paths
		MYSQL_C_LIB_DIR=
	fi

	AC_SUBST(MYSQL_C_INC_DIR)
	AC_SUBST(MYSQL_C_LIB_DIR)
	AC_SUBST(MYSQL_C_LIB_NAME)
]) dnl MYSQL_C_API_LOCATION








<
<
<
<
<
<
<





116
117
118
119
120
121
122







123
124
125
126
127
	fi

	case "$MYSQL_C_LIB_DIR" in
		/* ) ;;
		* )  AC_MSG_ERROR([The MySQL library directory ($MYSQL_C_LIB_DIR) must be an absolute path.]) ;;
	esac








	AC_SUBST(MYSQL_C_INC_DIR)
	AC_SUBST(MYSQL_C_LIB_DIR)
	AC_SUBST(MYSQL_C_LIB_NAME)
]) dnl MYSQL_C_API_LOCATION