views:

33

answers:

2

In this example:

configure.ac: 
  ...
  AC_CONFIG_FILES([script1])
  AC_OUTPUT

script1.in: 
  #!/bin/bash
  ...
  config=@datadir@/blah

This @datadir@ is expanded to ${prefix}/share, is there any way to expand it to /usr/local/share?

A: 

See Automake manual section 9.1.

谢继雷
A: 

You can use adl_RECURSIVE_EVAL from the autoconf archive to fully expand paths.

William Pursell