Index: configure =================================================================== RCS file: /cvsroot/pgsql-server/configure,v retrieving revision 1.253 diff -c -c -r1.253 configure *** configure 6 May 2003 23:33:52 -0000 1.253 --- configure 7 May 2003 03:45:18 -0000 *************** *** 10305,10311 **** ! for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 --- 10305,10312 ---- ! ! for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 Index: configure.in =================================================================== RCS file: /cvsroot/pgsql-server/configure.in,v retrieving revision 1.244 diff -c -c -r1.244 configure.in *** configure.in 24 Apr 2003 21:16:42 -0000 1.244 --- configure.in 7 May 2003 03:45:19 -0000 *************** *** 779,785 **** # SunOS doesn't handle negative byte comparisons properly with +/- return AC_FUNC_MEMCMP ! AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid]) AC_CHECK_DECLS(fdatasync, [], [], [#include ]) --- 779,785 ---- # SunOS doesn't handle negative byte comparisons properly with +/- return AC_FUNC_MEMCMP ! AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid]) AC_CHECK_DECLS(fdatasync, [], [], [#include ]) Index: src/backend/commands/dbcommands.c =================================================================== RCS file: /cvsroot/pgsql-server/src/backend/commands/dbcommands.c,v retrieving revision 1.113 diff -c -c -r1.113 dbcommands.c *** src/backend/commands/dbcommands.c 4 May 2003 04:42:52 -0000 1.113 --- src/backend/commands/dbcommands.c 7 May 2003 03:45:21 -0000 *************** *** 174,181 **** /* don't call this in a transaction block */ PreventTransactionChain((void *) stmt, "CREATE DATABASE"); ! #ifdef WIN32 ! if (dbpath != NULL) /* platform has no symlinks */ elog(ERROR, "CREATE DATABASE: may not use an alternate location on this platform"); #endif --- 174,181 ---- /* don't call this in a transaction block */ PreventTransactionChain((void *) stmt, "CREATE DATABASE"); ! #ifndef HAVE_SYMLINK ! if (dbpath != NULL) elog(ERROR, "CREATE DATABASE: may not use an alternate location on this platform"); #endif *************** *** 301,307 **** /* Make the symlink, if needed */ if (alt_loc) { ! #ifndef WIN32 /* already throws error on WIN32 above */ if (symlink(alt_loc, nominal_loc) != 0) #endif elog(ERROR, "CREATE DATABASE: could not link '%s' to '%s': %m", --- 301,307 ---- /* Make the symlink, if needed */ if (alt_loc) { ! #ifdef HAVE_SYMLINK /* already throws error above */ if (symlink(alt_loc, nominal_loc) != 0) #endif elog(ERROR, "CREATE DATABASE: could not link '%s' to '%s': %m", Index: src/include/pg_config.h.in =================================================================== RCS file: /cvsroot/pgsql-server/src/include/pg_config.h.in,v retrieving revision 1.45 diff -c -c -r1.45 pg_config.h.in *** src/include/pg_config.h.in 24 Apr 2003 21:16:44 -0000 1.45 --- src/include/pg_config.h.in 7 May 2003 03:45:28 -0000 *************** *** 414,419 **** --- 414,422 ---- /* Define to 1 if you have the header file. */ #undef HAVE_SUPPORTDEFS_H + /* Define to 1 if you have the `symlink' function. */ + #undef HAVE_SYMLINK + /* Define to 1 if you have the `sysconf' function. */ #undef HAVE_SYSCONF