comparison doc/manual.tex @ 1464:969b90b1f2f9

Configuration detects proper header files for database dev libraries
author Adam Chlipala <adam@chlipala.net>
date Sun, 29 May 2011 13:31:53 -0400
parents c12ceb891350
children 2f5fd248588d
comparison
equal deleted inserted replaced
1463:607657eb2865 1464:969b90b1f2f9
93 GCCARGS=-fnested-functions ./configure 93 GCCARGS=-fnested-functions ./configure
94 \end{verbatim} 94 \end{verbatim}
95 95
96 Some Mac OS X users have reported needing to use this particular GCCARGS value. 96 Some Mac OS X users have reported needing to use this particular GCCARGS value.
97 97
98 Since the author is still getting a handle on the GNU Autotools that provide the build system, you may need to do some further work to get started, especially in environments with significant differences from Linux (where most testing is done). One OS X user reported needing to run \texttt{./configure} with \texttt{CFLAGS=-I/opt/local/include}, since this directory wound up holding a header file associated with a \texttt{libmhash} package installed via DarwinPorts. Further, to get libpq to link, another user reported setting \texttt{GCCARGS="-I/opt/local/include -L/opt/local/lib/postgresql84"}, after creating a symbolic link with \texttt{ln -s /opt/local/include/postgresql84 /opt/local/include/postgresql}. 98 Since the author is still getting a handle on the GNU Autotools that provide the build system, you may need to do some further work to get started, especially in environments with significant differences from Linux (where most testing is done). The variables \texttt{PGHEADER}, \texttt{MSHEADER}, and \texttt{SQHEADER} may be used to set the proper C header files to include for the development libraries of PostgreSQL, MySQL, and SQLite, respectively. To get libpq to link, one OS X user reported setting \texttt{GCCARGS="-I/opt/local/include -L/opt/local/lib/postgresql84"}, after creating a symbolic link with \texttt{ln -s /opt/local/include/postgresql84 /opt/local/include/postgresql}.
99 99
100 The Emacs mode can be set to autoload by adding the following to your \texttt{.emacs} file. 100 The Emacs mode can be set to autoload by adding the following to your \texttt{.emacs} file.
101 101
102 \begin{verbatim} 102 \begin{verbatim}
103 (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/urweb-mode") 103 (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/urweb-mode")