summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
index a0cf60a..f1462de 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
@@ -83,6 +83,13 @@ public class NarGnuConfigureMojo
if ( !gnuConfigureSkip && !gnuAutogenSkip && autogen.exists() )
{
getLog().info( "Running GNU " + AUTOGEN );
+
+ // fix missing config directory
+ File configDir = new File(targetDir, "config");
+ if (!configDir.exists()) {
+ configDir.mkdirs();
+ }
+
NarUtil.makeExecutable( autogen, getLog() );
int result = NarUtil.runCommand( "./" + autogen.getName(), null, targetDir, null, getLog() );
if ( result != 0 )