diff --git a/PG-PuReMD/src/reax_types.h b/PG-PuReMD/src/reax_types.h
index 85f205bd84a4aa6224d00ded302263095a95a102..eeb1ae5b73e8858eda9be45bd340ea7cbc0c2e86 100644
--- a/PG-PuReMD/src/reax_types.h
+++ b/PG-PuReMD/src/reax_types.h
@@ -41,7 +41,7 @@
 
 #if (defined(HAVE_CONFIG_H) && !defined(__CONFIG_H_))
   #define __CONFIG_H_
-  #include "config.h"
+  #include "../../common/include/config.h"
 #endif
 
 #include <ctype.h>
diff --git a/PuReMD-GPU/src/mytypes.h b/PuReMD-GPU/src/mytypes.h
index b04a9de39c8dbf487cac6d02a5e098a220862d5a..82f9339dbf40a0d425b557ef4e2fd0201e5e40bc 100644
--- a/PuReMD-GPU/src/mytypes.h
+++ b/PuReMD-GPU/src/mytypes.h
@@ -46,7 +46,7 @@
 
 #if (defined(HAVE_CONFIG_H) && !defined(__CONFIG_H_))
   #define __CONFIG_H_
-  #include "config.h"
+  #include "../../common/include/config.h"
 #endif
 
 #include <math.h>
diff --git a/PuReMD/src/reax_types.h b/PuReMD/src/reax_types.h
index 136a5ff5728b9ee859355cfdea4a0bbe58614e65..9222c65e778c3b4124ce7e06f7399c7ab638cdad 100644
--- a/PuReMD/src/reax_types.h
+++ b/PuReMD/src/reax_types.h
@@ -24,7 +24,7 @@
 
 #if (defined(HAVE_CONFIG_H) && !defined(__CONFIG_H_))
   #define __CONFIG_H_
-  #include "config.h"
+  #include "../../common/include/config.h"
 #endif
 
 #include <ctype.h>
diff --git a/common/include/.gitkeep b/common/include/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/configure.ac b/configure.ac
index a7f54a52b654d5061905adecae57cc9faf7453a8..a571260223ef51a7c6430c1e5cbdc8d7dca0b3d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,7 @@ AC_LANG([C++])
 AC_PROG_CXX([icpc g++ clang++ CC c++])
 AC_PROG_CXXCPP
 
+AC_CONFIG_HEADERS([common/include/config.h])
 
 # sPuReMD
 if test "x${pack_serial_enabled}" = "xyes" || test "x${pack_openmp_enabled}" = "xyes"; then
@@ -128,7 +129,6 @@ if test "x${pack_serial_enabled}" = "xyes" || test "x${pack_openmp_enabled}" = "
 	AC_LANG_PUSH([C])
 
 	AC_CONFIG_SRCDIR([sPuReMD/src/traj.h])
-	AC_CONFIG_HEADERS([sPuReMD/src/config.h])
 
 	# Checks for libraries.
 	AC_SEARCH_LIBS([exp], [m])
@@ -249,7 +249,6 @@ if test "x${pack_gpu_enabled}" = "xyes"; then
 	AC_LANG_PUSH([C])
 
 	AC_CONFIG_SRCDIR([PuReMD-GPU/src/analyze.c])
-	AC_CONFIG_HEADERS([PuReMD-GPU/src/config.h])
 
 	# Checks for libraries.
 	AC_SEARCH_LIBS([exp], [m])
@@ -356,7 +355,6 @@ if test "x${pack_mpi_old_enabled}" = "xyes"; then
 	AC_LANG_PUSH([C])
 
 	AC_CONFIG_SRCDIR([PuReMD/src/torsion_angles.h])
-	AC_CONFIG_HEADERS([PuReMD/src/config.h])
 
 	# Checks for libraries.
 	AC_SEARCH_LIBS([exp], [m])
@@ -519,7 +517,6 @@ if test "x${pack_mpi_enabled}" = "xyes" || test "x${pack_mpi_gpu_enabled}" = "xy
 	AC_LANG_PUSH([C])
 
 	AC_CONFIG_SRCDIR([PG-PuReMD/src/torsion_angles.h])
-	AC_CONFIG_HEADERS([PG-PuReMD/src/config.h])
 
 	# Checks for libraries.
 	AC_SEARCH_LIBS([exp], [m])
diff --git a/sPuReMD/src/reax_types.h b/sPuReMD/src/reax_types.h
index 2412eee442d0b571b59991bab099bb84779c30df..13424024837f6e095d9d1094be864da2d66a790b 100644
--- a/sPuReMD/src/reax_types.h
+++ b/sPuReMD/src/reax_types.h
@@ -24,7 +24,7 @@
 
 #if (defined(HAVE_CONFIG_H) && !defined(__CONFIG_H_))
   #define __CONFIG_H_
-  #include "config.h"
+  #include "../../common/include/config.h"
 #endif
 
 #include <math.h>