[BACK]Return to configure.ac CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

Diff for /dgamelaunch-openbsd/configure.ac between version 1.1.1.1 and 1.4

version 1.1.1.1, 2021/03/09 14:36:01 version 1.4, 2021/03/16 10:10:55
Line 2  dnl Use autoconf 2.53
Line 2  dnl Use autoconf 2.53
 dnl (Things tend to break across versions, they're neither upwards nor  dnl (Things tend to break across versions, they're neither upwards nor
 dnl downward compatible. Blame GNU.)  dnl downward compatible. Blame GNU.)
   
 AC_INIT(dgamelaunch, [1.5.1])  AC_INIT(dgamelaunch-openbsd, [0.0.1])
 AC_PREREQ(2.53)  AC_PREREQ(2.53)
   
 AC_CONFIG_HEADER(config.h)  AC_CONFIG_HEADER(config.h)
Line 25  if test -z "$YACC"; then
Line 25  if test -z "$YACC"; then
 fi  fi
   
 case "$(uname -s)" in  case "$(uname -s)" in
     OpenBSD)
       LIBS="-lutil $LIBS"
       AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])
     ;;
   Linux | *BSD)    Linux | *BSD)
     MY_LIBS="$MY_LIBS -lutil -lcrypt"      MY_LIBS="$MY_LIBS -lutil -lcrypt"
     AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])      AC_DEFINE(NOSTREAMS, 1, [Don't use SVR4 streams support in ttyrec.])
Line 106  AC_ARG_WITH(sqlite-db,
Line 110  AC_ARG_WITH(sqlite-db,
 [dgl_sqlite_db=$withval; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])  [dgl_sqlite_db=$withval; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])
   
 if test "$enable_sqlite" = yes; then  if test "$enable_sqlite" = yes; then
      AC_CHECK_HEADERS([sqlite3.h],
           [mypj_found_sqlite3_headers=yes; break;])
      AS_IF([test "x$mypj_found_sqlite3_headers" != "xyes"],
           [AC_MSG_ERROR([Unable to find sqlite3 headers])])
    AC_MSG_RESULT([Using SQLite for the database, located at $dgl_sqlite_db])     AC_MSG_RESULT([Using SQLite for the database, located at $dgl_sqlite_db])
    AC_DEFINE(USE_SQLITE3,1,[Use SQLite for the database instead of flat text file.])     AC_DEFINE(USE_SQLITE3,1,[Use SQLite for the database instead of flat text file.])
    MY_LIBS="$MY_LIBS -lsqlite3"     MY_LIBS="$MY_LIBS -lsqlite3"
Line 153  AC_ARG_ENABLE(shmem,
Line 161  AC_ARG_ENABLE(shmem,
 [enable_shmem=yes], [])  [enable_shmem=yes], [])
   
 if test "$enable_shmem" = yes; then  if test "$enable_shmem" = yes; then
      AS_IF([ test "$(uname -s)" = "OpenBSD" ],
           [AC_MSG_ERROR([enable-shmem is not implemented for this platform.])])
    AC_CHECK_HEADERS([semaphore.h], [], [AC_MSG_ERROR([semaphore.h not found.])], [])     AC_CHECK_HEADERS([semaphore.h], [], [AC_MSG_ERROR([semaphore.h not found.])], [])
    AC_CHECK_HEADERS([sys/ipc.h], [], [AC_MSG_ERROR([sys/ipc.h not found.])], [])     AC_CHECK_HEADERS([sys/ipc.h], [], [AC_MSG_ERROR([sys/ipc.h not found.])], [])
    AC_CHECK_HEADERS([sys/shm.h], [], [AC_MSG_ERROR([sys/shm.h not found.])], [])     AC_CHECK_HEADERS([sys/shm.h], [], [AC_MSG_ERROR([sys/shm.h not found.])], [])
    AC_MSG_RESULT([Enabled showing number of watchers.])     AC_MSG_RESULT([Enabled showing number of watchers.])
    AC_DEFINE(USE_SHMEM,1,[Use shared memory block])     AC_DEFINE(USE_SHMEM,1,[Use shared memory block])
    MY_LIBS="$MY_LIBS -lrt"     AS_IF([ test "$(uname -s)" != "OpenBSD"],
         [MY_LIBS="$MY_LIBS -lrt"])
    # or -pthread?     # or -pthread?
 fi  fi
   

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.4

CVSweb