LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-15-2007, 01:25 PM   #1
kev000
Member
 
Registered: Oct 2006
Posts: 53

Rep: Reputation: 15
configure (automake) conditionals


Hey guys,

I'm trying to modify my configure.in file so that devs who run ./configure without the --enable-mysql option won't have to install the mysql headers because it still checks for the headers but doesn't use them...

here is the relevant code:

Code:
AC_ARG_ENABLE(
	[mysql],
	[AS_HELP_STRING(
		[--enable-mysql],
		[Enables the mysql database plugin @<:@default=no@:>@])],
	[
		case $enableval in
			yes|ye|y) enablemysql=yes
			;;
			no|n) enablemysql=no
			;;
			*) AC_MSG_ERROR([Invalid option '$enableval' - must be yes or no])
			;;
		esac
	],
	[enablemysql=no])
AM_CONDITIONAL(MYSQL, test "x$enablemysql" = "xyes")
here is the trouble spot:

Code:
if MYSQL
AC_CHECK_HEADER(mysql/mysql.h, , AC_MSG_ERROR(unable to find mysql header))
fi
this of course doesn't work. Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with automake EchoWarrior Linux - Software 3 11-08-2005 10:35 AM
automake Sc0pE Linux - Software 2 05-13-2005 11:11 AM
Scribus installation problem, sez I need automake 1.6 when automake 1.9 is istalled Rockgod2099 Linux - Software 13 11-14-2004 07:37 PM
slackware 9 asking for automake 1.6 while i have automake 1.7 gtgoku Slackware 1 10-19-2003 09:59 AM
bash scripting - conditionals dguy Linux - Newbie 4 01-19-2002 09:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration