]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - configure.in
Merged across diffs between setup_crypto_branch_branchpoint and
[cygwin-apps/setup.git] / configure.in
index 6f5a60574a290807c57453d018116ce3d4316bb0..784e40fcd6ccb2d941359f3bf3d7ce9f3bc5d081 100644 (file)
@@ -1,92 +1,89 @@
+dnl Copyright (c) 2000, Red Hat, Inc.
+dnl
+dnl     This program is free software; you can redistribute it and/or modify
+dnl     it under the terms of the GNU General Public License as published by
+dnl     the Free Software Foundation; either version 2 of the License, or
+dnl     (at your option) any later version.
+dnl
+dnl     A copy of the GNU General Public License can be found at
+dnl     http://www.gnu.org/
+dnl
+dnl Written by Christopher Faylor <cgf@redhat.com>
+dnl and Robert Collins  <rbtcollins@hotmail.com>
+dnl
+dnl $Id$
+dnl
 dnl Autoconf configure script for Cygwin utilities.
-dnl Copyright 1996, 1997 Cygnus Solutions.
 dnl
-dnl This file is part of Cygwin.
-dnl 
-dnl This software is a copyrighted work licensed under the terms of the
-dnl Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
-dnl details.
-
 dnl Process this file with autoconf to produce a configure script.
 
-AC_PREREQ(2.12)
-
-AC_INIT(Makefile.in)
-
-dnl FIXME: We temporarily define our own version of AC_PROG_CC.  This is
-dnl copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
-dnl are probably using a cross compiler, which will not be able to fully
-dnl link an executable.  This should really be fixed in autoconf
-dnl itself.
+AC_INIT([setup], [0], [cygwin-apps@cygwin.com])
+AC_PREREQ(2.60)
+AC_CONFIG_AUX_DIR([cfgaux])
+AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.9 foreign no-define -Wall -Wno-portability])
+dnl AM_CONFIG_HEADER(include/autoconf.h)
+AM_MAINTAINER_MODE
+AC_CONFIG_SRCDIR([Makefile.in])
+AC_REVISION($Revision$)dnl
 
-AC_DEFUN(LIB_AC_PROG_CC,
-[AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_CHECK_PROG(CC, gcc, gcc)
-if test -z "$CC"; then
-  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
-  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
-fi
-
-AC_PROG_CC_GNU
-
-if test $ac_cv_prog_gcc = yes; then
-  GCC=yes
-dnl Check whether -g works, even if CFLAGS is set, in case the package
-dnl plays around with CFLAGS (such as to build both debugging and
-dnl normal versions of a library), tasteless as that idea is.
-  ac_test_CFLAGS="${CFLAGS+set}"
-  ac_save_CFLAGS="$CFLAGS"
-  CFLAGS=
-  AC_PROG_CC_G
-  if test "$ac_test_CFLAGS" = set; then
-    CFLAGS="$ac_save_CFLAGS"
-  elif test $ac_cv_prog_cc_g = yes; then
-    CFLAGS="-g -O2"
-  else
-    CFLAGS="-O2"
-  fi
+AC_MSG_CHECKING([Whether to build inilint])
+AC_ARG_ENABLE(inilint,
+           AC_HELP_STRING([--enable-inilint],
+                          [Build the inilint tool]),
+           ac_cv_enable_inilint=$enableval, ac_cv_enable_inilint=no)
+AC_MSG_RESULT([$ac_cv_enable_inilint])
+if test $ac_cv_enable_inilint = yes; then
+  INILINT="inilint\$(EXEEXT)"
 else
-  GCC=
-  test "${CFLAGS+set}" = set || CFLAGS="-g"
+  INILINT=
 fi
-])
+AC_SUBST(INILINT)
 
-LIB_AC_PROG_CC
+AC_LANG_CPLUSPLUS
+AC_PROG_CXX
+AM_PROG_CC_C_O
+AM_PROG_LEX
+AC_PROG_YACC
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+AC_PROG_LIBTOOL
 
-AC_CANONICAL_SYSTEM
-AC_ARG_PROGRAM
+dnl AC_CHECK_TOOL(AR, ar, ar)
+dnl AC_SUBST(AR)
+dnl AC_CHECK_TOOL(AS, as, as)
+dnl AC_SUBST(AS)
+dnl AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
+dnl AC_SUBST(RANLIB)
+dnl AC_CHECK_TOOL(LD, ld, ld)
+dnl AC_SUBST(LD)
+dnl AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
+dnl AC_SUBST(DLLTOOL)
+AC_CHECK_TOOL(WINDRES, windres, windres)
+AC_SUBST(WINDRES)
+dnl AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
+dnl AC_SUBST(OBJCOPY)
 
-if test "x$cross_compiling" = "xyes"; then
-  if test "x$program_transform_name" = "xs,x,x,"; then
-    program_transform_name=""
-  fi
-  if test "x$program_transform_name" = "x"; then
-    program_transform_name="s,^,$host-,"
-  else
-    program_transform_name="$program_transform_name -e s,^,$host-,"
-  fi
-fi
+AC_CHECK_LIB(mingw32,main)
 
-AC_PROG_INSTALL
+AC_CHECK_HEADERS(alloca.h \
+                errno.h \
+                string \
+                string.h )
 
-AC_EXEEXT
+dnl override configure of sub-libraries
+ac_cv_path_GPG_ERROR_CONFIG="${ac_abs_confdir}/gpg-error-config-fake --dir=$ac_pwd"
 
-AC_CHECK_TOOL(AR, ar, ar)
-AC_SUBST(AR)
-AC_CHECK_TOOL(AS, as, as)
-AC_SUBST(AS)
-AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
-AC_SUBST(RANLIB)
-AC_CHECK_TOOL(LD, ld, ld)
-AC_SUBST(LD)
-AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
-AC_SUBST(DLLTOOL)
-AC_CHECK_TOOL(WINDRES, windres, windres)
-AC_SUBST(WINDRES)
-AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
-AC_SUBST(OBJCOPY)
+AC_CONFIG_SUBDIRS(libgetopt++ libgpg-error libgcrypt)
 
-SUBDIRS="zlib"
-AC_CONFIG_SUBDIRS($SUBDIRS)
+dnl add portability sources to inilint
+case "$host_os" in
+mingw32)
+  AM_CONDITIONAL(MINGWTARGET, true)
+  ;;
+*)
+  AM_CONDITIONAL(MINGWTARGET, false)
+  ;;
+esac
 
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile tests/Makefile])
+AC_OUTPUT
This page took 0.026848 seconds and 5 git commands to generate.