| [444] | 1 | #========================================================================= |
|---|
| 2 | # configure.ac for riscv libgloss and crt0 |
|---|
| 3 | #========================================================================= |
|---|
| 4 | |
|---|
| 5 | #------------------------------------------------------------------------- |
|---|
| 6 | # Setup |
|---|
| 7 | #------------------------------------------------------------------------- |
|---|
| 8 | |
|---|
| 9 | AC_INIT([crt0.S]) |
|---|
| 10 | AC_CONFIG_SRCDIR([crt0.S]) |
|---|
| 11 | AC_CONFIG_AUX_DIR([${srcdir}/../..]) |
|---|
| 12 | |
|---|
| 13 | #------------------------------------------------------------------------- |
|---|
| 14 | # Checks for programs |
|---|
| 15 | #------------------------------------------------------------------------- |
|---|
| 16 | |
|---|
| 17 | LIB_AC_PROG_CC |
|---|
| 18 | AC_CHECK_TOOL([AR],[ar]) |
|---|
| 19 | AC_CHECK_TOOL([RANLIB],[ranlib]) |
|---|
| 20 | AC_PROG_INSTALL |
|---|
| 21 | |
|---|
| 22 | #------------------------------------------------------------------------- |
|---|
| 23 | # Output |
|---|
| 24 | #------------------------------------------------------------------------- |
|---|
| 25 | |
|---|
| 26 | if test "$srcdir" = "." ; then |
|---|
| 27 | if test "${with_target_subdir}" != "." ; then |
|---|
| 28 | libgloss_topdir="${srcdir}/${with_multisrctop}../../.." |
|---|
| 29 | else |
|---|
| 30 | libgloss_topdir="${srcdir}/${with_multisrctop}../.." |
|---|
| 31 | fi |
|---|
| 32 | else |
|---|
| 33 | libgloss_topdir="${srcdir}/../.." |
|---|
| 34 | fi |
|---|
| 35 | AC_CONFIG_AUX_DIR($libgloss_topdir) |
|---|
| 36 | AC_CONFIG_FILES(Makefile, |
|---|
| 37 | . ${libgloss_topdir}/config-ml.in, |
|---|
| 38 | srcdir=${srcdir} |
|---|
| 39 | target=${target} |
|---|
| 40 | with_multisubdir=${with_multisubdir} |
|---|
| 41 | ac_configure_args="${ac_configure_args} --enable-multilib" |
|---|
| 42 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|---|
| 43 | libgloss_topdir=${libgloss_topdir} |
|---|
| 44 | ) |
|---|
| 45 | AC_OUTPUT |
|---|