2007-09-25 20:32:46 -04:00
|
|
|
# $PostgreSQL: pgsql/src/template/darwin,v 1.11 2007/09/26 00:32:46 tgl Exp $
|
2006-03-10 23:38:42 -05:00
|
|
|
|
2003-09-19 16:47:59 -04:00
|
|
|
# Apple's cpp-precomp seems a tad broken, so don't use it
|
|
|
|
|
# (Note: on OS X before 10.2, you might need -traditional-cpp instead)
|
|
|
|
|
CC="$CC -no-cpp-precomp"
|
2002-05-04 20:03:29 -04:00
|
|
|
|
2007-09-25 20:32:46 -04:00
|
|
|
# Select appropriate semaphore support. Darwin 6.0 (Mac OS X 10.2) and up
|
|
|
|
|
# support System V semaphores; before that we have to use POSIX semaphores,
|
|
|
|
|
# which are less good for our purposes because they eat a file descriptor
|
|
|
|
|
# per backend per max_connection slot.
|
|
|
|
|
case $host_os in
|
|
|
|
|
darwin[015].*)
|
|
|
|
|
USE_NAMED_POSIX_SEMAPHORES=1
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
USE_SYSV_SEMAPHORES=1
|
|
|
|
|
;;
|
|
|
|
|
esac
|