| 1 | # |
|---|
| 2 | # Copyright (C) 2006 KPIT Cummins |
|---|
| 3 | # Copyright (C) 2009 Conny Marco Menebröcker |
|---|
| 4 | # All rights reserved. |
|---|
| 5 | # |
|---|
| 6 | # Redistribution and use in source and binary forms is permitted |
|---|
| 7 | # provided that the above copyright notice and following paragraph are |
|---|
| 8 | # duplicated in all such forms. |
|---|
| 9 | # |
|---|
| 10 | # This file is distributed WITHOUT ANY WARRANTY; without even the implied |
|---|
| 11 | # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 12 | # |
|---|
| 13 | # |
|---|
| 14 | # Process this file with autoconf to produce a configure script. |
|---|
| 15 | # |
|---|
| 16 | AC_PREREQ(2.59) |
|---|
| 17 | AC_INIT(crt0.S) |
|---|
| 18 | |
|---|
| 19 | if test "${enable_shared}" = "yes" ; then |
|---|
| 20 | echo "Shared libraries not supported for cross compiling, ignored" |
|---|
| 21 | fi |
|---|
| 22 | |
|---|
| 23 | if test "$srcdir" = "." ; then |
|---|
| 24 | if test "${with_target_subdir}" != "." ; then |
|---|
| 25 | libgloss_topdir="${srcdir}/${with_multisrctop}../../.." |
|---|
| 26 | else |
|---|
| 27 | libgloss_topdir="${srcdir}/${with_multisrctop}../.." |
|---|
| 28 | fi |
|---|
| 29 | else |
|---|
| 30 | libgloss_topdir="${srcdir}/../.." |
|---|
| 31 | fi |
|---|
| 32 | AC_CONFIG_AUX_DIR($libgloss_topdir) |
|---|
| 33 | |
|---|
| 34 | AC_CANONICAL_SYSTEM |
|---|
| 35 | AC_ARG_PROGRAM |
|---|
| 36 | |
|---|
| 37 | AC_PROG_INSTALL |
|---|
| 38 | |
|---|
| 39 | LIB_AC_PROG_CC |
|---|
| 40 | AS=${AS-as} |
|---|
| 41 | AC_SUBST(AS) |
|---|
| 42 | AR=${AR-ar} |
|---|
| 43 | AC_SUBST(AR) |
|---|
| 44 | LD=${LD-ld} |
|---|
| 45 | AC_SUBST(LD) |
|---|
| 46 | AC_PROG_RANLIB |
|---|
| 47 | LIB_AM_PROG_AS |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | host_makefile_frag=${srcdir}/../config/default.mh |
|---|
| 51 | target_makefile_frag=${srcdir}/../config/xc16x.mt |
|---|
| 52 | |
|---|
| 53 | dnl We have to assign the same value to other variables because autoconf |
|---|
| 54 | dnl doesn't provide a mechanism to substitute a replacement keyword with |
|---|
| 55 | dnl arbitrary data or pathnames. |
|---|
| 56 | dnl |
|---|
| 57 | host_makefile_frag_path=$host_makefile_frag |
|---|
| 58 | AC_SUBST(host_makefile_frag_path) |
|---|
| 59 | AC_SUBST_FILE(host_makefile_frag) |
|---|
| 60 | target_makefile_frag_path=$target_makefile_frag |
|---|
| 61 | AC_SUBST(target_makefile_frag_path) |
|---|
| 62 | AC_SUBST_FILE(target_makefile_frag) |
|---|
| 63 | AC_SUBST(part_specific_obj) |
|---|
| 64 | AC_SUBST(script_list) |
|---|
| 65 | AC_SUBST(bsp_list) |
|---|
| 66 | |
|---|
| 67 | AC_CONFIG_FILES([Makefile], |
|---|
| 68 | [if test -n "$CONFIG_FILES"; then |
|---|
| 69 | unset ac_file |
|---|
| 70 | . ${libgloss_topdir}/config-ml.in |
|---|
| 71 | fi], |
|---|
| 72 | srcdir=${srcdir} |
|---|
| 73 | target=${target} |
|---|
| 74 | with_multisubdir=${with_multisubdir} |
|---|
| 75 | ac_configure_args="${ac_configure_args} --enable-multilib" |
|---|
| 76 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|---|
| 77 | libgloss_topdir=${libgloss_topdir} |
|---|
| 78 | ) |
|---|
| 79 | AC_OUTPUT |
|---|
| 80 | |
|---|
| 81 | |
|---|