#!/usr/bin/env ruby #$no_term_tricks # prints every status thing on its own line if set #$rc_show_cc_source # xxx require 'ConfigCore.rb'; require 'AutoconfDerived.rb'; require 'LangC.rb'; require 'LangC++.rb'; # Register a new --with-foo option --with-ssl, default state is 'with' $settings.with_options['ssl'] = WithOption.new 'with', 'SSL option description'; # Register another option with a mandatory argument DIR $settings.with_options['ssl-dir'] = WithOption.new 'DIR', 'where the root of OpenSSL is installed'; rcConfigureInitialize 'testpackage', '0.3'; rcFindInstall; rcFindCompiler('C'); rcFindCompiler('C++'); rcCheckANSICHeaders; rcCheckHeader('sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h'); rcCheckHeader('inttypes.h stdint.h unistd.h dlfcn.h malloc.h stdio.h ctype.h'); rcCheckHeader('dl.h dld.h alloca.h argz.h limits.h locale.h nl_types.h values.h'); rcCheckHeader('sys/param.h sys/mman.h sys/time.h sys/cdefs.h fnmatch.h sysent.h'); rcCheckHeader('sys/select.h sys/socket.h linux/socket.h socketbits.h'); rcCheckHeader('sigaction.h paths.h monetary.h sys/soundcard.h crt_externs.h'); rcCheckHeader('CoreAudio/CoreAudio.h X11/extensions/shape.h'); rcCheckHeader('X11/extensions/XShm.h X11/ICE/ICElib.h vfork.h netinet/in.h'); rcCheckHeader('X11/extensions/Xrender.h cups/cups.h libutil.h util.h pty.h'); rcCheckHeader('sys/mnttab.h mntent.h fstab.h sys/ucred.h sys/mount.h'); rcCheckHeader('ieeefp.h float.h machine/soundcard.h linux/awe_voice.h awe_voice.h'); rcCheckHeader('sys/asoundlib.h alsa/asoundlib.h'); #rcCheckLibrary('Xext z png jpeg6b jpeg tiff'); # Yes with rcCheckLibrary you can give multiple libraries to check for, however # given that it's a hash you can't guarantee the order in which they're checked. rcCheckLibrary ({ 'png' => ['z','m']}) #rcCheckLibrary ({ "Alpha" => [1]}) #rcCheckLibrary ({, "delta" => [3]}) # And we're done exit 0;