必要な環境変数を設定する.
$ export AUTOCONF_VERSION="2.71"
$ export AUTOMAKE_VERSION="1.16"
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/gcc/x86_64-unknown-openbsd7.3/11.2.0
コンパイルとインストールを行う.
$ git pull
$ ./autogen.sh
$ ./configure \
'CFLAGS=-I/usr/include -I/usr/X11R6/include -I/usr/local/include' \
'LDFLAGS=-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib -lgccjit' \
--prefix=/usr/local \
--mandir=/usr/local/share/man \
--infodir=/usr/local/info \
--with-x-toolkit=athena \
--with-imagemagick \
--with-xaw3d \
--with-x \
--without-xim \
--with-xpm=ifavailable \
--with-native-compilation
$ gmake bootstrap
$ gmake check
# gmake install
以上で作業は終了した.
M-x emacs-version
GNU Emacs 30.0.50 (build 1, x86_64-unknown-openbsd7.3, X toolkit, cairo version 1.17.8, Xaw3d scroll bars) of 2023-07-04