Update of /cvsroot/pclasses/pclasses2/toc/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15695/toc/tests
Added Files:
pg_config.sh mysql_config.sh
Log Message:
egg
--- NEW FILE: mysql_config.sh ---
#!/do/not/bash
# toc_run_description = Looking for mysql_config
# toc_begin_help =
#
# Looks for mysql_config. If it finds it then the following vars
# are exported:
#
# MYSQL_CONFIG_BIN=/path/to/mysql_config
# MYSQL_LIBS=link args for client apps
# MYSQL_INCLUDES=includes args for client apps
#
# Clients can use --with-mysql_config=/path/to/mysql_config to specify
# their config script.
#
# = toc_end_help
cf=${configure_with_mysql_config}
test x = "x${cf}" && {
toc_find_in_path mysql_config ${prefix}/bin:$PATH || {
return 127
}
toc_export MYSQL_CONFIG_BIN=${TOC_FIND_RESULT}
}
toc_export MYSQL_CONFIG_BIN=${TOC_FIND_RESULT}
toc_export MYSQL_INCLUDES="$(${MYSQL_CONFIG_BIN} --include)"
toc_export MYSQL_LIBS="$(${MYSQL_CONFIG_BIN} --libs)"
return 0
--- NEW FILE: pg_config.sh ---
#!/do/not/bash
# toc_run_description = "Looking for pg_config (postgres)"
# toc_begin_help =
#
# Looks for pg_config. If it finds it then the following vars
# are exported:
#
# POSTGRES_CONFIG_BIN=/path/to/pg_config
# POSTGRES_LIBS=link args for client apps
# POSTGRES_INCLUDES=includes args for client apps
#
# Clients can use --with-postgres-config=/path/to/pg_config to specify
# their config script.
#
# = toc_end_help
cf=${configure_with_postgres_config}
test x = "x${cf}" && {
toc_find_in_path pg_config "${prefix}/bin:$PATH" || {
return 127
}
toc_export POSTGRES_CONFIG_BIN=${TOC_FIND_RESULT}
}
toc_export POSTGRES_INCLUDES="-I$(${POSTGRES_CONFIG_BIN} --includedir) -I$(${POSTGRES_CONFIG_BIN} --includedir-server)"
toc_export POSTGRES_LIBS="-L$(${POSTGRES_CONFIG_BIN} --libdir) -lpgeasy"
return 0
|