~ubuntu-branches/ubuntu/precise/nettle/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Magnus Holmgren
  • Date: 2008-04-20 00:40:55 UTC
  • mfrom: (3.1.7 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080420004055-r0jr22szk4aub1v5
Tags: 1.15-5
* New maintainer email address.
* Bring debian/control format up-to-date with Homepage and Vcs fields.
* Add machine-readable copyright information to debian/copyright and
  clarify licensing of nettle-lfib-stream.1 and pkcs1-conv.1. The
  machine-readable information may not be completely accurate at this
  point due to the many different authors and licenses.
* Don't ignore make potential distclean errors.
* debian/libnettle-dev.doc-base: Change section to Programming/C
  following the abolishion of the Apps section.
* Bump Standards-Version to 3.7.3 without any changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
dnl Process this file with autoconf to produce a configure script.
4
4
 
5
 
AC_INIT([nettle], [1.14], [nettle-bugs@lists.lysator.liu.se])
 
5
AC_INIT([nettle], [1.15], [nettle-bugs@lists.lysator.liu.se])
6
6
AC_PREREQ(2.50)
7
7
AC_CONFIG_SRCDIR([arcfour.c])
8
8
# Needed to stop autoconf from looking for files in parent directories.
11
11
AC_CONFIG_HEADER([config.h])
12
12
 
13
13
SHLIBMAJOR=2
14
 
SHLIBMINOR=5
 
14
SHLIBMINOR=6
15
15
 
16
16
AC_CANONICAL_HOST
17
17
 
76
76
    enable_assembler=no
77
77
fi
78
78
 
 
79
# Used by the testsuite only
 
80
AC_PROG_CXX
 
81
 
 
82
AC_LANG_PUSH(C++)
 
83
AC_TRY_COMPILE([],[return 0;],[CXX_TESTS='cxx-test$(EXEEXT)'], [CXX_TESTS=''])
 
84
AC_SUBST([CXX_TESTS])
 
85
AC_LANG_POP
 
86
 
79
87
AC_PROG_MAKE_SET
80
88
AC_PROG_RANLIB
81
89
AC_CHECK_TOOL(NM, nm, strings)
88
96
 
89
97
AC_PROG_INSTALL
90
98
 
 
99
# According to the autoconf manual, needs install-sh from
 
100
# autoconf-2.60 or automake-1.10 to avoid races.
 
101
AC_PROG_MKDIR_P
 
102
 
91
103
LSH_DEPENDENCY_TRACKING
92
104
 
93
105
if test x$enable_dependency_tracking = xyes ; then
157
169
    SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(SHLIBFILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
158
170
    SHLIBLIBS='-Wl,--no-whole-archive $(LIBS)'
159
171
    ;;
 
172
  darwin*)
 
173
    SHLIBFORLINK=libnettle.dylib
 
174
    SHLIBSONAME='$(SHLIBFORLINK).$(SHLIBMAJOR)'
 
175
    SHLIBFILE='$(SHLIBSONAME).$(SHLIBMINOR)'
 
176
    SHLIBLINK='$(CC) -dynamiclib $(LDFLAGS)'
 
177
    # SHLIBLIBS=' -lgmp'
 
178
    ;;
160
179
  *)
161
180
    SHLIBFORLINK=libnettle.so
162
181
    SHLIBSONAME='$(SHLIBFORLINK).$(SHLIBMAJOR)'
186
205
ASM_ELF_STYLE='no'
187
206
ASM_TYPE_FUNCTION=''
188
207
ASM_MARK_NOEXEC_STACK=''
 
208
ASM_ALIGN_LOG=''
189
209
 
190
210
if test x$enable_assembler = xyes ; then
191
211
  AC_CACHE_CHECK([if globals are prefixed by underscore],
268
288
      ASM_TYPE_FUNCTION='#function'
269
289
    fi
270
290
  fi
 
291
  AC_CACHE_CHECK([if .align assembly directive is logarithmic],
 
292
    [nettle_cv_asm_align_log],
 
293
    [GMP_TRY_ASSEMBLE([
 
294
.align 3
 
295
],
 
296
       [nettle_cv_asm_align_log=yes],
 
297
       [nettle_cv_asm_align_log=no])])
 
298
  if test x$nettle_cv_asm_align_log = xyes ; then
 
299
    ASM_ALIGN_LOG='yes'
 
300
  fi
271
301
fi
272
302
 
273
303
AC_SUBST(ASM_SYMBOL_PREFIX)
274
304
AC_SUBST(ASM_ELF_STYLE)
275
305
AC_SUBST(ASM_TYPE_FUNCTION)
276
306
AC_SUBST(ASM_MARK_NOEXEC_STACK)
 
307
AC_SUBST(ASM_ALIGN_LOG)
277
308
 
278
309
AC_SUBST(SHLIBCFLAGS)
279
310
AC_SUBST(SHLIBMAJOR)
361
392
    CFLAGS="$CFLAGS -ggdb3"
362
393
  fi
363
394
  # FIXME: It would be better to actually test if this option works and/or is needed.
 
395
  # Or perhaps use -funsigned-char.
364
396
  if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
365
397
    CFLAGS="$CFLAGS -Wno-pointer-sign"
366
398
  fi