~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_platform.m4

  • Committer: Brian Aker
  • Date: 2010-06-28 16:17:36 UTC
  • mfrom: (1637.4.1 drizzle)
  • Revision ID: brian@gaz-20100628161736-eormhb2mnd551i2h
MergeĀ unused

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
 
25
25
  case "$host_os" in
26
 
    *solaris*)
 
26
    *solaris*|*freebsd*)
27
27
    AS_IF([test "x${ac_cv_env_CPPFLAGS_set}" = "x"],[
28
28
      CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
29
29
    ])
32
32
      LDFLAGS="${LDFLAGS} -L/usr/local/lib"
33
33
    ])
34
34
    ;;
35
 
    *freebsd*)
36
 
    AS_IF([test "x${ac_cv_env_CPPFLAGS_set}" = "x"],[
37
 
      CPPFLAGS="${CPPFLAGS} -isystem /usr/local/include"
38
 
    ])
39
 
 
40
 
    AS_IF([test "x${ac_cv_env_LDFLAGS_set}" = "x"],[
41
 
      LDFLAGS="${LDFLAGS} -L/usr/local/lib"
42
 
    ])
43
 
    ;;
44
35
  esac
45
36
 
46
37
  PANDORA_OPTIMIZE_BITFIELD=1
59
50
    *solaris*)
60
51
      TARGET_SOLARIS="true"
61
52
      PANDORA_OPTIMIZE_BITFIELD=0
62
 
      AS_IF([test "x${USE_NLS}" = "xyes"],[LIBS="${LIBS} -lintl"])
63
53
      AC_SUBST(TARGET_SOLARIS)
64
54
      AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
65
55
      ;;
69
59
      AC_DEFINE([TARGET_OS_FREEBSD], [1], [Whether we are building for FreeBSD])
70
60
      AC_DEFINE([__APPLE_CC__],[1],[Workaround for bug in FreeBSD headers])
71
61
      ;;
72
 
    *mingw32*)
73
 
      TARGET_WINDOWS="true"
74
 
      AC_SUBST(TARGET_WINDOWS)
75
 
      AC_DEFINE([TARGET_OS_WINDOWS], [1], [Whether we are building for Windows])
76
 
      AC_DEFINE([WINVER], [WindowsXP], [Version of Windows])
77
 
      AC_DEFINE([_WIN32_WINNT], [0x0501], [Magical number to make things work])
78
 
      AC_DEFINE([EAI_SYSTEM], [11], [Another magical number])
79
 
      AH_BOTTOM([
80
 
#ifndef HAVE_SYS_SOCKET_H
81
 
# define SHUT_RD SD_RECEIVE
82
 
# define SHUT_WR SD_SEND
83
 
# define SHUT_RDWR SD_BOTH
84
 
#endif
85
 
      ])
86
 
 
87
 
      LIBS="$LIBS -lwsock32 -lws2_32"
88
 
      AM_CFLAGS="${AM_CFLAGS} -I\${top_srcdir}/win32/mingw -I\${top_builddir}/win32/mingw -I\${top_srcdir}/win32 -I\${top_builddir}/win32"
 
62
    *)
89
63
      ;;
90
64
  esac
91
 
  AM_CONDITIONAL(BUILD_WIN32, [test "x${TARGET_WINDOWS}" = "xtrue"])
92
65
 
93
66
  AC_SUBST(PANDORA_OPTIMIZE_BITFIELD)
94
67