First attempt at a configure for Bacula - PostgreSQL on FreeBSD

My comments are prefixed by ****.

configure: WARNING: you should use --build, --host, --target
checking for true... /usr/bin/true
checking for false... /usr/bin/false
checking build system type... i386-portbld-freebsd4.8
checking host system type... i386-portbld-freebsd4.8
configuring for bacula 1.33 (28 Nov 2003)
checking for i386-portbld-freebsd4.8-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for i386-portbld-freebsd4.8-g++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking whether cc needs -traditional... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for i386-portbld-freebsd4.8-ranlib... no
checking for ranlib... ranlib
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /usr/bin/sed
checking for awk... /usr/bin/awk
checking for echo... /bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/bin/ar
checking for ranlib... /usr/bin/ranlib
checking for openssl... /usr/bin/openssl
checking for mtx... mtx
checking for pkg-config... /usr/local/bin/pkg-config
checking for Operating System... " "
checking for Operating System Distribution... " "
checking for msgfmt... /usr/local/bin/msgfmt
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking /usr/include/readline/readline.h usability... yes
checking /usr/include/readline/readline.h presence... yes
checking for /usr/include/readline/readline.h... yes
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for strcasecmp... yes
checking for select... yes
checking for setenv... yes
checking for putenv... yes
checking for tcgetattr... yes
checking for setlocale... yes
checking for lstat... yes
checking for lchown... yes
checking for nanosleep... yes
checking varargs.h usability... yes
checking varargs.h presence... yes
checking for varargs.h... yes
checking for libwrap... yes
unable to write 'random state'
unable to write 'random state'
unable to write 'random state'
checking for PostgreSQL support... yes
checking for MySQL support... no
no
checking for SQLite support... no
checking for i386-portbld-freebsd4.8-getconf... no
checking for getconf... getconf
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) no
checking for string.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking sys/byteorder.h usability... no
checking sys/byteorder.h presence... no
checking for sys/byteorder.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking resolv.h usability... no
checking resolv.h presence... yes
configure: WARNING: resolv.h: present but cannot be compiled
configure: WARNING: resolv.h: check for missing prerequisite headers?
configure: WARNING: resolv.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for resolv.h... yes
checking mtio.h usability... no
checking mtio.h presence... no
checking for mtio.h... no
checking sys/mtio.h usability... yes
checking sys/mtio.h presence... yes
checking for sys/mtio.h... yes
checking for ANSI C header files... (cached) yes
checking whether sys/types.h defines makedev... yes
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking whether stat file-mode macros are broken... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for utime.h... yes
checking for socklen_t... yes
checking for bigendian... no
checking for an ANSI C-conforming const... yes
checking how to get filesystem type... 4.4BSD/OSF1
checking return type of signal handlers... void
checking for type of signal functions... posix
checking for mode_t... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking for pid_t... yes
checking for off_t... yes
checking for ino_t... yes
checking for dev_t... yes
checking for daddr_t... yes
checking for major_t... no
checking for minor_t... no
checking for ssize_t... yes
checking for struct stat.st_blocks... (cached) yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for an ANSI C-conforming const... (cached) yes
checking for char... yes
checking size of char... 1
checking for short int... yes
checking size of short int... 2
checking for int... yes
checking size of int... 4
checking for long int... yes
checking size of long int... 4
checking for long long int... yes
checking size of long long int... 8
checking for int *... yes
checking size of int *... 4
checking for u_int type... yes
checking for intmax_t type... no
checking for u_intmax_t type... no
checking for intXX_t types... yes
checking for int64_t type... yes
checking for u_intXX_t types... yes
checking for u_int64_t types... yes
checking for fork... yes
checking for getcwd... yes
checking for gethostname... yes
checking for getpid... yes
checking for gettimeofday... yes
checking for setpgid... yes
checking for setpgrp... yes
checking for setsid... yes
checking for signal... yes
checking for strerror... yes
checking for strncmp... yes
checking for strncpy... yes
checking for vfprintf... yes
checking for fchdir... yes
checking for strtoll... yes
checking for chflags... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for gethostid... yes
checking for getdomainname... yes
checking for localtime_r... yes
checking for readdir_r... yes
checking for strerror_r... yes
checking for gethostbyname_r... no
checking for gethostbyname_r... (cached) no
checking for gethostbyname_r in -lnsl... no
checking for gethostbyname_r in -lresolv... no
checking for socket... yes
using libc's socket
checking for inet_pton... yes
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for working alloca.h... no
checking for alloca... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... no
checking whether closedir returns void... no
checking whether setpgrp takes no argument... no
checking for working POSIX fnmatch... yes
checking for setlocale in -lxpg4... yes
checking for getpwnam in -lsun... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking for pthread_create in -lpthread... no
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lc_r... yes
configure: creating ./config.status
config.status: creating autoconf/Make.common
config.status: creating Makefile
config.status: creating rescue/Makefile
config.status: creating rescue/linux/Makefile
config.status: creating rescue/freebsd/Makefile
config.status: creating rescue/solaris/Makefile
config.status: creating scripts/startmysql
config.status: creating scripts/stopmysql
config.status: creating scripts/btraceback
config.status: creating scripts/startit
config.status: creating scripts/stopit
config.status: creating scripts/bconsole
config.status: creating scripts/gconsole
config.status: creating scripts/bacula
config.status: creating scripts/fd
config.status: creating scripts/Makefile
config.status: creating scripts/logrotate
config.status: creating scripts/bacula.desktop.gnome1
config.status: creating scripts/bacula.desktop.gnome2
config.status: creating scripts/mtx-changer
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/host.h
config.status: creating src/console/Makefile
config.status: creating src/console/bconsole.conf
config.status: creating src/gnome-console/Makefile
config.status: creating src/gnome-console/gnome-console.conf
config.status: creating src/gnome2-console/Makefile
config.status: creating src/gnome2-console/gnome-console.conf
config.status: creating src/tconsole/Makefile
config.status: creating src/dird/Makefile
config.status: creating src/dird/bacula-dir.conf
config.status: creating src/lib/Makefile
config.status: creating src/stored/Makefile
config.status: creating src/stored/bacula-sd.conf
config.status: creating src/filed/Makefile
config.status: creating src/filed/bacula-fd.conf
config.status: creating src/filed/win32/Makefile
config.status: creating src/cats/Makefile
config.status: creating src/cats/make_catalog_backup
config.status: creating src/cats/delete_catalog_backup
config.status: creating src/cats/make_mysql_tables
config.status: creating src/cats/drop_mysql_tables
config.status: creating src/cats/update_mysql_tables
config.status: creating src/cats/create_mysql_database
config.status: creating src/cats/grant_mysql_privileges
config.status: creating src/cats/make_sqlite_tables
config.status: creating src/cats/drop_sqlite_tables
config.status: creating src/cats/update_sqlite_tables
config.status: creating src/cats/create_sqlite_database
config.status: creating src/cats/sqlite
config.status: creating src/cats/mysql
config.status: creating src/cats/create_bdb_database
config.status: creating src/cats/make_bdb_tables
config.status: creating src/cats/drop_bdb_tables
config.status: creating src/cats/make_bacula_tables
config.status: creating src/cats/drop_bacula_tables
config.status: creating src/cats/update_bacula_tables
config.status: creating src/findlib/Makefile
config.status: creating src/tools/Makefile
config.status: creating platforms/Makefile
config.status: creating platforms/freebsd/Makefile
config.status: creating platforms/freebsd/bacula-fd
config.status: creating platforms/freebsd/bacula-sd
config.status: creating platforms/freebsd/bacula-dir
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing default commands
Doing make of dependencies
==>Entering directory /usr/home/dan/src/bacula-cvs/src
==>Entering directory /usr/home/dan/src/bacula-cvs/scripts
==>Entering directory /usr/home/dan/src/bacula-cvs/doc
==>Entering directory /usr/home/dan/src/bacula-cvs/src/lib
==>Entering directory /usr/home/dan/src/bacula-cvs/src/findlib
==>Entering directory /usr/home/dan/src/bacula-cvs/src/filed
==>Entering directory /usr/home/dan/src/bacula-cvs/rescue
==>Entering directory /usr/home/dan/src/bacula-cvs/rescue/linux
==>Entering directory /usr/home/dan/src/bacula-cvs/src/cats
==>Entering directory /usr/home/dan/src/bacula-cvs/src/console
==>Entering directory /usr/home/dan/src/bacula-cvs/src/dird
==>Entering directory /usr/home/dan/src/bacula-cvs/src/stored
==>Entering directory /usr/home/dan/src/bacula-cvs/src/tools

Configuration on Sat Dec  6 11:15:57 EST 2003:

  Host:                       i386-portbld-freebsd4.8 -- freebsd 4.8-STABLE
  Bacula version:             1.33 (28 Nov 2003)
  Source code location:       .
  Install binaries:           /usr/local/sbin
  Install config files:       /usr/local/etc
  Scripts directory:          /usr/local/etc
  Working directory:          /var/db/bacula
  PID directory:              /var/run
  Subsys directory:           /var/run/subsys
  C Compiler:                 cc 2.95.4
  C++ Compiler:               c++ 2.95.4
  Compiler flags:              -O -pipe  -D_THREAD_SAFE
  Linker flags:                -L/usr/local/lib -pthread
  Libraries:                  -D_THREAD_SAFE  -lwrap -lxpg4
  Statically Linked Tools:    no
  Statically Linked FD:       no
  Statically Linked SD:       no
  Statically Linked DIR:      no
  Statically Linked CONS:     no
  Database type:              PostgreSQL
  Database lib:               -L/usr/local/lib -lpq -lz

  Job Output Email:           root@localhost
  Traceback Email:            root@localhost
  SMTP Host Address:          localhost

  Director Port:              9101
  File daemon Port:           9102
  Storage daemon Port:        9103

  Director User:
  Director Group:
  Storage Daemon User:
  Storage Daemon Group:
  File Daemon User:
  File Daemon Group:

  SQL binaries Directory      /usr/local/bin

  Large file support:         yes
  readline support:           yes
  TCP Wrappers support:       yes
  ZLIB support:               yes
  enable-smartalloc:          yes
  enable-gnome:               no
  client-only:                no

This is much better. The database type and the database list are correct.