-########################################################################### osx
-
-AC_MSG_CHECKING(for CoreAudio (MacOs))
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[
- #include <CoreAudio/CoreAudio.h>
-]], [[
- AudioDeviceID id;
-]])],[have_core_audio=yes],[have_core_audio=no])
-AC_MSG_RESULT($have_core_audio)
-if test ${have_core_audio} = yes; then
- f1="-framework CoreAudio"
- f2="-framework AudioToolbox"
- f3="-framework AudioUnit"
- f4="-framework CoreServices"
- core_audio_ldflags="$f1 $f2 $f3 $f4"
- AC_SUBST(core_audio_ldflags)
-
- audiod_errlist_objs="$audiod_errlist_objs osx_write ipc"
- audiod_cmdline_objs="$audiod_cmdline_objs osx_write.cmdline"
-
- play_errlist_objs="$play_errlist_objs osx_write ipc"
- play_cmdline_objs="$play_cmdline_objs osx_write.cmdline"
-
- write_errlist_objs="$write_errlist_objs osx_write ipc"
- write_cmdline_objs="$write_cmdline_objs osx_write.cmdline"
- writers="$writers osx"
- default_writer="OSX_WRITE"
- AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on Mac Os X)
-fi
-####################################################### ogg/vorbis/speex/opus
-have_ogg="yes"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-AC_ARG_WITH(ogg_headers, [AS_HELP_STRING(--with-ogg-headers=dir,
- [look for ogg headers also in dir])])
-AC_ARG_WITH(ogg_libs, [AS_HELP_STRING(--with-ogg-libs=dir,
- [look for ogg libs also in dir])])
-AC_ARG_WITH(vorbis_headers, [AS_HELP_STRING(--with-vorbis-headers=dir,
- [look for vorbis headers also in dir])])
-AC_ARG_WITH(vorbis_libs, [AS_HELP_STRING(--with-vorbis-libs=dir,
- [look for vorbis libs also in dir])])
-AC_ARG_WITH(speex_headers, [AS_HELP_STRING(--with-speex-headers=dir,
- [look for speex headers also in dir])])
-AC_ARG_WITH(speex_libs, [AS_HELP_STRING(--with-speex-libs=dir,
- [look for speex libs also in dir])])
-AC_ARG_WITH(opus_headers, [AS_HELP_STRING(--with-opus-headers=dir,
- [look for opus headers also in dir])])
-AC_ARG_WITH(opus_libs, [AS_HELP_STRING(--with-opus-libs=dir,
- [look for opus libs also in dir])])
-
-if test -n "$with_ogg_headers"; then
- ogg_cppflags="-I$with_ogg_headers"
- CPPFLAGS="$CPPFLAGS $ogg_cppflags"
-fi
-if test -n "$with_ogg_libs"; then
- ogg_libs="-L$with_ogg_libs"
- LDFLAGS="$LDFLAGS $ogg_libs"
-fi
-AC_CHECK_HEADERS([ogg/ogg.h], [], [ have_ogg="no"; ])
-AC_CHECK_LIB([ogg], [ogg_stream_init], [], [ have_ogg="no" ])
-
-have_vorbis="yes"
-have_speex="yes"
-have_opus="yes"
-if test "$have_ogg" = "yes"; then
- # vorbis
- if test -n "$with_vorbis_headers"; then
- vorbis_cppflags="-I$with_vorbis_headers"
- CPPFLAGS="$CPPFLAGS $vorbis_cppflags"
- fi
- if test -n "$with_vorbis_libs"; then
- vorbis_libs="-L$with_vorbis_libs"
- LDFLAGS="$LDFLAGS $vorbis_libs"
- fi
- AC_CHECK_HEADERS([vorbis/codec.h], [], [ have_vorbis="no" ])
- AC_CHECK_LIB([vorbis], [vorbis_info_init], [], [ have_vorbis="no" ])
-
- # speex
- if test -n "$with_speex_headers"; then
- speex_cppflags="-I$with_speex_headers"
- CPPFLAGS="$CPPFLAGS $speex_cppflags"
- fi
- if test -n "$with_speex_libs"; then
- speex_libs="-L$with_speex_libs"
- LDFLAGS="$LDFLAGS $speex_libs"
- fi
- AC_CHECK_LIB([speex], [speex_decoder_init], [], [ have_speex="no" ])
- AC_CHECK_HEADERS([speex/speex.h], [], [ have_speex="no" ])
-
- # opus
- if test -n "$with_opus_headers"; then
- opus_cppflags="-I$with_opus_headers"
- CPPFLAGS="$CPPFLAGS $opus_cppflags"
- fi
- if test -n "$with_opus_libs"; then
- opus_libs="-L$with_opus_libs"
- LDFLAGS="$LDFLAGS $opus_libs"
- fi
- AC_CHECK_LIB([opus], [opus_multistream_decode], [], [ have_opus="no" ])
- AC_CHECK_HEADERS([opus/opus.h], [], [ have_opus="no" ])
-else
- AC_MSG_WARN([vorbis/speex/opus depend on libogg, which was not detected])
- have_vorbis="no"
- have_speex="no"
- have_opus="no"
-fi
-
-msg="support in para_server/para_filter/para_afh"
-if test "$have_vorbis" = "yes" || \
- test "$have_speex" = "yes" || \
- test "$have_opus" = "yes"; then
- AC_SUBST(ogg_cppflags)
- ogg_ldflags="$ogg_libs -logg"
- if test "$OSTYPE" = "Darwin"; then
- ogg_ldflags="-Wl,-bind_at_load $ogg_ldflags"
- fi
- AC_SUBST(ogg_ldflags)
- afh_errlist_objs="$afh_errlist_objs ogg_afh_common"
- recv_errlist_objs="$recv_errlist_objs ogg_afh_common"
- server_errlist_objs="$server_errlist_objs ogg_afh_common"
- play_errlist_objs="$play_errlist_objs ogg_afh_common"
-fi
-if test "$have_vorbis" = "yes"; then
- AC_DEFINE(HAVE_OGGVORBIS, 1, define to 1 to turn on ogg/vorbis support)
- filters="$filters oggdec"
- vorbis_ldflags="$vorbis_libs -lvorbis -lvorbisfile"
- AC_SUBST(vorbis_ldflags)
-
- server_errlist_objs="$server_errlist_objs ogg_afh"
- filter_errlist_objs="$filter_errlist_objs oggdec_filter"
- audiod_errlist_objs="$audiod_errlist_objs oggdec_filter"
- play_errlist_objs="$play_errlist_objs oggdec_filter ogg_afh"
- afh_errlist_objs="$afh_errlist_objs ogg_afh"
- recv_errlist_objs="$recv_errlist_objs ogg_afh"
-
- audiod_audio_formats="$audiod_audio_formats ogg"
- audio_format_handlers="$audio_format_handlers ogg"
-fi
-if test "$have_speex" = "yes"; then
- AC_DEFINE(HAVE_SPEEX, 1, define to 1 to turn on ogg/speex support)
- AC_SUBST(speex_cppflags)
- speex_ldflags="$speex_libs -lspeex"
- AC_SUBST(speex_ldflags)
-
- filters="$filters spxdec"
-
- server_errlist_objs="$server_errlist_objs spx_afh spx_common"
- filter_errlist_objs="$filter_errlist_objs spxdec_filter spx_common"
- audiod_errlist_objs="$audiod_errlist_objs spxdec_filter spx_common"
- play_errlist_objs="$play_errlist_objs spxdec_filter spx_afh spx_common"
- afh_errlist_objs="$afh_errlist_objs spx_afh spx_common"
- recv_errlist_objs="$recv_errlist_objs spx_afh spx_common"
-
- audiod_audio_formats="$audiod_audio_formats spx"
- audio_format_handlers="$audio_format_handlers spx"
-else
- AC_MSG_WARN([no ogg/speex $msg])
-fi
-if test "$have_opus" = "yes"; then
- AC_DEFINE(HAVE_OPUS, 1, define to 1 to turn on ogg/opus support)
- AC_SUBST(opus_cppflags)
- opus_ldflags="$opus_libs -lopus"
- AC_SUBST(opus_ldflags)
-
- filters="$filters opusdec"
-
- server_errlist_objs="$server_errlist_objs opus_afh opus_common"
- filter_errlist_objs="$filter_errlist_objs opusdec_filter opus_common"
- audiod_errlist_objs="$audiod_errlist_objs opusdec_filter opus_common"
- afh_errlist_objs="$afh_errlist_objs opus_afh opus_common"
- play_errlist_objs="$play_errlist_objs opusdec_filter opus_afh opus_common"
- recv_errlist_objs="$recv_errlist_objs opus_afh opus_common"
-
- audiod_audio_formats="$audiod_audio_formats opus"
- audio_format_handlers="$audio_format_handlers opus"
-else
- AC_MSG_WARN([no ogg/opus $msg])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-########################################################################### faad
-have_faad=yes
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-AC_ARG_WITH(faad_headers, [AS_HELP_STRING(--with-faad-headers=dir,
- [look for neaacdec.h also in dir])])
-if test -n "$with_faad_headers"; then
- faad_cppflags="-I$with_faad_headers"
- CPPFLAGS="$CPPFLAGS $faad_cppflags"
-fi
-AC_ARG_WITH(faad_libs, [AS_HELP_STRING(--with-faad-libs=dir,
- [look for libfaad also in dir])])
-if test -n "$with_faad_libs"; then
- faad_libs="-L$with_faad_libs"
- LDFLAGS="$LDFLAGS $faad_libs"
-fi
-AC_CHECK_HEADER(neaacdec.h, [], have_faad=no)
-AC_CHECK_LIB([faad], [NeAACDecOpen], [], have_faad=no)
-if test "$have_faad" = "yes"; then
- AC_DEFINE(HAVE_FAAD, 1, define to 1 if you want to build the aacdec filter)
- AC_SUBST(faad_cppflags)
- faad_ldflags="$faad_libs -lfaad"
- AC_SUBST(faad_ldflags)
-
- filter_errlist_objs="$filter_errlist_objs aacdec_filter aac_common"
- afh_errlist_objs="$afh_errlist_objs aac_common aac_afh"
- audiod_errlist_objs="$audiod_errlist_objs aacdec_filter aac_common"
- play_errlist_objs="$play_errlist_objs aacdec_filter aac_afh aac_common"
- server_errlist_objs="$server_errlist_objs aac_afh aac_common"
- recv_errlist_objs="$recv_errlist_objs aac_afh aac_common"
-
- audiod_audio_formats="$audiod_audio_formats aac"
- audio_format_handlers="$audio_format_handlers aac"
- filters="$filters aacdec"
-else
- AC_MSG_WARN([no aac support in para_audiod/para_filter])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-########################################################################### mad
-have_mad="yes"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-AC_ARG_WITH(mad_headers, [AS_HELP_STRING(--with-mad-headers=dir,
- [look for mad.h also in dir])])
-if test -n "$with_mad_headers"; then
- mad_cppflags="-I$with_mad_headers"
- CPPFLAGS="$CPPFLAGS $mad_cppflags"
-fi
-AC_ARG_WITH(mad_libs, [AS_HELP_STRING(--with-mad-libs=dir,
- [look for libmad also in dir])])
-if test -n "$with_mad_libs"; then
- mad_libs="-L$with_mad_libs"
- LDFLAGS="$LDFLAGS $mad_libs"
-fi
-AC_CHECK_HEADERS([mad.h], [], [
- have_mad="no"
-])
-AC_CHECK_LIB([mad], [mad_stream_init], [], [
- have_mad="no"
-])
-if test "$have_mad" = "yes"; then
- AC_DEFINE(HAVE_MAD, 1, define to 1 if you want to build the mp3dec filter)
- AC_SUBST(mad_cppflags)
- mad_ldflags="$mad_libs -lmad"
- AC_SUBST(mad_ldflags)
- filter_cmdline_objs="$filter_cmdline_objs mp3dec_filter"
- audiod_cmdline_objs="$audiod_cmdline_objs mp3dec_filter"
- play_cmdline_objs="$play_cmdline_objs mp3dec_filter"
- filter_errlist_objs="$filter_errlist_objs mp3dec_filter"
- audiod_errlist_objs="$audiod_errlist_objs mp3dec_filter"
- play_errlist_objs="$play_errlist_objs mp3dec_filter"
- audiod_audio_formats="$audiod_audio_formats mp3"
- filters="$filters mp3dec"
-else
- AC_MSG_WARN([no mp3dec support in para_audiod/para_filter])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-###################################################################### libid3tag
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-have_libid3tag="yes"
-AC_ARG_WITH(id3tag_headers, [AS_HELP_STRING(--with-id3tag-headers=dir,
- [look for id3tag header files also in dir])])
-if test -n "$with_id3tag_headers"; then
- id3tag_cppflags="-I$with_id3tag_headers"
- CPPFLAGS="$CPPFLAGS $id3tag_cppflags"
-fi
-AC_ARG_WITH(id3tag_libs, [AS_HELP_STRING(--with-id3tag-libs=dir,
- [look for id3tag libs also in dir])])
-if test -n "$with_id3tag_libs"; then
- id3tag_libs="-L$with_id3tag_libs"
- LDFLAGS="$LDFLAGS $id3tag_libs"
-fi
-
-AC_MSG_CHECKING(for libid3tag)
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[
- #include <id3tag.h>
-]], [[
- struct id3_tag t = {.flags = 0};
-]])],[],[have_libid3tag=no])
-AC_MSG_RESULT($have_libid3tag)
-
-if test ${have_libid3tag} = yes; then
- AC_DEFINE(HAVE_LIBID3TAG, 1, define to 1 you have libid3tag)
- AC_SUBST(id3tag_cppflags)
- AC_SUBST(id3tag_ldflags, "$id3tag_libs -lid3tag -lz")
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-########################################################################### flac
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-have_flac="yes"
-AC_ARG_WITH(flac_headers, [AS_HELP_STRING(--with-flac-headers=dir,
- [look for flac headers also in dir])])
-if test -n "$with_flac_headers"; then
- flac_cppflags="-I$with_flac_headers"
- CPPFLAGS="$CPPFLAGS $flac_cppflags"
-fi
-AC_ARG_WITH(flac_libs, [AS_HELP_STRING(--with-flac-libs=dir,
- [look for flac libs also in dir])])
-if test -n "$with_flac_libs"; then
- flac_libs="-L$with_flac_libs"
- LDFLAGS="$LDFLAGS $flac_libs"
-fi
-AC_CHECK_HEADER(FLAC/stream_decoder.h, [], have_flac=no)
-AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], have_flac=no, -logg -lm)
-if test "$have_flac" = "yes"; then
- AC_DEFINE(HAVE_FLAC, 1, define to 1 if you want to build the flacdec filter)
- AC_SUBST(flac_cppflags)
- flac_ldflags="$flac_libs -lFLAC"
- AC_SUBST(flac_ldflags)
-
- filter_errlist_objs="$filter_errlist_objs flacdec_filter"
- audiod_errlist_objs="$audiod_errlist_objs flacdec_filter"
- play_errlist_objs="$play_errlist_objs flacdec_filter flac_afh"
- afh_errlist_objs="$afh_errlist_objs flac_afh"
- server_errlist_objs="$server_errlist_objs flac_afh"
- recv_errlist_objs="$recv_errlist_objs flac_afh"
- filters="$filters flacdec"
- audio_format_handlers="$audio_format_handlers flac"
- audiod_audio_formats="$audiod_audio_formats flac"
-else
- AC_MSG_WARN([no flac support in para_audiod/para_filter/para_afh/para_server])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-########################################################################### oss
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-have_oss="yes"
-msg="=> will not build oss writer"
-
-AC_CHECK_HEADER(sys/soundcard.h, [
- audiod_errlist_objs="$audiod_errlist_objs oss_write"
- play_errlist_objs="$play_errlist_objs oss_write"
- audiod_cmdline_objs="$audiod_cmdline_objs oss_write"
- play_cmdline_objs="$play_cmdline_objs oss_write"
-
- write_errlist_objs="$write_errlist_objs oss_write"
- write_cmdline_objs="$write_cmdline_objs oss_write"
- fade_errlist_objs="$fade_errlist_objs oss_mix"
-
- writers="$writers oss"
- default_writer="OSS_WRITE"
- mixers="${mixers}oss "
- default_mixer="OSS_MIX"
-
- AC_CHECK_LIB(ossaudio, _oss_ioctl, [
- oss_ldflags="-lossaudio"
- AC_SUBST(oss_ldflags)
- ]
- )
- ],
- [
- have_oss="no"
- AC_MSG_WARN([no sys/soundcard.h $msg])
- ]
-)
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-
-########################################################################### alsa
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-msg="=> no alsa support for para_audiod/para_write"
-if test "$OSTYPE" != "Linux"; then
- have_alsa="no"
-else
- have_alsa="yes"
-fi
-if test "$have_alsa" = "yes"; then
- AC_CHECK_HEADERS([alsa/asoundlib.h], [], [
- have_alsa="no"
- AC_MSG_WARN([no alsa/asoundlib $msg])
- ])
-fi
-
-if test "$have_alsa" = "yes"; then
- AC_CHECK_LIB([asound], [snd_pcm_open], [], [
- have_alsa="no"
- AC_MSG_WARN([no libasound $msg])
- ])
-fi
-
-if test "$have_alsa" = "yes"; then
- alsa_ldflags="-lasound"
- AC_SUBST(alsa_ldflags)
- audiod_errlist_objs="$audiod_errlist_objs alsa_write"
- audiod_cmdline_objs="$audiod_cmdline_objs alsa_write"
- play_errlist_objs="$play_errlist_objs alsa_write"
- play_cmdline_objs="$play_cmdline_objs alsa_write"
-
- write_errlist_objs="$write_errlist_objs alsa_write"
- write_cmdline_objs="$write_cmdline_objs alsa_write"
- fade_errlist_objs="$fade_errlist_objs alsa_mix"
-
- writers="$writers alsa"
- default_writer="ALSA_WRITE"
- mixers="${mixers}alsa "
- default_mixer="ALSA_MIX"
-fi
-
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-########################################################################### libao
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-have_ao="yes"
-AC_ARG_WITH(ao_headers, [AS_HELP_STRING(--with-ao-headers=dir,
- [look for ao/ao.h also in dir])])
-if test -n "$with_ao_headers"; then
- ao_cppflags="-I$with_ao_headers"
- CPPFLAGS="$CPPFLAGS $ao_cppflags"
-fi
-AC_ARG_WITH(ao_libs, [AS_HELP_STRING(--with-ao-libs=dir,
- [look for libao also in dir])])
-if test -n "$with_ao_libs"; then
- ao_libs="-L$with_ao_libs"
- LDFLAGS="$LDFLAGS $ao_libs"
-fi
-msg="no libao support for para_audiod/para_write"
-AC_CHECK_HEADERS([ao/ao.h], [
- ], [
- have_ao="no"
- AC_MSG_WARN([ao.h not found, $msg])
-])
-if test "$have_ao" = "yes"; then
- AC_CHECK_LIB([ao], [ao_initialize], [], [
- have_ao="no"
- AC_MSG_WARN([ao lib not found or not working, $msg])
- ])
-fi
-if test "$have_ao" = "yes"; then
- AC_CHECK_HEADERS([pthread.h], [
- ], [
- have_ao="no"
- AC_MSG_WARN([pthread.h not found, $msg])
- ])
-fi
-if test "$have_ao" = "yes"; then
- AC_CHECK_LIB([pthread], [pthread_create], [], [
- have_ao="no"
- AC_MSG_WARN([pthread lib not found or not working, $msg])
- ])
-fi
-if test "$have_ao" = "yes"; then
- AC_SUBST(ao_cppflags)
- ao_ldflags="$ao_libs -lao -lpthread"
- AC_SUBST(ao_ldflags)
-
- audiod_errlist_objs="$audiod_errlist_objs ao_write"
- audiod_cmdline_objs="$audiod_cmdline_objs ao_write"
-
- play_errlist_objs="$play_errlist_objs ao_write"
- play_cmdline_objs="$play_cmdline_objs ao_write"
-
- write_errlist_objs="$write_errlist_objs ao_write"
- write_cmdline_objs="$write_cmdline_objs ao_write"
- writers="$writers ao"
-fi
-
-CPPFLAGS="$OLD_CPPFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-############################################################# readline
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-
-have_readline="yes"
-AC_ARG_WITH(readline_headers, [AS_HELP_STRING(--with-readline-headers=dir,
- [look for libreadline header files also in dir])])
-if test -n "$with_readline_headers"; then
- readline_cppflags="-I$with_readline_headers"
- CPPFLAGS="$CPPFLAGS $readline_cppflags"
-fi
-
-AC_ARG_WITH(readline_libs, [AS_HELP_STRING(--with-readline-libs=dir,
- [look for readline library also in dir])])
-if test -n "$with_readline_libs"; then
- readline_libs="-L$with_readline_libs"
- LDFLAGS="$LDFLAGS $readline_libs"
-fi
-msg="no interactive cli support"
-AC_CHECK_HEADERS([readline/readline.h], [
- ], [
- have_readline="no"
- AC_MSG_WARN([readline/readline.h not found, $msg])
-])
-
-if test "$have_curses" != "yes"; then
- have_readline="no"
- AC_MSG_WARN([interactive cli support depends on curses,])
- AC_MSG_WARN([but no curses lib was detected, $msg])
-fi
-
-if test "$have_readline" = "yes"; then
- readline_ldflags="$readline_libs -lreadline"
- AC_SEARCH_LIBS([rl_free_keymap], [readline], [], [have_readline="no"])
- if test "$have_readline" = "no"; then # try with -lcurses
- # clear cache
- AC_MSG_NOTICE([trying again with -lcurses])
- unset ac_cv_search_rl_free_keymap 2> /dev/null
- AC_SEARCH_LIBS([rl_free_keymap], [readline], [
- have_readline=yes
- readline_ldflags="$readline_ldflags -lcurses"
- ], [], [-lcurses])
- fi
- if test "$have_readline" = "no"; then # try with -ltermcap
- # clear cache
- AC_MSG_NOTICE([trying again with -ltermcap])
- unset ac_cv_search_rl_free_keymap 2> /dev/null
- AC_SEARCH_LIBS([rl_free_keymap], [readline], [
- have_readline=yes
- readline_ldflags="$readline_ldflags -ltermcap"
- ], [], [-ltermcap])
- fi
-fi