1 if test "$GCC" != yes; then
2 # The -Kno_host is for a bug in the compiler. See -hackers
3 # discussion on 7-8/Aug/2003.
4 cat >conftest.c <<__EOF__
5 extern char *strcpy(char *, const char *);
7 static void f(char *p, int n){
15 # Debugging and optimization are mutually exclusive
16 if test "$enable_debug" != yes; then
19 if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
20 CFLAGS="$CFLAGS -Kinline"
22 CFLAGS="$CFLAGS -Kinline,no_host"
26 PTHREAD_CFLAGS="-Kpthread"
28 # The effect of doing threading for the backend does not work
29 # because of a threading bug that appears in the regression tests:
31 # in make check, the plpgsql test (plpgsql.sql)
32 # set statement_timeout to 1000;
34 # reset statement_timeout;
36 # per report from Olivier PRENANT <ohp@pyrenet.fr>
40 # Unixware's ldap library reportedly needs these too
41 EXTRA_LDAP_LIBS="-llber -lresolv"